/* Photo-first autoplay hero slider without overlay control bar */
.admissions-banner {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background: var(--school-cream, #fbf8f2);
}

.admissions-banner::after {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 4;
    height: 3px;
    background: linear-gradient(90deg, #b48730, #f2d58b, #b48730);
    content: '';
    pointer-events: none;
}

.hero-slider {
    position: relative;
    height: clamp(300px, 62vw, 430px);
    overflow: hidden;
    isolation: isolate;
    background: #05275a;
    touch-action: pan-y pinch-zoom;
}

.hero-slider::after {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(180deg, rgb(3 27 64 / 4%) 45%, rgb(3 27 64 / 45%));
    content: '';
    pointer-events: none;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1), visibility 0.9s;
    pointer-events: none;
}

.hero-slide.is-active {
    opacity: 1;
    visibility: visible;
}

.hero-slide picture,
.hero-slide img {
    display: block;
    width: 100%;
    height: 100%;
}

.hero-slide img {
    object-fit: cover;
    object-position: center;
    user-select: none;
    -webkit-user-drag: none;
}

.hero-slide.is-active img {
    animation: hero-gentle-zoom 7.5s ease-out both;
    animation-play-state: running;
}

@keyframes hero-gentle-zoom {
    from { transform: scale(1); }
    to { transform: scale(1.04); }
}

.hero-form-wrap {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: center;
    width: 100%;
    max-width: 1280px;
    margin: -26px auto 0;
    padding: 0 16px 36px;
    pointer-events: none;
}

.admissions-banner #admission-form {
    width: 100%;
    max-width: 440px;
    margin: 0 auto;
    pointer-events: auto;
}

@media (min-width: 640px) and (max-width: 767px) {
    .hero-form-wrap {
        margin-top: -34px;
        padding-bottom: 48px;
    }
}

@media (min-width: 768px) {
    .admissions-banner {
        display: grid;
        grid-template-areas: 'banner';
    }

    .hero-slider,
    .hero-form-wrap {
        grid-area: banner;
    }

    .hero-slider {
        height: auto;
        min-height: 580px;
    }

    .hero-slider::after {
        background:
            linear-gradient(90deg, transparent 35%, rgb(3 27 64 / 16%)),
            linear-gradient(180deg, transparent 58%, rgb(3 27 64 / 35%));
    }

    .hero-form-wrap {
        align-items: center;
        justify-content: flex-end;
        min-height: clamp(580px, calc(100svh - 116px), 760px);
        margin: 0 auto;
        padding: 32px;
    }

    .admissions-banner #admission-form {
        width: 48%;
        margin-right: 0;
        margin-left: auto;
    }
}

@media (min-width: 1024px) {
    .hero-slider {
        min-height: 640px;
    }

    .hero-form-wrap {
        min-height: clamp(640px, calc(100svh - 116px), 760px);
    }

    .admissions-banner #admission-form {
        width: 44%;
    }
}

@media (min-width: 1280px) {
    .admissions-banner #admission-form {
        max-width: 520px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-slide {
        transition: none;
    }

    .hero-slide.is-active img {
        animation: none;
    }
}
