Commented in lightbox code to see how it works