/* ── CHP Logo Slider ──────────────────────────────────────────────── */

.chp-ls-wrapper {
	overflow-x: hidden;
	padding: 30px 0;
	width: 100%;
	-webkit-mask-image: linear-gradient(
		to right,
		transparent 0%,
		black 8%,
		black 92%,
		transparent 100%
	);
	mask-image: linear-gradient(
		to right,
		transparent 0%,
		black 8%,
		black 92%,
		transparent 100%
	);
}

.chp-ls-track {
	display: flex;
	align-items: stretch;
	width: max-content;
	animation: chp-ls-scroll var(--chp-ls-duration, 30s) linear infinite;
}

/* Reverse direction */
.chp-ls-wrapper.chp-ls-reverse .chp-ls-track {
	animation-direction: reverse;
}

/* Pause on hover */
.chp-ls-wrapper.chp-ls-pause-on-hover:hover .chp-ls-track {
	animation-play-state: paused;
}

@keyframes chp-ls-scroll {
	from {
		transform: translateX(0);
	}
	to {
		/* -50% = exactly one full set (the track contains two identical sets) */
		transform: translateX(-50%);
	}
}

/* ── Individual logos ─────────────────────────────────────────────── */

.chp-ls-logo {
	display: grid;
	place-items: center;
	flex-shrink: 0;
	width: 300px;
	padding: 2rem;
	background: #fff;
	border-radius: 20px;
	border: 1px solid #eee;
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
}

.chp-ls-logo a {
	display: flex;
	align-items: center;
}

.chp-ls-logo img {
	display: block;
	width: auto;
	height: 50px; /* default, overridden by Elementor responsive slider */
	max-width: none;
	object-fit: contain;
	transition: opacity 0.3s ease, filter 0.3s ease;
}

/* Grayscale */
.chp-ls-wrapper.chp-ls-grayscale .chp-ls-logo img {
	filter: grayscale(100%);
}

.chp-ls-wrapper.chp-ls-grayscale.chp-ls-ungray-hover .chp-ls-logo:hover img {
	filter: grayscale(0%);
}

/* Respect reduced motion preference */
@media (prefers-reduced-motion: reduce) {
	.chp-ls-track {
		animation-play-state: paused;
	}
}
