<div id="imageViewer" style="position: fixed; left: 0; top: 0; display: none; width: 100vw; background-color: rgba(0,0,0,0.7); text-align: center;"> <div style="line-height: 100vh;"> <img src="" alt="" decoding="async" style="max-height: 100vh; max-width: 100%;"> </div></div><script> document.getElementById('imageViewer').onclick = (() => { document.getElementById('imageViewer').style.display = 'none'; })</script>