/* Keep hero content in normal document flow on phones and tablets. */
@media (max-width: 991.98px) {
    #hero #hero-header {
        height: auto !important;
        min-height: 0 !important;
        padding-top: 6rem;
        padding-bottom: 3rem;
    }

    #hero #hero-banner {
        margin-top: 0 !important;
    }

    #hero #explore {
        margin-top: 0 !important;
    }

    #hero .hero-mobile-spacer {
        display: none !important;
    }

    #hero .hero-side-image {
        margin-top: 1.5rem !important;
        margin-bottom: 0 !important;
    }

    #hero .hero-banner-image {
        padding-bottom: 1rem;
    }

    .projects-mobile-list {
        display: flex;
        flex-direction: column;
        gap: 1.5rem;
    }

    .projects-mobile-list > .grid-item {
        width: 100%;
        background-size: cover;
        background-position: center;
    }

    #awards-section .awards-card {
        padding: 3.5rem 1rem 1.5rem !important;
    }
}

.card-background-mobile__image {
    display: block;
    width: 100%;
    height: auto;
    margin-top: 1.5rem;
}

.awards-carousel:not(.owl-loaded),
.members-carousel:not(.owl-loaded) {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
}

.awards-carousel:not(.owl-loaded) > .award-slide,
.members-carousel:not(.owl-loaded) > .award-slide {
    flex: 0 0 calc((100% - 2rem) / 3);
    scroll-snap-align: start;
}

#awards-section .award-slide {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    height: 150px;
}

#awards-section .award-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

#awards-section .owl-nav button {
    min-width: 44px;
    min-height: 44px;
    font-size: 1.75rem;
}

#awards-section .owl-nav button:focus-visible {
    outline: 2px solid #ec008c;
    outline-offset: 2px;
}

@media (max-width: 575.98px) {
    #awards-section .award-slide {
        height: 110px;
    }
}

/* About Us: keep the mission block below the hero on mobile. */
@media (max-width: 991.98px) {
    .page-id-45300 #hero ~ section > img.w-100[style="opacity:0"] {
        display: none;
    }

    .page-id-45300 #hero ~ section > .w-100.position-absolute.top-50 {
        position: relative !important;
        top: auto !important;
        transform: none !important;
        margin-top: 0 !important;
    }
}
