/* Lite Video Carousel — override these variables in your theme to match your brand */
.lvc {
	--lvc-accent: #2f6f5e;
	--lvc-radius: 10px;
	--lvc-gap: 16px;
	--lvc-arrow-bg: #fff;
	--lvc-text: inherit;
	--lvc-per: var(--lvc-per-d, 3);
	position: relative;
	margin: 1.5em 0;
	padding: 0 28px;
}
.lvc-viewport { overflow: hidden; }
.elementor-widget-lite-video-carousel .lvc { margin: 0; }
.lvc-track {
	display: flex; gap: var(--lvc-gap);
	list-style: none; margin: 0; padding: 4px 0;
	overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
	scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.lvc-track::-webkit-scrollbar { display: none; }
.lvc-slide {
	flex: 0 0 calc((100% - (var(--lvc-per) - 1) * var(--lvc-gap)) / var(--lvc-per));
	min-width: 0;
	scroll-snap-align: start; margin: 0; padding: 0;
}
/* Breakpoints match Elementor defaults (tablet 1024, mobile 767) */
@media (max-width: 1024px) { .lvc { --lvc-per: var(--lvc-per-t, 2); } }
@media (max-width: 767px) { .lvc { --lvc-per: var(--lvc-per-m, 1); padding: 0; } .lvc-arrow { display: none; } }

/* Theme-proof reset: themes (e.g. Hello Elementor) style every button with a border,
   padding and a colored hover background. These selectors out-rank those rules. */
.lvc button.lvc-card, .lvc button.lvc-card:hover, .lvc button.lvc-card:focus, .lvc button.lvc-card:active,
.lvc button.lvc-arrow, .lvc button.lvc-arrow:hover, .lvc button.lvc-arrow:focus, .lvc button.lvc-arrow:active,
.lvc button.lvc-dot, .lvc button.lvc-dot:hover, .lvc button.lvc-dot:focus,
.lvc-lightbox button.lvc-lb-close, .lvc-lightbox button.lvc-lb-close:hover, .lvc-lightbox button.lvc-lb-close:focus,
.lvc-lightbox button.lvc-lb-nav, .lvc-lightbox button.lvc-lb-nav:hover, .lvc-lightbox button.lvc-lb-nav:focus {
	border: 0; margin: 0; padding: 0; min-height: 0; line-height: normal;
	text-transform: none; letter-spacing: normal; font: inherit; text-decoration: none;
	-webkit-appearance: none; appearance: none; box-sizing: border-box; cursor: pointer;
}
.lvc button.lvc-card, .lvc button.lvc-card:hover, .lvc button.lvc-card:focus, .lvc button.lvc-card:active {
	display: block; width: 100%; background: transparent; box-shadow: none; border-radius: 0; color: var(--lvc-text);
	outline: none;
}
.lvc-thumb {
	position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden;
	border-radius: var(--lvc-radius); background: var(--lvc-thumb-bg, transparent);
	isolation: isolate; /* keeps rounded corners clean in Safari while zooming */
}
.lvc-thumb img, .lvc-thumb video { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s ease; }
/* Tall thumbnails (9:16 etc.): whole image centered, blurred copy fills the 16:9 card */
.lvc-thumb.is-tall-thumb::before {
	content: ""; position: absolute; inset: -12%; z-index: 0;
	background: var(--lvc-tall-bg) center / cover no-repeat;
	filter: blur(18px) brightness(.85);
}
.lvc-thumb.is-tall-thumb img { position: relative; z-index: 1; object-fit: contain; }
.lvc-thumb.is-tall-thumb .lvc-play { z-index: 2; }
.lvc button.lvc-card:hover .lvc-thumb.is-tall-thumb img { transform: scale(1.03); }
.lvc-thumb img.lvc-yt-hq { transform: scale(1.02); } /* trims YouTube's built-in black bars */
.lvc-card:hover .lvc-thumb .lvc-preview { transform: none; }
.lvc button.lvc-card:hover .lvc-thumb img, .lvc button.lvc-card:hover .lvc-thumb video { transform: scale(1.05); }
.lvc-play {
	position: absolute; inset: 50% auto auto 50%; transform: translate(-50%, -50%);
	width: 56px; height: 56px; border-radius: 50%;
	background: rgba(255,255,255,.92); display: grid; place-items: center;
	box-shadow: 0 2px 12px rgba(0,0,0,.25); transition: background .2s;
}
.lvc-play svg { width: 24px; height: 24px; fill: var(--lvc-accent); margin-left: 3px; }
/* Image items: quiet expand icon that appears on hover/focus */
.lvc-card--image .lvc-play { width: 44px; height: 44px; opacity: 0; transition: opacity .2s; }
.lvc-card--image:hover .lvc-play, .lvc-card--image:focus-visible .lvc-play { opacity: 1; }
.lvc-card--image .lvc-play svg { width: 20px; height: 20px; margin: 0; fill: none; stroke: var(--lvc-accent); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
@media (hover: none) { .lvc-card--image .lvc-play { display: none; } }
/* Animated thumbnail: hide the play button while the clip plays on hover */
.lvc-preview[data-mode="hover"] ~ .lvc-play { transition: opacity .2s; }
.lvc-card:hover .lvc-preview[data-mode="hover"] ~ .lvc-play { opacity: .0; }
.lvc-card:hover .lvc-play { background: #fff; }
.lvc-title { display: block; margin-top: .6em; font-size: .95em; line-height: 1.35; background: var(--lvc-title-bg, transparent); border-radius: var(--lvc-title-radius, 0); }
.lvc button.lvc-card:focus-visible .lvc-thumb { outline: 3px solid var(--lvc-accent); outline-offset: 3px; }

.lvc .lvc-arrow {
	position: absolute; top: calc(50% - 20px); transform: translateY(-50%);
	width: 40px; height: 40px; border-radius: 50%;
	background: var(--lvc-arrow-bg); box-shadow: 0 1px 6px rgba(0,0,0,.2); color: inherit;
	display: grid; place-items: center; z-index: 2;
}
.lvc-arrow svg { width: 20px; height: 20px; fill: none; stroke: var(--lvc-accent); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.lvc-prev { left: 0; } .lvc-next { right: 0; }
.lvc-arrow[disabled] { opacity: .35; cursor: default; }
.lvc-arrow:focus-visible { outline: 3px solid var(--lvc-accent); outline-offset: 2px; }
.lvc[data-nav="dots"] .lvc-arrow, .lvc[data-nav="none"] .lvc-arrow { display: none; }
.lvc[data-nav="dots"], .lvc[data-nav="none"] { padding: 0; }

.lvc-dots { display: flex; justify-content: center; gap: 8px; margin-top: 14px; }
.lvc .lvc-dot { display: block; width: 9px; height: 9px; border-radius: 50%; background: currentColor; opacity: .25; transition: opacity .2s, width .2s; }
.lvc .lvc-dot[aria-current="true"] { opacity: 1; background: var(--lvc-accent); width: 22px; border-radius: 5px; }
.lvc-dot:focus-visible { outline: 2px solid var(--lvc-accent); outline-offset: 3px; }

/* Lightbox */
.lvc-lightbox {
	position: fixed; inset: 0; z-index: 1000000; background: var(--lvc-lb-backdrop, rgba(0,0,0,.88));
	display: grid; place-items: center; padding: 4vw;
	opacity: 0; transition: opacity .2s ease;
}
.lvc-lightbox.is-open { opacity: 1; }
.lvc-lb-frame {
	--lvc-lb-h: 78vh;
	position: relative; aspect-ratio: 16 / 9; background: #000; border-radius: var(--lvc-lb-radius, 6px); overflow: hidden;
	isolation: isolate; /* keeps the iframe clipped to the rounded corners in Safari */
	width: min(1100px, 100%, calc(var(--lvc-lb-h) * 16 / 9));
	transition: width .25s ease, aspect-ratio .25s ease;
}
/* Vertical (9:16) videos: tall frame sized to the screen height */
.lvc-lb-frame.is-portrait {
	aspect-ratio: 9 / 16;
	width: min(100%, calc(var(--lvc-lb-h) * 9 / 16), 480px);
}
@supports (height: 1svh) { .lvc-lb-frame { --lvc-lb-h: 78svh; } }
@media (max-width: 767px) {
	.lvc-lightbox { padding: 64px 12px 76px; }
	.lvc-lb-frame { --lvc-lb-h: calc(100svh - 150px); }
}
.lvc-lb-frame iframe, .lvc-lb-frame video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.lvc-lightbox .lvc-lb-close {
	position: fixed; top: 16px; right: 16px; z-index: 3;
	width: 44px; height: 44px; border-radius: 50%;
	background: var(--lvc-close-bg, rgba(255,255,255,.12)); color: var(--lvc-close-color, #fff);
	display: grid; place-items: center; transition: filter .2s;
}
.lvc-lb-close svg { width: 22px; height: 22px; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; }
.lvc-lightbox .lvc-lb-close:focus-visible { outline: 2px solid var(--lvc-close-color, #fff); outline-offset: 2px; }
.lvc-lb-stage { margin: 0; font-style: normal; display: flex; flex-direction: column; align-items: center; gap: 12px; width: 100%; }
.lvc-lb-frame.is-image {
	aspect-ratio: auto; width: auto; max-width: 100%; background: transparent;
	display: flex; justify-content: center;
}
.lvc-lb-frame.is-image { border-radius: 0; overflow: visible; }
.lvc-lb-frame.is-image img { display: block; max-width: 100%; max-height: var(--lvc-lb-h); width: auto; height: auto; border-radius: var(--lvc-lb-radius, 6px); }
.lvc-lb-caption {
	display: var(--lvc-cap-display, block);
	color: var(--lvc-caption-color, #fff); background: var(--lvc-caption-bg, transparent);
	font-size: var(--lvc-cap-size, 15px); line-height: 1.4; text-align: center; max-width: 60ch; margin: 0;
	padding: 6px 14px; border-radius: 6px;
	font-family: var(--lvc-cap-family, inherit);
	font-weight: var(--lvc-cap-weight, 400);
	font-style: var(--lvc-cap-style, normal);
	letter-spacing: var(--lvc-cap-spacing, normal);
	text-transform: var(--lvc-cap-transform, none);
}
.lvc-lightbox .lvc-lb-caption:empty { display: none; }
.lvc-lb-count {
	position: fixed; top: 20px; left: 16px; margin: 0; font-size: 14px; line-height: 1;
	color: var(--lvc-caption-color, rgba(255,255,255,.85)); background: var(--lvc-caption-bg, transparent);
	padding: 8px 12px; border-radius: 6px;
}
.lvc-lightbox .lvc-lb-nav {
	position: fixed; top: 50%; transform: translateY(-50%);
	width: 48px; height: 48px; border-radius: 50%;
	background: var(--lvc-close-bg, rgba(255,255,255,.12)); color: var(--lvc-close-color, #fff);
	display: grid; place-items: center; z-index: 2; transition: filter .2s;
}
.lvc-lb-nav svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.lvc-lb-prev { left: 16px; } .lvc-lb-next { right: 16px; }
.lvc-lightbox .lvc-lb-nav:hover, .lvc-lightbox .lvc-lb-close:hover { filter: brightness(1.15) contrast(1.05); }
.lvc-lightbox .lvc-lb-nav:focus-visible { outline: 2px solid var(--lvc-close-color, #fff); outline-offset: 2px; }

body.lvc-locked { overflow: hidden; }

/* ---- Lightbox button layout ----
   Default (desktop, and tall 9:16 content on phones): buttons pinned to screen edges. */
.lvc-lb-bar, .lvc-lb-navbar { display: contents; }

/* Phones, upright: tall (9:16) content keeps the X at the top; arrows sit at the bottom */
@media (max-width: 767px) and (orientation: portrait) {
	.lvc-lightbox .lvc-lb-nav { top: auto; bottom: 16px; transform: none; width: 44px; height: 44px; }
	.lvc-lightbox .lvc-lb-prev { left: calc(50% - 56px); }
	.lvc-lightbox .lvc-lb-next { right: calc(50% - 56px); }

	/* Horizontal (16:9) content: everything hugs the video, inside the empty space around it */
	.lvc-lightbox:not(.is-tall) { padding: 16px 12px; }
	.lvc-lightbox:not(.is-tall) .lvc-lb-frame { --lvc-lb-h: calc(100svh - 220px); }
	.lvc-lightbox:not(.is-tall) .lvc-lb-bar {
		display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 44px;
	}
	.lvc-lightbox:not(.is-tall) .lvc-lb-close,
	.lvc-lightbox:not(.is-tall) .lvc-lb-count { position: static; }
	.lvc-lightbox:not(.is-tall) .lvc-lb-bar button.lvc-lb-close,
	.lvc-lightbox:not(.is-tall) .lvc-lb-bar button.lvc-lb-close:hover,
	.lvc-lightbox:not(.is-tall) .lvc-lb-bar button.lvc-lb-close:focus,
	.lvc-lightbox:not(.is-tall) .lvc-lb-bar button.lvc-lb-close:active { margin-left: auto; }
	.lvc-lightbox:not(.is-tall) .lvc-lb-navbar { display: flex; justify-content: center; gap: 16px; }
	.lvc-lightbox:not(.is-tall) .lvc-lb-nav { position: static; transform: none; }
}

/* Phones turned sideways: video as big as the screen allows, buttons in the side margins */
@media (orientation: landscape) and (max-height: 500px) {
	.lvc-lightbox { padding: 8px 68px; }
	.lvc-lb-frame, .lvc-lightbox .lvc-lb-frame { --lvc-lb-h: calc(100svh - 16px); }
	.lvc-lb-caption { display: none; }
	.lvc-lightbox .lvc-lb-close { top: 10px; right: 12px; }
	.lvc-lightbox .lvc-lb-count { top: 14px; left: 8px; padding: 6px 8px; }
	.lvc-lightbox .lvc-lb-prev { left: 10px; } .lvc-lightbox .lvc-lb-next { right: 10px; }
	.lvc-lightbox .lvc-lb-nav { width: 44px; height: 44px; }
}

/* Subtle fade when moving between items */
.lvc-lb-fresh .lvc-lb-bar > *, .lvc-lb-fresh .lvc-lb-navbar > * { animation: lvc-fade .22s ease; }
.lvc-lightbox button.lvc-lb-nav { display: var(--lvc-lbnav-display, grid); }
.lvc-lightbox.lvc-no-arrows .lvc-lb-navbar { display: none; }
/* End-of-video screen (covers YouTube's suggestions) */
.lvc-end {
	position: absolute; inset: 0; z-index: 2; display: grid; place-items: center;
	background: #000; overflow: hidden;
}
/* Whole thumbnail always visible: shown in full, with a blurred copy filling any empty space
   (e.g. a 16:9 thumbnail inside a tall 9:16 player) */
.lvc-end-fill, .lvc-end-pic { position: absolute; inset: 0; background-position: center; background-repeat: no-repeat; }
.lvc-end-fill { background-size: cover; filter: blur(22px) brightness(.8); transform: scale(1.15); }
.lvc-end-pic { background-size: contain; }
.lvc-end::before { content: ""; position: absolute; inset: 0; z-index: 1; background: rgba(0,0,0,.5); }
.lvc-end-inner { z-index: 2; }
.lvc-end-inner { position: relative; display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; padding: 12px; }
.lvc-lightbox button.lvc-end-btn, .lvc-lightbox button.lvc-end-btn:hover, .lvc-lightbox button.lvc-end-btn:focus {
	border: 0; margin: 0; -webkit-appearance: none; appearance: none; cursor: pointer; font: inherit; text-transform: none;
	display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 10px 18px; border-radius: 999px;
	background: var(--lvc-close-bg, rgba(255,255,255,.9)); color: var(--lvc-close-color, #111);
	font-size: 15px; font-weight: 600; line-height: 1;
}
.lvc-lightbox button.lvc-end-btn:hover { filter: brightness(1.1); }
.lvc-lightbox button.lvc-end-btn:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.lvc-end-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
@keyframes lvc-fade { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .lvc-lb-fresh .lvc-lb-bar > *, .lvc-lb-fresh .lvc-lb-navbar > * { animation: none; } }

@media (prefers-reduced-motion: reduce) {
	.lvc-track { scroll-behavior: auto; }
	.lvc-thumb img, .lvc-thumb video, .lvc-lightbox, .lvc-dot, .lvc-lb-frame { transition: none; }
}
