.rg-reel-section {
	padding: 48px 24px;
	background: #eef5f6;
}

.rg-reel-header {
	max-width: 1200px;
	margin: 0 auto 20px;
}

.rg-reel-eyebrow {
	margin: 0 0 4px;
	font-size: 14px;
	color: #2c5f70;
}

.rg-reel-title {
	margin: 0;
	font-size: 26px;
	font-weight: 700;
	color: #0f2e3d;
}

/* Marquee viewport: clips the endlessly-scrolling track */
.rg-reel-viewport {
	overflow: hidden;
	width: 100%;
	-webkit-mask-image: linear-gradient( to right, transparent, #000 3%, #000 97%, transparent );
	mask-image: linear-gradient( to right, transparent, #000 3%, #000 97%, transparent );
}

.rg-reel-track {
	display: flex;
	gap: 16px;
	width: max-content;
	animation: rg-reel-marquee var( --rg-duration, 25s ) linear infinite;
}

.rg-reel-track.is-playing,
.rg-reel-viewport:hover .rg-reel-track {
	animation-play-state: paused;
}

@keyframes rg-reel-marquee {
	from {
		transform: translateX( 0 );
	}
	to {
		transform: translateX( -50% );
	}
}

@media ( prefers-reduced-motion: reduce ) {
	.rg-reel-track {
		animation: none;
	}
}

.rg-reel-card {
	position: relative;
	flex: 0 0 auto;
	width: clamp(140px, 18vw, 220px);
	aspect-ratio: 9 / 16;
	border-radius: 10px;
	overflow: hidden;
	background: #111;
	cursor: pointer;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
	transition: transform 0.2s ease;
}

.rg-reel-card:hover {
	transform: translateY(-4px);
}

.rg-reel-poster-wrap {
	position: absolute;
	inset: 0;
}

.rg-reel-poster {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	opacity: 0.85;
}

.rg-reel-play {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 46px;
	height: 46px;
	border-radius: 50%;
	background: rgba(0, 0, 0, 0.45);
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	backdrop-filter: blur(2px);
	pointer-events: none;
}

/* Inline player: replaces the poster inside the same card when clicked */
.rg-reel-inline-media {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	z-index: 2;
}

.rg-reel-inline-media video,
.rg-reel-inline-media iframe {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	border: 0;
}

.rg-reel-close {
	position: absolute;
	top: 6px;
	right: 6px;
	z-index: 3;
	width: 28px;
	height: 28px;
	border: 0;
	border-radius: 50%;
	background: rgba(0, 0, 0, 0.55);
	color: #fff;
	font-size: 16px;
	line-height: 1;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
}

.rg-reel-close:hover {
	background: rgba(0, 0, 0, 0.8);
}

.rg-reel-cta {
	max-width: 1200px;
	margin: 20px auto 0;
	text-align: center;
}

.rg-reel-cta a {
	display: inline-block;
	padding: 10px 22px;
	border-radius: 999px;
	background: #0f2e3d;
	color: #fff;
	text-decoration: none;
	font-weight: 600;
}

@media (max-width: 600px) {
	.rg-reel-section {
		padding: 32px 16px;
	}
}
