/* Events page */

.conf { padding-bottom: var(--section); }
.conf-panel {
  position: relative; overflow: hidden; background: var(--ink); color: #fff; border-radius: var(--radius-lg);
  padding: clamp(28px, 5vw, 64px); display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(28px, 5vw, 72px); align-items: center;
}
.conf-panel::before {
  content: ''; position: absolute; width: 520px; height: 520px; left: -160px; bottom: -260px; border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--saffron-rgb), 0.26), transparent 68%); pointer-events: none;
}
.conf-panel > * { position: relative; }
.conf-date { display: flex; align-items: flex-end; gap: 18px; }
.conf-date strong { font-family: var(--font-display); font-weight: 400; font-size: clamp(5rem, 10vw, 8.5rem); line-height: 0.82; color: var(--saffron); letter-spacing: -0.04em; }
.conf-date span { font-weight: 500; line-height: 1.45; color: var(--on-ink-strong); padding-bottom: 4px; }
.conf-body h2 { color: #fff; font-size: clamp(1.8rem, 1.2rem + 2vw, 2.6rem); }
.conf-body p { color: var(--on-ink); max-width: 56ch; }
.conf-body p em, .conf-body p strong { color: #fff; }
.conf-body .btn { margin-top: 10px; }

.conf-gallery-title { margin: clamp(40px, 5vw, 64px) 0 20px; font-size: 1.5rem; }
.conf-video { max-width: 960px; margin: 0 auto; }
.conf-video + .conf-gallery-title { margin-top: clamp(40px, 5vw, 64px); }
.conf-gallery { display: grid; grid-auto-flow: dense; grid-template-columns: repeat(4, 1fr); grid-auto-rows: clamp(110px, 14vw, 200px); gap: 10px; }
.conf-photo { display: block; overflow: hidden; border-radius: 14px; background: var(--paper-2); }
.conf-photo:first-child { grid-column: span 2; grid-row: span 2; }
.conf-photo:nth-child(14) { grid-column: span 2; }
.conf-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 25%; transition: transform 0.6s var(--ease); }
@media (hover: hover) { .conf-photo:hover img { transform: scale(1.06); } }

/* Past events */
.past-list { border-top: 2px solid var(--ink); }
.past-card { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(28px, 5vw, 80px); align-items: center; padding-block: clamp(36px, 5vw, 64px); border-bottom: 1px solid var(--line); }
.past-card.is-flip .past-copy { order: 2; }
.past-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 16px; margin-bottom: 14px; }
.past-date { font-family: var(--font-display); font-size: 1.5rem; color: var(--ink); }
.past-status { padding: 4px 12px; border: 1px solid var(--line); border-radius: 999px; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.past-copy h3 { font-size: clamp(1.5rem, 1.1rem + 1.2vw, 2.1rem); }
.past-copy p { margin: 0; }
.past-photo { overflow: hidden; border-radius: var(--radius); box-shadow: var(--shadow-soft); background: var(--card); max-width: 520px; width: 100%; justify-self: center; }
.past-photo img { width: 100%; height: auto; }

/* Topics */
.topics { display: flex; flex-wrap: wrap; gap: 12px; list-style: none; margin: 0; padding: 0; }
.topics li { padding: 12px 22px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); color: var(--ink); font-weight: 500; font-size: 0.98rem; }

/* Videos */
.video-carousel-wrap { position: relative; max-width: 920px; margin: 0 auto; padding: 0 64px; }
.video-carousel { display: flex; gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.video-carousel::-webkit-scrollbar { display: none; }
.video-slide { flex: 0 0 100%; scroll-snap-align: center; }
.video-embed { position: relative; width: 100%; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: var(--ink); box-shadow: var(--shadow-soft); }
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-nav {
  position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--card); color: var(--ink); font-size: 1.6rem; line-height: 1; cursor: pointer;
  display: flex; align-items: center; justify-content: center; transition: background 0.25s, color 0.25s;
}
.video-nav:hover { background: var(--ink); color: #fff; }
.video-nav-prev { left: 0; }
.video-nav-next { right: 0; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: transparent; color: #fff; }
.lightbox[open] { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 24px; }
.lightbox::backdrop { background: rgba(var(--ink-rgb), 0.94); }
.lightbox figure { margin: 0; text-align: center; }
.lightbox img { max-width: 100%; max-height: 82vh; margin: 0 auto; border-radius: 10px; object-fit: contain; }
.lightbox figcaption { margin-top: 12px; font-size: 0.9rem; color: var(--on-ink-soft); }
.lb-btn {
  width: 52px; height: 52px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, 0.12); color: #fff;
  font-size: 2rem; line-height: 1; cursor: pointer; transition: background 0.25s;
}
.lb-btn:hover { background: rgba(255, 255, 255, 0.24); }
.lb-close { position: absolute; top: 18px; right: 18px; }

@media (max-width: 960px) {
  .conf-panel, .past-card { grid-template-columns: 1fr; }
  .past-card.is-flip .past-copy { order: 0; }
}
@media (max-width: 640px) {
  .conf-gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 120px; }
  .conf-photo:nth-child(14) { grid-column: auto; }
  .video-carousel-wrap { padding: 0 0 56px; }
  .video-nav { top: auto; bottom: 0; transform: none; }
  .video-nav-prev { left: calc(50% - 56px); }
  .video-nav-next { right: calc(50% - 56px); }
  .lightbox[open] { grid-template-columns: 1fr; padding: 16px 16px 84px; }
  .lb-prev, .lb-next { position: absolute; bottom: 20px; }
  .lb-prev { left: calc(50% - 64px); }
  .lb-next { right: calc(50% - 64px); }
}
