.eph-hero-media {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    background: #19333b;
}
.eph-hero-local {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}
.eph-hero-local { object-fit: cover; }
#top .eph-hero-controls {
    position: absolute;
    z-index: 8;
    right: max(12px, env(safe-area-inset-right));
    bottom: 10px;
    display: flex;
    align-items: center;
    gap: 5px;
}
#top .eph-hero-controls :is(a, button) {
    box-sizing: border-box;
    min-height: 34px;
    margin: 0;
    padding: 5px 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255,255,255,.7);
    border-radius: 4px;
    background: rgba(15,35,43,.9);
    color: #fff;
    font-weight: 500;
    font-family: inherit;
    font-size: 13px;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
}
#top .eph-hero-controls .eph-motion { min-width: 38px; }
#top .eph-hero-controls [hidden] { display: none; }
#top .eph-hero-controls :focus-visible { outline: 3px solid white; outline-offset: 3px; }
#top .eph-hero-media ~ .av-section-color-overlay-wrap { position: relative; }
#top .eph-school-viewer {
    position: fixed;
    inset: 0;
    box-sizing: border-box;
    width: min(94vw, 60rem);
    max-height: 92vh;
    max-height: 92dvh;
    margin: auto;
    padding: 0;
    border: 0;
    border-radius: 6px;
    overflow: auto;
    background: #10191c;
    color: #fff;
}
.eph-school-viewer::backdrop { background: rgba(0,0,0,.8); }
#top .eph-film-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 6px 12px;
}
#top .eph-film-head h2 {
    margin: 0;
    color: inherit;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.35;
    text-transform: none;
    letter-spacing: normal;
}
#top .eph-film-close {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    padding: 0 12px;
    border: 1px solid currentColor;
    border-radius: 4px;
    color: inherit;
    background: transparent;
    font: inherit;
    cursor: pointer;
}
#top .eph-film-close:focus-visible { outline: 2px solid white; outline-offset: 2px; }
#top .eph-school-viewer video {
    display: block;
    width: 100%;
    height: auto;
    max-height: calc(92vh - 60px);
    max-height: calc(92dvh - 60px);
    aspect-ratio: 16 / 9;
    object-fit: contain;
    background: #000;
}
.eph-alumni-tab, .eph-skip-target { scroll-margin-top: 150px; }

#top figure.eph-programme-film { margin: 0; width: 100%; }
#top .eph-programme-film > .avia-video {
    width: 100%;
    height: auto;
    min-height: 200px;
    aspect-ratio: 16 / 9;
    margin: 0;
    padding: 0;
}
#top .eph-programme-film > .avia-iframe-wrap { min-height: 200px; }
#top .eph-programme-film figcaption { margin-top: .5rem; }
#top button.eph-film-play {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    min-height: 44px;
    margin: 0 .65rem .35rem 0;
    padding: .4rem .8rem;
    border: 1px solid #20333b;
    border-radius: 4px;
    background: #20333b;
    color: #fff;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}
#top button.eph-film-play[hidden] { display: none; }
#top button.eph-film-play:focus-visible { outline: 2px solid #20333b; outline-offset: 3px; }
#top a.eph-film-source {
    display: inline-block;
    padding-block: .35rem;
    text-decoration: underline;
    text-underline-offset: .15em;
}
/* The links must be reachable before Enfold's scroll animation and with JavaScript off. */
#top .av-masonry-entry.eph-module-film { opacity: 1; visibility: visible; }
#top .av-masonry-entry.eph-module-film .av-inner-masonry { animation: none; }
#top .entry-content-wrapper:has(> .flex_column > .eph-programme-film) {
    container: eph-film-content / inline-size;
}
#top #main .entry-content-wrapper > .flex_column:has(> .eph-programme-film) {
    float: none;
    clear: none;
    display: inline-block;
    vertical-align: top;
    width: 100%;
    margin: 0 0 1.5rem;
}
@container eph-film-content (min-width: 46rem) {
    #top #main .entry-content-wrapper > .flex_column:has(> .eph-programme-film) {
        width: calc(50% - .8rem);
        margin-inline-end: .5rem;
    }
}
@container eph-film-content (min-width: 70rem) {
    #top #main .entry-content-wrapper > .av_one_third:has(> .eph-programme-film) {
        width: calc(33.333% - .8rem);
    }
}
@media (max-width: 767px) {
    #top .eph-hero-controls { top: 8px; bottom: auto; right: 8px; }
    #top .eph-hero-controls :is(a,button) { min-height: 38px; font-size: 12px; }
    .eph-alumni-tab, .eph-skip-target { scroll-margin-top: 75px; }
}
