.section--customer-logos {
    overflow: hidden;
    overflow-x: hidden; /* FIX: Guarantee horizontal containment */
    background-color: var(--scheme-bg, #ffffff);
    color: var(--scheme-text, #313a4c);
}
.section--customer-logos.alignfull {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    max-width: 100vw;
    box-sizing: border-box;
    overflow-x: hidden; /* FIX: Added to enforce horizontal boundaries */
}

.customer-logos__wrap {
    max-width: 100%;
    margin: 0 auto;
}

.customer-logos__header {
    text-align: center; 
    margin-bottom: 10px; 
    max-width: 1540px; 
    margin-left: auto; 
    margin-right: auto; 
    padding: 0 20px;
}

.customer-logos__track-container {
    width: 100%;
    overflow: hidden;
    position: relative;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.customer-logos__track {
    display: flex;
    align-items: center;
    gap: 20px; 
    width: max-content; 
    animation: scrollLogos 200s linear infinite; 
}

.customer-logos__track:hover {
    animation-play-state: paused;
}

.customer-logo-item {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 150px;
    height: 80px;
}

.has-colour-bg .customer-logo-item {
    background-color: #ffffff;
    border-radius: 12px;
    padding: 10px;
    width: 170px;
    height: 90px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.has-colour-bg .customer-logo-item:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.14);
    transform: translateY(-2px);
}

.has-colour-bg .customer-logo-item img {
    max-width: 82%;
    max-height: 68%;
}

.customer-logo-item img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: all 0.3s ease;
    display: block;
}

.customer-logo-item a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    text-decoration: none;
    border: none;
}

.customer-logo-item a:hover img {
    transform: scale(1.1);
}

@keyframes scrollLogos {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

@media (max-width: 768px) {
    .customer-logos__track {
        gap: 40px;
        animation-duration: 200s; 
    }
    .customer-logo-item {
        width: 100px;
        height: 60px;
    }

    .has-colour-bg .customer-logo-item {
        width: 120px;
        height: 70px;
        padding: 10px 16px;
    }
}