/* ==========================================================================
   BezDev Video Slider — video + arrows only, no text/typography.

   Arrow hover color is pulled from the site's global primary color,
   in this priority order:
     1) Elementor global colors      (--e-global-color-primary)
     2) Block editor / theme.json    (--wp--preset--color--primary)
     3) Hard fallback value below
   If your theme uses different variable/slug names, edit the
   var(--a, var(--b, fallback)) chain below.
   ========================================================================== */

.ziggy-slider {
	--ziggy-primary: var(--e-global-color-primary, var(--wp--preset--color--primary, #6c3ce9));

	position: relative;
	width: 100%;
	overflow: hidden;
}

/* ---- Full width: break the slider out of a boxed Elementor container ---- */
.ziggy-slider.ziggy-fullwidth {
	width: 100vw;
	position: relative;
	left: 50%;
	right: 50%;
	margin-left: -50vw;
	margin-right: -50vw;
}

.ziggy-slider__track {
	position: relative;
	width: 100%;
	height: 90vh;
	min-height: 480px;
}

.ziggy-slide {
	position: absolute;
	inset: 0;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.6s ease;
	z-index: 1;
}

.ziggy-slide.is-active {
	opacity: 1;
	visibility: visible;
	z-index: 2;
}

.ziggy-slide__media {
	position: absolute;
	inset: 0;
	overflow: hidden;
}

.ziggy-slide__video {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

/* Data Saver / 2G fallback: video hasn't been fetched yet, poster is showing.
   A simple tap-to-play circle tells the visitor a video is there. */
.ziggy-slide.is-datasaver {
	cursor: pointer;
}

.ziggy-slide.is-datasaver::before {
	content: '';
	position: absolute;
	top: 50%;
	left: 50%;
	width: 64px;
	height: 64px;
	margin: -32px 0 0 -32px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.92);
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
	z-index: 5;
}

.ziggy-slide.is-datasaver::after {
	content: '';
	position: absolute;
	top: 50%;
	left: 50%;
	width: 0;
	height: 0;
	margin: -12px 0 0 -8px;
	border-style: solid;
	border-width: 12px 0 12px 20px;
	border-color: transparent transparent transparent #1c1c1c;
	z-index: 6;
}

/* nav arrows — white circle, dark icon, primary-color fill on hover */
.ziggy-slider__nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 20;
	width: 48px;
	height: 48px;
	border-radius: 999px;
	border: none;
	background: #ffffff;
	color: #1c1c1c;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
	transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
	padding: 0;
	line-height: 0;
}

.ziggy-slider__nav svg {
	width: 22px;
	height: 22px;
	display: block;
	pointer-events: none;
}

.ziggy-slider__nav:hover,
.ziggy-slider__nav:focus-visible {
	background: var(--ziggy-primary);
	color: #ffffff;
	transform: translateY(-50%) scale(1.05);
}

.ziggy-slider__nav--prev {
	left: 20px;
}

.ziggy-slider__nav--next {
	right: 20px;
}

/* ------------------------------------------------------------------
   Optional: put the site header/nav bar on top of the slider so the
   slider runs full-bleed from the very top of the page. Replace
   ".site-header" with your theme's actual header selector, then
   uncomment.
   ------------------------------------------------------------------
.site-header {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	z-index: 30;
	background: transparent;
}
   ------------------------------------------------------------------ */

@media (max-width: 768px) {
	.ziggy-slider__track {
		height: 70vh;
		min-height: 420px;
	}

	.ziggy-slider__nav {
		width: 40px;
		height: 40px;
	}

	.ziggy-slider__nav--prev {
		left: 10px;
	}

	.ziggy-slider__nav--next {
		right: 10px;
	}
}
