.hero-block {
    --hero-min-height: 26rem;
    background: #111820;
    display: flex;
    min-height: var(--hero-min-height);
    overflow: hidden;
    position: relative;
}

.hero-block--height-narrow {
    min-height: max(80svh, var(--hero-min-height));
}

.hero-block--height-full-height {
    min-height: max(100svh, var(--hero-min-height));
}

.hero-block::before {
    background:
        linear-gradient(90deg, rgba(0, 0, 0, 0.66) 0%, rgba(0, 0, 0, 0.4) 30%, rgba(0, 0, 0, 0.08) 54%, rgba(0, 0, 0, 0) 82%),
        linear-gradient(180deg, rgba(0, 0, 0, 0.18) 0%, rgba(0, 0, 0, 0.04) 42%, rgba(0, 0, 0, 0.1) 100%);
    content: "";
    inset: 0;
    pointer-events: none;
    position: absolute;
    z-index: 1;
}

.hero-block__media {
    inset: 0;
    pointer-events: none;
    position: absolute;
    z-index: 0;
}

.hero-block__image {
    display: block;
    height: 100%;
    inset: 0;
    object-fit: cover;
    position: absolute;
    width: 100%;
}

.hero-block__video {
    display: block;
    height: 100%;
    inset: 0;
    object-fit: cover;
    position: absolute;
    width: 100%;
}

.hero-block__video-iframe {
    border: 0;
    display: block;
    height: calc(100vw * 9 / 16);
    left: 50%;
    min-height: 100%;
    min-width: 100%;
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    width: calc(100vh * 16 / 9);
    width: calc(100svh * 16 / 9);
}

.hero-block__inner {
    align-items: center;
    box-sizing: border-box;
    display: flex;
    min-height: inherit;
    position: relative;
    z-index: 2;
}

.hero-block__content {
    --hero-content-group-gap: clamp(2rem, 8svh, 5.5rem);
    color: #fff;
    display: flex;
    flex-direction: column;
    gap: var(--hero-content-group-gap);
    justify-content: space-between;
    min-height: clamp(22rem, 52svh, 34rem);
    max-width: 100%;
    text-align: left;
    width: 100%;
    height: 100%;
}

.hero-block__content-top,
.hero-block__content-bottom {
    width: 100%;
}

.hero-block__content-bottom {
    margin-top: auto;
}

.hero-block__content-top {
    --block-content-flow-gap: clamp(0.875rem, 1.8vw, 1.5rem);
}

.hero-block__content-bottom {
    --block-content-flow-gap: clamp(1rem, 2vw, 1.5rem);
    --block-content-flow-gap-before-buttons: var(--space-xl);
    max-width: 31rem;
}

.hero-block__content :where(h1, h2, h3, h4, h5, h6, p, li) {
    color: inherit;
}

.hero-block .block-content-stack > :not(.preheading) + .hero-block__subheading {
    margin-top: clamp(1.25rem, 2.4vw, 2rem);
    margin-block-start: clamp(1.25rem, 2.4vw, 2rem);
}

@media (max-width: 781px) {
    .hero-block {
        --hero-min-height: 32rem;
    }

    .hero-block::before {
        background:
            linear-gradient(90deg, rgba(0, 0, 0, 0.68) 0%, rgba(0, 0, 0, 0.42) 50%, rgba(0, 0, 0, 0.08) 100%),
            linear-gradient(180deg, rgba(0, 0, 0, 0.22) 0%, rgba(0, 0, 0, 0.08) 46%, rgba(0, 0, 0, 0.18) 100%);
    }

    .hero-block__content {
        --hero-content-group-gap: 1.75rem;
        min-height: auto;
    }

    .hero-block__content,
    .hero-block__content-bottom {
        max-width: none;
    }

    .hero-block__content-bottom {
        margin-top: 0;
    }
}
