/* The photo viewer -- see public/assets/js/lightbox.js, which builds the
   markup. Loaded by /photos and by the member pages; style.css comes first and
   supplies the tokens. */

.lightbox {
  position: fixed; inset: 0; z-index: 100;
  display: none;
  align-items: center; justify-content: center;
  background: rgba(10, 5, 15, 0.94);
  backdrop-filter: blur(6px);
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: min(92vw, 1600px);
  max-height: 88vh;
  width: auto; height: auto;
  border-radius: 6px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.8);
}
.lb-btn {
  position: fixed;
  background: none; border: 0; cursor: pointer;
  color: var(--cream-dim); font-family: var(--mono); font-size: 28px;
  padding: 18px; line-height: 1;
  transition: color 0.15s ease;
}
.lb-btn:hover { color: var(--magenta); }
.lb-close { top: 12px; right: 16px; }
.lb-prev { left: 8px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 8px; top: 50%; transform: translateY(-50%); }
.lb-cap {
  position: absolute; left: 0; right: 0; bottom: 46px;
  text-align: center; margin: 0; padding: 0 60px;
  display: flex; flex-direction: column; gap: 3px;
}
/* The caption sits over the bottom of the photograph, so it cannot rely on
   the backdrop being dark -- the promo shots are lit and pale down there.
   A shadow rather than a bar: a solid strip would cover the picture. */
.lb-who, .lb-cred { text-shadow: 0 1px 4px rgba(0, 0, 0, 0.95), 0 0 12px rgba(0, 0, 0, 0.8); }
.lb-who { font-size: 14px; color: var(--cream); }
.lb-cred {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em;
  color: var(--cream-dim);
}
.lb-count {
  position: fixed; bottom: 18px; left: 0; right: 0;
  text-align: center;
  font-family: var(--mono); font-size: 13px; letter-spacing: 0.14em;
  color: var(--cream-dim);
}
