Lightbox close on scroll and resize