/* =========================================================================
   Homepage gallery - centre-mode slider
   -------------------------------------------------------------------------
   The rail is a native scroll container with `scroll-snap-align: center` on
   every card, so the focused card always lands dead centre. The padding on
   the track is what lets the first and last card reach the centre too.
   ========================================================================= */

.aryb-lookbook {
    background-color: var(--aryb-white);
    overflow: hidden
}

.aryb-lookbook__head {
    margin-bottom: var(--aryb-space-6)
}

.aryb-lookbook__head .aryb-heading {
    margin-bottom: 0
}

/*
 * The rail arrows are hidden on tablets for the product rails, but the
 * lookbook is centre-snapped, so the visitor needs a way to step through
 * the looks. They therefore stay visible on every screen.
 */
.aryb-lookbook .aryb-rail__head {
    flex-direction: row;
    align-items: center;
    text-align: center
}

.aryb-lookbook .aryb-lookbook__nav {
    display: flex;
    padding-bottom: 0
}

.aryb-lookbook__slider {
    position: relative
}

.aryb-lookbook__track {
    --_gslider-card: clamp(240px, 23vw, 350px);
    --_gslider-gap: clamp(1.1rem, 2.2vw, 2rem);
    position: relative;
    display: flex;
    align-items: center;
    gap: var(--_gslider-gap);
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding-inline: calc(50% - (var(--_gslider-card) / 2));
    padding-block: clamp(1rem, 2vw, 2rem)
}

.aryb-lookbook__track::-webkit-scrollbar {
    display: none
}

.aryb-lookbook__item {
    flex: 0 0 var(--_gslider-card);
    min-width: 0;
    scroll-snap-align: center;
    opacity: .34;
    transform: scale(.9);
    transition: opacity .55s var(--aryb-ease-out),transform .55s var(--aryb-ease-out)
}

.aryb-lookbook__item.is-active {
    opacity: 1;
    transform: scale(1);
    z-index: 2
}

.aryb-lookbook__media {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4 / 5;
    border-radius: 10px;
    background-color: var(--aryb-cream-deep);
    box-shadow: 0 0.75rem 2rem rgba(83, 23, 24, 0.14)
}

.aryb-lookbook__item.is-active .aryb-lookbook__media {
    box-shadow: 0 1.75rem 3.5rem rgba(83, 23, 24, 0.28)
}

.aryb-lookbook__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .9s var(--aryb-ease-out)
}

.aryb-lookbook__item:hover .aryb-lookbook__media img {
    transform: scale(1.05)
}

/* A soft scrim under the button so the label always reads. */
.aryb-lookbook__shade {
    position: absolute;
    inset: auto 0 0 0;
    height: 45%;
    pointer-events: none;
    background: linear-gradient(to top, rgba(38, 10, 11, 0.82) 0%, rgba(38, 10, 11, 0.32) 45%, rgba(38, 10, 11, 0) 100%);
    opacity: 0;
    transition: opacity var(--aryb-dur) var(--aryb-ease)
}

.aryb-lookbook__item.is-active .aryb-lookbook__shade,
.aryb-lookbook__item:hover .aryb-lookbook__shade {
    opacity: 1
}

/* The "View Product" pill that sits over the bottom of the card. */
.aryb-lookbook__cta {
    position: absolute;
    left: .85rem;
    right: .85rem;
    bottom: .85rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .45rem;
    min-height: 44px;
    padding: .6rem 1rem;
    background-color: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(4px);
    color: var(--aryb-ink);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 999px;
    font-family: var(--aryb-font-sans);
    font-size: var(--aryb-fs-micro);
    font-weight: 600;
    letter-spacing: var(--aryb-ls-medium);
    text-transform: uppercase;
    text-align: center;
    line-height: 1.2;
    box-shadow: 0 0.5rem 1.25rem rgba(38, 10, 11, 0.25);
    transition: background-color var(--aryb-dur-fast) var(--aryb-ease),color var(--aryb-dur-fast) var(--aryb-ease),border-color var(--aryb-dur-fast) var(--aryb-ease),transform var(--aryb-dur-fast) var(--aryb-ease)
}

    .aryb-lookbook__cta:hover, .aryb-lookbook__cta:focus-visible {
        background-color: var(--aryb-ary);
        border-color: var(--aryb-ary);
        color: var(--aryb-ink);
        transform: translateY(-2px)
    }

    .aryb-lookbook__cta .fa {
        font-size: 12px;
        transition: transform var(--aryb-dur-fast) var(--aryb-ease)
    }

    .aryb-lookbook__cta:hover .fa {
        transform: translateX(3px)
    }

@media (max-width: 767px) {
    .aryb-lookbook__track {
        --_gslider-card: 68vw;
    }

    .aryb-lookbook__item {
        opacity: .28
    }
}

@media (prefers-reduced-motion: reduce) {
    .aryb-lookbook__track {
        scroll-behavior: auto
    }

    .aryb-lookbook__item {
        transition: opacity .2s linear
    }
}
