﻿.cust-carousel {
    position: relative;
    max-width: 1000px;
    margin: 40px auto;
    padding: 0 56px;
}

.carousel__track {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

    .carousel__track::-webkit-scrollbar {
        display: none;
    }

.carousel__card {
    flex: 0 0 calc((100% - 40px) / 3); /* 3 cards on desktop */
    height: 126px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px 24px;
    border: var(--border-width-1) solid var(--color-border-slate);
    border-radius: 12px;
    background: #fff;
    scroll-snap-align: start;
}

    .carousel__card img {
        max-width: 100%;
        max-height: 100%;
        object-fit: contain;
    }

.carousel__arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    height: 30px;
    border: none;
    border-radius: 50%;
    background: #eee;
    color: #777;
    font-size: 18px;
    line-height: 30px;
    text-align: center;
    cursor: pointer;
    padding: 0;
}

    .carousel__arrow:hover {
        background: #ddd;
    }

    .carousel__arrow:disabled {
        opacity: .4;
        cursor: default;
    }

.carousel__arrow--prev {
    left: 12px;
}

.carousel__arrow--next {
    right: 12px;
}

/* Mobile: one card at a time */
@media (max-width: 768px) {
    .cust-carousel {
        padding: 0 44px;
    }

    .carousel__card {
        flex: 0 0 100%;
        height: 110px;
    }
}
