/* ===============================
   ROOT RESET (Editor Proof)
================================ */

.vc-root {
	all: initial;
	font-family: -apple-system, BlinkMacSystemFont, sans-serif;
	width: 100%;
	position: relative;
}

.vc-root * {
	box-sizing: border-box;
}

/* ===============================
   GRID (DEFAULT)
================================ */

.vc-root.grid .vc-track {
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	gap: 16px;
}

/* ===============================
   CAROUSEL
================================ */

.vc-root.carousel {
	position: relative;
}

.vc-root.carousel .vc-track {
	display: flex;
	gap: 16px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	padding: 4px 0;
}

.vc-root.carousel .vc-track::-webkit-scrollbar {
	display: none;
}

/* ===============================
   CARD (STRICT 9:16)
================================ */

.vc-card {
	position: relative;
	aspect-ratio: 9 / 16;
	border-radius: 18px;
	overflow: hidden;
	background: transparent;
	scroll-snap-align: start;
}

/* ===============================
   MEDIA LAYER
================================ */

.vc-media {
	position: absolute;
	inset: 0;
}

.vc-thumb,
.vc-video {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.vc-video {
	opacity: 0;
	pointer-events: none;
}

/* ===============================
   HOVER PLAY
================================ */

.vc-card:hover .vc-video {
	opacity: 1;
}

.vc-card:hover .vc-thumb {
	opacity: 0;
}

/* ===============================
   PLAY ICON
================================ */

.vc-play {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 3;
	pointer-events: none;
}

.vc-play::before {
	content: '';
	width: 56px;
	height: 56px;
	background: rgba(255,255,255,0.85);
	border-radius: 50%;
	mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='black' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M8 5v14l11-7z'/%3E%3C/svg%3E") center / 22px no-repeat;
}

.vc-card:hover .vc-play {
	display: none;
}

/* ===============================
   CTA
================================ */

.vc-cta {
	position: absolute;
	bottom: 12px;
	left: 50%;
	transform: translateX(-50%);
	background: #000;
	color: #fff;
	padding: 8px 18px;
	border-radius: 999px;
	font-size: 15px;
	font-weight: 700;
	text-decoration: none;
	z-index: 4;
}

/* ===============================
   NAV ARROWS
================================ */

.vc-nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: #fff;
	border: none;
	font-size: 26px;
	cursor: pointer;
	z-index: 10;
	box-shadow: 0 6px 20px rgba(0,0,0,.15);
}

.vc-prev { left: -22px; }
.vc-next { right: -22px; }

/* ===============================
   RESPONSIVE
================================ */

@media (max-width: 1024px) {
	.vc-root.grid .vc-track {
		grid-template-columns: repeat(3, 1fr);
	}
}

@media (max-width: 640px) {
	.vc-root.grid .vc-track {
		grid-template-columns: repeat(2, 1fr);
	}
}
