/* ═══════════════════════════════════════════════
   lightbox.css  —  Click-to-enlarge overlay
   ═══════════════════════════════════════════════ */

/* ── SCROLL LOCK ─────────────────────────────── */
body.lb-open { overflow: hidden; }

/* ── OVERLAY ─────────────────────────────────── */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.32s ease, visibility 0.32s ease;
}

.lightbox.open {
  visibility: visible;
  opacity: 1;
}

/* ── BACKDROP ────────────────────────────────── */
.lb-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(18, 14, 10, 0.90);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  cursor: pointer;
}

/* ── PANEL ───────────────────────────────────── */
.lb-panel {
  position: relative;
  z-index: 1;
  display: flex;
  width: min(1060px, 94vw);
  max-height: 90vh;
  background: var(--paper);
  box-shadow: 0 32px 100px rgba(0, 0, 0, 0.55);
  overflow: hidden;

  /* entrance animation */
  transform: translateY(28px) scale(0.975);
  transition: transform 0.42s cubic-bezier(0.16, 1, 0.3, 1);
}

.lightbox.open .lb-panel {
  transform: translateY(0) scale(1);
}

/* ── IMAGE COLUMN ────────────────────────────── */
.lb-image-col {
  flex: 0 0 54%;
  background: var(--panel);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 420px;
  overflow: hidden;
}

.lb-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  max-height: 90vh;
  display: block;
}

/* placeholder (large) */
.lb-placeholder {
  width: 100%;
  height: 100%;
  min-height: 420px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.lb-placeholder .ph-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.lb-placeholder .ph-emoji {
  font-size: 88px;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 6px 20px rgba(0,0,0,0.30));
}

/* ── INFO COLUMN ─────────────────────────────── */
.lb-info-col {
  flex: 1;
  padding: 48px 44px 40px;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  min-width: 0;
}

.lb-series {
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--warm-dark);
  min-height: 16px;
  margin-bottom: 10px;
}

.lb-title {
  font-family: var(--font-serif);
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 300;
  line-height: 1.08;
  color: var(--ink);
  margin-bottom: 10px;
}

.lb-meta {
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--warm-dark);
  text-transform: uppercase;
  margin-bottom: 0;
}

.lb-divider {
  height: 1px;
  background: var(--warm-mid);
  margin: 24px 0;
}

.lb-section-label {
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--warm-dark);
  margin-bottom: 10px;
}

.lb-intro {
  font-family: var(--font-serif);
  font-size: 17px;
  font-weight: 300;
  font-style: italic;
  line-height: 1.78;
  color: var(--ink);
  flex: 1;
}

/* ── AWARD BLOCK ─────────────────────────────── */
.lb-award-block {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--warm-mid);
}

.lb-award-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, #f8e8c0, #f0d080);
  border-radius: var(--radius);
  padding: 9px 18px;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.05em;
  color: #4d3108;
  line-height: 1.4;
}

.lb-no-award {
  font-size: 13px;
  color: var(--warm-mid);
  font-style: italic;
}


/* ── CLOSE BUTTON ────────────────────────────── */
.lb-close {
  position: absolute;
  top: 16px;
  right: 18px;
  z-index: 10;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
  color: var(--warm-dark);
  padding: 6px;
  transition: color var(--trans);
}

.lb-close:hover { color: var(--accent); }

/* ── NAV ARROWS ──────────────────────────────── */
.lb-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: var(--paper);
  border: 1px solid var(--warm-mid);
  border-radius: var(--radius);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: var(--ink);
  cursor: pointer;
  transition: all var(--trans);
}

.lb-nav:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }

.lb-prev { left: -58px; }
.lb-next { right: -58px; }

/* ── RESPONSIVE ──────────────────────────────── */
@media (max-width: 700px) {
  .lb-panel { flex-direction: column; max-height: 96vh; width: 98vw; }
  .lb-image-col { flex: 0 0 42%; min-height: 200px; }
  .lb-info-col { padding: 28px 22px 24px; }
  .lb-nav { display: none; }

  /* tap-to-close bar + swipe hint */
  .lb-close {
    position: static;
    width: 100%;
    background: var(--panel);
    border-bottom: 1px solid var(--warm-mid);
    border-radius: 0;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 11px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--warm-dark);
    order: -1;                  /* moves bar to top of panel */
  }

  .lb-close::before {
    content: '← swipe to browse';
    font-size: 10px;
    letter-spacing: 0.15em;
    opacity: 0.6;
  }
}

