Lightbox thumbnails mobile: horizontal layout

I’ve created a Lightbox for images. The desktop view shows the thumbnails horizontally, but when switching to mobile view it places it vertically and I can’t figure out how to switch it to layout left to right. Attached is screenshot.