/* ============================================
   ZOOMABLE PHOTO GRID + LIGHTBOX
   ============================================ */
.photo-zoom-gallery {
  padding: var(--space-xl) 0;
  border-top: 1px solid var(--color-border);
}
.photo-zoom-gallery-title { text-align: center; margin-bottom: var(--space-sm); }
.photo-zoom-gallery-description {
  max-width: 480px;
  margin: 0 auto var(--space-md);
  text-align: center;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  line-height: 1.5;
  color: var(--color-text-muted);
}

.photo-zoom-single {
  display: block;
  width: 100%;
  max-width: 760px;
  margin: var(--space-sm) auto 0;
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
  border-radius: var(--radius);
  overflow: hidden;
}
.photo-zoom-single img {
  display: block;
  width: 100%;
  height: auto;
  transition: opacity 0.3s ease, transform 0.4s ease;
}
.photo-zoom-single:hover img,
.photo-zoom-single:focus-visible img {
  opacity: 0.9;
  transform: scale(1.015);
}
.photo-zoom-single-caption {
  max-width: 760px;
  margin: 10px auto 0;
  text-align: center;
  font-family: var(--font-body);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

/* Lightbox overlay */
.photo-zoom-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
}
.photo-zoom-lightbox.is-open { display: flex; }

body.zoom-lightbox-open { overflow: hidden; }

.photo-zoom-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
}

.photo-zoom-lightbox-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  max-width: 92vw;
  max-height: 92vh;
}

.photo-zoom-figure {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.photo-zoom-image {
  display: block;
  max-width: 82vw;
  max-height: 80vh;
  width: auto;
  height: auto;
  border-radius: 4px;
  opacity: 0;
  transform: scale(0.98);
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.photo-zoom-image.is-loaded { opacity: 1; transform: scale(1); }

.photo-zoom-caption {
  margin-top: 12px;
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-align: center;
}
.photo-zoom-caption:empty { display: none; }

.photo-zoom-close {
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: rgba(0, 0, 0, 0.3);
  color: #fff;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.1rem;
  transition: background 0.2s ease;
  position: absolute;
  top: -56px;
  right: 0;
}
.photo-zoom-close:hover { background: rgba(255, 255, 255, 0.15); }

@media (max-width: 700px) {
  .photo-zoom-lightbox-inner { flex-direction: column; gap: 8px; }
  .photo-zoom-close { top: -46px; right: -6px; }
}
