/* Logo Ticker — frontend styles */

.logo-ticker {
	width: 100%;
	overflow: hidden;
	position: relative;
	/* Prevent any vertical padding from sneaking in via theme styles. */
	padding-top: 0;
	padding-bottom: 0;
}

.logo-ticker__track {
	display: flex;
	flex-wrap: nowrap;
	align-items: center;
	width: max-content;
	will-change: transform;
}

.logo-ticker__item {
	flex: 0 0 auto;
	padding: 0 30px;
	display: flex;
	align-items: center;
	justify-content: center;
	/* Centers the image vertically within the row. */
	min-height: 50px;
}

.logo-ticker__item img {
	max-height: 50px;
	width: auto;
	height: auto;
	display: block;
	user-select: none;
	-webkit-user-drag: none;
}

/* Animation: track shifts rightward (left-to-right motion). */
@keyframes logo-ticker-scroll-ltr {
	from { transform: translate3d(-50%, 0, 0); }
	to   { transform: translate3d(0, 0, 0); }
}

.logo-ticker.is-running .logo-ticker__track {
	animation-name: logo-ticker-scroll-ltr;
	animation-timing-function: linear;
	animation-iteration-count: infinite;
	/* Duration is set inline by JS based on content width and speed. */
}

/* Respect users who prefer reduced motion. */
@media (prefers-reduced-motion: reduce) {
	.logo-ticker.is-running .logo-ticker__track {
		animation: none;
		transform: none;
	}
}
