/* Swiss editorial treatment for the Event page. */
.vocast-event-page {
  --event-accent: var(--vocast-yellow);
  --event-muted: color-mix(in srgb, var(--vocast-white) 66%, var(--vocast-ink));
  --event-soft-line: color-mix(in srgb, var(--vocast-white) 22%, transparent);
  position: relative;
  isolation: isolate;
  margin-block-start: 0 !important;
  background: var(--vocast-ink);
  color: var(--vocast-white);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  padding: clamp(52px, 8vw, 112px) 24px clamp(80px, 10vw, 144px);
}

.vocast-event-page::before {
  position: absolute;
  z-index: 0;
  inset: 0 0 auto;
  height: clamp(520px, 58vw, 760px);
  background-image:
    linear-gradient(180deg, rgb(11 12 10 / 48%) 0%, rgb(11 12 10 / 48%) 35%, rgb(11 12 10 / 78%) 70%, var(--vocast-ink) 100%),
    url("../images/events/cinema-08.jpg");
  background-position: center, center 42%;
  background-size: cover;
  content: "";
  pointer-events: none;
}

html[data-vocast-theme="light"] .vocast-event-page {
  --event-accent: #725000;
}

html[data-vocast-theme="light"] .vocast-event-page::before {
  background-image:
    linear-gradient(180deg, rgb(11 12 10 / 62%) 0%, rgb(11 12 10 / 58%) 42%, rgb(11 12 10 / 78%) 70%, rgb(11 12 10 / 92%) 90%, var(--vocast-ink) 100%),
    url("../images/events/cinema-08.jpg");
}

.vocast-event-page__inner {
  position: relative;
  z-index: 1;
  width: 100% !important;
  max-width: 1240px !important;
}

.vocast-event-page .wp-block-post-content,
.vocast-event-content {
  width: 100%;
  max-width: 100% !important;
  min-width: 0;
}

.vocast-event-page .vocast-eyebrow {
  margin: 0 0 22px;
  color: var(--event-accent);
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.vocast-event-page .vocast-eyebrow span { padding: 0 8px; color: var(--event-muted); }

/* The global light palette turns eyebrow text dark; this label sits over the hero photo. */
html[data-vocast-theme="light"] .vocast-event-page p.vocast-eyebrow,
html[data-vocast-theme="light"] .vocast-event-page p.vocast-eyebrow span {
  color: #fff !important;
  -webkit-text-fill-color: #fff;
  text-shadow: 0 1px 10px rgb(0 0 0 / 70%);
}

.vocast-event-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(220px, .6fr);
  align-items: end;
  gap: 24px;
  padding-bottom: clamp(40px, 7vw, 88px);
  border-bottom: 1px solid var(--event-soft-line);
}

.vocast-event-page__inner > .vocast-event-heading > .wp-block-post-title {
  margin: 0;
  font-family: inherit;
  font-size: var(--vocast-type-hero);
  font-weight: 600;
  letter-spacing: -.095em;
  line-height: .76;
}

.vocast-event-heading__note {
  justify-self: end;
  max-width: 300px;
  margin: 0 0 4px;
  color: #fff;
  font-size: clamp(1.05rem, 1.65vw, 1.3rem);
  line-height: 1.4;
}

html[data-vocast-theme="light"] .vocast-event-page__inner > .vocast-event-heading > .wp-block-post-title,
html[data-vocast-theme="light"] .vocast-event-heading__note {
  color: #fff !important;
  text-shadow: 0 1px 14px rgb(0 0 0 / 58%);
}

.vocast-event-content { padding-top: clamp(36px, 5vw, 64px); }

.vocast-event-intro {
  max-width: 900px;
  margin: 0 0 32px;
  font-family: inherit;
  font-size: clamp(1.18rem, 2.1vw, 1.65rem) !important;
  font-weight: 400;
  line-height: 1.55;
  letter-spacing: -.025em;
}

html[data-vocast-theme="light"] .vocast-event-intro {
  color: #fff !important;
  text-shadow: 0 1px 10px rgb(0 0 0 / 52%);
}

.vocast-event-index {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px 22px;
  margin: 0 0 clamp(44px, 7vw, 88px);
  padding: 16px 0;
  border-top: 1px solid var(--event-soft-line);
  border-bottom: 1px solid var(--event-soft-line);
}

.vocast-event-index__label {
  margin: 0 auto 0 0;
  color: var(--event-muted);
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.vocast-event-index a {
  color: var(--vocast-white);
  font-size: .9rem;
  font-weight: 600;
  text-decoration: none;
}

.vocast-event-index a:hover,
.vocast-event-index a:focus-visible { color: var(--event-accent); text-decoration: underline; text-underline-offset: 4px; }

.vocast-event-programs { display: block; }

.vocast-event-card {
  position: relative;
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) minmax(0, 1.05fr);
  align-items: start;
  gap: clamp(16px, 2vw, 28px);
  padding: clamp(34px, 5.5vw, 72px) 0;
  border: 0;
  border-top: 1px solid var(--event-soft-line);
  border-radius: 0;
  background: transparent;
}

.vocast-event-card:last-child { border-bottom: 1px solid var(--event-soft-line); }

.vocast-event-card__number {
  position: static;
  align-self: start;
  justify-self: end;
  padding-top: 7px;
  color: var(--event-accent);
  font-size: clamp(1.35rem, 2.4vw, 2rem);
  font-weight: 600;
  line-height: .9;
  letter-spacing: -.04em;
  text-shadow: none;
}

.vocast-event-gallery {
  display: grid;
  gap: 0;
  grid-column: 2;
  grid-row: 1;
  margin: 0;
}

.vocast-event-gallery__slides { min-width: 0; }

.vocast-event-gallery__slide {
  position: relative;
  display: block;
  width: 100%;
  min-width: 0;
  padding: 0;
  border: 0;
  overflow: hidden;
  color: var(--vocast-white);
  cursor: zoom-in;
  background: color-mix(in srgb, var(--vocast-white) 10%, var(--vocast-ink));
  aspect-ratio: 16 / 10;
}

.vocast-event-gallery__slide[hidden] { display: none; }

.vocast-event-gallery__slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms cubic-bezier(.2,.7,.2,1);
}

.vocast-event-gallery__slide:hover img,
.vocast-event-gallery__slide:focus-visible img { transform: scale(1.035); }
.vocast-event-gallery__slide:focus-visible,
.vocast-event-gallery__arrow:focus-visible { outline: 2px solid var(--event-accent); outline-offset: 3px; }

.vocast-event-gallery__zoom {
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 7px 10px;
  background: color-mix(in srgb, var(--vocast-ink) 84%, transparent);
  color: var(--vocast-white);
  font-size: .72rem;
  font-weight: 600;
}

.vocast-event-gallery__controls {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  width: 100%;
  padding-top: 10px;
}

.vocast-event-gallery__counter {
  min-width: 54px;
  color: var(--event-muted);
  font-size: .72rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: .08em;
  text-align: center;
}

.vocast-event-gallery__arrow {
  display: grid;
  width: 36px;
  height: 36px;
  padding: 0;
  place-items: center;
  border: 1px solid var(--event-soft-line);
  color: var(--vocast-white);
  background: transparent;
  font: inherit;
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  transition: border-color 180ms ease, color 180ms ease;
}

.vocast-event-gallery__arrow:hover { border-color: var(--event-accent); color: var(--event-accent); }
.vocast-event-gallery__arrow[hidden] { display: none; }

.vocast-event-lightbox {
  width: min(1180px, calc(100vw - 32px));
  max-width: none;
  max-height: min(94vh, 980px);
  padding: clamp(16px, 3vw, 32px);
  border: 1px solid var(--event-soft-line);
  color: var(--vocast-white);
  background: var(--vocast-ink);
}

.vocast-event-lightbox::backdrop { background: rgb(0 0 0 / 86%); }
.vocast-event-lightbox__topbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.vocast-event-lightbox__counter { margin: 0; color: var(--event-muted); font-size: .8rem; font-variant-numeric: tabular-nums; }
.vocast-event-lightbox__close,
.vocast-event-lightbox__nav {
  padding: 10px 12px;
  border: 1px solid var(--event-soft-line);
  color: var(--vocast-white);
  background: transparent;
  font: inherit;
  font-size: .82rem;
  cursor: pointer;
}
.vocast-event-lightbox__close:hover,
.vocast-event-lightbox__nav:hover { border-color: var(--event-accent); color: var(--event-accent); }
.vocast-event-lightbox__stage { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: clamp(12px, 2vw, 28px); padding-top: 18px; }
.vocast-event-lightbox__stage figure { min-width: 0; margin: 0; text-align: center; }
.vocast-event-lightbox__stage img { display: block; width: 100%; max-height: 72vh; object-fit: contain; }
.vocast-event-lightbox__stage figcaption { margin-top: 12px; color: var(--event-muted); font-size: .82rem; line-height: 1.5; }
.vocast-event-lightbox button:focus-visible { outline: 2px solid var(--event-accent); outline-offset: 3px; }

.vocast-event-card__body { grid-column: 3; max-width: 620px; }
.vocast-event-card__eyebrow {
  margin: 0 0 14px;
  color: var(--event-accent);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .11em;
  line-height: 1.5;
  text-transform: uppercase;
}

.vocast-event-card h2 {
  margin: 0 0 16px;
  font-family: inherit;
  font-size: clamp(2rem, 4vw, 3.6rem);
  font-weight: 600;
  line-height: .98;
  letter-spacing: -.065em;
}

.vocast-event-card__body > p:not(.vocast-event-card__eyebrow):not(.vocast-event-card__value) {
  max-width: 560px;
  margin: 0;
  font-size: var(--vocast-type-body);
  line-height: 1.65;
}

.vocast-event-card h3 {
  margin: 24px 0 8px;
  color: var(--event-muted);
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.vocast-event-card ul {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.vocast-event-card li {
  position: relative;
  padding: 8px 0 8px 16px;
  border-top: 1px solid var(--event-soft-line);
  font-size: var(--vocast-type-body);
  line-height: 1.5;
}

.vocast-event-card li::marker { content: ""; }
.vocast-event-card li::before {
  position: absolute;
  top: 15px;
  left: 0;
  width: 5px;
  height: 5px;
  background: var(--event-accent);
  content: "";
}

.vocast-event-card__value {
  margin: 16px 0 0;
  padding: 0 0 0 14px;
  border: 0;
  border-left: 2px solid var(--event-accent);
  font-size: var(--vocast-type-body);
  font-weight: 600;
  line-height: 1.55;
}

.vocast-event-card__tag { display: none; }

.vocast-event-card:nth-child(even) .vocast-event-gallery { grid-column: 3; }
.vocast-event-card:nth-child(even) .vocast-event-card__body { grid-column: 2; grid-row: 1; }

@media (max-width: 760px) {
  .vocast-event-page {
    box-sizing: border-box;
    width: 100vw !important;
    max-width: 100vw !important;
    overflow-x: clip;
    padding-right: 20px;
    padding-left: 20px;
  }
  .vocast-event-page__inner,
  .vocast-event-page .wp-block-post-content,
  .vocast-event-content,
  .vocast-event-heading,
  .vocast-event-intro,
  .vocast-event-index,
  .vocast-event-card {
    box-sizing: border-box;
    width: calc(100vw - 40px) !important;
    max-width: calc(100vw - 40px) !important;
    min-width: 0;
    margin-right: 0 !important;
    margin-left: 0 !important;
  }
  .vocast-event-page__inner > *,
  .vocast-event-page .wp-block-post-content > *,
  .vocast-event-content > * { box-sizing: border-box; max-width: 100% !important; }
  .vocast-event-intro { width: 100%; max-width: 100%; overflow-wrap: anywhere; }
  .vocast-event-heading { grid-template-columns: 1fr; gap: 18px; }
  .vocast-event-page__inner > .vocast-event-heading > .wp-block-post-title { font-size: var(--vocast-type-hero); }
  .vocast-event-heading__note { justify-self: start; max-width: 340px; }
  .vocast-event-index { gap: 12px 16px; }
  .vocast-event-index__label { flex-basis: 100%; }
  .vocast-event-card {
    grid-template-columns: 38px minmax(0, 1fr);
    align-items: start;
    gap: 12px 12px;
    padding: 34px 0 40px;
  }
  .vocast-event-card__number { grid-column: 1; grid-row: 1 / span 2; padding-top: 3px; font-size: 1.35rem; }
  .vocast-event-gallery,
  .vocast-event-card:nth-child(even) .vocast-event-gallery {
    grid-column: 2;
    grid-row: 1;
  }
  .vocast-event-card__body,
  .vocast-event-card:nth-child(even) .vocast-event-card__body { grid-column: 2; grid-row: 2; }

  .vocast-event-lightbox__stage { grid-template-columns: 1fr 1fr; gap: 10px; }
  .vocast-event-lightbox__stage figure { grid-column: 1 / -1; grid-row: 1; }
  .vocast-event-lightbox__stage img { max-height: 68vh; }
  .vocast-event-lightbox__nav { width: 100%; }
}

@media (max-width: 420px) {
  .vocast-event-card { grid-template-columns: 32px minmax(0, 1fr); gap: 12px 10px; }
  .vocast-event-card__number { font-size: 1.2rem; }
}
