/* Photo Illusions — Lightbox */
/* ==========================================================================
   LIGHTBOX
   ========================================================================== */
/* page behind the viewer stays put: no background scroll while open (gutter kept so nothing shifts) */
html.lb-open, html.lb-open body { overflow: hidden; }
html.lb-open { scrollbar-gutter: stable; }
.lb { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: clamp(12px, 3vw, 40px); opacity: 0; transition: opacity .3s var(--ease); overscroll-behavior: contain; }
.lb-backdrop { touch-action: none; }
.lb-sentinel { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.lb[hidden] { display: none; } /* .lb's display:grid beats the UA [hidden] rule; without this a closed viewer blocks every click */
.lb.is-in { opacity: 1; }
.lb-backdrop { position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 40%, rgba(16, 24, 64, .85), rgba(2, 3, 10, .96)); backdrop-filter: blur(8px); }
.lb-frame { position: relative; width: min(1180px, 100%); max-height: 100%; display: flex; flex-direction: column; gap: 14px; transform: scale(.96); transition: transform .35s var(--ease); }
.lb.is-in .lb-frame { transform: none; }
.lb-stage { position: relative; display: grid; place-items: center; min-height: 200px; border-radius: 16px; overflow: hidden; background: #02040c; border: 1px solid var(--line); box-shadow: 0 0 40px rgba(41,231,255,.2), 0 0 120px rgba(138,92,255,.15); }
.lb-stage img, .lb-stage video { max-height: min(74vh, 900px); width: auto; max-width: 100%; object-fit: contain; }
.lb-stage video { width: 100%; }
.lb-embed { position: relative; width: 100%; aspect-ratio: 16 / 9; max-height: 74vh; }
.lb-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.lb-hud i { position: absolute; width: 22px; height: 22px; border: 2px solid var(--cyan); z-index: 3; pointer-events: none; filter: drop-shadow(0 0 6px var(--cyan)); }
.lb-hud i:nth-child(1) { left: -6px; top: -6px; border-right: 0; border-bottom: 0; }
.lb-hud i:nth-child(2) { right: -6px; top: -6px; border-left: 0; border-bottom: 0; }
.lb-hud i:nth-child(3) { left: -6px; bottom: -6px; border-right: 0; border-top: 0; border-color: var(--violet); filter: drop-shadow(0 0 6px var(--violet)); }
.lb-hud i:nth-child(4) { right: -6px; bottom: -6px; border-left: 0; border-top: 0; border-color: var(--violet); filter: drop-shadow(0 0 6px var(--violet)); }
.lb-mediawrap { position: relative; }
.lb-hud { position: absolute; inset: 0; pointer-events: none; z-index: 3; }
.lb-cap { display: flex; flex-wrap: wrap; gap: 14px 24px; align-items: center; justify-content: space-between; }
.lb-meta h3 { font-size: clamp(18px, 2.2vw, 24px); margin: 4px 0 2px; }
.lb-meta p { margin: 0; color: var(--ink-2); font-size: 14px; }
.lb-kicker { font: 500 11px/1 var(--mono); letter-spacing: .2em; text-transform: uppercase; color: var(--cyan); }
.lb-actions { display: flex; align-items: center; gap: 16px; }
.lb-count { font: 500 12px/1 var(--mono); color: var(--muted); }
.lb-btn { position: absolute; z-index: 4; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; border: 1px solid var(--line); background: rgba(8, 12, 32, .8); color: var(--ink); transition: all .2s; }
.lb-btn:hover { border-color: var(--cyan); box-shadow: 0 0 18px rgba(41,231,255,.5), 0 0 44px rgba(41,231,255,.22); }
.lb-btn svg { width: 22px; height: 22px; }
.lb-close { top: 14px; right: 14px; }
.lb-prev { left: 14px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 14px; top: 50%; transform: translateY(-50%); }
@media (max-width: 640px) {
  .lb-prev, .lb-next { top: auto; bottom: 14px; transform: none; }
  .lb-frame { padding-bottom: 60px; }
}

/* ---- explanation card (items with info: the hero vortex) — media left, card right; stacked on smaller screens ---- */
.lb-info { display: flex; flex-direction: column; gap: 10px; padding: 22px 22px 18px; border-radius: 18px;
  background: linear-gradient(160deg, rgba(16, 24, 58, .9), rgba(8, 12, 30, .88)); border: 1px solid var(--line-2); }
.lb-info-name { font-size: clamp(20px, 2vw, 25px); line-height: 1.15; letter-spacing: -.02em; margin: 2px 0 0; }
.lb-info-now { margin: 0; font: 500 12px/1.4 var(--mono); letter-spacing: .06em; color: var(--ink-2); }
.lb-info-now span { color: var(--cyan); font-size: 10px; }
.lb-info-tag { margin: 0; font-size: 15.5px; line-height: 1.45; font-weight: 600; color: var(--ink); }
.lb-info-desc { margin: 0; font-size: 14.5px; line-height: 1.55; color: var(--ink-2); }
.lb-info-bullets { list-style: none; margin: 2px 0 0; padding: 0; display: grid; gap: 6px; }
.lb-info-bullets li { position: relative; padding-left: 20px; font-size: 14px; line-height: 1.45; color: var(--ink-2); }
.lb-info-bullets li::before { content: ""; position: absolute; left: 0; top: .62em; width: 10px; height: 2px; border-radius: 2px; background: var(--grad); }
.lb-info-price { margin: 4px 0 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; font-size: 13px; color: var(--muted); }
.lb-info-price b { font-size: 22px; letter-spacing: -.02em; color: var(--ink); }
.lb-info-price span { flex-basis: 100%; font-size: 12.5px; }
.lb-info-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 4px; }
.lb-info-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 2px; }
.lb-info-foot .lb-count { margin-left: auto; }
@media (min-width: 1000px) and (min-height: 521px) {
  .lb-frame.has-info { width: min(1340px, calc(100% - 120px)); flex-direction: row; align-items: center; gap: 26px; }
  .lb-frame.has-info .lb-mediawrap { flex: 1 1 auto; min-width: 0; }
  .lb-frame.has-info .lb-cap { flex: 0 0 clamp(320px, 28vw, 380px); display: block; max-height: min(86vh, 900px); overflow-y: auto; overscroll-behavior: contain; }
  .lb-frame.has-info .lb-stage img, .lb-frame.has-info .lb-stage video { max-height: min(78vh, 900px); }
}
@media (max-width: 999px), (max-height: 520px) {
  .lb-frame.has-info { overflow-y: auto; overscroll-behavior: contain; }
  .lb-frame.has-info .lb-stage img, .lb-frame.has-info .lb-stage video { max-height: 48vh; }
  .lb-frame.has-info .lb-cap { display: block; }
}
@media (max-height: 520px) and (orientation: landscape) {
  .lb-frame.has-info .lb-stage img, .lb-frame.has-info .lb-stage video { max-height: calc(100dvh - 20px); }
  .lb-frame.has-info { overflow: visible; }
  .lb-info { padding: 14px; }
}
/* phone landscape: media fills the height, caption + controls move into a column on the right */
@media (max-height: 520px) and (orientation: landscape) {
  .lb { padding: 10px; }
  .lb-frame { width: 100%; height: 100%; flex-direction: row; align-items: center; gap: 16px; padding: 0; }
  .lb-mediawrap { flex: 1 1 auto; min-width: 0; }
  .lb-stage { min-height: 0; }
  .lb-stage img, .lb-stage video { max-height: calc(100vh - 20px); max-height: calc(100dvh - 20px); }
  .lb-embed { max-height: calc(100vh - 20px); max-height: calc(100dvh - 20px); }
  .lb-cap { flex: 0 0 clamp(170px, 27vw, 240px); align-self: stretch; flex-direction: column; flex-wrap: nowrap; align-items: flex-start; justify-content: center; gap: 12px;
    padding: 58px 0 62px; overflow-y: auto; overscroll-behavior: contain; }
  .lb-meta h3 { font-size: 17px; }
  .lb-meta p { font-size: 13px; }
  .lb-actions { flex-direction: column; align-items: flex-start; gap: 10px; }
  .lb-close { top: 10px; right: 10px; }
  .lb-prev, .lb-next { top: auto; bottom: 10px; transform: none; }
  .lb-prev { left: auto; right: 66px; }
  .lb-next { right: 10px; }
}
