/* ── Video Testimonials Widget ── */
.lg-vt-section {
	box-sizing: border-box;
	padding: 4rem 0;
}

.lg-vt-container {
	max-width: 80rem;
	margin: 0 auto;
	padding: 0 1rem;
}

.lg-vt-title {
	font-size: 2rem;
	font-weight: 800;
	margin: 0 0 0.25rem;
	line-height: 1.2;
}

.lg-vt-subtitle {
	font-size: 1.25rem;
	font-weight: 600;
	margin: 0 0 0.5rem;
	font-style: italic;
}

.lg-vt-description {
	font-size: 0.95rem;
	margin: 0 0 2rem;
	opacity: 0.85;
	font-style: italic;
}

/* Grid */
.lg-vt-grid {
	display: grid;
	gap: 1rem;
}

/* Card – NO height:0, NO padding-bottom trick, NO aspect-ratio on card.
   The card is a normal flow element whose height comes from its child (.lg-vt-facade). */
.lg-vt-card {
	cursor: pointer;
	border-radius: 0.75rem;
	overflow: hidden;
	position: relative;
	outline: none;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.lg-vt-card:hover,
.lg-vt-card:focus-visible {
	transform: translateY(-4px);
	box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.lg-vt-card:focus-visible {
	outline: 2px solid #3b82f6;
	outline-offset: 2px;
}

/* Facade – THIS is now the element that defines the card height.
   It is a normal flow block with aspect-ratio, NOT position:absolute. */
.lg-vt-facade {
	position: relative;
	width: 100%;
	aspect-ratio: 1 / 1;
	overflow: hidden;
	background: #1e293b;
	display: flex;
	align-items: center;
	justify-content: center;
}

.lg-vt-thumb {
	position: absolute;
	inset: 0;
	width: 100% !important;
	height: 100% !important;
	object-fit: cover !important;
	object-position: center;
}

.lg-vt-placeholder {
	position: absolute;
	inset: 0;
	background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
}

/* Play button */
.lg-vt-play {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	z-index: 2;
	transition: transform 0.2s ease, opacity 0.2s ease;
	filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.5));
}

.lg-vt-card:hover .lg-vt-play {
	transform: translate(-50%, -50%) scale(1.1);
}

.lg-vt-play-bg {
	opacity: 0.85;
}

.lg-vt-card:hover .lg-vt-play-bg {
	opacity: 1;
}

/* Title label overlay */
.lg-vt-label {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	z-index: 2;
	padding: 0.6rem 0.75rem;
	background: linear-gradient(to bottom, rgba(0, 0, 0, 0.7) 0%, transparent 100%);
}

.lg-vt-label span {
	color: #ffffff;
	font-size: 0.8rem;
	font-weight: 700;
	text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
}

/* Iframe loaded state – hide facade, show iframe */
.lg-vt-card.lg-vt-loaded .lg-vt-facade {
	display: none;
}

.lg-vt-iframe-wrap {
	position: relative;
	width: 100%;
	aspect-ratio: 1 / 1;
	overflow: hidden;
	background: #000;
}

.lg-vt-iframe-wrap iframe {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

/* ── Elementor container height fix ── */
.elementor-widget-local_garage_video_testimonials,
.elementor-widget-local_garage_video_testimonials>.elementor-widget-container {
	height: auto !important;
	overflow: visible !important;
}

/* Fix Elementor flex containers that wrap this widget */
.e-con:has(.lg-vt-section),
.e-con-inner:has(.lg-vt-section) {
	height: auto !important;
	min-height: auto !important;
}

/* ── Responsive ── */
@media (max-width: 1024px) {
	.lg-vt-grid {
		grid-template-columns: repeat(3, 1fr) !important;
	}
}

@media (max-width: 767px) {
	.lg-vt-section {
		padding: 3rem 0;
	}

	.lg-vt-container {
		padding: 0 1rem;
	}

	.lg-vt-grid {
		grid-template-columns: 1fr !important;
		max-width: 100%;
		margin: 0 auto;
		gap: 1.5rem;
	}

	.lg-vt-title {
		font-size: 1.5rem;
	}

	.lg-vt-subtitle {
		font-size: 1.15rem;
	}

	.lg-vt-description {
		font-size: 0.95rem;
		margin-bottom: 1.5rem;
	}
}