/* Mavin lightbox (overlay image viewer) */
#mavin-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.86);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2147483647;
  padding: 18px;
}

#mavin-lightbox.is-open {
  display: flex;
}

.mavin-lightbox__stage {
  position: relative;
  max-width: 95vw;
  max-height: 85vh;
  overflow: hidden;
  border-radius: 10px;
}

.mavin-lightbox__img {
  display: block;
  max-width: 95vw;
  max-height: 85vh;
  width: auto;
  height: auto;
  object-fit: contain;
  cursor: zoom-in;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}

#mavin-lightbox.is-zoomed .mavin-lightbox__stage {
  overflow: auto;
}

#mavin-lightbox.is-zoomed .mavin-lightbox__img {
  max-width: none;
  max-height: none;
  cursor: zoom-out;
}

/* Close button */
.mavin-lightbox__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  font-size: 30px;
  line-height: 42px;
  cursor: pointer;
}

.mavin-lightbox__close:hover {
  background: rgba(255, 255, 255, 0.28);
}

.mavin-lightbox--no-scroll {
  overflow: hidden !important;
}