.programme-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 185px), 1fr));
    gap: 1.75rem 1rem;
    margin-top: 1.5rem;
}

.programme-year {
    padding: .75rem;
    text-align: center;
    scroll-margin-top: 1rem;
}

.programme-year-label {
    display: block;
    margin-top: .65rem;
    font-size: 150%;
    font-weight: bold;
    line-height: 1.2;
}

.programme-card {
    display: block;
    margin: 0 auto;
    max-width: 210px;
}

.programme-card:link,
.programme-card:visited {
    color: inherit;
    text-decoration: none;
}

.programme-card:hover {
    text-decoration: underline;
}

.programme-card:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: .25rem;
    border-radius: .5rem;
}

.programme-cover {
    position: relative;
    display: grid;
    place-items: center;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    border-radius: .5rem;
}

.programme-year-modern .programme-cover {
    /* A 2:3 cover at five-sixths width matches the height of the 4:5 frame. */
    width: calc(100% * 5 / 6);
    margin-inline: auto;
    aspect-ratio: 2 / 3;
}

.programme-cover img {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    box-sizing: border-box;
}

.programme-cover-fit img,
.programme-year-modern .programme-cover img {
    object-fit: contain;
}

.programme-year-modern .programme-cover img:not(.programme-pdf-icon) {
    border: 1px solid #d7d0ca;
    border-radius: .5rem;
}

.programme-cover .programme-pdf-icon {
    position: static;
    width: 32px;
    height: 32px;
    border: 0;
}

