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

.hero {
    isolation: isolate;
    overflow: hidden;
    position: relative;
}

.hero .background {
    display: block;
    position: absolute;
    inset: 0;
    z-index: -1;
    margin: 0;
    overflow: hidden;
}

.hero:has(.background)::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background-color: #FCF6F3B3;
}

.hero .background img {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 0;
    object-fit: cover;
}

.hero:has(.background) :is(h1, p, .cms-text, .subtitle) {
    color: #2E2230;
}

.hero:has(.background) h1 em {
    color: #86375A;
}

@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;
    flex-direction: column;
    align-items: flex-start;
    padding: 4rem min(5%, 2rem);
}

.cms-content > .hero:not(:has(.background)) {
    background: radial-gradient(50% 70% at 80% 45%, #F3D3CF 0%, #FCF6F300 100%), var(--pico-background-color);
}

.hero .first {
    text-align: start;
    width: 100%;
}

.hero .second {
    display: block;
    width: 100%;
    margin: auto;
}

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

.hero .subtitle {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: fit-content;
    margin-bottom: 1.5rem;
    padding: 0.375rem 1rem;
    color: var(--pico-primary);
    background-color: #FFFFFFB3;
    border: 1px solid #A2456B33;
    border-radius: 999px;
    font-family: var(--pico-font-family-sans-serif);
    font-size: calc(var(--pico-font-size) * 0.8);
    font-weight: 500;
}

.hero .subtitle::before {
    content: "✦";
    flex: none;
    font-size: 0.8em;
}

.hero p {
    color: var(--pico-muted-color);
    line-height: 1.7;
    font-size: var(--pico-font-size);
    max-width: 36rem;
}

.hero .actions {
    padding: 1.5rem 0 0;
}

.hero .btn {
    margin: 0.5rem 0.75rem 0.5rem 0;
}

.hero picture {
    margin-top: 3rem;
}

.hero .second:not(.multiple) picture {
    display: block;
    position: relative;
    isolation: isolate;
    width: fit-content;
    margin: 3rem auto 0;
    padding: 0;
}

.hero .second:not(.multiple) picture::before,
.hero .second:not(.multiple) picture::after {
    content: "";
    position: absolute;
    border-radius: 999px;
}

.hero .second:not(.multiple) picture::before {
    z-index: -1;
    inset: -0.875rem;
    border: 1px solid #A2456B59;
}

.hero .second:not(.multiple) picture::after {
    z-index: -2;
    inset: 10% -12% -6% 14%;
    background: radial-gradient(closest-side, #F3D3CF 0%, #F3D3CF00 100%);
    filter: blur(1rem);
}

.hero .second img {
    display: block;
}

.hero .second:not(.multiple) img {
    aspect-ratio: 2 / 3;
    max-height: 36rem;
    object-fit: cover;
    border-radius: 999px;
}

.hero .second.multiple {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(12rem, 100%), 1fr));
    gap: 1rem;
    max-width: 54rem;
    margin-top: 3rem;
}

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

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

.hero .second.multiple picture {
    aspect-ratio: 4 / 3;
    border-radius: var(--pico-border-radius);
}

.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: 768px) {
    .hero .container {
        padding: 6rem min(5%, 2rem);
    }

    .hero h1 {
        font-size: calc(var(--pico-font-size) * 4.5);
    }

    .hero p {
        font-size: calc(var(--pico-font-size) * 1.1);
    }
}

@media screen and (min-width: 992px) {
    .hero .container:has(> .first + .second:not(.multiple)) {
        display: grid;
        grid-template-columns: 7fr 5fr;
        align-items: center;
        gap: 4rem;
    }

    .hero .first + .second:not(.multiple) picture {
        margin: 1rem 1rem 1rem auto;
    }
}

@media screen and (min-width: 1200px) {
    .hero:has(.background)::after {
        background: linear-gradient(90deg, #FCF6F3E6 0%, #FCF6F3B3 45%, #FCF6F300 65%);
    }

    .hero:has(.background) .container {
        padding-block: 9rem;
    }

    .hero:has(.background) .first {
        max-width: min(31vw, 28rem);
    }
}

