/********************
* PROMO BAND - partials/components/promo-band.php *
********************/

.promo-band {
    --promo-band-duration: 40s; /* overwritten by promo-band.js based on width */
    display: flex;
    align-items: center;
    width: 100%;
    height: 100px;
    overflow: hidden;
    background-color: transparent; /* takes the background of the section it's in */
    border-top: 1px solid #8c8c8c;
    border-bottom: 1px solid #8c8c8c;
    color: #000;
    font-family: 'Graphik', sans-serif;
    font-weight: 300;
    font-size: 42px;
    line-height: 1;
    text-decoration: none;
}

.promo-band:hover,
.promo-band:focus {
    color: #000;
    text-decoration: none;
}

.promo-band__list {
    flex: none;
    display: flex;
    align-items: center;
    white-space: nowrap;
    animation: promo-band-scroll var(--promo-band-duration) linear infinite;
}

/* Padding rather than margin: a margin would collapse through the section and show the page background */
.promo-band-wrapper--top {
    padding-top: 60px;
}

.promo-band.is-paused .promo-band__list {
    animation-play-state: paused;
}

.promo-band__sep {
    margin: 0 0.3em;
}

@keyframes promo-band-scroll {
    to {
        transform: translateX(-100%);
    }
}

@media (max-width: 767px) {
    .promo-band {
        height: 70px;
        font-size: 28px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .promo-band__list {
        animation: none;
    }
}
