update lightbox script and make captions more visible in lightbox
close the lightbox if clicked outside the image