While using the default lightbox2 CSS and JavaScript, everything is functioning correctly except for an issue on Safari mobile. When I click an image and the lightbox opens, swiping to the left reveals blank white space despite having overflow-x set to hidden. Even after disabling scrolling in the lightbox options, the problem persists. It may be related to the navbar on mobile devices, but I'm unable to pinpoint the exact cause. Any suggestions?
If you'd like to view the page on mobile, here's the link: Sushi Gen Gallery
Here's a screenshot of the problem captured on an iPhone 7 Plus (same issue occurs on a 2018 iPad): Screenshot
HTML Code:
<!DOCTYPE html>
<html lang="en">
... (HTML code continues)
Custom CSS:
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
... (CSS code continues)
Default LightBox2 CSS:
body.lb-disable-scrolling {
overflow: hidden;
}
... (LightBox2 CSS continues)