I have two sets of images, one for desktop and one for mobile, each within the same gallery. The desktop version has a more elaborate layout that will not read in mobile so I want to use css to show/hide depending on the screen size. I'm using the code below and it's working perfectly except for one issue. On the desktop version after the last image instead of returning to the beginning you see a black black screen. The mobile images are hidden but the navigation is still loading the blank pages. How do I point the link back to the first image?
@media only screen a