/* Keep people, performances and group photographs inside their frames. */
.academic-hero:has(> img) {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: clamp(24px, 6vw, 96px);
    padding: clamp(20px, 2.4vw, 38px) max(5vw, calc((100% - 1240px) / 2));
    min-height: 0;
}
.academic-hero:has(> img) > img {
    position: static;
    z-index: auto;
    width: auto;
    height: auto;
    max-width: 56%;
    max-height: clamp(300px, 30vw, 480px);
    object-fit: scale-down;
    object-position: center;
}
.academic-hero:has(> img) > .wrap {
    order: -1;
    flex: 0 1 440px;
    margin: 0;
    padding: 0;
}
.academic-hero:has(> img) .academic-title {
    max-width: none;
    width: auto;
    padding-block: 12px;
    padding-inline: clamp(16px, 2vw, 30px) 0;
    background: transparent;
    border-inline-start: 4px solid #c78a96;
}
.hero.homehero {
    display: grid;
    grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1.4fr);
    grid-template-rows: 1fr auto;
    height: auto;
    min-height: 0;
    max-height: none;
    padding-block: clamp(14px, 2vw, 32px);
    padding-inline: max(4vw, calc((100% - 1440px) / 2));
    column-gap: clamp(16px, 3vw, 52px);
}
.homehero :is(.hero-photo, video) {
    grid-area: 1 / 2 / 3 / 3;
    position: static;
    align-self: center;
    width: 100%;
    height: clamp(285px, 35vw, 535px);
    object-fit: scale-down;
    object-position: center;
    z-index: 0;
}
.homehero .herowrap {
    grid-area: 1 / 1;
    align-self: center;
    width: 100%;
    height: auto;
    padding-block: 20px;
}
.homehero .titleplate { width: auto; max-width: none; background: transparent; }
.homehero .vtools {
    grid-area: 2 / 1;
    position: static;
    justify-self: start;
    align-self: end;
    margin-block-end: 8px;
    z-index: 1;
}
.hero.leaderhero { height: auto; aspect-ratio: auto; }
.leaderhero .hero-photo {
    position: static;
    display: block;
    width: min(100%, 1380px);
    height: auto;
    margin-inline: auto;
    object-fit: scale-down;
}
.leaderhero .herowrap { position: absolute; inset: 0; }
main :is(.split > img, .photo-strip img, .illustrated img, .option-panel img, .story-grid img,
         .list-record > img, .theme-picks img, .news-feature img, .feature-carousel img, .hero-mosaic img) {
    object-fit: scale-down;
    object-position: center;
    background-color: #eef1f2;
}
main .message img, main .director > img {
    object-fit: scale-down;
    object-position: center;
    height: auto;
    max-height: none;
    border-radius: 12px;
}
main .collage img { height: auto; max-height: none; aspect-ratio: auto; object-fit: scale-down; }
main .story-grid:has(> :only-child) { max-width: 960px; }
main .story-grid > :only-child {
    display: grid;
    align-content: center;
    align-items: start;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 8px clamp(20px, 4vw, 55px);
}
main .story-grid > :only-child > img {
    grid-row: 1 / span 3;
    height: clamp(230px, 26vw, 380px);
    margin: 0;
}
main .story-grid > :only-child > h3 { align-self: end; }
.hero-mosaic { background: #722331; }
@media (max-width: 700px) {
    .academic-hero:has(> img) {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 0;
    }
    .academic-hero:has(> img) > img {
        margin-inline: auto;
        max-width: 100%;
        max-height: clamp(270px, 84vw, 410px);
    }
    .academic-hero:has(> img) > .wrap {
        order: 1;
        flex: none;
        width: 100%;
        padding: 16px 20px 22px;
    }
    .hero.homehero { grid-template-columns: 1fr; grid-template-rows: auto auto auto; padding: 0; }
    .homehero :is(.hero-photo, video) { grid-area: 1 / 1; height: auto; aspect-ratio: 1.51; }
    .homehero .herowrap { grid-area: 2 / 1; margin: 0; padding: 16px 20px 6px; }
    .homehero .titleplate { padding: 8px 14px; }
    .homehero .vtools { grid-area: 3 / 1; margin: 0 20px 18px; }
    .hero.leaderhero { display: flex; flex-direction: column; }
    .leaderhero .herowrap { position: static; width: 100%; order: -1; }
    main .story-grid > :only-child { display: block; }
    main .story-grid > :only-child > img { height: auto; max-height: 400px; margin-bottom: 14px; }
}
.homehero video.playing { background: #26384a; }
