.atelier-carousel {
    position: relative;
}

.atelier-carousel__mask {
    overflow: hidden;
}

.atelier-carousel__track {
    display: flex;
    gap: 1.25rem;
    overflow-x: auto;
    overflow-y: visible;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    padding: 0.25rem 2.5rem 0.5rem;
    scroll-padding-inline: 2.5rem;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.atelier-carousel__track::-webkit-scrollbar {
    display: none;
}

.atelier-carousel__track--no-smooth {
    scroll-behavior: auto !important;
    scroll-snap-type: none !important;
}

.atelier-carousel__card {
    flex: 0 0 clamp(250px, 31vw, 360px);
    scroll-snap-align: center;
    opacity: 0.62;
    transform: scale(0.94);
    transition: transform 280ms ease, opacity 280ms ease;
}

.atelier-carousel__card.is-active {
    opacity: 1;
    transform: scale(1);
}

.atelier-carousel__card img {
    transition: transform 600ms ease;
}

.atelier-carousel__card.is-active img {
    transform: scale(1.03);
}

.atelier-carousel__arrow {
    position: absolute;
    top: calc(36% - 20px);
    width: 40px;
    height: 40px;
    border-radius: 9999px;
    border: 1px solid rgba(148, 69, 40, 0.22);
    background: rgba(255, 255, 255, 0.92);
    color: #7a3920;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    cursor: pointer;
    box-shadow: 0 8px 18px -10px rgba(42, 20, 12, 0.45);
    transition: transform 200ms ease, background 200ms ease, color 200ms ease;
}

.atelier-carousel__arrow:hover {
    background: #7a3920;
    color: #fff;
    transform: scale(1.04);
}

.atelier-carousel__arrow--prev {
    left: 0.25rem;
}

.atelier-carousel__arrow--next {
    right: 0.25rem;
}

.atelier-carousel__dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.25rem;
}

.atelier-carousel__dot {
    width: 24px;
    height: 3px;
    border: 0;
    border-radius: 9999px;
    background: #d7c8c1;
    cursor: pointer;
    transition: width 220ms ease, background 220ms ease;
}

.atelier-carousel__dot.is-active {
    width: 40px;
    background: #7a3920;
}

@media (max-width: 767px) {
    .atelier-carousel__track {
        gap: 0.9rem;
        padding: 0.25rem 10vw 0.5rem;
        scroll-padding-inline: 10vw;
    }

    .atelier-carousel__card {
        flex-basis: 76vw;
        opacity: 0.5;
    }

    .atelier-carousel__arrow {
        width: 34px;
        height: 34px;
        top: calc(34% - 17px);
    }

    .atelier-carousel__dot {
        width: 18px;
    }

    .atelier-carousel__dot.is-active {
        width: 32px;
    }
}
