.series-header {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    grid-gap: var(--gap);
    border-top: var(--rule-size) solid var(--primary-color);
    padding-top: var(--rule-gap);
    padding-bottom: var(--vertical-gap);
    /* Above the columns' scroll areas, which start a little higher
       than they appear (see .press-scroll below) */
    position: relative;
    z-index: 1;
    background-color: var(--background-color);
}

.series-title {
    grid-column: 1 / 3;
    border-top: none;
    padding: var(--trim-inset) 0 0;
}

.series-title-no-introduction {
    grid-column: 1 / -1;
    border-top: none;
    padding: var(--trim-inset) 0 0;
}

.series-introduction {
    grid-column: 3 / 5;
}

@media screen and (max-width: 800px) {
    .series-header {
        grid-template-columns: 1fr;
    }

    .series-title,
    .series-introduction {
        grid-column: 1 / -1;
    }
}

/* Articles on the left, the series' events in a narrower column on
   the right (like the press page's two lists). */
.series-layout-events {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    grid-column-gap: var(--gap);
}

.series-layout-events .series-articles {
    grid-column: 1 / 5;
}

.series-layout-events .series-events {
    grid-column: 5 / -1;
}

.series-events .events-upcoming {
    margin-bottom: calc(2 * var(--vertical-gap));
}

/* Upcoming events: the events page's large listing, fitted to the
   narrow column */
.series-events .event-listing-large {
    grid-template-columns: 1fr 1fr;
}

.series-events .event-listing-large .event-image,
.series-events .event-listing-large .event-dek {
    grid-column: 1 / -1;
}

/* Past events: title on the left; date, time and location stacked on
   the right */
.series-events .series-event {
    grid-template-columns: 1fr 1fr;
}

.series-events .event-title-small {
    grid-column: 1;
}

.series-event-details {
    grid-column: 2;
}

.series-event-details .event-location {
    margin-top: var(--line);
}

.series-event-details .event-location p {
    margin: 0;
}

@media screen and (max-width: 800px) {
    .series-layout-events {
        grid-template-columns: 1fr;
    }

    .series-layout-events .series-articles,
    .series-layout-events .series-events {
        grid-column: 1 / -1;
    }

    .series-events .series-event {
        grid-template-columns: 2fr 1fr;
    }
}

/* Each column scrolls on its own, sticky below the header, with the
   --press-scroll-height script in scripts.js giving it room to stick.
   (The press page, where this started, now scrolls with the page.)
   Only with events; a lone column scrolls with the page. */
.series-layout-events .series-articles,
.series-layout-events .series-events {
    min-height: var(--press-scroll-height, 0px);
}

.series-layout-events .press-scroll {
    box-sizing: border-box;
    position: sticky;
    top: var(--header-height);
    margin-top: calc(-2 * var(--vertical-gap));
    padding-top: calc(2 * var(--vertical-gap));
    max-height: calc(100vh - var(--header-height));
    overflow-y: auto;
}

@media screen and (max-width: 800px) {
    .series-layout-events .series-articles,
    .series-layout-events .series-events {
        margin-bottom: var(--vertical-gap);
    }

    .series-layout-events .press-scroll {
        position: static;
        margin-top: 0;
        padding-top: 0;
        max-height: none;
        overflow-y: visible;
    }
}
