/**
 * Logo carousel — horizontale marquee; logo’s max 500×300 (object-fit).
 * Logo carousel — horizontal marquee; logos max 500×300 (object-fit).
 */

.vo-customer-logos {
	--vo-logos-marquee-duration: 40s;
	width: 100%;
	margin: 0 auto;
}

.vo-customer-logos__viewport {
	overflow: hidden;
	width: 100%;
}

.vo-customer-logos__track {
	display: flex;
	flex-wrap: nowrap;
	align-items: center;
	gap: clamp(1.5rem, 4vw, 3rem);
	width: max-content;
	animation: vo-logos-marquee var(--vo-logos-marquee-duration) linear infinite;
}

.vo-customer-logos:hover .vo-customer-logos__track {
	animation-play-state: paused;
}

.vo-customer-logos__item {
	position: relative;
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	justify-content: center;
}

.vo-customer-logos__link {
	display: flex;
	align-items: center;
	justify-content: center;
	text-decoration: none;
	border: 0;
	box-shadow: none;
}

.vo-customer-logos__link:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 4px;
}

/**
 * Beperk zichtbaar box; afbeelding schaalt binnen zonder croppen.
 * Fit image inside max box without cropping.
 */
.vo-customer-logos__img {
	display: block;
	max-width: 500px;
	max-height: 300px;
	width: auto;
	height: auto;
	object-fit: contain;
}

.vo-customer-logos__sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

@keyframes vo-logos-marquee {
	from {
		transform: translateX(0);
	}

	to {
		transform: translateX(-50%);
	}
}

@media (prefers-reduced-motion: reduce) {
	.vo-customer-logos__track {
		animation: none;
		transform: none;
		flex-wrap: wrap;
		justify-content: center;
		width: 100%;
		max-width: 100%;
	}
}
