/**
 * Joerrens Ticker - Frontend Styles
 *
 * The --joerrens-ticker-speed and --joerrens-ticker-color variables are set
 * inline on the .syncMarquee element from the admin settings.
 */

.syncMarquee {
	background: #FFFFFF;
	padding: 20px 30px;
	max-width: 100vw;
	white-space: nowrap;
	overflow: hidden;
	color: var( --joerrens-ticker-color, inherit );
}

.syncMarquee .innerWrap {
	display: inline-block;
	animation-name: joerrensTickerMarquee;
	animation-duration: var( --joerrens-ticker-speed, 25s );
	animation-timing-function: linear;
	animation-iteration-count: 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;
	}
}