/**
 * Joerrens Ticker - Frontend Styles
 *
 * Animated marquee. The --joerrens-ticker-speed variable is set inline
 * from the admin setting. Colors inherit from the theme.
 */

.syncMarquee {
	background: #FFFFFF;
	padding: 20px 30px;
	max-width: 100vw;
	white-space: nowrap;
	overflow: hidden;
}

.syncMarquee .innerWrap {
	display: inline-block;
	animation: joerrensTickerMarquee var(--joerrens-ticker-speed, 25s) linear infinite;
}

.syncMarquee .innerWrap:hover {
	animation-play-state: paused;
}

.tickerItem {
	display: inline-block;
	margin: 0 50px;
	color: inherit;
}

.tickerItem::before {
	content: "+++ ";
	font-weight: 700;
	margin-right: 8px;
}

.tickerItem::after {
	content: " +++";
	font-weight: 700;
	margin-left: 8px;
}

.tickerItem .prefix {
	font-weight: 700;
	margin-right: 6px;
}

.tickerItem a {
	color: inherit;
	text-decoration: none;
}

.tickerItem a:hover {
	text-decoration: underline;
}

@keyframes joerrensTickerMarquee {
	0%   { transform: translateX(0); }
	100% { transform: translateX(-50%); }
}

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