/* ══════════════════════════════════════════════
   editions.css  —  Past Edition pages
                    2020 · 2022 · 2024
   ══════════════════════════════════════════════ */

/* ── Edition Hero ── */
.ed-hero {
  padding: calc(80px + 3.5rem) 0 3.5rem; /* clear fixed nav */
  color: var(--white);
  background: var(--navy);
  position: relative;
  overflow: hidden;
}
.ed-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: .04;
  background-image:
    radial-gradient(circle at 20% 30%, white 1px, transparent 1px),
    radial-gradient(circle at 80% 70%, white 1px, transparent 1px);
  background-size: 44px 44px;
}

/* Per-edition accent colors */
.ed-2024 { background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 60%, #0f172a 100%); }
.ed-2022 { background: linear-gradient(135deg, #0f172a 0%, #1a2e1a 60%, #0f172a 100%); }
.ed-2020 { background: linear-gradient(135deg, #0f172a 0%, #2d1f0e 60%, #0f172a 100%); }

.ed-hero .container { position: relative; z-index: 1; }

.ed-eyebrow {
  display: inline-block;
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: rgba(255,255,255,.45);
  margin-bottom: 1rem;
  border: 1px solid rgba(255,255,255,.15);
  padding: .3rem .9rem;
  border-radius: var(--r-full);
}

.ed-title {
  font-size: clamp(2.5rem, 7vw, 4.5rem);
  font-weight: 900;
  letter-spacing: -.03em;
  line-height: 1.05;
  color: var(--white);
  margin-bottom: .75rem;
}
.ed-title strong { color: var(--blue-light); }

/* Accent color per edition */
.ed-2022 .ed-title strong { color: #4ade80; }
.ed-2020 .ed-title strong { color: var(--gold); }

.ed-place {
  font-size: 1rem;
  color: rgba(255,255,255,.55);
  margin-bottom: .5rem;
}
.ed-tagline {
  font-size: clamp(1rem, 2.5vw, 1.3rem);
  color: rgba(255,255,255,.75);
  font-weight: 300;
  max-width: 560px;
  line-height: 1.5;
}

/* ── Edition Stats grid ── */
.ed-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.ed-stat {
  background: var(--gray-50);
  border: 1px solid var(--gray-100);
  border-radius: var(--r-lg);
  padding: 1.5rem 1.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.ed-n {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--blue);
  line-height: 1;
}
.ed-l {
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--gray-400);
  margin-top: .35rem;
}

/* ── Edition Video ── */
.ed-video-row {
  margin-top: 3rem;
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}
.ed-video {
  width: 100%;
  max-height: 520px;
  object-fit: cover;
  display: block;
  background: #000;
}
.ed-video-portrait {
  max-height: 640px;
  max-width: 400px;
  margin-inline: auto;
}

/* ── Two-video layout ── */
.ed-video-duo {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  margin-top: 3rem;
}
.ed-video-wide {
  flex: 1 1 0;
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  max-height: 460px;
  object-fit: cover;
  display: block;
  background: #000;
}
.ed-video-duo .ed-video-portrait {
  flex: 0 0 auto;
  width: 220px;
  max-height: 460px;
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  margin: 0;
  object-fit: cover;
  display: block;
  background: #000;
}
@media (max-width: 700px) {
  .ed-video-duo { flex-direction: column; }
  .ed-video-duo .ed-video-portrait { width: 100%; max-height: 400px; }
}

/* ── 2024 Speakers grid ── */
.ed-speakers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: .85rem;
  margin-top: 2rem;
}
.ed-sp {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--r-md);
  padding: .85rem 1rem;
  display: flex;
  flex-direction: column;
  gap: .2rem;
}
.ed-sp strong {
  font-size: .85rem;
  color: var(--navy);
  font-weight: 600;
}
.ed-sp span {
  font-size: .75rem;
  color: var(--gray-500);
  line-height: 1.4;
}

/* ── Photo Gallery ── */
.ed-gallery {
  columns: 4;
  column-gap: .6rem;
  margin-top: 1.5rem;
}
.ed-gallery-item {
  break-inside: avoid;
  margin-bottom: .6rem;
  border-radius: var(--r-md);
  overflow: hidden;
  cursor: pointer;
  position: relative;
}
.ed-gallery-item img {
  width: 100%;
  display: block;
  transition: transform .3s ease, filter .3s ease;
  filter: brightness(.95);
}
.ed-gallery-item:hover img {
  transform: scale(1.03);
  filter: brightness(1.05);
}
@media (max-width: 900px) { .ed-gallery { columns: 2; } }
@media (max-width: 500px) { .ed-gallery { columns: 1; } }

/* ── Lightbox ── */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.92);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  cursor: zoom-out;
}
.lightbox[hidden] { display: none; }
.lightbox img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: var(--r-md);
  box-shadow: 0 30px 80px rgba(0,0,0,.8);
}
.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  color: rgba(255,255,255,.7);
  font-size: 2rem;
  background: none;
  border: none;
  cursor: pointer;
  line-height: 1;
}
.lightbox-close:hover { color: #fff; }
