.section.hero-container .hero-wrapper {
    margin: 0 auto;
    max-width: 100%;
}

main .section.hero-container {
    padding: 0;
}

body:has(.alert-banners-stack) main > .section:first-child.hero-container,
body:has(.alert-banners-stack) main > .section.hero-container {
  padding: 0;
  margin-top: calc(-1 * var(--header-bottom-margin));
}

main:has(.alert-banner-container) > .section:first-child.hero-container,
main:has(.alert-banner-container) > .section.hero-container {
  padding: 0;
  margin-top: calc(-1 * var(--header-bottom-margin));
}

main > .section:first-child.hero-container,
main > .section.hero-container {
  padding: 0;
  margin-top: calc(-1 * var(--header-bottom-margin));
}

.hero .hero-content-wrapper {
    overflow: hidden;
}

body:has(.alert-banners-stack) main > .section:first-child.hero-container,
body:has(.alert-banners-stack) main > .section.hero-container {
  padding: 0;
  margin-top: calc(-1 * var(--header-bottom-margin));
}

main:has(.alert-banner-container) > .section:first-child.hero-container,
main:has(.alert-banner-container) > .section.hero-container {
  padding: 0;
  margin-top: calc(-1 * var(--header-bottom-margin));
}

main > .section:first-child.hero-container,
main > .section.hero-container {
  padding: 0;
  margin-top: calc(-1 * var(--header-bottom-margin));
}

.hero picture img {
    min-height: 360px;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero .hero-text {
    padding: 32px 16px;
}

.hero .hero-title * {
    font-size: var(--scale-h1);
    font-weight: 600;
    line-height: var(--h1-line-height);
}

.hero .hero-text .button-container .secondary {
    color: var(--color-white);
    background-color: transparent;
}

.hero .hero-text.font-dark,
.hero .hero-text.font-dark .hero-title * ,
.hero .hero-text.font-dark .hero-description * {
    color: var(--color-black);
}

.hero .hero-text.font-dark a,
.hero .hero-text.font-dark .hero-title a,
.hero .hero-text.font-dark .hero-description a {
    color: var(--text-link);
    text-decoration: underline;
}

.hero .hero-title *,
.hero .hero-description * {
    margin: 0;
    margin-top: 24px;
    color: var(--color-white);
}

.hero .hero-text .hero-eyebrow *{
    font-size: var(--size-18);
    font-weight: 700;
    color: var(--color-secondary-300);
}

.hero .button-container a {
    width: 100%;
}

.hero .hero-teaser-content {
    position: relative;
}

.hero .video-wrapper-hero {
    padding: 130px 16px 0 16px;
}

.hero video {
    width: 100%;
}



.hero.teaser-text-left-aligned picture,
.hero.teaser-text-right-aligned picture {
    position: absolute;
    z-index: 0;
    inset: 0;
    object-fit: cover;
    box-sizing: border-box;
}


.hero.teaser-text-left-aligned .hero-text-container,
.hero.teaser-text-right-aligned .hero-text-container {
    padding-top: 320px;
    position: relative;
    z-index: 2;
}

.hero.split-media-right .hero-content-wrapper,
.hero.split-media-left .hero-content-wrapper {
    background-color: var(--color-charcoal-brand);
}

.hero[data-hero-grad='true'].teaser-text-left-aligned .hero-text-container,
.hero[data-hero-grad='true'].teaser-text-right-aligned .hero-text-container {
    position: relative;
    z-index: 2;
}

@media (width >= 600px) {
    .hero .button-container {
        display: inline-block;
        margin: 20px 24px 0 0;
    }
    .hero .button-container a {
        width: auto;
    }
}

@media (width >= 900px) {
    .hero video {
        max-width: 677px;
        max-height: 381px;
    }

    .hero .hero-text-container {
        display: flex;
        align-items: flex-end;
    }

    .hero .hero-teaser-content {
        display: flex;
        justify-content: center;
        align-items: flex-end;
        min-height: 549px;
    }

    .hero.split-media-left .hero-teaser-content,
    .hero.split-media-right .hero-teaser-content {
        max-width: var(--container-size);
        margin: 0 auto;
        height: 549px;
    }

    .hero .hero-text-container {
        flex: 1 0 45%;
        position: relative;
    }

    .hero.teaser-text-left-aligned .hero-text,
    .hero.teaser-text-right-aligned .hero-text {
        bottom: 65px;
    }
    
    .hero.split-media-right .hero-text,
    .hero.teaser-text-left-aligned .hero-text {
        padding: 124px 32px 32px 0;
    }

    .hero.split-media-left .hero-text {
        padding: 124px 32px 32px 32px;
    }

    .hero.teaser-text-right-aligned .hero-text {
        padding: 124px 0 32px 0;
    }

    .hero.split-media-left .hero-text,
    .hero.split-media-right .hero-text {
        bottom: 65px;
    }

    .hero.split-media-left:has(video) .hero-text {
        padding: 0 0 32px 32px;
    }

    .hero.split-media-right:has(video) .hero-text {
        padding: 0 32px 32px 0;
    }

    .hero.teaser-text-left-aligned .hero-text-container,
    .hero.teaser-text-right-aligned .hero-text-container {
        padding-top: 0;
        max-width: var(--container-size);
        margin: 0 auto;
    }

    .hero.teaser-text-right-aligned .hero-text-container {
        display: flex;
        justify-content: flex-end;
    }

    .hero.split-media-left .hero-text-container,
    .hero.split-media-right .hero-text-container {
        flex: 0 0 50%;
    }

    .hero.split-media-left picture,
    .hero.split-media-right picture {
        flex: 0 0 auto;
        align-self: stretch;
    }

    .hero.split-media-right .hero-teaser-content {
        flex-flow: row-reverse;
    }

    .hero.split-media-right picture {
        width: calc(50% + ((100vw - var(--container-size)) / 2));
        margin-right: calc((100vw - var(--container-size)) / -2);
    }

    .hero.split-media-left picture {
        width: calc(50% + ((100vw - var(--container-size)) / 2));
        margin-left: calc((100vw - var(--container-size)) / -2);
    }

    .hero.teaser-text-left-aligned .hero-text,
    .hero.teaser-text-right-aligned .hero-text {
        max-width: 50%;
    }

    .hero.split-media-right:has(video) .hero-teaser-content,
    .hero.split-media-left:has(video) .hero-teaser-content {
        margin: 0 auto;
        padding: 130px 16px 0 0;
        align-items: flex-end;
        justify-content: left;
    }

    .hero.split-media-right:has(video) .video-wrapper-hero,
    .hero.split-media-left:has(video) .video-wrapper-hero {
        padding: 0 0 32px 0;
    } 
}
