/* UK Client Strip - Figma "02 Client logos" (82:2) */

.avuk-strip {
	--avuk-logo-h: 44px;
	--avuk-gap: 68px;
	--avuk-speed: 45s;
	--avuk-fade-w: 180px;
	--avuk-fade-c: #ffffff;
	position: relative;
	overflow: hidden;
	width: 100%;
	min-width: 0;
}

.avuk-strip__track {
	display: flex;
	align-items: center;
	gap: var(--avuk-gap);
	width: max-content;
}

.avuk-strip__row {
	display: flex;
	align-items: center;
	gap: var(--avuk-gap);
	margin: 0;
	padding: 0;
	list-style: none;
}

.avuk-strip__item {
	display: flex;
	align-items: center;
	flex: 0 0 auto;
	margin: 0;
	padding: 0;
	list-style: none;
}

/* Height is fixed and width follows the logo's own aspect ratio, which is how
   the Figma strip gets its varying logo widths off one shared height. */
.avuk-strip__item img {
	display: block;
	height: var(--avuk-logo-h);
	width: auto;
	max-width: none;
	object-fit: contain;
}

.avuk-strip.is-grayscale .avuk-strip__item img {
	filter: grayscale(1);
	opacity: .75;
	transition: filter .25s ease, opacity .25s ease;
}
.avuk-strip.is-grayscale .avuk-strip__item img:hover {
	filter: grayscale(0);
	opacity: 1;
}

/* The row is duplicated, so travelling exactly half the track (plus the gap
   that sits between the two copies) loops seamlessly. */
.avuk-strip.is-scrolling .avuk-strip__track {
	animation: avuk-marquee var(--avuk-speed) linear infinite;
	will-change: transform;
}
.avuk-strip.is-scrolling:hover .avuk-strip__track {
	animation-play-state: paused;
}

@keyframes avuk-marquee {
	from { transform: translateX(0); }
	to   { transform: translateX(calc(-50% - (var(--avuk-gap) / 2))); }
}

@media (prefers-reduced-motion: reduce) {
	.avuk-strip.is-scrolling .avuk-strip__track { animation: none; }
}

/* Right-edge fade (Figma 89:12) */
.avuk-strip__fade {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	width: var(--avuk-fade-w);
	pointer-events: none;
	background: linear-gradient(to right, rgba(255, 255, 255, 0), var(--avuk-fade-c));
}

@media (max-width: 767px) {
	.avuk-strip { --avuk-gap: 40px; --avuk-fade-w: 60px; }
}

/* The widget wrapper is the flex item in the row, and Elementor sizes it with
   `.e-con > .elementor-widget { width: var(--container-widget-width); max-width: 100% }`
   which resolves against the container's whole content box rather than the
   space actually left beside the label and divider - so the strip ends up
   ~350px too wide and the edge fade lands outside the section.
   Matching that selector's specificity and using flex-basis 0 makes the widget
   take exactly the remaining width. min-width:0 is what allows it to shrink
   below the marquee track's max-content size. */
.e-con > .elementor-widget-av_uk_client_strip,
.e-con-inner > .elementor-widget-av_uk_client_strip {
	flex: 1 1 0;
	width: auto;
	max-width: none;
	min-width: 0;
	overflow: hidden;
}
