/* Generic lightbox — paired with /assets/js/lightbox.js.
   Uses design-system tokens (sand, wine, etc.) so it inherits brand colors
   anywhere it's loaded. */

[data-lightbox-group] { cursor: zoom-in; }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(20, 20, 19, 0.94);
  opacity: 0;
  pointer-events: none;
  transition: opacity 240ms ease;
}
.lightbox[aria-hidden="false"] {
  opacity: 1;
  pointer-events: auto;
}
.lightbox__stage {
  position: relative;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  max-width: 92vw;
}
.lightbox__img {
  max-width: 92vw;
  max-height: 84vh;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  animation: lb-pop 280ms cubic-bezier(0.22, 0.61, 0.36, 1);
}
@keyframes lb-pop {
  from { opacity: 0; transform: scale(0.96); }
  to   { opacity: 1; transform: scale(1); }
}
.lightbox__caption {
  font-family: var(--font-sans);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sand);
  text-align: center;
  max-width: 80vw;
  line-height: 1.5;
  opacity: 0.85;
}
.lightbox__close,
.lightbox__nav {
  position: absolute;
  background: transparent;
  border: 1px solid rgba(242, 214, 179, 0.4);
  color: var(--sand);
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  transition: background 200ms, border-color 200ms;
}
.lightbox__close:hover,
.lightbox__nav:hover {
  background: rgba(242, 214, 179, 0.12);
  border-color: var(--sand);
}
.lightbox__close { top: 24px; right: 24px; }
.lightbox__nav { top: 50%; transform: translateY(-50%); }
.lightbox__nav--prev { left: 24px; }
.lightbox__nav--next { right: 24px; }
.lightbox__close svg,
.lightbox__nav svg { width: 18px; height: 18px; }
.lightbox__counter {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-sans);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(242, 214, 179, 0.65);
}
body.lb-open { overflow: hidden; }

@media (max-width: 768px) {
  .lightbox__close { top: 12px; right: 12px; width: 40px; height: 40px; }
  .lightbox__nav { width: 40px; height: 40px; }
  .lightbox__nav--prev { left: 8px; }
  .lightbox__nav--next { right: 8px; }
  .lightbox__counter { bottom: 12px; font-size: 10px; }
  .lightbox__caption { font-size: 11px; }
}
