/* =========================================================
   Video Background Slider — front-end
   Heights come from admin via CSS vars:
   --wvs-h-d (desktop) --wvs-h-t (tablet) --wvs-h-p (phone)
   ========================================================= */

.wvs-slider {
	--wvs-accent: #1c7ed6;
	position: relative;
	width: 100%;
	height: var(--wvs-h-d, 650px);
	overflow: hidden;
	background: #000;
	outline: none;
}

/* Full-bleed helper: escapes a boxed theme container to true page width. */
.wvs-slider {
	width: 100vw;
	max-width: 100vw;
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
}

@media (max-width: 1024px) {
	.wvs-slider { height: var(--wvs-h-t, 480px); }
}

@media (max-width: 600px) {
	.wvs-slider { height: var(--wvs-h-p, 360px); }
}

.wvs-track,
.wvs-slide {
	position: absolute;
	inset: 0;
}

.wvs-slide {
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.6s ease, visibility 0s linear 0.6s;
}

.wvs-slide.is-active {
	opacity: 1;
	visibility: visible;
	transition: opacity 0.6s ease;
	z-index: 1;
}

.wvs-video {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* ---------- YouTube / Vimeo covering embed ----------
   A 16:9 iframe is scaled with min() math so it always COVERS the banner
   (whichever of width/height is the binding constraint), then centred.
   The poster sits underneath for the pre-autoplay / mobile-blocked case. */

.wvs-embed-wrap {
	position: absolute;
	inset: 0;
	overflow: hidden;
	background: #000;
}

.wvs-embed-poster {
	position: absolute;
	inset: 0;
	background-size: cover;
	background-position: center;
	z-index: 0;
}

.wvs-embed-scale {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	z-index: 1;
	/* Sized by JS (cover-fit to the slider box). Fallback below keeps a
	   sensible 16:9 cover before JS runs. */
	width: 100%;
	height: 100%;
	pointer-events: none;           /* background: not interactive */
}

.wvs-embed-scale .wvs-embed {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

.wvs-overlay {
	position: absolute;
	inset: 0;
	z-index: 1;
	pointer-events: none;
}

/* ---------- Content layer (free-positioned box) ---------- */

.wvs-content {
	position: absolute;
	z-index: 2;
	display: flex;
	flex-direction: column;
	gap: 14px;
	max-width: 92%;
	color: #fff;
	/* left/top/width/transform are set inline from admin position values. */
}

.wvs-talign-left   { text-align: left;   align-items: flex-start; }
.wvs-talign-center { text-align: center; align-items: center; }
.wvs-talign-right  { text-align: right;  align-items: flex-end; }

.wvs-heading {
	margin: 0;
	font-size: clamp(1.7rem, 4.5vw, 3.4rem);
	font-weight: 800;
	line-height: 1.12;
	color: #fff;
	text-shadow: 0 2px 18px rgba(0, 0, 0, 0.35);
}

.wvs-subheading {
	margin: 0;
	font-size: clamp(1.05rem, 2.2vw, 1.6rem);
	font-weight: 500;
	color: rgba(255, 255, 255, 0.92);
}

.wvs-text {
	margin: 0;
	font-size: clamp(0.95rem, 1.4vw, 1.1rem);
	line-height: 1.55;
	color: rgba(255, 255, 255, 0.88);
}

.wvs-text a { color: #fff; text-decoration: underline; }

.wvs-btn {
	display: inline-block;
	margin-top: 2px;
	padding: 12px 34px;
	font-size: 15px;
	font-weight: 700;
	border-radius: 999px;
	text-decoration: none;
	transition: filter 0.15s ease, transform 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.wvs-btn--filled {
	color: #fff;
	background: var(--wvs-accent);
}
.wvs-btn--filled:hover { filter: brightness(1.12); transform: translateY(-1px); color: #fff; }

.wvs-btn--outline {
	color: #fff;
	background: transparent;
	box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.9);
}
.wvs-btn--outline:hover { background: rgba(255, 255, 255, 0.15); color: #fff; }

.wvs-btn--text {
	padding: 6px 4px;
	color: #fff;
	background: transparent;
	border-radius: 0;
	text-decoration: underline;
	text-underline-offset: 4px;
}
.wvs-btn--text:hover { color: rgba(255, 255, 255, 0.8); }

/* On phones, widen the box and pull it toward centre for readability. */
@media (max-width: 600px) {
	.wvs-content {
		width: 90% !important;
		left: 50% !important;
		transform: translate(-50%, -50%) !important;
		top: 50% !important;
		max-width: 90%;
	}
}

/* ---------- Arrows ---------- */

.wvs-arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 3;
	width: 50px;
	height: 50px;
	border: 0;
	border-radius: 50%;
	background: rgba(0, 0, 0, 0.35);
	color: #fff;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background 0.15s ease;
}
.wvs-arrow:hover { background: rgba(0, 0, 0, 0.65); }
.wvs-arrow svg { width: 26px; height: 26px; }
.wvs-arrow--prev { left: 18px; }
.wvs-arrow--next { right: 18px; }

/* ---------- Dots ---------- */

.wvs-dots {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 18px;
	z-index: 3;
	display: flex;
	gap: 10px;
	justify-content: center;
}

.wvs-dot {
	width: 11px;
	height: 11px;
	padding: 0;
	border: 2px solid rgba(255, 255, 255, 0.85);
	border-radius: 50%;
	background: transparent;
	cursor: pointer;
	transition: background 0.15s ease, transform 0.15s ease;
}

.wvs-dot.is-active {
	background: #fff;
	transform: scale(1.15);
}

@media (max-width: 600px) {
	.wvs-arrow { width: 40px; height: 40px; }
	.wvs-arrow--prev { left: 8px; }
	.wvs-arrow--next { right: 8px; }
}

@media (prefers-reduced-motion: reduce) {
	.wvs-slide { transition: none; }
}
