lightbox fixes and gallery