/* ── Event page layout ── */
.ep-hero {
  position: relative;
  height: 88vh;
  min-height: 520px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.ep-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 8s ease;
}
.ep-hero:hover .ep-hero-bg { transform: scale(1.03); }
.ep-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(13,27,42,0.95) 0%, rgba(13,27,42,0.4) 60%, transparent 100%);
}
.ep-hero-content {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 0 2rem 4rem;
}
.ep-back-link {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  color: rgba(200,230,247,0.7);
  text-decoration: none;
  letter-spacing: 0.04em;
  margin-bottom: 1.5rem;
}
.ep-back-link:hover { color: #fff; }
.ep-hero-eyebrow {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--sky);
  margin-bottom: 0.75rem;
}
.ep-hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  color: #fff;
  line-height: 1.05;
  margin-bottom: 1rem;
}
.ep-hero-date {
  font-size: 0.88rem;
  color: rgba(200,230,247,0.75);
}

/* ── Intro ── */
.ep-intro {
  background: var(--ivory);
  padding: 5rem 2rem;
}
.ep-intro-inner {
  max-width: 760px;
  margin: 0 auto;
}
.ep-intro-text {
  font-size: 1.1rem;
  color: var(--muted);
  line-height: 1.85;
}

/* ── Gallery ── */
.ep-gallery {
  background: var(--ink);
  padding: 4rem 2rem 5rem;
}
.ep-gallery-label {
  max-width: 1200px;
  margin: 0 auto 2rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.ep-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 260px;
  gap: 0.5rem;
}
.ep-img {
  overflow: hidden;
  background: var(--ink-2);
  cursor: pointer;
  position: relative;
}
.ep-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(13,27,42,0);
  transition: background 0.25s;
}
.ep-img:hover::after { background: rgba(13,27,42,0.18); }
.ep-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s cubic-bezier(0.25,0.46,0.45,0.94);
}
.ep-img:hover img { transform: scale(1.05); }
.ep-img--wide { grid-column: span 2; }

/* ── Back bar ── */
.ep-back-bar {
  background: var(--ink);
  border-top: 1px solid rgba(200,230,247,0.08);
  padding: 2.5rem 2rem;
  text-align: center;
}
.ep-back-bar a {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--sky);
  text-decoration: none;
  letter-spacing: 0.03em;
}
.ep-back-bar a:hover { color: #fff; }

/* ── Lightbox ── */
.lb-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(5,10,18,0.96);
  align-items: center;
  justify-content: center;
}
.lb-overlay.open { display: flex; }
.lb-img-wrap {
  max-width: 90vw;
  max-height: 88vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lb-img-wrap img {
  max-width: 90vw;
  max-height: 88vh;
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.6);
}
.lb-close {
  position: fixed;
  top: 1.25rem; right: 1.5rem;
  background: none; border: none;
  color: rgba(200,230,247,0.7);
  font-size: 1.5rem;
  cursor: pointer;
  z-index: 10000;
  line-height: 1;
  padding: 0.5rem;
}
.lb-close:hover { color: #fff; }
.lb-prev, .lb-next {
  position: fixed;
  top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,0.08);
  border: none;
  color: rgba(200,230,247,0.8);
  font-size: 2.5rem;
  cursor: pointer;
  padding: 0.5rem 1rem;
  z-index: 10000;
  border-radius: 6px;
  transition: background 0.2s, color 0.2s;
  line-height: 1;
}
.lb-prev { left: 1rem; }
.lb-next { right: 1rem; }
.lb-prev:hover, .lb-next:hover { background: rgba(255,255,255,0.18); color: #fff; }

@media (max-width: 760px) {
  .ep-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 200px; }
  .ep-img--wide { grid-column: span 2; }
}
@media (max-width: 480px) {
  .ep-grid { grid-template-columns: 1fr; }
  .ep-img--wide { grid-column: auto; }
  .lb-prev { left: 0.25rem; }
  .lb-next { right: 0.25rem; }
}
