
.block-hero {
    position: relative;
    isolation: isolate;
}

.block-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    background-color: var(--hero-tint-color, transparent);
    background-image: var(--hero-tint-image, none);
    opacity: calc(var(--hero-tint-opacity, 0) * var(--hero-strength-multiplier, 1));
    pointer-events: none;
}

.block-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 2;
    background: radial-gradient(
        ellipse at center,
        transparent 50%,
        rgba(0, 0, 0, calc(var(--hero-vignette-strength, 0) * var(--hero-strength-multiplier, 1))) 100%
    );
    pointer-events: none;
}

.block-hero--height-small {
    min-height: 30vh;
}

.block-hero--height-small.lcms-spacing-default.lcms-spacing-default {
    padding-top: var(--block-spacing-spacious);
    padding-bottom: var(--block-spacing-spacious);
}

.block-hero--height-medium {
    min-height: 50vh;
}

.block-hero--height-large {
    min-height: 70vh;
}

.block-hero--height-full {
    min-height: 100vh;
}

.block-hero__inner {
    position: relative;
    z-index: 3;
    width: 100%;
}

.block-hero__video-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

@media (max-width: 767px) {
    .block-hero__video-bg {
        display: none;
    }
}

@media (min-width: 768px) {
    .block-hero--has-video-bg {
        background-image: none !important;
    }
}

.block-hero__media {
    display: flex;
    align-items: center;
    justify-content: center;
}

.block-hero__embed iframe {
    width: 100%;
    height: 100%;
}

.block-hero__grid {
    display: block;
}

@media (min-width: 768px) {
    .block-hero__grid {
        display: grid;
        grid-template-columns: 3fr 2fr;
        gap: 3rem;
        align-items: center;
    }

    .block-hero__grid .block-hero__content {
        width: 100%;
    }

    .block-hero__spacer {
        display: block;
    }
}

.block-hero--minimal {
    background: var(--color-bg-primary, #ffffff);
    color: var(--color-text-primary, #101010);
}

.block-hero--minimal .block-hero-minimal__inner {
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
}

@media (min-width: 768px) {
    .block-hero--minimal .block-hero-minimal__inner {
        padding-top: 2.5rem;
        padding-bottom: 2.5rem;
    }
}

.block-hero-minimal--align-left   { text-align: left; }
.block-hero-minimal--align-center { text-align: center; }
.block-hero-minimal--align-right  { text-align: right; }

.block-hero-minimal__title {
    color: var(--color-text-primary, #101010);
    margin: 0;
}

.block-hero-minimal__subheading {
    margin-top: 0.5rem;
    max-width: 60ch;
}

.block-hero-minimal--align-center .block-hero-minimal__subheading {
    margin-left: auto;
    margin-right: auto;
}

.block-hero-minimal--align-right .block-hero-minimal__subheading {
    margin-left: auto;
}

.block-hero--entrance .block-hero__content,
.block-hero--entrance .block-hero__media {
    animation-duration: 600ms;
    animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);
    animation-fill-mode: both;
}

.block-hero--entrance .block-hero__media {
    animation-delay: 120ms;
}

.block-hero--entrance-fade-up .block-hero__content,
.block-hero--entrance-fade-up .block-hero__media {
    animation-name: lcms-hero-fade-up;
}
@keyframes lcms-hero-fade-up {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: none; }
}

.block-hero--entrance-fade-in .block-hero__content,
.block-hero--entrance-fade-in .block-hero__media {
    animation-name: lcms-hero-fade-in;
}
@keyframes lcms-hero-fade-in {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.block-hero--entrance-scale-in .block-hero__content,
.block-hero--entrance-scale-in .block-hero__media {
    animation-name: lcms-hero-scale-in;
}
@keyframes lcms-hero-scale-in {
    from { opacity: 0; transform: scale(0.96); }
    to   { opacity: 1; transform: none; }
}

.block-hero--entrance-slide-side .block-hero__content {
    animation-name: lcms-hero-slide-left;
}
.block-hero--entrance-slide-side .block-hero__media {
    animation-name: lcms-hero-slide-right;
}
@keyframes lcms-hero-slide-left {
    from { opacity: 0; transform: translateX(-24px); }
    to   { opacity: 1; transform: none; }
}
@keyframes lcms-hero-slide-right {
    from { opacity: 0; transform: translateX(24px); }
    to   { opacity: 1; transform: none; }
}

.block-hero--entrance-stagger .block-hero__content > *,
.block-hero--entrance-stagger .block-hero__media,
.block-hero--entrance-stagger-slow .block-hero__content > *,
.block-hero--entrance-stagger-slow .block-hero__media {
    animation-name: lcms-hero-fade-up;
    animation-duration: 600ms;
    animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);
    animation-fill-mode: both;
}
.block-hero--entrance-stagger .block-hero__content > *:nth-child(1) { animation-delay: 0ms; }
.block-hero--entrance-stagger .block-hero__content > *:nth-child(2) { animation-delay: 80ms; }
.block-hero--entrance-stagger .block-hero__content > *:nth-child(3) { animation-delay: 160ms; }
.block-hero--entrance-stagger .block-hero__content > *:nth-child(4) { animation-delay: 240ms; }
.block-hero--entrance-stagger .block-hero__content > *:nth-child(5) { animation-delay: 320ms; }
.block-hero--entrance-stagger .block-hero__content > *:nth-child(n+6) { animation-delay: 400ms; }

.block-hero--entrance-stagger-slow .block-hero__content > *:nth-child(1) { animation-delay: 0ms; }
.block-hero--entrance-stagger-slow .block-hero__content > *:nth-child(2) { animation-delay: 160ms; }
.block-hero--entrance-stagger-slow .block-hero__content > *:nth-child(3) { animation-delay: 320ms; }
.block-hero--entrance-stagger-slow .block-hero__content > *:nth-child(4) { animation-delay: 480ms; }
.block-hero--entrance-stagger-slow .block-hero__content > *:nth-child(5) { animation-delay: 640ms; }
.block-hero--entrance-stagger-slow .block-hero__content > *:nth-child(n+6) { animation-delay: 800ms; }

@media (prefers-reduced-motion: reduce) {
    .block-hero--entrance .block-hero__content,
    .block-hero--entrance .block-hero__content > *,
    .block-hero--entrance .block-hero__media {
        animation: none;
    }
}
