Lightbox scroll logic fix