body.has-home-hero {
    padding-top: 59px !important;
}

@media (max-width: 1023.98px) {
    body.has-home-hero { padding-top: 0 !important; }
}

.hero-section {
    position: relative;
    width: 100vw;
    left: 50%;
    margin-left: -50vw;
    z-index: 1;
}

.hero-slides-container,
#heroCarousel {
    width: 100%;
    --vpt-indicator-duration: 6s;
    --vpt-hero-height: 500px;
}

#heroCarousel .carousel-inner {
    height: var(--vpt-hero-height);
    overflow: hidden;
    background: #f2f2f2;
}

#heroCarousel .carousel-item {
    position: relative;
    height: 100%;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center;
}

.hero-slide-title {
    position: absolute;
    bottom: 7%;
    left: 50%;
    z-index: 2;
    color: #fff;
    font-size: 1.6rem;
    font-weight: 500;
    text-align: center;
    text-shadow: 1px 2px 4px rgba(0, 0, 0, .8);
    opacity: 0;
    transform: translateX(calc(-50% - 4rem));
}

#heroCarousel .carousel-item.active .hero-slide-title {
    animation: heroSlideTitleMotion 6s ease-out both;
}

@keyframes heroSlideTitleMotion {
    0% { opacity: 0; transform: translateX(calc(-50% - 4rem)); }
    14% { opacity: 0; transform: translateX(calc(-50% - 4rem)); }
    28%, 75% { opacity: 1; transform: translateX(-50%); }
    90%, 100% { opacity: 0; transform: translateX(-50%); }
}

#heroCarousel .hero-carousel-controls {
    min-height: 58px;
    padding: 8px 24px;
    gap: 16px;
}

#heroCarousel .hero-carousel-controls .carousel-indicators {
    position: static !important;
    width: auto !important;
    margin: 0 !important;
    justify-content: center !important;
}

.hero-section + section {
    padding-top: 1.5rem !important;
}

.content-homepage .media-logo-frame { height: 100px; }
.content-homepage .media-logo { width: auto; height: auto; max-height: 100px; }

@media (max-width: 767.98px) {
    .content-homepage .content-body :has(> h1) { container-type: inline-size; }
    .content-homepage .content-body h1 {
        width: 100%;
        min-width: 0;
        white-space: nowrap;
        font-size: min(2.0rem, 7.2cqi) !important;
    }
    #heroCarousel { --vpt-hero-height: 400px; }

    #heroCarousel .carousel-item {
        background-position: var(--hero-mobile-position, center center);
    }

    .hero-slide-title {
        left: 5%;
        bottom: 10%;
        max-width: 90%;
        font-size: 1.2rem;
        text-align: left;
        transform: translateX(-3rem);
    }

    #heroCarousel .carousel-item.active .hero-slide-title { animation-name: heroSlideTitleMotionMobile; }
    @keyframes heroSlideTitleMotionMobile {
        0% { opacity: 0; transform: translateX(-3rem); }
        14% { opacity: 0; transform: translateX(-3rem); }
        28%, 75% { opacity: 1; transform: translateX(0); }
        90%, 100% { opacity: 0; transform: translateX(0); }
    }

    #heroCarousel .hero-carousel-controls {
        padding-inline: 12px;
    }

    .hero-section + section {
        padding-top: .75rem !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    #heroCarousel .carousel-item.active .hero-slide-title {
        animation: none;
        opacity: 1;
    }
}
