.event-history {
    --event-accent: #ff9c27;
    --event-border: #5a3d22;
    --event-text: #f8f5f0;
    background: #0c0a08;
    color: var(--event-text);
    min-height: 65vh;
    padding-top: 64px;
    padding-bottom: 4rem;
}

.event-history-width {
    width: min(92%, 1400px);
    margin-inline: auto;
}

.event-history-hero {
    background:
        linear-gradient(90deg, #100c09 12%, #100c09ba 66%, #100c0970),
        var(--public-hero-image, linear-gradient(110deg, #1b140f, #52341b)) center 48% / cover;
    padding: clamp(2rem, 5vw, 4.5rem) 0;
    margin-bottom: 1.5rem;
}

.post-type-archive-blank_event .event-history-hero {
    background:
        linear-gradient(0deg, #0c0a08, #0c0a0800 52%),
        linear-gradient(90deg, #100c09ed 0%, #100c09b8 35%, #100c0924 75%),
        url("assets/warzone-hero-panorama-v1.png") center 10% / cover #100c09;
}

.event-history-hero h1 {
    color: inherit;
    border-left: .3rem solid var(--event-accent);
    padding-left: 1rem;
    font-size: clamp(2.2rem, 5vw, 4rem);
    line-height: 1.08;
    letter-spacing: -.02em;
    overflow-wrap: anywhere;
    margin: 0;
}

.event-history-hero p {
    margin: .75rem 0 0 1.3rem;
    color: #efdfce;
}

.event-history-timeline {
    display: grid;
    position: relative;
    gap: 1rem;
}

.event-history-timeline:has(.event-history-row)::before {
    content: "";
    position: absolute;
    inset: 1.6rem auto 1.6rem 4.45rem;
    width: 1px;
    background: var(--event-border);
}

.event-history-row {
    display: grid;
    grid-template-columns: 5.6rem minmax(0, 1fr);
    align-items: start;
}

.event-history-year {
    position: relative;
    width: max-content;
    border: 1px solid var(--event-accent);
    border-radius: .45rem;
    color: var(--event-accent);
    background: #130d08;
    padding: .15rem .45rem;
    margin-top: .95rem;
    font-size: .88rem;
    font-weight: 700;
}

.event-history-year::after {
    content: "";
    position: absolute;
    top: 50%;
    left: calc(4.45rem - 1px);
    translate: -50% -50%;
    width: .52rem;
    aspect-ratio: 1;
    border-radius: 50%;
    background: var(--event-accent);
}

.event-history-card {
    display: grid;
    gap: 1rem;
    padding: .7rem;
    background: linear-gradient(120deg, #201910, #15120f);
    border: 1px solid var(--event-border);
    border-radius: .85rem;
}

.event-history-card--gallery {
    grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
}

.event-history-row:nth-child(even) .event-history-card--gallery {
    grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
}

.event-history-row:nth-child(even) .event-history-gallery {
    grid-row: 1;
    grid-column: 1;
}

.event-history-copy {
    align-self: center;
    padding: .45rem .75rem;
    overflow-wrap: anywhere;
}

.event-history-copy h2 {
    color: inherit;
    font-size: clamp(1.35rem, 2.4vw, 2rem);
    line-height: 1.15;
    letter-spacing: -.02em;
    margin: 0 0 .55rem;
}

.event-history-date {
    color: #ffd6a7;
    font-size: .9rem;
    margin: 0 0 .5rem;
}

.event-history-summary {
    margin: 0 0 .75rem;
    line-height: 1.55;
}

.event-history-facts {
    display: flex;
    flex-wrap: wrap;
    gap: .45rem 1rem;
    margin: 0 0 .75rem;
}

.event-history-facts dt,
.event-history-facts dd {
    display: inline;
    margin: 0;
    font-size: .875rem;
}

.event-history-facts dt {
    color: #ffd6a7;
    margin-right: .35em;
}

.event-history a.event-history-action {
    display: inline-block;
    padding: .55rem .9rem;
    border-radius: .45rem;
    background: var(--event-accent);
    color: #201006;
    font-size: .875rem;
    font-weight: 700;
    text-decoration: none;
}

.event-history a.event-history-action:hover {
    background: #ffbc6d;
}

.event-history a:focus-visible,
.event-history button:focus-visible {
    outline: 2px solid #ffe0b5;
    outline-offset: 3px;
}

.event-history-gallery {
    display: grid;
    grid-template-columns: minmax(0, 2.4fr) repeat(2, minmax(0, 1fr));
    grid-template-rows: repeat(2, minmax(0, 1fr));
    gap: .42rem;
    min-height: clamp(10rem, 17vw, 16rem);
}

.event-history-gallery--1 {
    grid-template: minmax(0, 1fr) / minmax(0, 1fr);
}

.event-history-gallery--2,
.event-history-gallery--3 {
    grid-template-columns: minmax(0, 2.4fr) minmax(0, 1fr);
}

.event-history-gallery > a {
    display: block;
    position: relative;
    border: 1px solid var(--event-border);
    border-radius: .55rem;
}

.event-history-gallery > a:first-child,
.event-history-gallery--2 > a:last-child {
    grid-row: 1 / -1;
}

.event-history-gallery--4 > a:last-child {
    grid-column: 2 / -1;
}

.event-history-gallery img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
}

.event-history-back {
    display: inline-block;
    margin-bottom: .8rem;
    color: #ffd6a7;
}

.event-history-detail {
    max-width: 960px;
    overflow-wrap: anywhere;
}

.event-history-detail .event-history-gallery {
    min-height: clamp(14rem, 37vw, 27rem);
}

.event-history-report {
    margin-top: 2rem;
    line-height: 1.65;
}

.event-history-report :is(img, video, iframe) {
    max-width: 100%;
}

.event-history-lightbox {
    margin: auto;
    padding: .7rem;
    max-width: 95vw;
    max-height: 95vh;
    border: 1px solid var(--event-border);
    border-radius: .75rem;
    background: #16110c;
    color: var(--event-text);
}

.event-history-lightbox::backdrop {
    background: #000d;
}

.event-history-lightbox button {
    display: block;
    margin: 0 0 .55rem auto;
    padding: .5rem .8rem;
    background: var(--event-accent);
    border: 0;
    border-radius: .35rem;
    color: #211104;
    cursor: pointer;
}

.event-history-lightbox img {
    display: block;
    max-width: 100%;
    max-height: 81vh;
    object-fit: contain;
}

@media (max-width: 720px) {
    .post-type-archive-blank_event .event-history-hero {
        background:
            linear-gradient(0deg, #0c0a08, #0c0a0800 60%),
            linear-gradient(90deg, #100c09e8, #100c0970),
            url("assets/warzone-hero-panorama-v1.png") 66% 10% / cover #100c09;
    }

    .event-history-timeline:has(.event-history-row)::before,
    .event-history-year::after {
        display: none;
    }

    .event-history-row {
        grid-template-columns: minmax(0, 1fr);
        gap: .45rem;
    }

    .event-history-year {
        margin-top: 0;
    }

    .event-history-card--gallery,
    .event-history-row:nth-child(even) .event-history-card--gallery {
        grid-template-columns: minmax(0, 1fr);
    }

    .event-history-row:nth-child(even) .event-history-gallery {
        grid-row: auto;
        grid-column: auto;
    }
}
