:root {
    --hero-background-color: rgb(0 0 0 / 0.3);
    --hero-title-color: white;
    --hero-text-color: white;
}

.hero {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero.hero--has-background::before {
    content: '';
    background-color: var(--hero-background-color);
    position: absolute;
    inset: 0;
    z-index: 2;
}

.hero.hero--has-background .heading-element {
    color: var(--hero-title-color);
}

.hero .hero__video {
    box-sizing: border-box;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
    aspect-ratio: 16 / 9;
    width: auto;
    height: 100%;
    max-width: none;
}

.hero .hero__video.cover-wide {
    width: 100dvw;
    height: auto;
}

.hero .hero__video.hero__video--mobile {
    display: none;
}

@media screen and (max-width: 768px) {
    .hero .hero__video.hero__video--desktop {
        display: none;
    }

    .hero .hero__video.hero__video--mobile,
    .hero .hero__video.hero__video--desktop-only {
        display: block;
    }
}

.hero .hero__image {
    position: absolute;
    inset: 0;
}

.hero .hero__image img,
.hero .hero__image .hero__image-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero .hero__image .hero__image-img--mobile {
    display: none;
}

@media screen and (max-width: 768px) {
    .hero .hero__image .hero__image-img--desktop {
        display: none;
    }

    .hero .hero__image .hero__image-img--mobile {
        display: block;
    }
}

.hero .hero__content {
    position: relative;
    z-index: 3;
    display: flex;
    flex-flow: column wrap;
    justify-content: center;
    gap: 20px;
    padding: 36px 36px 36px 36px;
    width: 100%;
}

.hero .hero__content--align-left {
    align-items: flex-start;
    text-align: left;
}

.hero .hero__content--align-center {
    align-items: center;
    text-align: center;
}

.hero .hero__content--align-right {
    align-items: flex-end;
    text-align: right;
}

.hero .hero__content .heading-element {
    overflow-wrap: anywhere;
}

.hero .hero__content .heading-element.heading--1 {
    font-size: 50px;
    line-height: 55px;
    font-weight: 700;
}

.hero .hero__content .heading-element.heading--2 {
    font-size: 40px;
    line-height: 42px;
    font-weight: 700;
}

.hero .hero__content .heading-element.heading--3 {
    font-size: 30px;
    line-height: 34px;
    font-weight: 700;
}

.hero .hero__content .heading-element.heading--4,
.hero .hero__content .heading-element.heading--5,
.hero .hero__content .heading-element.heading--6 {
    font-size: 30px;
    line-height: 34px;
    font-weight: 700;
}

.hero .hero__content .heading-element.subheading {
    font-size: 23px;
    line-height: 120%;
    font-weight: 400;
}

.hero .hero__content .heading-element.body {
    font-size: 16px;
    line-height: 20px;
    font-weight: 400;
}

@media screen and (max-width: 640px) {
    .hero .hero__content .heading-element.heading--1 {
        font-size: 40px;
        line-height: 42px;
    }

    .hero .hero__content .heading-element.heading--2 {
        font-size: 30px;
        line-height: 34px;
    }

    .hero .hero__content .heading-element.heading--3,
    .hero .hero__content .heading-element.heading--4,
    .hero .hero__content .heading-element.heading--5,
    .hero .hero__content .heading-element.heading--6 {
        font-size: 24px;
        line-height: 28px;
    }
}

.hero .hero__content .hero__content__text {
    color: var(--hero-text-color);
}

.hero .hero__content .hero__content__text p {
    margin: 0 0 1em;
}

.hero .hero__content .hero__content__text p:last-child {
    margin: 0;
}

.hero.hero--fixed-height {
    min-height: var(--hero-height);
}

@media screen and (max-width: 991px) {
    .hero.hero--fixed-height {
        min-height: var(--hero-height-tablet);
    }
}

@media screen and (max-width: 640px) {
    .hero.hero--fixed-height {
        min-height: var(--hero-height-mobile);
    }
}

.hero.hero--aspect-ratio {
    aspect-ratio: var(--hero-aspect-ratio);
}

@media screen and (max-width: 991px) {
    .hero.hero--aspect-ratio {
        aspect-ratio: var(--hero-aspect-ratio-tablet);
    }
}

@media screen and (max-width: 640px) {
    .hero.hero--aspect-ratio {
        aspect-ratio: var(--hero-aspect-ratio-mobile);
    }
}

.hero .hero__buttons .button {
    margin-bottom: 10px;
    margin-right: 10px;
}

.hero .hero__video-controls {
    position: absolute;
    z-index: 5;
    right: 10px;
    bottom: 10px;
    display: flex;
    gap: 10px;
}

.hero .hero__video-pause-button .pause,
.hero .hero__video-pause-button .muted,
.hero .hero__video-mute-button .pause,
.hero .hero__video-mute-button .muted {
    display: none;
}

.hero .hero__video-pause-button .play,
.hero .hero__video-pause-button .unmuted,
.hero .hero__video-mute-button .play,
.hero .hero__video-mute-button .unmuted {
    display: block;
}

.hero .hero__video-pause-button.playing .pause,
.hero .hero__video-mute-button.playing .pause {
    display: block;
}

.hero .hero__video-pause-button.playing .play,
.hero .hero__video-mute-button.playing .play {
    display: none;
}

.hero .hero__video-pause-button.muted .muted,
.hero .hero__video-mute-button.muted .muted {
    display: block;
}

.hero .hero__video-pause-button.muted .unmuted,
.hero .hero__video-mute-button.muted .unmuted {
    display: none;
}
