@keyframes logo-scroll {
	from { transform: translateX(0); }
	to   { transform: translateX(-50%); }
}

.logo-strip {
	display: flex;
	flex-direction: column;
	align-items: center;
	background-color: #f8f3ec;
	border-radius: 1rem;
	margin: 0;
	padding: 1.5rem 1rem;
	gap: 1rem;
	overflow: hidden;
}

.logo-strip__heading {
	font-family: 'The Seasons', the-seasons, serif;
	font-size: 3rem;
	color: #2c035a;
	text-transform: capitalize;
	text-align: center;
	margin: 0 0 1rem 0;
	line-height: 1.2;
}

.logo-strip__viewport {
	overflow: hidden;
	width: 100%;
	/* Fade edges so logos dissolve rather than hard-clip */
	mask-image: linear-gradient(
		to right,
		transparent 0%,
		black 5%,
		black 95%,
		transparent 100%
	);
}

.logo-strip__track {
	display: flex;
	align-items: center;
	gap: 5rem;
	width: max-content;
	animation: logo-scroll 40s linear infinite;
}

.logo-strip__track:hover {
	animation-play-state: paused;
}

.logo-strip__logo {
	flex: 0 0 auto;
	max-height: 2.5rem;
	width: auto;
	filter: grayscale(100%);
	opacity: 0.65;
}

@media (prefers-reduced-motion: reduce) {
	.logo-strip__track {
		animation: none;
		flex-wrap: wrap;
		justify-content: center;
		width: 100%;
	}
}

@media (max-width: 768px) {
	.logo-strip__heading {
		font-size: 2rem;
	}

	.logo-strip__logo {
		max-height: 2rem;
	}
}
