hide modal when clicking the lightbox