/* Springs-style Dynamic Carousel Section - 3 Row Scrolling */
.spring-carousel-section {
    position: relative;
    width: 100%;
    min-height: 100vh;
    overflow: hidden;
    background: var(--carousel-bg);
    color: var(--carousel-text);
    isolation: isolate;
}

.spring-three-row-wrap {
    position: absolute;
    inset: -10vh -18vw -10vh -18vw;
    z-index: 1;
    /*overflow: hidden;*/
    inset: -40vh -16vw 20vh -18vw;
    transform: rotate(-18deg);
}

.spring-carousel-row {
    position: absolute;
    left: -8vw;
    right: -8vw;
    height: 50%;
    overflow: hidden;
}

.spring-carousel-row.row-one {
    top: 0%;
}

.spring-carousel-row.row-two {
    top: 50%;
}

.spring-carousel-row.row-three {
    top: 100%;
}

.spring-carousel-track {
    display: flex;
    align-items: center;
    gap: 32px;
    width: max-content;
    height: 100%;
    will-change: transform;
}

.row-one .spring-carousel-track {
    animation: springCarouselMoveLeft var(--carousel-speed) linear infinite;
}

.row-two .spring-carousel-track {
    animation: springCarouselMoveRight calc(var(--carousel-speed) * 1.15) linear infinite;
    transform: translateX(-50%);
}

.row-three .spring-carousel-track {
    animation: springCarouselMoveLeft calc(var(--carousel-speed) * .92) linear infinite;
}

.spring-carousel-card {
    width: 250px ;
    height: var(--carousel-card-h);
    max-height: 92%;
    flex: 0 0 auto;
    overflow: hidden;
    position: relative;
    background: #102f22;
    box-shadow: 0 38px 80px rgba(0, 0, 0, .24);
    border-radius: 0;
}

.spring-carousel-card a {
    display: block;
    width: 100%;
    height: 100%;
    color: inherit;
}

.spring-carousel-card img,
.spring-carousel-card video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transform: rotate(18deg) scale(1.30);
    filter: saturate(.95) contrast(1.02);
}

.row-one .spring-card-1 { margin-top: 20px; }
.row-one .spring-card-2 { margin-top: -25px; }
.row-one .spring-card-3 { margin-top: 8px; }
.row-one .spring-card-4 { margin-top: -18px; }
.row-one .spring-card-5 { margin-top: 18px; }
.row-one .spring-card-6 { margin-top: -10px; }

.row-two .spring-card-1 { margin-top: -10px; }
.row-two .spring-card-2 { margin-top: 24px; }
.row-two .spring-card-3 { margin-top: -20px; }
.row-two .spring-card-4 { margin-top: 16px; }
.row-two .spring-card-5 { margin-top: -28px; }
.row-two .spring-card-6 { margin-top: 14px; }

.row-three .spring-card-1 { margin-top: 24px; }
.row-three .spring-card-2 { margin-top: -14px; }
.row-three .spring-card-3 { margin-top: 20px; }
.row-three .spring-card-4 { margin-top: -24px; }
.row-three .spring-card-5 { margin-top: 12px; }
.row-three .spring-card-6 { margin-top: -8px; }

.spring-card-caption {
    position: absolute;
    left: 22px;
    right: 22px;
    bottom: 20px;
    z-index: 2;
    color: #fff;
    text-shadow: 0 4px 18px rgba(0, 0, 0, .55);
    transform: rotate(18deg);
    transform-origin: left bottom;
}

.spring-card-caption strong {
    display: block;
    font-size: 18px;
    font-weight: 900;
}

.spring-card-caption span {
    display: block;
    margin-top: 3px;
    font-size: 13px;
    opacity: .88;
}

.spring-carousel-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    background:
        radial-gradient(circle at 18% 20%, rgba(35, 126, 116, .45), transparent 30%),
        radial-gradient(circle at 90% 10%, rgba(32, 93, 52, .70), transparent 34%),
        linear-gradient(90deg, rgba(0, 55, 48, .72), var(--carousel-overlay) 46%, rgba(8, 64, 36, .80));
    pointer-events: none;
}

.spring-carousel-copy {
    position: absolute;
    z-index: 4;
    left: 17%;
    top: 55%;
    max-width: 470px;
    color: rgba(255, 255, 255, .86);
}

.spring-carousel-copy p {
    margin: 0;
    font-size: 22px;
    line-height: 1.35;
    font-weight: 500;
}

.spring-carousel-title {
    position: absolute;
    z-index: 4;
    right: 4%;
    bottom: 8%;
    max-width: 760px;
    color: var(--carousel-text);
}

.spring-carousel-title h2 {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: clamp(78px, 9vw, 170px);
    line-height: .88;
    letter-spacing: -.055em;
    font-weight: 400;
    margin: 0;
}

.spring-carousel-title p {
    max-width: 520px;
    margin: 22px 0 0;
    font-size: 18px;
    line-height: 1.5;
    color: rgba(255, 255, 255, .78);
}

.spring-scroll-icon {
    position: absolute;
    left: 70px;
    bottom: 66px;
    z-index: 5;
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .72);
    border-radius: 999px;
    color: var(--carousel-text);
    text-decoration: none;
    font-size: 22px;
    line-height: 1;
}

@keyframes springCarouselMoveLeft {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}

@keyframes springCarouselMoveRight {
    from {
        transform: translateX(-50%);
    }
    to {
        transform: translateX(0);
    }
}

@media (max-width: 1100px) {
    .spring-three-row-wrap {
        inset: -8vh -35vw -8vh -35vw;
    }

    .spring-carousel-card {
        width: 310px;
        height: 430px;
    }

    .spring-carousel-copy {
        left: 30px;
        top: 48%;
        max-width: 420px;
    }

    .spring-carousel-title {
        right: 30px;
        bottom: 80px;
    }

    .spring-carousel-title h2 {
        font-size: 82px;
    }
}

@media (max-width: 760px) {
    .spring-carousel-section {
        min-height: 820px;
    }

    .spring-three-row-wrap {
        inset: -6vh -82vw -6vh -82vw;
        transform: rotate(-16deg);
    }

    .spring-carousel-card {
        width: 240px;
        height: 330px;
    }

    .spring-carousel-card img,
    .spring-carousel-card video {
        transform: rotate(16deg) scale(1.28);
    }

    .spring-carousel-copy {
        top: 44%;
        left: 22px;
        right: 22px;
    }

    .spring-carousel-copy p {
        font-size: 18px;
    }

    .spring-carousel-title {
        left: 22px;
        right: 22px;
        bottom: 90px;
    }

    .spring-carousel-title h2 {
        font-size: 58px;
    }

    .spring-scroll-icon {
        left: 22px;
        bottom: 30px;
    }
}
