/* Simple Marquee component (fancycomponents.dev, vanilla-JS port) */
[data-marquee] {
	overflow: hidden;
}

.rah-marquee {
	display: flex;
}

.rah-marquee--row {
	flex-direction: row;
}

.rah-marquee--column {
	flex-direction: column;
}

.rah-marquee-track {
	flex-shrink: 0;
	will-change: transform;
}

.rah-marquee-track--row {
	display: flex;
	flex-direction: row;
	align-items: center;
}

.rah-marquee-track--column {
	display: flex;
	flex-direction: column;
	align-items: center;
}

.rah-marquee--grab {
	cursor: grab;
	touch-action: none;
}

.rah-marquee--grab:active {
	cursor: grabbing;
}

/*
 * Structural fix: content pulled into a marquee track often comes from a
 * layout (Gutenberg columns, flex rows, grids) that stretches its children
 * to fill whatever width it's given. Inside a track that defeats the
 * illusion two ways: cards get squeezed instead of keeping a real card
 * width, and the track ends up exactly as wide as the container, so the
 * auto-tiling math (see simple-marquee.js) only adds the bare minimum of
 * copies instead of enough to look like a proper repeating strip.
 * Pinning `.marquee-card` to a fixed width and forbidding wrap fixes both.
 */
.rah-marquee-track .marquee-card {
	flex: 0 0 380px !important;
	/* width: 380px ;
	min-width: 345px !important;
	max-width: 380px !important; */
}

.rah-marquee-track .stk-row {
	flex-wrap: nowrap !important;
}

/*
 * Demo styling for the payground.html marquee-wall example. Reclaims sizing
 * from the generic `.marquee-card` structural fix above so the demo's
 * auto-width pills don't get pinned to a 380px card width too.
 */
.marquee-wall .marquee-card {
	flex: 0 1 auto !important;
	width: auto !important;
	max-width: none !important;
	min-width: 320px !important;
	display: inline-block;
	margin: 0 8px;
	padding: 12px 16px;
	background: #BFE9FD;
	color: #16164F;
	font-family: Arial, sans-serif;
	font-size: 18px;
	font-weight: 600;
	border-radius: 30px;
	white-space: nowrap;
}

@media screen and (max-width: 767px) {
	.marquee-card .stk-block-text {
		display: none;
	}
	.rah-marquee-track .marquee-card {
		flex: 0 0 240px !important;
	}
	.rah-marquee-track .marquee-card .wp-block-group.has-background {
		padding-top: 20px !important;
		padding-bottom: 20px !important;
	}
}