/* Keep the primary escape control comfortably inside iPhone safe areas. */
.glightbox-clean .gclose {
  top: max(1rem, env(safe-area-inset-top));
  right: max(1rem, env(safe-area-inset-right));
  width: 44px;
  height: 44px;
  opacity: 1;
  background-color: rgb(15 23 42 / 80%);
}

.glightbox-clean .gclose:hover,
.glightbox-clean .gclose:focus-visible {
  background-color: rgb(15 23 42 / 100%);
}

/* Retinere images are reference material; preserve the whole image rather
   than cropping it to fill the viewport. */
.glightbox-container .gslide-image img {
  object-fit: contain;
}
