/**
 * @license MIT, https://opensource.org/license/MIT
 */

.hero {
    overflow: hidden;
    border-bottom: 1px solid var(--pico-contrast-border);
    position: relative;
}

.hero .background {
    position: absolute;
    inset: 0;
    z-index: -1;
}

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

@keyframes hero-zoom {
    from { transform: scale(1); }
    to { transform: scale(1.1); }
}

@media (prefers-reduced-motion: no-preference) {
    .hero .background.zoom img {
        animation: hero-zoom 10s ease-in-out infinite alternate;
    }
}

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

.hero .first {
    text-align: center;
    max-width: 900px;
    margin: auto;
}

.hero .second {
    display: none;
}

.hero .first:has(+ .second) {
    margin: 0 2rem;
}

.hero .first:has(+ .second),
.hero .first:has(+ .second) h1 {
    text-align: start;
}

.hero h1 {
    margin-top: 0;
    margin-bottom: 1.5rem;
    font-size: calc(var(--pico-font-size) * 3);
    line-height: 1;
}

.hero .subtitle {
    display: inline-block;
    margin-bottom: 1rem;
    padding: 0.35rem 1rem;
    color: var(--pico-primary-hover);
    background-color: var(--pico-primary-background);
    border: 1px solid var(--pico-primary);
    font-family: var(--pico-font-family-display);
    font-size: calc(var(--pico-font-size) * 0.7);
    text-transform: uppercase;
    letter-spacing: 0.15em;
}

.hero p {
    line-height: 1.75;
    color: var(--pico-muted-color);
    max-width: 600px;
}

.hero .first:not(:has(+ .second)) p {
    margin-inline: auto;
}

@media screen and (min-width: 576px) {
    .hero .first:has(+ .second) {
        width: 60%;
    }

    .hero .second {
        width: 40%;
        display: block;
    }

    .hero .second img {
        max-height: 100%;
        max-width: unset;
    }

    .hero .second.multiple {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(min(10rem, 100%), 1fr));
        gap: 1rem;
    }

    .hero .second.multiple.swiffy-slider {
        --swiffy-slider-item-ratio: 3 / 4;
        display: block;
    }

    .hero .second.multiple picture,
    .hero .second.multiple video {
        box-sizing: border-box;
        width: 100%;
        height: 100%;
        margin: 0;
    }

    .hero .second.multiple picture {
        aspect-ratio: 3 / 4;
    }

    .hero .second.multiple img,
    .hero .second.multiple video {
        width: 100%;
        height: 100%;
        max-width: 100%;
        max-height: none;
        object-fit: cover;
    }
}

@media screen and (min-width: 992px) {
    .hero h1 {
        font-size: calc(var(--pico-font-size) * 4);
    }

    .hero .first:has(+ .second),
    .hero .second {
        width: 50%;
    }

    .hero .container {
        padding-top: 4rem;
        padding-bottom: 4rem;
    }
}


@media screen and (min-width: 1400px) {
    .hero h1 {
        font-size: calc(var(--pico-font-size) * 5);
    }
}