/* Shared gallery lightbox — unified with index usecase-lightbox style */
.gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 400;
  background: rgba(18, 20, 24, 0.88);
  display: flex;
  align-items: center;
  justify-content: center;
  /* lb1109: less chrome padding so the photo can fill ~95vw / 90vh */
  padding: 3.25rem 3rem 3.75rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
  font-family: "Outfit", system-ui, sans-serif;
}
.gallery-lightbox.is-open {
  opacity: 1;
  pointer-events: auto;
}
.gallery-lightbox-stage {
  position: relative;
  max-width: min(95vw, 100%);
  max-height: 100%;
  width: min(95vw, 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.7rem;
}
.gallery-lightbox-stage img {
  display: block;
  width: auto;
  max-width: 95vw;
  max-height: min(90vh, calc(100vh - 7.5rem));
  max-height: min(90dvh, calc(100dvh - 7.5rem));
  height: auto;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5);
  background: #0d0f12;
  cursor: default;
}
.gallery-lightbox-cap {
  color: #c5cad3;
  font-family: "Outfit", system-ui, sans-serif;
  font-weight: 600;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
  text-align: center;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.45);
}
.gallery-lightbox-title {
  color: #e8eaed;
}
.gallery-lightbox-count {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.8rem;
  font-weight: 500;
  font-family: "Outfit", system-ui, sans-serif;
}
.gallery-lb-btn {
  position: absolute;
  z-index: 2;
  width: 2.75rem;
  height: 2.75rem;
  border: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition: background 0.15s ease, transform 0.15s ease;
  font-size: 1.35rem;
  line-height: 1;
  font-family: "Outfit", system-ui, sans-serif;
}
.gallery-lb-btn:hover {
  background: rgba(255, 255, 255, 0.22);
}
.gallery-lb-btn:focus-visible {
  outline: 2px solid #00ACED;
  outline-offset: 2px;
}
.gallery-lb-close {
  top: 1.1rem;
  right: 1.1rem;
}
.gallery-lb-prev {
  left: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
}
.gallery-lb-next {
  right: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
}
.gallery-lb-prev:hover,
.gallery-lb-next:hover {
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.22);
}
.gallery-lb-prev[hidden],
.gallery-lb-next[hidden] {
  display: none;
}
@media (max-width: 700px) {
  .gallery-lightbox { padding: 3.25rem 0.5rem 3.5rem; }
  .gallery-lightbox-stage { max-width: 96vw; width: 96vw; gap: 0.55rem; }
  .gallery-lightbox-stage img {
    max-width: 96vw;
    max-height: min(88vh, calc(100vh - 6.5rem));
    max-height: min(88dvh, calc(100dvh - 6.5rem));
  }
  .gallery-lb-prev { left: 0.35rem; }
  .gallery-lb-next { right: 0.35rem; }
  .gallery-lb-btn { width: 2.75rem; height: 2.75rem; min-width: 44px; min-height: 44px; }
  .gallery-lightbox-cap { font-size: 1rem; }
}

/* Clickable thumbs */
.gallery-lb-trigger,
.catalog-media[data-lightbox],
.foto-card[data-lightbox] {
  cursor: zoom-in;
}
.catalog-media[data-lightbox] img,
.foto-card[data-lightbox] img {
  cursor: zoom-in;
}
