/* An event's page, /featured-events/<slug> (src/lib/cms/event-page.ts). */
.ep {
  --ep-gold: #c9a447;
  --ep-gold-hi: #ead08a;
  --ep-frame: #8a6d1c;
  --ep-ink: #f2ede4;
  --ep-soft: #d9d1c4;
  --ep-muted: #a89e90;
  --ep-card: #15120f;
  --ep-line: #3a3226;
  display: block;
  background: #0c0c0c;
  color: var(--ep-ink);
  font-family: Josefin Sans, sans-serif;
  /* Clears the fixed menu bar (80px) and side panels (70–90px each). */
  padding: 80px calc(90px + 3vw) 0;
}
.ep a { color: var(--ep-gold); }
.ep a:hover { color: var(--ep-gold-hi); }
.ep > section, .ep-crumbs { max-width: 1180px; margin-left: auto; margin-right: auto; }

.ep-kicker {
  display: block; margin: 0; font-size: 13px; line-height: 1.4; letter-spacing: 4px;
  text-transform: uppercase; color: var(--ep-gold);
}
.ep-h2 { margin: 0; font-family: Playfair Display, serif; font-weight: 400; font-size: 36px; line-height: 1.15; color: var(--ep-ink); text-transform: none; letter-spacing: 0; }

.ep-crumbs {
  display: flex; flex-wrap: wrap; gap: 12px; padding-top: 32px;
  font-size: 12px; letter-spacing: 3px; text-transform: uppercase; color: var(--ep-muted);
}
.ep-crumbs a { text-decoration: none; }
.ep-crumbs span:last-child { color: var(--ep-soft); }

.ep-hero { display: flex; flex-wrap: wrap; align-items: center; gap: 56px; padding: 40px 0 72px; }
.ep-hero__text { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.ep-hero--plain .ep-hero__text { max-width: 760px; }
.ep-hero__title { margin: 0; font-family: Playfair Display, serif; font-weight: 400; font-size: 64px; line-height: 1.05; color: var(--ep-ink); text-transform: none; letter-spacing: 0; }
.ep-hero__lede { margin: 0; font-family: Playfair Display, serif; font-style: italic; font-size: 22px; line-height: 1.5; color: var(--ep-soft); max-width: 480px; }
.ep-ornament { display: flex; align-items: center; gap: 14px; }
.ep-ornament span { width: 64px; height: 1px; background: var(--ep-gold); }
.ep-ornament i { width: 7px; height: 7px; border: 1px solid var(--ep-gold); transform: rotate(45deg); }

.ep-buttons { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 10px; }
.ep .ep-button {
  display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 32px;
  background: var(--ep-gold); color: #0c0c0c; border: 1px solid var(--ep-gold); border-radius: 25px;
  font-size: 14px; font-weight: 600; letter-spacing: 3px; text-transform: uppercase; text-decoration: none;
  text-align: center; transition: background .2s, color .2s;
}
.ep .ep-button:hover { background: var(--ep-gold-hi); border-color: var(--ep-gold-hi); color: #0c0c0c; }
.ep .ep-button--outline { background: transparent; color: var(--ep-gold); font-weight: 400; }
.ep .ep-button--outline:hover { background: transparent; color: var(--ep-gold-hi); }

.ep-frame { flex: 1 1 460px; min-width: 0; position: relative; padding: 14px; border: 1px solid var(--ep-frame); }
.ep-frame img { display: block; width: 100%; height: 520px; object-fit: cover; }
.ep-frame::before, .ep-frame::after { content: ''; position: absolute; width: 28px; height: 28px; }
.ep-frame::before { top: -1px; left: -1px; border-top: 3px solid var(--ep-gold); border-left: 3px solid var(--ep-gold); }
.ep-frame::after { bottom: -1px; right: -1px; border-bottom: 3px solid var(--ep-gold); border-right: 3px solid var(--ep-gold); }

.ep-details {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  border-top: 1px solid var(--ep-line); border-bottom: 1px solid var(--ep-line);
}
.ep-details__item { padding: 30px 28px; display: flex; flex-direction: column; gap: 10px; border-right: 1px solid var(--ep-line); }
.ep-details__item:last-child { border-right: 0; }
.ep-details .ep-kicker { font-size: 12px; }
.ep-details__value { font-family: Playfair Display, serif; font-size: 24px; line-height: 1.25; }

.ep-main { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 64px; padding: 80px 0; }
.ep-about { flex: 999 1 520px; min-width: 0; font-size: 18px; line-height: 1.75; color: var(--ep-soft); }
.ep-about .ep-h2 { margin-bottom: 24px; }
.ep-about p { margin: 0 0 20px; font-family: Josefin Sans, sans-serif; font-size: inherit; line-height: inherit; color: inherit; }
.ep-about h2:not(.ep-h2), .ep-about h3, .ep-about__sub {
  margin: 36px 0 14px; font-family: Josefin Sans, sans-serif; font-weight: 400; font-size: 14px; line-height: 1.4;
  letter-spacing: 4px; text-transform: uppercase; color: var(--ep-gold);
}
.ep-visit {
  flex: 1 1 340px; min-width: 0; position: sticky; top: 112px; background: var(--ep-card);
  border: 1px solid var(--ep-line); padding: 36px; display: flex; flex-direction: column; gap: 20px;
}
.ep-main--short .ep-visit { position: static; max-width: 520px; }
.ep-visit__when { margin: 0; font-family: Playfair Display, serif; font-size: 28px; line-height: 1.2; }
.ep-visit__time { margin: -12px 0 0; font-size: 16px; letter-spacing: 1px; color: var(--ep-soft); }
.ep-visit .ep-buttons { margin: 0; }
.ep-visit .ep-button { flex: 1 1 100%; }
.ep-visit__rule { height: 1px; background: var(--ep-line); }
.ep-visit__address { margin: 0; font-size: 15px; line-height: 1.7; color: var(--ep-soft); }
.ep-visit__address a { text-decoration: none; display: inline-block; padding: 6px 0; }

.ep-video { padding: 0 0 80px; }
.ep-video__frame { position: relative; aspect-ratio: 16 / 9; border: 1px solid var(--ep-frame); padding: 14px; }
.ep-video__frame iframe { width: 100%; height: 100%; border: 0; display: block; }

.ep > .ep-more {
  max-width: none; margin: 0 calc(-90px - 3vw); padding: 72px calc(90px + 3vw) 96px;
  background: #000; border-top: 1px solid #2c261e;
}
.ep-more > * { max-width: 1180px; margin-left: auto; margin-right: auto; }
.ep-more__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 36px; }
.ep-more__all { font-size: 13px; letter-spacing: 3px; text-transform: uppercase; text-decoration: none; padding: 12px 0; }
.ep-more__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 24px; }
.ep .ep-card { display: flex; flex-direction: column; text-decoration: none; color: var(--ep-ink); background: var(--ep-card); border: 1px solid #2c261e; transition: border-color .2s; }
.ep .ep-card:hover { border-color: var(--ep-gold); color: var(--ep-ink); }
.ep-card__img { display: block; width: 100%; height: 220px; object-fit: cover; background: #2c261e; }
.ep-card__body { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 8px; }
.ep-card .ep-kicker { font-size: 12px; letter-spacing: 3px; }
.ep-card__title { font-family: Playfair Display, serif; font-size: 24px; line-height: 1.2; }

@media (max-width: 991px) {
  .ep { padding: 80px calc(70px + 24px) 0; }
  .ep > .ep-more { margin: 0 calc(-70px - 24px); padding: 56px calc(70px + 24px) 72px; }
  .ep-hero__title { font-size: 52px; }
  .ep-visit { position: static; }
}

@media (max-width: 767px) {
  /* The phone menu bar is fixed too (70px); the side panels are hidden. */
  .ep { padding: 70px 16px 0; }
  .ep > .ep-more { margin: 0 -16px; padding: 48px 16px 64px; }
  .ep-crumbs { display: none; }
  .ep-hero { flex-direction: column-reverse; align-items: stretch; gap: 0; padding: 0 0 32px; }
  .ep-frame { margin: 0 -16px; padding: 0; border: 0; }
  .ep-frame::before, .ep-frame::after { display: none; }
  .ep-frame img { height: 300px; }
  .ep-hero__text { position: relative; margin-top: -24px; gap: 16px; }
  .ep-hero--plain .ep-hero__text { margin-top: 32px; }
  .ep-hero__title { font-size: 40px; line-height: 1.08; }
  .ep-hero__lede { font-size: 19px; }
  .ep-ornament span { width: 48px; }
  .ep-buttons { flex-direction: column; gap: 12px; }
  .ep .ep-button { width: 100%; box-sizing: border-box; }
  .ep-kicker { font-size: 12px; letter-spacing: 3px; }
  .ep-details { grid-template-columns: repeat(2, minmax(0, 1fr)); border-bottom: 0; }
  .ep-details__item { padding: 20px 12px 20px 0; border-bottom: 1px solid var(--ep-line); }
  .ep-details__item:nth-child(2n) { padding-left: 16px; border-right: 0; }
  .ep-details__item:nth-child(2n+1):last-child { grid-column: 1 / -1; border-right: 0; }
  .ep-details .ep-kicker { font-size: 11px; }
  .ep-details__value { font-size: 19px; }
  .ep-main { gap: 32px; padding: 48px 0; }
  .ep-about { font-size: 16px; line-height: 1.7; }
  .ep-about .ep-h2, .ep-h2 { font-size: 28px; }
  .ep-visit { padding: 24px; }
  .ep-visit__when { font-size: 22px; }
  .ep-video { padding-bottom: 48px; }
  .ep-video__frame { padding: 0; border: 0; }
  .ep-more__head { margin-bottom: 20px; }
  .ep-more__grid { grid-template-columns: 1fr; gap: 14px; }
  .ep .ep-card { flex-direction: row; min-height: 112px; }
  .ep-card__img { width: 112px; flex: 0 0 112px; height: auto; }
  .ep-card__body { padding: 16px 16px 16px 0; margin-left: 16px; justify-content: center; }
  .ep-card .ep-kicker { font-size: 11px; }
  .ep-card__title { font-size: 19px; }
}
