.topcar-customer-gallery {
    background: #101010;
    color: #fff;
    overflow: hidden;
    padding: 80px 0;
}

.topcar-customer-gallery__head {
    max-width: 960px;
    margin-bottom: 32px;
}

.topcar-customer-gallery__head .topcar-intro-title {
    color: #f7c600;
}

.topcar-customer-gallery__head .topcar-title {
    color: #fff;
    margin-bottom: 12px;
    font-size: clamp(36px, 4vw, 58px);
}

.topcar-customer-gallery__head p {
    color: rgba(255,255,255,.72);
    font-size: 20px;
    line-height: 1.7;
    margin: 0;
}

.topcar-customer-gallery__viewport {
    position: relative;
}

.topcar-customer-gallery__track {
    display: flex;
    gap: 18px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding: 8px 4px 18px;
    scrollbar-width: none;
}

.topcar-customer-gallery__track::-webkit-scrollbar {
    display: none;
}

.topcar-customer-gallery__item {
    position: relative;
    flex: 0 0 20%;
    aspect-ratio: 16 / 9;
    border-radius: 22px;
    overflow: hidden;
    scroll-snap-align: start;
    background: #222;
    box-shadow: 0 18px 40px rgba(0,0,0,.35);
}

.topcar-customer-gallery__item::after {
    content: "";
    position: absolute;
    inset: 0;
    border: 1px solid rgba(255,255,255,.14);
    border-radius: inherit;
    pointer-events: none;
}

.topcar-customer-gallery__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .45s ease, filter .45s ease;
}

.topcar-customer-gallery__item:hover .topcar-customer-gallery__image {
    transform: scale(1.06);
    filter: brightness(1.08);
}

.topcar-customer-gallery__viewport {
    position: relative;
    overflow: hidden;
    margin-left: calc((100vw - 100%) / -2);
    margin-right: calc((100vw - 100%) / -2);
}

.topcar-customer-gallery__viewport::before,
.topcar-customer-gallery__viewport::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    z-index: 3;
    width: 120px;
    pointer-events: none;
}

.topcar-customer-gallery__viewport::before {
    left: 0;
    background: linear-gradient(90deg, #101010 0%, rgba(16,16,16,0) 100%);
}

.topcar-customer-gallery__viewport::after {
    right: 0;
    background: linear-gradient(270deg, #101010 0%, rgba(16,16,16,0) 100%);
}

.topcar-customer-gallery__track {
    display: flex;
    width: max-content;
    gap: 18px;
    padding: 8px 0 18px;
    animation: topcarGalleryMarquee 58s linear infinite;
    will-change: transform;
}

.topcar-customer-gallery__viewport:hover .topcar-customer-gallery__track {
    animation-play-state: paused;
}

.topcar-customer-gallery__item {
    position: relative;
    flex: 0 0 260px;
    aspect-ratio: 16 / 9;
    border-radius: 22px;
    overflow: hidden;
    background: #222;
    box-shadow: 0 18px 40px rgba(0,0,0,.35);
}

@keyframes topcarGalleryMarquee {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(calc(-50% - 9px));
    }
}

@media (max-width: 991px) {
    .topcar-customer-gallery__item {
        flex-basis: 240px;
        border-radius: 18px;
    }

    .topcar-customer-gallery__track {
        animation-duration: 52s;
    }
}

@media (max-width: 575px) {
    .topcar-customer-gallery__viewport::before,
    .topcar-customer-gallery__viewport::after {
        width: 54px;
    }

    .topcar-customer-gallery__item {
        flex-basis: 250px;
    }

    .topcar-customer-gallery__track {
        gap: 14px;
        animation-duration: 46s;
    }

    @keyframes topcarGalleryMarquee {
        from {
            transform: translateX(0);
        }

        to {
            transform: translateX(calc(-50% - 7px));
        }
    }
}


@media (max-width: 991px) {
    .topcar-customer-gallery {
        padding: 64px 0;
    }

    .topcar-customer-gallery__item {
        flex-basis: 34%;
        border-radius: 18px;
    }
}

@media (max-width: 575px) {
    .topcar-customer-gallery {
        padding: 52px 0;
    }

    .topcar-customer-gallery__head {
        margin-bottom: 22px;
    }

    .topcar-customer-gallery__head p {
        font-size: 14px;
    }

    .topcar-customer-gallery__item {
        flex-basis: 78%;
        border-radius: 18px;
    }

    .topcar-gallery-nav {
        display: none;
    }
}