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

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

.hero .background {
    position: absolute;
    inset: 0;
    margin: 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;
    flex-direction: column;
    align-items: flex-start;
    padding: 5rem min(5%, 2rem) 4rem;
}

.hero:has(.background),
.cms-content > .hero:not(:has(.background)) {
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24'%3E%3Cpath d='M0 24L24 0' stroke='%23C6A15B' stroke-opacity='.07' stroke-width='1'/%3E%3C/svg%3E"), #0E2A47;
}

.hero::before {
    content: "";
    position: absolute;
    inset-inline: 0;
    bottom: 0;
    height: 3px;
    background-color: var(--pico-secondary);
}

.hero:has(.background)::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(90deg, #0E2A47F7 0%, #0E2A47E0 45%, #0E2A4766 100%);
}

.hero .background img {
    filter: grayscale(0.6);
}

.hero h1 {
    color: #FFFFFF;
}

.hero :is(p, .cms-text) {
    color: #FFFFFFCC;
}

.hero .btn:first-child {
    color: var(--pico-secondary-inverse);
    background-color: var(--pico-secondary);
    border-color: var(--pico-secondary);
}

.hero .btn:first-child:hover {
    color: var(--pico-secondary-inverse);
    background-color: var(--pico-secondary-hover);
    border-color: var(--pico-secondary-hover);
}

.hero .btn:not(:first-child) {
    color: #FFFFFF;
    border-color: #FFFFFF80;
}

.hero .btn:not(:first-child):hover {
    color: var(--pico-contrast);
    border-color: #FFFFFF;
    background-color: #FFFFFF;
}

.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: 20ch;
    font-size: calc(var(--pico-font-size) * 2.75);
    font-weight: 400;
    line-height: 1.1;
}

.hero .subtitle {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    color: var(--pico-secondary);
    font-size: calc(var(--pico-font-size) * 0.75);
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.hero .subtitle::before {
    content: "";
    width: 2.5rem;
    height: 1px;
    background-color: var(--pico-secondary);
}

.hero p {
    line-height: 1.7;
    font-size: calc(var(--pico-font-size) * 0.85);
    font-weight: 400;
    max-width: 38rem;
}

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

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

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

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

.hero .second:not(.multiple) picture::after {
    content: "";
    position: absolute;
    inset: 1.25rem -1.25rem -1.25rem 1.25rem;
    z-index: -1;
    border: 1px solid var(--pico-secondary);
}

.hero .second img {
    display: block;
}

.hero .second:not(.multiple) img {
    aspect-ratio: 4 / 5;
    max-height: 36rem;
    object-fit: cover;
}

.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: 7.5rem min(5%, 2rem) 6rem;
    }

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

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

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

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