/* Prototype B — Girard-Perregaux–style collections rail. Removable. */

.luxanora-home-gp {
    --luxanora-gp-stage: #ebe6de;
    --luxanora-gp-ink: #141414;
    --luxanora-gp-card: #0f0f0f;
    position: relative;
    isolation: isolate;
    margin: 0;
    padding: 0 0 clamp(56px, 7vw, 96px);
    overflow: hidden;
    color: var(--luxanora-gp-ink);
    background: var(--luxanora-gp-stage);
    transition: background-color .85s cubic-bezier(.16, 1, .3, 1);
}

.luxanora-home-gp__railwrap {
    position: relative;
    z-index: 2;
    max-width: 1440px;
    margin: 0 auto;
    padding: clamp(36px, 5vw, 64px) clamp(20px, 4vw, 56px) 0;
}

.luxanora-home-gp__rail {
    display: flex;
    /* 1.5× previous clamp(14px, 1.6vw, 22px) */
    gap: clamp(21px, 2.4vw, 33px);
    overflow-x: auto;
    overflow-y: hidden;
    padding: 28px 2px 40px;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.luxanora-home-gp__rail::-webkit-scrollbar {
    display: none;
}

.luxanora-home-gp__card {
    position: relative;
    z-index: 1;
    /* 1.7× previous clamp(220px, 22vw, 280px) */
    flex: 0 0 clamp(374px, 37.4vw, 476px);
    margin: 0;
    overflow: visible;
    scroll-snap-align: start;
}

.luxanora-home-gp__link {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    height: clamp(460px, 58vw, 680px);
    padding: 0 22px 32px;
    overflow: hidden;
    color: #fff;
    text-decoration: none;
    background: var(--luxanora-gp-card);
    transform: scale(1);
    transform-origin: center center;
    transition: transform .9s cubic-bezier(.16, 1, .3, 1);
    will-change: transform;
}

.luxanora-home-gp__backdrop {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    opacity: 0;
    transform: scale(1.12);
    transition:
        opacity .85s cubic-bezier(.16, 1, .3, 1),
        transform .95s cubic-bezier(.16, 1, .3, 1);
    pointer-events: none;
}

.luxanora-home-gp__backdrop img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.luxanora-home-gp__media {
    position: absolute;
    inset: 10% 10% 18%;
    z-index: 1;
    display: grid;
    place-items: center;
    overflow: visible;
}

.luxanora-home-gp__media img {
    display: block;
    width: auto;
    max-width: 100%;
    height: 100%;
    object-fit: contain;
    transform: scale(1);
    transform-origin: center center;
    transition: transform .9s cubic-bezier(.16, 1, .3, 1);
    will-change: transform;
}

.luxanora-home-gp__name {
    position: relative;
    z-index: 2;
    display: block;
    width: 100%;
    color: #fff;
    font-family: "Luxanora Helvetica", Helvetica, sans-serif;
    /* 1.7× previous clamp(13px, 1.05vw, 15px) */
    font-size: clamp(22px, 1.785vw, 26px);
    font-weight: 400;
    letter-spacing: .06em;
    line-height: 1.3;
    text-align: center;
    text-transform: none;
    text-shadow: 0 1px 10px rgba(0, 0, 0, .45);
}

.luxanora-home-gp__card.is-active,
.luxanora-home-gp__card:focus-within {
    z-index: 4;
}

.luxanora-home-gp__card.is-active .luxanora-home-gp__link,
.luxanora-home-gp__card:focus-within .luxanora-home-gp__link {
    transform: scale(1.08);
}

.luxanora-home-gp__card.is-active .luxanora-home-gp__media img,
.luxanora-home-gp__card:focus-within .luxanora-home-gp__media img {
    /* Extra zoom beyond the card scale so the product grows more than the frame */
    transform: scale(1.14);
}

.luxanora-home-gp__card.is-active .luxanora-home-gp__backdrop,
.luxanora-home-gp__card:focus-within .luxanora-home-gp__backdrop {
    opacity: 1;
    transform: scale(1);
}

.luxanora-home-gp__nav {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 8px;
}

.luxanora-home-gp__btn {
    position: relative;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid rgba(20, 20, 20, .28);
    border-radius: 50%;
    background: transparent;
    color: var(--luxanora-gp-ink);
    cursor: pointer;
    transition: background-color .45s ease, border-color .45s ease, opacity .35s ease;
}

.luxanora-home-gp__btn:hover,
.luxanora-home-gp__btn:focus-visible {
    background: rgba(20, 20, 20, .06);
    border-color: rgba(20, 20, 20, .5);
    outline: none;
}

.luxanora-home-gp__btn:disabled {
    opacity: .35;
    cursor: default;
}

.luxanora-home-gp__btn span {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 10px;
    height: 10px;
    border-top: 1px solid currentColor;
    border-right: 1px solid currentColor;
}

.luxanora-home-gp__btn--prev span {
    transform: translate(-35%, -50%) rotate(-135deg);
}

.luxanora-home-gp__btn--next span {
    transform: translate(-65%, -50%) rotate(45deg);
}

@media (max-width: 700px) {
    .luxanora-home-gp__card {
        flex-basis: min(86vw, 420px);
    }

    .luxanora-home-gp__link {
        height: min(118vw, 560px);
    }
}

@media (prefers-reduced-motion: reduce) {
    .luxanora-home-gp,
    .luxanora-home-gp__link,
    .luxanora-home-gp__media img,
    .luxanora-home-gp__backdrop,
    .luxanora-home-gp__btn {
        transition: none !important;
    }

    .luxanora-home-gp__rail {
        scroll-behavior: auto;
    }

}
