.site-image-expandable {
  cursor: zoom-in;
}

.site-image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px;
  background: rgba(0, 0, 0, 0.92);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
}

.site-image-lightbox.is-open {
  opacity: 1;
  pointer-events: auto;
}

.site-image-lightbox[hidden] {
  display: none;
}

.site-image-lightbox__figure {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  max-width: 94vw;
  max-height: 90vh;
  margin: 0;
}

.site-image-lightbox__image {
  display: block;
  max-width: 94vw;
  max-height: 84vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5);
}

.site-image-lightbox__caption {
  max-width: min(760px, 90vw);
  color: rgba(255, 255, 255, 0.72);
  font-family: Arial, sans-serif;
  font-size: 0.82rem;
  line-height: 1.45;
  text-align: center;
}

.site-image-lightbox__close {
  position: fixed;
  top: 18px;
  right: 20px;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(232, 196, 119, 0.32);
  border-radius: 50%;
  background: rgba(20, 20, 20, 0.72);
  color: #e8c477;
  font-size: 1.65rem;
  line-height: 1;
  cursor: pointer;
}

.site-image-lightbox__close:hover,
.site-image-lightbox__close:focus-visible {
  background: rgba(232, 196, 119, 0.18);
  outline: none;
}

@media (max-width: 768px) {
  .site-image-lightbox {
    padding: 14px;
  }

  .site-image-lightbox__image {
    max-width: 96vw;
    max-height: 80vh;
  }

  .site-image-lightbox__close {
    top: 12px;
    right: 12px;
  }
}
