.event-detail-page {
    background: #f7f8f7;
}

.event-detail-page .main-nav a.active::after {
    transform: scaleX(1);
}

.event-detail-shell {
    padding-top: 24px;
    padding-bottom: 82px;
}

.event-breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 9px;
    margin-bottom: 28px;
    color: var(--muted);
    font-size: .8rem;
}

.event-breadcrumbs a {
    text-decoration: none;
}

.event-breadcrumbs a:hover {
    color: var(--blue-dark);
}

.event-detail {
    max-width: 1180px;
    margin: 0 auto;
}

.event-detail-heading {
    max-width: 940px;
    margin-bottom: 34px;
}

.event-detail-topic {
    display: inline-flex;
    margin-bottom: 15px;
    padding: 5px 10px;
    border-radius: 999px;
    background: #e4efe9;
    color: #315b48;
    font-size: .74rem;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.event-detail-heading h1 {
    max-width: 980px;
    margin: 0;
    font-family: var(--serif);
    font-size: clamp(2.7rem, 6vw, 5.2rem);
    font-weight: 500;
    letter-spacing: -.045em;
    line-height: .99;
}

.event-detail-heading p {
    max-width: 780px;
    margin: 20px 0 0;
    color: var(--body);
    font-size: clamp(1.05rem, 1.8vw, 1.3rem);
    line-height: 1.55;
}

.event-detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    align-items: start;
    gap: clamp(28px, 5vw, 66px);
}

.event-detail-story {
    min-width: 0;
}

.event-detail-hero {
    margin: 0 0 32px;
}

.event-detail-hero img {
    width: 100%;
    max-height: 650px;
    aspect-ratio: 8 / 5;
    border-radius: 14px;
    object-fit: contain;
    background: #dde4df;
}

.event-detail-hero--poster img,
.event-detail-hero--uncropped img {
    height: auto;
    max-height: none;
    aspect-ratio: auto;
    object-fit: contain;
}

.event-photo-open {
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: zoom-in;
}

.event-photo-open:focus-visible {
    outline: 3px solid var(--blue);
    outline-offset: 4px;
}

.event-detail-hero figcaption,
.event-detail-gallery figcaption {
    margin-top: 8px;
    color: var(--muted);
    font-size: .82rem;
}

.event-detail-body {
    max-width: 760px;
    color: #25343a;
    font-family: var(--serif);
    font-size: 1.13rem;
    line-height: 1.75;
}

.event-detail-body > :first-child {
    margin-top: 0;
}

.event-detail-body p {
    margin: 0 0 1.25em;
}

.event-detail-body h2,
.event-detail-body h3,
.event-detail-body h4 {
    margin: 1.8em 0 .55em;
    color: var(--ink);
    line-height: 1.15;
}

.event-detail-body a {
    color: var(--blue-dark);
    font-weight: 700;
}

.event-detail-body blockquote {
    margin: 1.6em 0;
    padding: .2em 0 .2em 1.2em;
    border-left: 3px solid var(--blue);
    color: #42555d;
    font-size: 1.1em;
}

.event-detail-gallery {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-top: 36px;
}

.event-detail-gallery figure {
    margin: 0;
}

.event-detail-gallery img {
    width: 100%;
    aspect-ratio: 8 / 5;
    border-radius: 10px;
    object-fit: contain;
    background: #dde4df;
}

.event-photo-lightbox {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: grid;
    place-items: center;
    padding: 24px;
    background: rgba(13, 20, 18, .88);
    opacity: 0;
    transition: opacity .35s ease;
    cursor: zoom-out;
}

.event-photo-lightbox[hidden] { display: none; }
.event-photo-lightbox.is-open { opacity: 1; }

.event-photo-lightbox img {
    display: block;
    max-width: min(1600px, 100%);
    max-height: calc(100vh - 48px);
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 18px 60px rgba(0, 0, 0, .45);
    transform: scale(.94);
    transition: transform .42s cubic-bezier(.22, .8, .25, 1);
    cursor: default;
}

.event-photo-lightbox.is-open img { transform: scale(1); }

.event-photo-lightbox-close {
    position: fixed;
    top: 15px;
    right: 16px;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .95);
    color: #15231f;
    font-size: 1.7rem;
    line-height: 1;
    cursor: pointer;
}

.event-photo-lightbox-close:focus-visible {
    outline: 3px solid #fff;
    outline-offset: 3px;
}

.event-source {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: 46px;
    padding: 22px 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.event-source div {
    display: grid;
    gap: 2px;
}

.event-source div span,
.event-facts section span {
    color: var(--muted);
    font-size: .74rem;
    font-weight: 760;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.event-source a {
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 0 18px;
    border-radius: 9px;
    background: var(--blue-dark);
    color: #fff;
    font-size: .88rem;
    font-weight: 760;
    text-decoration: none;
    white-space: nowrap;
}

.event-source a:hover {
    background: #0a496b;
}

.event-facts {
    position: sticky;
    top: 24px;
    overflow: hidden;
    padding: 26px;
    border: 1px solid #dbe4e2;
    border-radius: 14px;
    background: linear-gradient(145deg, #f5f2e9, #fff);
    box-shadow: 0 18px 55px rgba(7, 21, 36, .07);
}

.event-facts h2 {
    margin: 0 0 5px;
    font-family: var(--serif);
    font-size: 1.65rem;
    font-weight: 500;
}

.event-facts section {
    display: grid;
    grid-template-columns: 24px 1fr;
    gap: 13px;
    padding: 18px 0;
    border-bottom: 1px solid #dfe5e2;
}

.event-facts section svg {
    width: 22px;
    margin-top: 2px;
    fill: none;
    stroke: var(--blue-dark);
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.6;
}

.event-facts section div {
    display: grid;
    gap: 5px;
}

.event-facts section strong {
    font-size: .94rem;
    line-height: 1.42;
}

.event-facts section strong + strong {
    margin-top: 5px;
    padding-top: 8px;
    border-top: 1px dashed #d5ddda;
}

.event-facts section small {
    color: var(--muted);
    font-size: .82rem;
}

.event-back-button {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    margin-top: 20px;
    color: var(--blue-dark);
    font-size: .84rem;
    font-weight: 760;
    text-decoration: none;
}

@media (max-width: 900px) {
    .event-detail-layout {
        grid-template-columns: 1fr;
    }

    .event-facts {
        position: static;
        grid-row: 1;
    }
}

@media (max-width: 700px) {
    .event-detail-shell {
        padding-top: 17px;
        padding-bottom: 54px;
    }

    .event-breadcrumbs {
        margin-bottom: 21px;
    }

    .event-detail-heading {
        margin-bottom: 25px;
    }

    .event-detail-heading h1 {
        font-size: clamp(2.35rem, 12vw, 3.7rem);
    }

    .event-detail-hero img {
        aspect-ratio: 8 / 5;
        border-radius: 10px;
    }

    .event-detail-body {
        font-size: 1.04rem;
    }

    .event-detail-gallery {
        grid-template-columns: 1fr;
    }

    .event-photo-lightbox {
        padding: 14px;
    }

    .event-photo-lightbox img {
        max-height: calc(100vh - 28px);
    }

    .event-source {
        align-items: flex-start;
        flex-direction: column;
    }

    .event-source a {
        width: 100%;
    }

    .event-facts {
        padding: 22px;
    }
}
