.atsea-logo-carousel {
    --atsea-visible: 5;
    --atsea-gap: 24px;
    --atsea-speed: 24s;
    --atsea-shift: -50%;
    width: 100%;
}

.atsea-logo-title {
    margin: 0 0 28px;
    line-height: 1.2;
}

.atsea-logo-viewport {
    width: 100%;
    overflow: hidden;
    position: relative;
}

.atsea-logo-track {
    display: flex;
    gap: var(--atsea-gap);
    width: max-content;
    animation: atseaLogoScroll var(--atsea-speed) linear infinite;
    will-change: transform;
}

.atsea-logo-set {
    display: flex;
    gap: var(--atsea-gap);
    flex: 0 0 auto;
}

.atsea-logo-carousel[data-pause-hover="true"] .atsea-logo-viewport:hover .atsea-logo-track,
.atsea-logo-carousel .atsea-logo-viewport:focus-within .atsea-logo-track {
    animation-play-state: paused;
}

/*
 * De breedte komt uit JS (--atsea-item-w), berekend op de werkelijke breedte van
 * de viewport. De oude waarde gebruikte 100vw, waardoor de logo's in een smalle
 * Elementor-kolom veel te breed werden.
 */
.atsea-logo-item {
    flex: 0 0 var(--atsea-item-w, 200px);
    max-width: 260px;
    min-width: 120px;
    height: 120px;
    padding: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    background: #fff;
}

.atsea-logo-item a {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.atsea-logo-item a:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 3px;
}

.atsea-logo-item img {
    width: 100%;
    max-width: 170px;
    max-height: 70px;
    height: auto;
    object-fit: contain;
    display: block;
}

@keyframes atseaLogoScroll {
    from { transform: translate3d(0, 0, 0); }
    to   { transform: translate3d(var(--atsea-shift), 0, 0); }
}

@media (max-width: 1024px) {
    .atsea-logo-carousel { --atsea-visible: var(--atsea-visible-tablet, 3); }
}

@media (max-width: 767px) {
    .atsea-logo-carousel { --atsea-visible: var(--atsea-visible-mobile, 2); }
    .atsea-logo-item { padding: 16px; }
}

/* Geen beweging: de logo's blijven staan en zijn handmatig te scrollen. */
@media (prefers-reduced-motion: reduce) {
    .atsea-logo-track { animation: none; }
    .atsea-logo-viewport {
        overflow-x: auto;
        scroll-snap-type: x proximity;
    }
    .atsea-logo-item { scroll-snap-align: start; }
}
