/* ==========================================================================
   Lightbox
   ========================================================================== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 500;
  background: rgba(5, 5, 5, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: grid;
  place-items: center;
  visibility: hidden;
  opacity: 0;
  transition: opacity .5s var(--ease), visibility .5s;
}
.lightbox.open { visibility: visible; opacity: 1; }

.lb-stage {
  position: relative;
  max-width: min(90vw, 1200px);
  max-height: 86vh;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.lb-img {
  width: 100%;
  max-height: 78vh;
  aspect-ratio: 4/3;
  background-size: cover;
  background-position: center;
  border: 1px solid var(--line);
  transform: scale(0.96);
  opacity: 0;
  transition: transform .6s var(--ease-out), opacity .6s var(--ease-out);
}
.lightbox.open .lb-img { transform: scale(1); opacity: 1; }

.lb-cap {
  font-family: var(--display);
  font-style: italic;
  font-size: 18px;
  color: var(--gold);
  letter-spacing: 0.02em;
}

.lb-close,
.lb-prev,
.lb-next {
  position: absolute;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--paper);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 22px;
  font-weight: 300;
  transition: border-color .3s var(--ease), color .3s var(--ease), background .3s var(--ease);
}
.lb-close { top: 28px; right: 28px; }
.lb-prev  { left: 28px; top: 50%; transform: translateY(-50%); }
.lb-next  { right: 28px; top: 50%; transform: translateY(-50%); }
.lb-close:hover,
.lb-prev:hover,
.lb-next:hover {
  border-color: var(--gold);
  color: var(--gold);
}

@media (max-width: 640px) {
  .lb-close, .lb-prev, .lb-next { width: 40px; height: 40px; font-size: 18px; }
  .lb-close { top: 16px; right: 16px; }
  .lb-prev, .lb-next { top: auto; bottom: 24px; transform: none; }
  .lb-prev { left: 24px; }
  .lb-next { right: 24px; }
}