/* Brand Marquee — two auto-scrolling logo rows. Neutral styling (white chips);
 * section background / heading colour is set by the consuming theme/skin. */

.brand-marquee-section {
    overflow: hidden;
}

.brand-marquee-rows {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 32px;
}

.brand-marquee-row {
    overflow: hidden;
    -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
    mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
}

.brand-marquee-track {
    display: flex;
    gap: 20px;
    width: max-content;
    animation: brand-marquee-scroll 50s linear infinite;
}

.brand-marquee-row--reverse .brand-marquee-track {
    animation-direction: reverse;
}

/* pause on hover so a visitor can read a logo */
.brand-marquee-row:hover .brand-marquee-track {
    animation-play-state: paused;
}

.brand-marquee-logo {
    flex: 0 0 auto;
    width: 180px;
    height: 96px;
    background: #fff;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px 24px;
    box-sizing: border-box;
}

.brand-marquee-logo img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

.brand-marquee-logo--empty {
    color: #9aa5b1;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

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

/* editor preview: don't animate (static rows so the picker stays usable) */
.brand-marquee-rows--static .brand-marquee-track {
    animation: none;
    flex-wrap: wrap;
}

@media (max-width: 767px) {
    .brand-marquee-logo {
        width: 130px;
        height: 72px;
        padding: 12px 16px;
    }
    .brand-marquee-rows {
        gap: 14px;
    }
    .brand-marquee-track {
        gap: 14px;
    }
}
