<!-- Optional caption --> <figcaption style="position:absolute;bottom:0;left:0;right:0;background:rgba(0,0,0,.5);color:#fff;padding:.4rem;text-align:center;font-size:.9rem;"> Click to enlarge </figcaption> </div>
What could be stronger
Or build the URL based on variables:
: If you're a web developer or a website owner, you can use this URL in an <img> tag in HTML to display the image on a webpage. img src https wwwzupimagesnet up 23 07 n9 top
// ESC key closes the overlay document.addEventListener('keydown', e => if (e.key === 'Escape' && lightbox.classList.contains('open')) closeLightbox(); !-- Optional caption -->
 Click to enlarge <