lighbox works

the lightbox now opens when an image is opened, and closes when any mouse click within the viewport is detected