.parish-news-ticker {
    align-self: flex-start;
    width: 100%;
    overflow: hidden;
    background: var(--ticker-background);
    color: var(--ticker-color);
    border-bottom: 1px solid rgba(255, 255, 255, 0.35);
}

.parish-news-ticker__viewport {
    width: 100%;
    overflow: hidden;
}

.parish-news-ticker__track {
    display: flex;
    width: max-content;
    align-items: center;
    min-height: 42px;
    animation: parish-news-ticker-scroll var(--ticker-duration) linear infinite;
    will-change: transform;
}

.parish-news-ticker__text {
    display: block;
    flex: none;
    padding-right: 4rem;
    font-weight: 700;
    white-space: nowrap;
    line-height: 42px;
}

.parish-news-ticker:hover .parish-news-ticker__track,
.parish-news-ticker:focus-within .parish-news-ticker__track {
    animation-play-state: paused;
}

@keyframes parish-news-ticker-scroll {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

@media (prefers-reduced-motion: reduce) {
    .parish-news-ticker__track {
        animation: none;
    }
}
