/* Thumbnail rendered by the {% imgpopup %} tag */
a.imgpopup {
  display: inline-block;
  cursor: zoom-in;
  line-height: 0;
}

a.imgpopup img {
  max-width: 100%;
  height: auto;
}

/* Full-size overlay opened by assets/js/lightbox.js */
.imgpopup-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4vmin;
  background: rgba(0, 0, 0, 0.85);
  cursor: zoom-out;
}

.imgpopup-overlay[hidden] {
  display: none;
}

.imgpopup-overlay-img {
  max-width: 100%;
  max-height: 100%;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.6);
}

/* Prevent the page behind the overlay from scrolling */
body.imgpopup-open {
  overflow: hidden;
}
