.slm-marquee {
    --slm-duration: 40s;
    --slm-height: 90px;
    --slm-gap: 60px;
    position: relative;
    width: 100%;
    overflow: hidden;
    box-sizing: border-box;
}

.slm-track {
    display: flex;
    width: max-content;
    animation: slm-scroll var(--slm-duration) linear infinite;
    will-change: transform;
}

.slm-track.slm-right {
    animation-name: slm-scroll-right;
}

.slm-set {
    display: flex;
    align-items: center;
    gap: var(--slm-gap);
    flex-shrink: 0;
    padding-right: var(--slm-gap);
}

.slm-logo {
    width: 180px;
    height: var(--slm-height);
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 180px;
    text-decoration: none;
}

.slm-logo-img {
    display: block;
    width: auto;
    max-width: 180px;
    height: auto;
    max-height: var(--slm-height);
    object-fit: contain;
}

.slm-monochrome .slm-logo-img {
    filter: grayscale(1);
}

.slm-fade::before,
.slm-fade::after {
    content: "";
    position: absolute;
    z-index: 2;
    top: 0;
    bottom: 0;
    width: 8%;
    pointer-events: none;
}

.slm-fade::before {
    left: 0;
    background: linear-gradient(to right, rgba(255,255,255,1), rgba(255,255,255,0));
}

.slm-fade::after {
    right: 0;
    background: linear-gradient(to left, rgba(255,255,255,1), rgba(255,255,255,0));
}

.slm-pause:hover .slm-track {
    animation-play-state: paused;
}

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

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

@media (max-width: 767px) {
    .slm-logo {
        width: 140px;
        flex-basis: 140px;
    }

    .slm-logo-img {
        max-width: 140px;
    }

    .slm-set {
        gap: calc(var(--slm-gap) * .7);
        padding-right: calc(var(--slm-gap) * .7);
    }
}

@media (prefers-reduced-motion: reduce) {
    .slm-track {
        animation: none !important;
        transform: none !important;
    }
}
