/* KEKOA Video Carousel — [kekoa_video_carousel] */

.kvc {
	--kvc-border: #2c3851;
	--kvc-arrow-bg: #030c1f;
	--kvc-accent: #2563eb;
	--kvc-title: #d5dae6;
	--kvc-subtitle: #ccd1dd;
	--kvc-font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 48px;
	width: 100%;
	padding: 48px 0;
	box-sizing: border-box;
	font-family: var(--kvc-font) !important;
}

/*
 * !important here (and on the rule below) is intentional: the host theme
 * sets `body { font-family: serif-stack }` and page-builder global kits can
 * add their own typography rules with unpredictable specificity. Forcing
 * inheritance guarantees this component's type always renders in Inter
 * regardless of where it's embedded.
 */
.kvc *,
.kvc *::before,
.kvc *::after,
.kvc-lightbox *,
.kvc-lightbox *::before,
.kvc-lightbox *::after {
	box-sizing: border-box;
	font-family: inherit !important;
}

/*
 * The host theme (Twenty Nineteen) applies a global `button{...}` skin
 * (blue background, padding, border-radius, bold weight) that otherwise
 * bleeds into every button here. Hard-reset first, then style each one
 * explicitly below.
 */
.kvc button,
.kvc-lightbox button {
	all: unset;
	box-sizing: border-box;
	cursor: pointer;
}

.kvc button:focus:not(:focus-visible),
.kvc-lightbox button:focus:not(:focus-visible) {
	outline: none;
}

.kvc button:focus-visible,
.kvc-lightbox button:focus-visible {
	outline: 2px solid var(--kvc-accent);
	outline-offset: 2px;
}

.kvc__header {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 12px;
	text-align: center;
	max-width: 900px;
	padding: 0 24px;
}

.kvc__title {
	margin: 0;
	font-family: var(--kvc-font) !important;
	font-size: clamp(28px, 4vw, 48px);
	line-height: 1.3;
	font-weight: 700;
	color: var(--kvc-title);
}

.kvc__subtitle {
	margin: 0;
	font-family: var(--kvc-font) !important;
	font-size: clamp(15px, 2vw, 20px);
	line-height: 1.4;
	font-weight: 500;
	color: var(--kvc-subtitle);
}

.kvc__viewport {
	position: relative;
	width: 100%;
	overflow: hidden;
	padding: 12px 0;
}

.kvc__track {
	position: relative;
	display: flex;
	align-items: stretch;
	will-change: transform;
	transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.kvc__slide {
	position: relative;
	flex: 0 0 auto;
	width: min(1024px, 82vw);
	margin: 0 32px;
	aspect-ratio: 1024 / 574;
	border-radius: 12px;
	overflow: hidden;
	border: 1px solid var(--kvc-border);
	background: #0b1220;
	opacity: 0.45;
	transition: opacity 0.4s ease;
	-webkit-mask-image: linear-gradient(to right, transparent 0%, #000 22%, #000 78%, transparent 100%);
	mask-image: linear-gradient(to right, transparent 0%, #000 22%, #000 78%, transparent 100%);
}

.kvc__slide.is-active {
	opacity: 1;
	-webkit-mask-image: none;
	mask-image: none;
}

.kvc__thumb-frame {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	height: 100%;
	border: 0;
	pointer-events: none;
	background: #0b1220;
	opacity: 0;
	transition: opacity 0.4s ease;
}

.kvc__thumb-frame.is-ready {
	opacity: 1;
}

/*
 * All interactive controls below are qualified as `.kvc .kvc__x` (not just
 * `.kvc__x`) so their specificity (0,2,0) reliably beats the `.kvc button`
 * reset above (0,1,1) — otherwise `all: unset` there wins the cascade and
 * these controls silently lose their position/display/background.
 */
.kvc .kvc__play {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	height: 100%;
	z-index: 1;
}

.kvc .kvc__play-icon {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 72px;
	height: 52px;
	background: #ff2d2d;
	border-radius: 14px;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 6px 24px rgba(0, 0, 0, 0.45);
	transition: transform 0.2s ease;
}

.kvc .kvc__play:hover .kvc__play-icon,
.kvc .kvc__play:focus-visible .kvc__play-icon {
	transform: translate(-50%, -50%) scale(1.08);
}

.kvc .kvc__play-icon svg {
	width: 26px;
	height: 26px;
	margin-left: 3px;
}

.kvc .kvc__arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 48px;
	height: 48px;
	border-radius: 24px;
	background: var(--kvc-arrow-bg);
	border: 1px solid var(--kvc-border);
	box-shadow: 0 2px 20px rgba(0, 0, 0, 0.6);
	display: flex;
	align-items: center;
	justify-content: center;
	color: #fff;
	z-index: 2;
}

.kvc .kvc__arrow svg {
	width: 20px;
	height: 20px;
}

.kvc .kvc__arrow--prev {
	left: 16px;
}

.kvc .kvc__arrow--next {
	right: 16px;
}

@media (min-width: 1200px) {
	.kvc .kvc__arrow--prev {
		left: 80px;
	}

	.kvc .kvc__arrow--next {
		right: 80px;
	}
}

.kvc__dots {
	display: flex;
	align-items: center;
	gap: 8px;
}

.kvc .kvc__dot {
	display: block;
	width: 12px;
	height: 12px;
	border-radius: 6px;
	background: rgba(255, 255, 255, 0.25);
	border: 0;
	padding: 0;
	margin: 0;
	transition: width 0.25s ease, background 0.25s ease;
}

.kvc .kvc__dot.is-active {
	width: 32px;
	background: var(--kvc-accent);
}

/* Lightbox */
.kvc-lightbox {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
}

.kvc-lightbox[hidden] {
	display: none;
}

.kvc-lightbox__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(3, 6, 15, 0.88);
}

.kvc-lightbox__panel {
	position: relative;
	width: min(96vw, 1800px);
	max-height: 90vh;
	aspect-ratio: 16 / 9;
	background: #000;
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.kvc-lightbox__frame,
.kvc-lightbox__frame iframe {
	width: 100%;
	height: 100%;
	border: 0;
	display: block;
}

.kvc-lightbox .kvc-lightbox__close {
	position: absolute;
	top: 12px;
	right: 12px;
	width: 36px;
	height: 36px;
	border-radius: 18px;
	background: rgba(0, 0, 0, 0.6);
	border: 1px solid rgba(255, 255, 255, 0.25);
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 2;
}

.kvc-lightbox__close svg {
	width: 18px;
	height: 18px;
}

body.kvc-lightbox-open {
	overflow: hidden;
}

button.kvc__arrow.kvc__arrow--prev svg, button.kvc__arrow.kvc__arrow--next svg {
    fill: transparent;
}

@media (max-width: 640px) {
	.kvc__slide {
		width: 88vw;
		margin: 0 12px;
	}

	.kvc .kvc__arrow {
		width: 40px;
		height: 40px;
	}

	.kvc .kvc__play-icon {
		width: 56px;
		height: 40px;
		border-radius: 10px;
	}
}
