/* components/lightbox.css */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: var(--z-lightbox);
  display: none;
  align-items: center;
  justify-content: center;
  padding: clamp(16px, 4vw, 48px);
  background: rgba(15, 13, 10, 0.86);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.lightbox.is-open {
  display: flex;
  animation: lightbox-fade var(--t-med) var(--ease-out);
}
@keyframes lightbox-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

.lightbox__panel {
  width: 100%;
  max-width: 1100px;
  background: var(--paper);
  color: var(--ink);
  border-radius: var(--r-4);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--sh-deep);
  max-height: calc(100dvh - 32px);
  animation: lightbox-pop var(--t-slow) var(--ease-soft);
}
@keyframes lightbox-pop {
  from { transform: translateY(16px) scale(0.98); opacity: 0; }
  to   { transform: none; opacity: 1; }
}

.lightbox__player {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 52dvh;
  background: #0a0907;
  overflow: hidden;
  flex: 0 0 auto;
}
@media (max-height: 720px) { .lightbox__player { max-height: 46dvh; } }
@media (max-height: 560px) { .lightbox__player { max-height: 38dvh; } }
.lightbox__player iframe,
.lightbox__player .lightbox__poster {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  border: 0;
}
.lightbox__poster {
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
  cursor: pointer;
  transition: filter var(--t-fast) var(--ease-out);
}
.lightbox__poster:hover { filter: brightness(1.08); }
.lightbox__poster::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,0.4) 100%);
}
.lightbox__play {
  position: relative; z-index: 2;
  width: 76px; height: 76px;
  border-radius: 50%;
  background: rgba(184,139,58,0.95);
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 30px rgba(0,0,0,0.45);
  transition: transform var(--t-fast) var(--ease-out);
}
.lightbox__play:hover { transform: scale(1.06); }
.lightbox__play svg { width: 26px; height: 26px; margin-left: 4px; }

.lightbox__body {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 0;
  min-height: 0;
  overflow-y: auto;
  flex: 1 1 auto;
}
@media (max-width: 820px) {
  .lightbox__body { grid-template-columns: 1fr; }
  .lightbox__body > .lightbox__col + .lightbox__col { border-left: 0; border-top: 1px solid var(--line); }
}

.lightbox__col {
  padding: var(--s-5) var(--s-6);
  min-height: 0;
}
@media (max-width: 820px) { .lightbox__col { padding: var(--s-4) var(--s-5); } }
.lightbox__col + .lightbox__col { border-left: 1px solid var(--line); }

.lightbox__eyebrow { margin-bottom: 8px; }
.lightbox__title {
  font-family: var(--font-serif);
  font-size: clamp(1.4rem, 2vw, 1.9rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}
.lightbox__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-size: var(--f-small);
  color: var(--ink-mute);
  margin-bottom: var(--s-4);
}
.lightbox__meta a { color: var(--ink); }
.lightbox__meta a:hover { color: var(--gold); }
.lightbox__desc {
  font-size: var(--f-body);
  color: var(--ink-soft);
  line-height: var(--lh-loose);
  max-width: 60ch;
}

.lightbox__close {
  position: absolute;
  top: 14px; right: 14px;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(15,13,10,0.7);
  color: var(--paper);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
  transition: background var(--t-fast) var(--ease-out), transform var(--t-fast) var(--ease-out);
}
.lightbox__close:hover { background: var(--gold); color: var(--ink); transform: rotate(90deg); }
.lightbox__close svg { width: 16px; height: 16px; }

body.no-scroll { overflow: hidden; }
