/* Brand logo infinite ticker */
.brand-scroll {
	width: 100%;
	background: #fff;
	border-bottom: 1px solid #e5ddcf;
	padding: 14px 0;
	overflow: hidden;
}

.brand-scroll__viewport {
	width: 100%;
	overflow: hidden;
	mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
	-webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
}

.brand-scroll__track {
	display: flex;
	width: max-content;
	animation: brand-scroll-marquee var(--brand-duration, 40s) linear infinite;
	will-change: transform;
}

.brand-scroll:hover .brand-scroll__track {
	animation-play-state: paused;
}

.brand-scroll__group {
	display: flex;
	align-items: center;
	flex-shrink: 0;
	gap: 20px;
	padding-right: 20px;
}

.brand-scroll__item {
	flex: 0 0 auto;
	width: auto;
	height: 80px;
	margin: 0;
	display: flex;
	align-items: center;
	justify-content: center;
}

.brand-scroll__item img {
	display: block;
	width: auto !important;
	height: 72px !important;
	max-width: none !important;
	max-height: 72px !important;
	object-fit: contain;
}

.brand-scroll__link {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 100%;
	color: inherit;
	text-decoration: none;
	cursor: pointer;
	transition: opacity 180ms ease, transform 180ms ease;
}

.brand-scroll__link:hover,
.brand-scroll__link:focus-visible {
	opacity: 0.78;
	transform: scale(1.08);
}

.brand-scroll__link:focus-visible {
	outline: 2px solid #b88932;
	outline-offset: 4px;
}

@keyframes brand-scroll-marquee {
	from {
		transform: translateX(0);
	}
	to {
		transform: translateX(calc(-1 * var(--brand-shift, 50%)));
	}
}

@media (prefers-reduced-motion: reduce) {
	.brand-scroll__track {
		animation: none;
	}

	.brand-scroll__viewport {
		overflow-x: auto;
	}
}

@media (max-width: 767px) {
	.brand-scroll {
		padding: 16px 0;
	}

	.brand-scroll__group {
		gap: 14px;
		padding-right: 14px;
	}

	.brand-scroll__item {
		height: 64px;
	}

	.brand-scroll__item img {
		height: 56px;
	}
}
