/* YouTube Video Slider — frontend styles.
   Slides-per-view and spacing are driven by --ytvs-slides / --ytvs-gap,
   which Elementor's responsive controls set per breakpoint. */

.ytvs-slider {
	--ytvs-slides: 3;
	--ytvs-gap: 20px;
	position: relative;
	max-width: 100%;
	margin: 0 auto;
	font-family: inherit;
	box-sizing: border-box;
}

.ytvs-slider * {
	box-sizing: border-box;
}

.ytvs-track-wrap {
	overflow: hidden;
	margin: 0 32px;
}

.ytvs-track {
	display: flex;
	transition: transform 0.45s ease;
	will-change: transform;
}

.ytvs-slide {
	flex: 0 0 auto;
	width: calc( 100% / var( --ytvs-slides, 3 ) );
	padding: 0 calc( var( --ytvs-gap, 20px ) / 2 );
}

.ytvs-video {
	position: relative;
	width: 100%;
	padding-top: 56.25%; /* 16:9 fallback, overridden inline per aspect ratio */
	border-radius: 10px;
	overflow: hidden;
	background: #000;
	box-shadow: 0 4px 14px rgba( 0, 0, 0, 0.12 );
}

.ytvs-thumb {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.3s ease;
}

.ytvs-thumb-video {
	pointer-events: none;
	background: #000;
}

.ytvs-video iframe,
.ytvs-video video {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
	background: #000;
}

.ytvs-video video {
	object-fit: contain;
}

.ytvs-play-btn {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate( -50%, -50% );
	background: transparent;
	border: 0;
	cursor: pointer;
	padding: 0;
	width: 68px;
	transition: transform 0.2s ease;
}

.ytvs-play-btn:hover {
	transform: translate( -50%, -50% ) scale( 1.1 );
}

.ytvs-play-btn svg {
	width: 100%;
	height: auto;
	display: block;
}

.ytvs-play-bg {
	fill: rgba( 33, 33, 33, 0.8 );
}

.ytvs-play-icon {
	fill: #fff;
}

.ytvs-caption {
	margin: 10px 4px 0;
	font-size: 14px;
	font-weight: 500;
	color: #222;
	text-align: center;
	line-height: 1.4;
}

.ytvs-arrow {
	position: absolute;
	top: 50%;
	transform: translateY( -50% );
	border: 0;
	cursor: pointer;
	color: #333;
	padding: 6px 8px;
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 2;
	transition: color 0.2s ease, background-color 0.2s ease, opacity 0.2s ease;
}

.ytvs-arrow-svg {
	width: 22px;
	height: 22px;
	display: block;
	fill: currentColor;
}

.ytvs-next .ytvs-arrow-svg {
	transform: scaleX( -1 );
}

.ytvs-arrow:disabled {
	opacity: 0.3;
	cursor: default;
}

.ytvs-prev {
	left: 0;
}

.ytvs-next {
	right: 0;
}

/* Minimal style: transparent, icon only (default). */
.ytvs-arrows-minimal .ytvs-arrow {
	background: transparent;
	box-shadow: none;
	border-radius: 0;
}

/* Circle style: solid background behind the icon. */
.ytvs-arrows-circle .ytvs-arrow {
	width: 40px;
	height: 40px;
	padding: 0;
	border-radius: 50%;
	background: #ffffff;
	box-shadow: 0 2px 8px rgba( 0, 0, 0, 0.15 );
}

.ytvs-dots {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 8px;
	margin-top: 16px;
}

.ytvs-dot {
	width: 9px;
	height: 9px;
	border-radius: 50%;
	background: #d0d0d5;
	border: 0;
	padding: 0;
	cursor: pointer;
	transition: background-color 0.2s ease, transform 0.2s ease;
}

.ytvs-dot.is-active {
	background: #212121;
	transform: scale( 1.25 );
}

@media ( max-width: 767px ) {
	.ytvs-track-wrap {
		margin: 0 24px;
	}
}
