Disable Lightbox on mobile view

Hi to all the gurus !

I want to know is that is way to disable the lightbox but only on mobile view size,
is anyone knows a solution to solve this ?

The fact is on a mobile view the lightbox doesn’t seem necessary,
the opening frame is always smaller than the preview…

Possible solutions with @media queries ?


Can’t you switch off visibility?

Yes, of course,
but I would like to keep visible my gallery without having to recreate it specially for the mobile view.

Maybe time to use dedicated gallery instead of a light box/gallery mashup.
I use light box at the bottom of my home page, and a gallery app for my photo pages that adjusts for mobile or desktop.