.logos-marquee-block {
	position: relative;
	overflow: hidden;
}

.logos-marquee-wrapper {
	position: relative;
	width: 100%;
	overflow: hidden;
	/* Fade logos at edges using mask */
	/* mask-image: linear-gradient(
		to right,
		transparent 0%,
		black 10%,
		black 90%,
		transparent 100%
	);
	-webkit-mask-image: linear-gradient(
		to right,
		transparent 0%,
		black 10%,
		black 90%,
		transparent 100%
	); */
}

.logos-marquee-track {
	display: flex;
	align-items: center;
	gap: 3rem;
	will-change: transform;
	width: fit-content;
}

.logos-marquee-item {
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 0;
}

.logos-marquee-image {
	display: block;
	height: auto;
	max-height: 150px;
	width: auto;
	max-width: 250px;
	object-fit: contain;
	filter: grayscale(100%) opacity(1);
	transition: filter 0.3s ease;
}

/* Desktop: Show approximately 8 logos in viewport */
@media (min-width: 1024px) {
	.logos-marquee-item {
		flex: 0 0 auto;
	}
	
	.logos-marquee-image {
		max-width: 200px;
		max-height: 120px;
		width: auto;
		height: auto;
		object-fit: contain;
	}
}

.logos-marquee-item:hover .logos-marquee-image {
	filter: grayscale(0%) opacity(1);
}

/* Mask elements are no longer needed - using CSS mask-image instead */
.logos-marquee-mask {
	display: none;
}

/* Mobile: Show 3 logos at a time */
@media (max-width: 768px) {
	.logos-marquee-track {
		gap: 2rem;
	}

	.logos-marquee-item {
		width: calc((100% - (2 * 2rem)) / 3); /* 3 logos with 2 gaps */
		max-width: 120px;
		min-width: 80px;
	}

	.logos-marquee-image {
		width: 100%;
		max-width: 150px;
		max-height: 75px;
		object-fit: contain;
	}
}