.event-editorial { --event-ground: var(--dark-green); --event-ink: var(--white); background: var(--event-ground); color: var(--event-ink); font-family: "STIX Two Text", serif; }
.event-editorial *, .event-editorial *::before, .event-editorial *::after { box-sizing: border-box; }
.event-editorial section, .event-editorial header { margin: 0; }
.event-shell { width: min(1440px, calc(100% - 64px)); margin-inline: auto; }
.event-editorial a { color: inherit; }
.event-editorial h1, .event-editorial h2, .event-editorial h3, .event-editorial h4, .event-editorial p, .event-editorial figure { margin: 0; }
.event-editorial h2 { font-size: clamp(36px, 4.5vw, 64px); font-weight: 400; letter-spacing: -.025em; line-height: 1.05; }
.event-editorial p { font-size: 20px; line-height: 1.55; }
.event-editorial p + p { margin-top: 20px; }
.event-editorial img { display: block; width: 100%; height: 100%; object-fit: cover; }
.event-editorial figcaption { font-size: 16px; line-height: 1.4; margin-top: 12px; }
.event-edition-nav { padding: 24px 0; }
.event-edition-nav > .event-shell { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.event-edition-nav__links { display: flex; gap: 30px; }
.event-edition-nav a { font-size: 18px; text-decoration: none; padding: 10px 0; text-underline-offset: 8px; }
.event-edition-nav a[aria-current] { text-decoration: underline; }
.event-edition-nav span { font-size: 16px; color: var(--gold); }
.event-opening__photo { height: clamp(320px, 44vh, 560px); overflow: hidden; padding: 36px 36px 0; }
.event-opening__photo img { object-position: center 42%; }
.event-opening__title { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; padding-block: 32px 16px; }
.event-editorial .event-opening__title h1 { font-size: clamp(72px, 12.5vw, 184px); line-height: .95; font-weight: 400; letter-spacing: -.055em; white-space: nowrap; }
.event-opening__title > span { font-size: clamp(30px, 5vw, 70px); line-height: 1; color: var(--gold); }
.event-opening__intro { display: flex; align-items: start; justify-content: space-between; gap: 48px; padding-block: 28px 0; }
.event-opening__intro p { max-width: 700px; font-size: clamp(22px, 2.5vw, 32px); line-height: 1.3; }
.event-text-link { display: inline-block; font-size: 18px; line-height: 1.4; padding-block: 12px; text-decoration: underline; text-underline-offset: 6px; }
.event-chapter { padding-block: 120px; display: grid; grid-template-columns: 5fr 7fr; gap: 64px; }
.event-chapter__copy { max-width: 510px; align-self: center; }
.event-chapter__copy h2 { margin-bottom: 28px; }
.event-chapter__main img { height: clamp(360px, 36vw, 540px); }
.event-chapter__pair { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; grid-column: 1 / -1; }
.event-chapter__pair img { aspect-ratio: 3 / 2; height: auto; }
.event-chapter--sunset { display: block; width: 100%; background: var(--white); color: var(--dark-green); }
.event-sunset-wide img { aspect-ratio: 2 / 1; height: auto; object-position: center 48%; }
.event-chapter__split { display: grid; grid-template-columns: 5fr 7fr; gap: 64px; padding-block: 56px; }
.event-chapter__split > div { max-width: 650px; }
.event-recognition { display: grid; grid-template-columns: 4fr 6fr; align-items: center; gap: clamp(48px, 8vw, 120px); padding-block: 120px; }
.event-recognition > figure { max-width: 400px; }
.event-recognition img { height: auto; aspect-ratio: 4 / 5; }
.event-recognition > div { max-width: 690px; }
.event-recognition h2 { margin-bottom: 28px; }
.event-chapter--keyn { padding-top: 0; }
.event-editorial .event-chapter__subtitle { font-size: 24px; line-height: 1.3; margin-bottom: 24px; }
.event-highlights { padding-block: 0 120px; }
.event-highlights__heading { display: flex; gap: 48px; justify-content: space-between; align-items: end; margin-bottom: 36px; }
.event-highlights__heading p { max-width: 330px; }
.event-gallery-filters { display: flex; flex-wrap: wrap; gap: 12px 28px; margin-bottom: 28px; }
.event-gallery-filters[hidden], .event-gallery-photo[hidden] { display: none; }
.event-gallery-filters button { min-height: 44px; padding: 10px 0; background: none; color: inherit; border: 0; font: inherit; font-size: 18px; cursor: pointer; text-underline-offset: 8px; }
.event-gallery-filters button[aria-pressed="true"] { text-decoration: underline; }
.event-photo-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.event-gallery-photo { display: block; overflow: hidden; }
.event-gallery-photo img { aspect-ratio: 3 / 2; height: auto; }
.event-gallery-status { margin-top: 20px !important; font-size: 16px !important; min-height: 1.5em; }
.event-next { background: var(--gold); color: var(--dark-green); padding-block: 80px; }
.event-next > .event-shell { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.event-next h2 { max-width: 650px; }
.event-action { display: inline-flex; justify-content: center; align-items: center; text-align: center; border-radius: 99px; background: var(--dark-green); color: var(--white) !important; padding: 16px 28px; min-height: 52px; margin-top: 24px; font-size: 18px; text-decoration: none; }
.event-upcoming-photo--hero { position: relative; width: 100%; height: auto; margin: 0; }
.event-upcoming-photo--hero img { width: 100%; height: auto; object-fit: cover; aspect-ratio: auto; }
.event-upcoming-photo__cta { position: absolute; left: 50%; bottom: 48px; transform: translateX(-50%); margin-top: 0; background: var(--gold); color: var(--dark-green) !important; font-weight: 600; padding: 18px 36px; }
.event-return { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; padding-block: 100px; }
.event-return p { max-width: 650px; }
.event-return p + p { margin-top: 0; }
.event-programme { padding-block: 0 100px; }
.event-programme > h2 { margin-bottom: 60px; }
.event-programme__day { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; margin-top: 60px; }
.event-programme h3 { font-size: clamp(26px, 3vw, 40px); font-weight: 400; line-height: 1.2; color: var(--gold); }
.event-programme h4 { font-size: clamp(28px, 3vw, 40px); font-weight: 400; line-height: 1.15; margin-bottom: 20px; }
.event-programme article + article { margin-top: 48px; }
.event-culture { background: var(--white); color: var(--dark-green); padding-block: 100px; }
.event-culture > .event-shell { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 64px; }
.event-culture img { height: auto; aspect-ratio: 4 / 3; }
.event-culture h2 { margin-bottom: 24px; }
.event-editorial :is(a, button):focus-visible { outline: 2px solid currentColor; outline-offset: 6px; }
.event-lightbox { width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; padding: 20px 32px; border: 0; background: var(--dark-green); color: var(--white); }
.event-lightbox::backdrop { background: var(--dark-green); }
.event-lightbox__bar { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.event-lightbox button { border: 0; background: transparent; color: inherit; font: inherit; font-size: 18px; min-width: 48px; min-height: 48px; cursor: pointer; }
.event-lightbox button:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.event-lightbox__stage { display: grid; grid-template-columns: 48px minmax(0,1fr) 48px; align-items: center; gap: 16px; height: calc(100dvh - 160px); }
.event-lightbox__stage img { width: 100%; height: 100%; min-height: 0; object-fit: contain; }
.event-lightbox__stage button { font-size: 42px; }
.event-lightbox [data-event-caption] { text-align: center; font-size: 17px; line-height: 1.4; margin-top: 16px; }
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
    .event-gallery-photo img { transition: transform 750ms cubic-bezier(.33,1,.68,1); }
    .event-gallery-photo:hover img { transform: scale(1.015); }
    .event-action { transition: scale 140ms cubic-bezier(.22,1,.36,1); }
    .event-action:active { scale: .98; }
}
@supports (animation-timeline: view()) {
    @media (prefers-reduced-motion: no-preference) {
        .event-opening__title h1 { animation: event-wordmark-settle linear both; animation-timeline: view(); animation-range: entry 0% exit 100%; transform-origin: left center; }
        @keyframes event-wordmark-settle { from { scale: .98; } to { scale: 1; } }
    }
}
@media (max-width: 900px) {
    .event-shell { width: calc(100% - 40px); }
    .event-chapter, .event-chapter__split, .event-recognition, .event-culture > .event-shell { gap: 36px; }
    .event-chapter, .event-recognition { padding-block: 80px; }
    .event-chapter--keyn { padding-top: 0; }
    .event-edition-nav > .event-shell { align-items: start; flex-direction: column; gap: 4px; }
}
@media (max-width: 640px) {
    .event-shell { width: calc(100% - 32px); }
    .event-editorial p { font-size: 18px; }
    .event-edition-nav { padding-block: 12px; }
    .event-edition-nav__links { gap: 24px; }
    .event-edition-nav a { font-size: 17px; }
    .event-edition-nav span { font-size: 14px; }
    .event-opening__photo { height: 380px; padding: 16px 16px 0; }
    .event-opening__photo img { object-position: 55% center; }
    .event-opening__title { flex-wrap: wrap; gap: 12px; padding-top: 24px; }
    .event-editorial .event-opening__title h1 { font-size: 16vw; letter-spacing: -.045em; }
    .event-opening__title > span { font-size: 28px; }
    .event-opening__intro, .event-highlights__heading { flex-direction: column; align-items: start; gap: 16px; }
    .event-opening__intro p { font-size: 24px; }
    .event-chapter, .event-chapter__split, .event-recognition, .event-next > .event-shell, .event-return, .event-programme__day, .event-culture > .event-shell { grid-template-columns: 1fr; gap: 28px; }
    .event-chapter { padding-block: 64px; }
    .event-chapter__main img { height: auto; aspect-ratio: 4 / 3; }
    .event-chapter__pair { gap: 12px; }
    .event-chapter__pair img { aspect-ratio: 4 / 5; }
    .event-chapter__split { padding-block: 32px; }
    .event-sunset-wide img { aspect-ratio: 4 / 3; }
    .event-recognition { padding-block: 64px; }
    .event-recognition > figure { width: 70%; }
    .event-chapter--keyn { padding-top: 0; }
    .event-photo-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
    .event-highlights { padding-bottom: 64px; }
    .event-next { padding-block: 56px; }
    .event-return, .event-culture { padding-block: 64px; }
    .event-programme { padding-bottom: 64px; }
    .event-programme > h2 { margin-bottom: 32px; }
    .event-programme__day { margin-top: 36px; }
    .event-culture figcaption { margin-bottom: 8px; }
    .event-lightbox { padding: 12px; }
    .event-lightbox__stage { grid-template-columns: 44px minmax(0,1fr) 44px; gap: 0; height: calc(100dvh - 180px); }
}
/* Keep the shared page margins when a shell is itself a header, section or figure. */
.event-editorial .event-shell { margin-inline: auto; }
.home-event-invitation { display: flex; justify-content: center; background: #9b5123; padding: 0 max(32px, calc((100vw - 1440px) / 2)); }
.home-event-invitation a { display: block; width: 100%; }
.home-event-invitation img { display: block; width: 100%; height: auto; }
@media (max-width: 640px) { .home-event-invitation { padding: 0 16px; } }
.event-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
/* The supplied stacked event mark replaces the typeset event name. */
.event-editorial .event-opening__title { align-items: center; }
.event-editorial .event-opening__title h1 { font-size: 0; line-height: 1; letter-spacing: normal; }
.event-editorial .event-opening__title .iwt-event-mark { display: block; width: clamp(180px, 22vw, 280px); max-width: 100%; height: auto; object-fit: contain; }
@media (max-width: 640px) {
    .event-editorial .event-opening__title { flex-wrap: nowrap; padding-bottom: 8px; }
    .event-editorial .event-opening__title .iwt-event-mark { width: 180px; }
}
.event-editorial .event-opening__title { justify-content: flex-start; gap: 32px; }
.event-editorial .event-opening__title > span { font-size: clamp(28px, 4vw, 48px); }
/* Supplied event identity: warm brown with the original patterned artwork. */
.event-branded-hero { position: relative; isolation: isolate; overflow: hidden; background: #9b5123; color: var(--white); }
.event-branded-hero::before { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; background-image: url('../images/iwt-pattern.svg'); background-repeat: repeat; background-size: 220px auto; opacity: .5; }
.event-opening.event-branded-hero { padding-block: 32px 64px; }
.event-branded-hero .event-opening__title > span { color: var(--white); }
.event-branded-hero .event-opening__intro { padding-bottom: 0; }
@media (max-width: 640px) {
    .event-opening.event-branded-hero { padding-block: 12px 40px; }
    .event-branded-hero::before { background-size: 170px auto; opacity: .4; }
}
/* Frame the pattern inside the brown hero instead of running it to the edges. */
.event-branded-hero::before { inset: 40px; }

/* The original invitation frames the retrospective, with its event mark restored. */
.event-editorial .event-invitation { width: min(820px, calc(100% - 80px)); margin-block: 8px 36px; }
.event-invitation__artwork { position: relative; }
.event-invitation__frame { display: block; width: 100%; height: auto; }
.event-editorial .event-invitation h1 { position: absolute; top: 16%; left: 50%; width: 27%; margin: 0; transform: translateX(-50%); font-size: 0; line-height: 1; }
.event-invitation h1 img { display: block; width: 100%; height: auto; }
.event-invitation__details { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
@media (max-width: 640px) {
    .event-editorial .event-invitation { width: calc(100% - 32px); margin-block: 20px 28px; }
    .event-invitation__details { position: static; width: auto; height: auto; overflow: visible; clip-path: none; text-align: center; padding: 20px 8px 0; }
    .event-invitation__details p { margin: 0; font-size: 18px; line-height: 1.5; }
    .event-invitation__details p + p { margin-top: 8px; font-size: 16px; }
}
