/* MF Marquee widget */
.mf-marquee {
	/* Custom properties come from Elementor controls on the widget wrapper; fallbacks below. */
	display: flex;
	gap: var(--mf-marquee-gap, 20px);
	overflow: hidden;
	user-select: none;
}

.mf-marquee--fade {
	-webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
	mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.mf-marquee__track {
	display: flex;
	flex: none;
	gap: var(--mf-marquee-gap, 20px);
	align-items: center;
	min-width: 100%;
	margin: 0;
	padding: 0;
	list-style: none;
	animation: mf-marquee var(--mf-marquee-duration, 30s) linear infinite;
	animation-direction: var(--mf-marquee-direction, normal);
}

.mf-marquee--pause:hover .mf-marquee__track,
.mf-marquee--pause:focus-within .mf-marquee__track {
	animation-play-state: paused;
}

.mf-marquee__item {
	display: flex;
	flex: none;
	align-items: center;
	justify-content: center;
	transition: background-color 0.3s ease;
}

.mf-marquee__item > a {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	color: inherit;
}

.mf-marquee__item img {
	display: block;
	width: auto;
	max-width: none;
	transition: opacity 0.3s ease;
}

.mf-marquee__text {
	white-space: nowrap;
	transition: color 0.3s ease;
}

.mf-marquee__sep {
	display: flex;
	flex: none;
	align-items: center;
	line-height: 1;
}

.mf-marquee__sep svg {
	width: 1em;
	height: 1em;
}

@keyframes mf-marquee {
	from { transform: translateX(0); }
	to { transform: translateX(calc(-100% - var(--mf-marquee-gap, 20px))); }
}

@media (prefers-reduced-motion: reduce) {
	.mf-marquee__track {
		animation-play-state: paused;
	}
}

/* Vertical orientation */
.mf-marquee--vertical {
	flex-direction: column;
	height: var(--mf-marquee-height, 400px);
}

.mf-marquee--vertical .mf-marquee__track {
	flex-direction: column;
	min-width: 0;
	min-height: 100%;
	animation-name: mf-marquee-y;
}

.mf-marquee--vertical.mf-marquee--fade {
	-webkit-mask-image: linear-gradient(180deg, transparent, #000 10%, #000 90%, transparent);
	mask-image: linear-gradient(180deg, transparent, #000 10%, #000 90%, transparent);
}

@keyframes mf-marquee-y {
	from { transform: translateY(0); }
	to { transform: translateY(calc(-100% - var(--mf-marquee-gap, 20px))); }
}
