/**
 * Xyod Marquee Text — infinite horizontal ticker.
 */

.xyod-marquee {
	width: 100%;
	max-width: 100%;
	overflow: hidden;
	position: relative;
	box-sizing: border-box;
	--xyod-marquee-duration: 40s;
	--xyod-marquee-gap: 0.75em;
	color: inherit;
	line-height: 1.1;
	white-space: nowrap;
}

.xyod-marquee__track {
	display: flex;
	width: max-content;
	align-items: center;
	animation: xyod-marquee-scroll var(--xyod-marquee-duration) linear infinite;
	will-change: transform;
}

.xyod-marquee--reverse .xyod-marquee__track {
	animation-direction: reverse;
}

.xyod-marquee--pause-hover:hover .xyod-marquee__track {
	animation-play-state: paused;
}

.xyod-marquee.is-filling .xyod-marquee__track {
	animation: none;
}

.xyod-marquee__group {
	display: flex;
	flex: 0 0 auto;
	align-items: center;
	white-space: nowrap;
}

.xyod-marquee__item {
	display: inline-flex;
	align-items: center;
	flex: 0 0 auto;
	color: inherit;
}

.xyod-marquee__item a,
.xyod-marquee__item a:visited {
	color: inherit;
	text-decoration: none;
}

.xyod-marquee__item a:hover {
	color: inherit;
}

.xyod-marquee__sep {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	margin-inline: var(--xyod-marquee-gap);
	line-height: 1;
	color: inherit;
}

.xyod-marquee__sep--gap {
	width: 0;
	margin-inline-end: 0;
}

.xyod-marquee__sep i,
.xyod-marquee__sep svg {
	display: block;
	width: 1em;
	height: 1em;
}

.xyod-marquee__sep svg {
	fill: currentColor;
}

.xyod-marquee--fade {
	-webkit-mask-image: linear-gradient(
		90deg,
		transparent 0,
		#000 4%,
		#000 96%,
		transparent 100%
	);
	mask-image: linear-gradient(
		90deg,
		transparent 0,
		#000 4%,
		#000 96%,
		transparent 100%
	);
}

@keyframes xyod-marquee-scroll {
	from {
		transform: translate3d(0, 0, 0);
	}
	to {
		transform: translate3d(-50%, 0, 0);
	}
}

@media (prefers-reduced-motion: reduce) {
	.xyod-marquee__track {
		animation: none;
	}
}
