/* Footer partner logos — pure CSS marquee (replaces WP Carousel) */

.wd-logo-carousel {
    overflow: hidden;
    width: 100%;
    max-width: 1160px;
    margin: 0 auto 10px;
    padding: 8px 0;
    mask-image: linear-gradient(
        to right,
        transparent,
        #000 4%,
        #000 96%,
        transparent
    );
    -webkit-mask-image: linear-gradient(
        to right,
        transparent,
        #000 4%,
        #000 96%,
        transparent
    );
}

.wd-logo-track {
    display: flex;
    align-items: center;
    width: max-content;
    gap: 0;
    animation: wd-logo-scroll 45s linear infinite;
}

.wd-logo-carousel:hover .wd-logo-track {
    animation-play-state: paused;
}

.wd-logo-item {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 160px;
    height: 72px;
    padding: 0 16px;
    box-sizing: border-box;
}

.wd-logo-item img {
    display: block;
    max-width: 100%;
    max-height: 48px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: grayscale(15%);
    opacity: 0.9;
}

@keyframes wd-logo-scroll {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}

@media (prefers-reduced-motion: reduce) {
    .wd-logo-carousel {
        mask-image: none;
        -webkit-mask-image: none;
        max-width: 1160px;
        padding: 8px 16px;
    }

    .wd-logo-track {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        width: 100%;
        max-width: 1160px;
        margin: 0 auto;
        animation: none;
        gap: 8px 12px;
    }

    .wd-logo-item {
        width: 140px;
        height: 64px;
    }

    .wd-logo-item[aria-hidden="true"] {
        display: none;
    }
}
