/* ==========================================================================
   YouTube / video horizontal slider
   ========================================================================== */

.video-scroller {
	display: flex !important;
	flex-direction: row !important;
	flex-wrap: nowrap !important;
	justify-content: flex-start !important;
	align-items: flex-start !important;
	gap: 20px;
	overflow-x: auto !important;
	overflow-y: hidden !important;
	width: 100%;
	padding: 0 !important;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
}

.video-scroller::-webkit-scrollbar {
	display: none;
}

.video-card {
	width: 27% !important;
	min-width: 27% !important;
	flex: 0 0 27% !important;
	aspect-ratio: 16 / 9;
	scroll-snap-align: start;
	padding: 0 !important;
	margin: 0 !important;
	border-radius: 12px;
	overflow: hidden;
}

.video-card .elementor-widget-video,
.video-card .elementor-wrapper,
.video-card iframe {
	width: 100%;
	height: 100%;
	display: block;
}

@media (max-width: 1024px) {
	.video-card {
		width: 40% !important;
		min-width: 40% !important;
		flex: 0 0 40% !important;
	}
}

@media (max-width: 767px) {
	.video-scroller {
		gap: 15px;
	}

	.video-card {
		width: 85% !important;
		min-width: 85% !important;
		flex: 0 0 85% !important;
	}
}

/* YouTube Shorts variant – add class: video-scroller video-shorts-scroller */
.video-scroller.video-shorts-scroller {
	align-items: stretch !important;
	gap: 18px;
}

.video-scroller.video-shorts-scroller .video-card {
	width: 18% !important;
	min-width: 18% !important;
	flex: 0 0 18% !important;
	aspect-ratio: 9 / 16 !important;
	border-radius: 16px;
}

.video-scroller.video-shorts-scroller .video-card .elementor-widget-video,
.video-scroller.video-shorts-scroller .video-card .elementor-wrapper,
.video-scroller.video-shorts-scroller .video-card iframe {
	width: 100% !important;
	height: 100% !important;
	display: block;
}

@media (max-width: 1024px) {
	.video-scroller.video-shorts-scroller .video-card {
		width: 30% !important;
		min-width: 30% !important;
		flex: 0 0 30% !important;
	}
}

@media (max-width: 767px) {
	.video-scroller.video-shorts-scroller {
		gap: 14px;
	}

	.video-scroller.video-shorts-scroller .video-card {
		width: 72% !important;
		min-width: 72% !important;
		flex: 0 0 72% !important;
	}
}
