:root {
  --zoom-overlay-bg: rgba(255, 255, 255, 0.8);
}

[data-theme="dark"] {
  --zoom-overlay-bg: rgba(0, 0, 0, 0.8);
}

main img {
  max-width: 100%;
}

.image-lightbox {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  background: var(--zoom-overlay-bg);
  cursor: zoom-out;
  z-index: 999;
}

.image-lightbox-image {
  display: block;
  inline-size: auto;
  block-size: auto;
  max-inline-size: min(90vw, 72rem);
  max-block-size: 85vh;
  object-fit: contain;
  cursor: zoom-out;
}

.image-lightbox-open {
  overflow: hidden;
}

.image-lightbox-image {
  margin: 0 !important;
  border: 0 !important;
}
