﻿
/* layout tweaks */
#hero-carousel {
    padding-top: 0 !important;
}

/* Skip link for keyboard users */
.skip-link {
    position: absolute;
    left: -9999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden
}

    .skip-link:focus {
        position: fixed;
        left: 16px;
        top: 16px;
        width: auto;
        height: auto;
        padding: 10px 14px;
        background: #000;
        color: #fff;
        border-radius: 6px;
        z-index: 2000
    }

/* Main hero */
.hero {
    position: relative;
    height: calc(100vh - 109px);
    padding-top: 0 !important;
}

    .hero.has-video {
        position: relative;
        z-index: 1;
        overflow: hidden;
    }

.bg-video-wrap {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

.bg-video-iframe {
    position: absolute;
    width: 200vw;
    height: 140dvh;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    pointer-events: none;
    border: 0;
}

/* Slides */
.main-swiper {
    height: calc(100vh - 109px);
    width: 100%;
}

    .main-swiper .swiper-slide {
        height: 100%;
        width: 100vw;
        min-width: 100vw;
        max-width: 100vw;
        flex-shrink: 0;
        display: flex;
        align-items: center;
        justify-content: flex-start;
        background-size: cover;
        background-position: center;
        position: absolute;
        top: 0;
        left: 0;
        opacity: 0;
        visibility: hidden;
        transition: opacity .8s ease-in-out, visibility .8s ease-in-out;
        will-change: opacity;
    }

    .main-swiper .swiper-slide-active {
        opacity: 1;
        visibility: visible;
        z-index: 2;
    }
    /* Add this new rule to hide the text of non-active slides */
    .main-swiper .swiper-slide:not(.swiper-slide-active) .slide-text {
        visibility: hidden;
    }

    .main-swiper .swiper-slide-prev, .main-swiper .swiper-slide-next {
        opacity: 0;
        visibility: hidden;
        z-index: 1;
    }

.overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0,0,0,.7), rgba(0,0,0,.2));
    z-index: 1;
}

.slide-content {
    position: relative;
    z-index: 2;
    max-width: 1680px;
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    height: 100%;
}


.slide-text {
    max-width: 50%;
    padding-right: 10px;
}

.slide h1 {
    color: #FFF;
    font-family: Lora,serif;
    font-size: 48px;
    font-weight: 600;
    line-height: normal;
    margin: 0 0 12px;
}

.slide p {
    margin: 0 0 32px;
    color: rgba(255,255,255,.9);
    font-size: 20px;
    line-height: 1.6;
    font-weight: 300;
}

.cta-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: #AB7B18;
    font-family: "Galano Grotesque","Hanken Grotesk",system-ui,sans-serif;
    font-size: 18px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.slide_cta {
    margin-top: 12px;
}

    .slide_cta .cta-link .cta-link__arrow {
        background: #AB7B18;
    }

        .slide_cta .cta-link .cta-link__arrow::after,
        .slide_cta .cta-link .cta-link__arrow::before {
            background: #AB7B18;
        }

.cta-link svg {
    width: 28px;
    height: 28px;
    flex: 0 0 auto;
    transition: transform .2s;
}

.cta-link:hover svg {
    transform: translateX(4px);
}

/* .swiper-slide-prev {
            margin-right: 0 !important;
        } */

/* Thumbnails container pinned on the right (desktop) */
.thumbs-wrap {
    position: absolute;
    right: 0;
    bottom: 13%;
    left: 50%;
    z-index: 10;
    overflow: visible;
}

/* IMPORTANT: tighten the strip so there’s no phantom gaps */
.thumbs-swiper {
    padding: 0; /* was 8px 12px; removing to avoid artificial gaps */
    overflow: hidden;
    width: 100%;
    display: flex;
    align-items: flex-end;
}

    .thumbs-swiper .swiper-wrapper {
        align-items: flex-end;
    }

    /* Let Swiper compute widths per slidesPerView; keep only height/aspect to maintain look */
    .thumbs-swiper .swiper-slide {
        /* removed fixed width that caused gaps: width: 260px !important; */
        height: 300px; /* visual height */
        aspect-ratio: 2 / 3; /* keeps a nice card shape */
        border-radius: 16px;
        overflow: hidden;
        position: relative;
        cursor: pointer;
        border: 2px solid transparent;
        transition: all .3s ease;
        opacity: .7;
        outline: none;
        transform-origin: bottom center;
        background: transparent;
    }

        .thumbs-swiper .swiper-slide img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            -webkit-user-drag: none;
            user-select: none;
            pointer-events: none;
        }

    .thumbs-swiper .swiper-slide-thumb-active {
        opacity: 1;
        border-radius: 16px;
        border: 2px solid #FFF;
        height: 420px; /* grows taller but width is governed by Swiper columns */
        transform-origin: bottom center;
    }

    .thumbs-swiper .swiper-slide:focus-visible {
        outline: 3px solid #D4AF37;
        outline-offset: 2px;
        border-radius: 14px;
    }

/* Controls */
.swiper-button-prev, .swiper-button-next {
    color: rgba(255,255,255,.8);
    background: rgba(255,255,255,.1);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    backdrop-filter: blur(10px);
    transition: all .2s;
}

    .swiper-button-prev:hover, .swiper-button-next:hover {
        background: rgba(255,255,255,.2);
        color: #fff;
    }

    .swiper-button-prev::after, .swiper-button-next::after {
        font-size: 16px;
        font-weight: 600;
    }

.swiper-pagination {
    bottom: 40px !important;
    display: flex;
    justify-self: anchor-center;
}

.swiper-pagination-bullet {
    background: rgba(255,255,255,.5);
    opacity: 1;
    width: 12px;
    height: 12px;
    margin: 0 6px !important;
    transition: all .3s;
    border: none;
}

.swiper-pagination-bullet-active {
    background: #fff;
    transform: scale(1.2);
}

/* Touch action */
.thumbs-swiper, .thumbs-swiper .swiper-wrapper {
    touch-action: pan-x;
}

.main-swiper, .main-swiper .swiper-wrapper {
    touch-action: pan-y;
}

/* sr-only utility */
.sr-only {
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
    clip: rect(1px,1px,1px,1px);
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
    padding: 0;
    margin: -1px;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .main-swiper .swiper-slide, .swiper-pagination-bullet {
        transition: none;
    }
}

@media screen and (max-width:1199.9px) {
    .slide-content {
        padding: 0 36px !important;
    }
}

@media screen and (min-width:1199.9px) and (max-width:1679.9px) {
    .slide-content {
        padding: 0 80px !important;
    }

    .thumbs-swiper .swiper-slide-thumb-active {
        height: 360px;
    }
}
/* Tablet down */
@media (max-width:1024px) {
    .slide h1 {
        font-size: 32px;
    }

    .slide-text {
        max-width: 50%;
    }

    .thumbs-wrap {
        left: 50%;
    }

    .thumbs-swiper .swiper-slide-thumb-active {
        height: 360px; /* grows taller but width is governed by Swiper columns */
    }

    .hero {
        height: calc(100vh - 86px);
    }

    .main-swiper {
        height: calc(100vh - 86px);
    }
}

/* Mobile */
@media (max-width:768px) {
    .slide h1 {
        color: #FFF;
        font-family: Lora,serif;
        font-size: 24px;
        font-weight: 600;
        line-height: normal;
    }

    .slide p {
        color: #FFF;
        font-family: "Helvetica Neue", Arial, sans-serif;
        font-size: 16px;
        font-weight: 500;
        line-height: 1.6;
        letter-spacing: .64px;
        margin: 0 0 16px;
    }

    .slide-text {
        max-width: 100%;
    }
    /* Thumb bar at the bottom (on top of image) */
    .thumbs-wrap {
        position: absolute;
        left: 0;
        right: 0;
        bottom: 10px;
        transform: none;
        width: 100%;
        max-width: none;
        padding: 0 12px calc(8px + env(safe-area-inset-bottom));
        background: transparent;
        z-index: 30;
        pointer-events: none;
    }

    .thumbs-swiper {
        padding: 6px 0;
        pointer-events: auto;
    }

        .thumbs-swiper .swiper-slide {
            width: auto; /* allow auto width on mobile */
            height: 60px; /* compact height */
            border-radius: 12px;
            opacity: .9;
            aspect-ratio: auto;
        }

        .thumbs-swiper .swiper-slide-thumb-active {
            border: 4px solid #FFF;
            border-radius: 18px;
            height: 94px;
            width: auto;
            opacity: 1;
        }

    .swiper-pagination {
        display: none !important;
    }

    .slide-content {
        padding: 0 16px 130px;
    }
}


