/* ==========================================================================
   GCF Logo Marquee — continuous strip of accreditation logos.
   ========================================================================== */

.gcf-marquee {
	--gcf-marquee-h: 110px;
	--gcf-marquee-gap: clamp(48px, 7vw, 110px);
	overflow: hidden;
	width: 100%;
	/* Soft fade at both edges. */
	-webkit-mask-image: linear-gradient(to right, transparent 0, #000 6%, #000 94%, transparent 100%);
	mask-image: linear-gradient(to right, transparent 0, #000 6%, #000 94%, transparent 100%);
}
.gcf-marquee__track {
	display: flex;
	width: max-content;
	animation: gcf-marquee var(--gcf-marquee-dur, 30s) linear infinite;
}
.gcf-marquee:hover .gcf-marquee__track { animation-play-state: paused; }

.gcf-marquee__group {
	display: flex;
	flex: none;
	align-items: center;
	margin: 0;
	padding: 0;
	list-style: none;
}
.gcf-marquee__item {
	flex: none;
	margin: 0;
	/* Spacing as padding (not gap) so both groups are exactly the same width. */
	padding: 0 calc(var(--gcf-marquee-gap) / 2);
}
.gcf-marquee__item::before,
.gcf-marquee__item::marker { content: none; }
/* Beats Elementor's `.elementor img { height: auto; max-width: 100% }`. */
html body .gcf-marquee .gcf-marquee__img {
	display: block;
	width: auto;
	max-width: none;
	height: var(--gcf-marquee-h);
}

@keyframes gcf-marquee {
	from { transform: translate3d(0, 0, 0); }
	to { transform: translate3d(-50%, 0, 0); }
}

/* Reduced motion: no movement — one centred row of the logos. */
@media (prefers-reduced-motion: reduce) {
	.gcf-marquee {
		-webkit-mask-image: none;
		mask-image: none;
	}
	.gcf-marquee__track {
		width: auto;
		justify-content: center;
		animation: none;
	}
	.gcf-marquee__group {
		flex-wrap: wrap;
		justify-content: center;
		row-gap: 24px;
	}
	.gcf-marquee__group[aria-hidden="true"],
	.gcf-marquee__item--repeat { display: none; }
}

/* The widget sits in a flex row (Elementor container): take the full width,
   or the centre carousel shrinks to its content. */
.elementor-widget-gcf-logo-marquee { width: 100%; }
