.site-image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: grid;
  place-items: center;
  padding: clamp(16px, 4vw, 48px);
  background: rgba(2, 9, 16, 0.94);
  opacity: 0;
  visibility: hidden;
  transition: opacity 180ms ease, visibility 180ms ease;
}

.site-image-lightbox.open {
  opacity: 1;
  visibility: visible;
}

.site-image-lightbox figure {
  margin: 0;
  display: grid;
  gap: 12px;
  justify-items: center;
  max-width: 100%;
  max-height: 100%;
}

.site-image-lightbox img {
  display: block;
  width: auto;
  height: auto;
  max-width: min(94vw, 1800px);
  max-height: 84vh;
  object-fit: contain;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
}

.site-image-lightbox figcaption {
  max-width: 80ch;
  color: #fff;
  font: 600 14px/1.5 Manrope, Arial, sans-serif;
  text-align: center;
}

.site-image-lightbox-close {
  position: fixed;
  top: 14px;
  right: 16px;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 50%;
  background: #071827;
  color: #fff;
  font: 400 30px/1 Arial, sans-serif;
  cursor: pointer;
}

.site-image-lightbox-close:focus-visible {
  outline: 3px solid #ffb000;
  outline-offset: 3px;
}

@media (max-width: 640px) {
  .site-image-lightbox { padding: 58px 10px 18px; }
  .site-image-lightbox img { max-width: 96vw; max-height: 78vh; }
}

@media (prefers-reduced-motion: reduce) {
  .site-image-lightbox { transition: none; }
}
