/* Xolid Testimonial Carousel - frontend styles */

.xtc-wrapper {
	position: relative;
}

.xtc-wrapper * {
	box-sizing: border-box;
}

/* Arrows, top-right, Webflow-style */

.xtc-arrows {
	display: flex;
	justify-content: flex-end;
	gap: 10px;
	margin-bottom: 20px;
}

.xtc-arrow {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	border: none;
	background-color: rgba(255, 255, 255, 0.1);
	color: #FFFFFF;
	cursor: pointer;
	transition: background-color 0.2s ease, transform 0.2s ease;
	padding: 0;
}

.xtc-arrow:hover {
	background-color: rgba(255, 255, 255, 0.2);
}

.xtc-arrow:active {
	transform: scale(0.94);
}

.xtc-arrow:disabled {
	opacity: 0.35;
	cursor: default;
}

.xtc-arrow:disabled:hover {
	background-color: rgba(255, 255, 255, 0.1);
}

/* Track */

.xtc-track {
	--xtc-per-view: 3.2;
	display: flex;
	gap: 20px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
	padding-bottom: 4px;
}

.xtc-track::-webkit-scrollbar {
	display: none;
}

.xtc-card {
	position: relative;
	flex: 0 0 calc((100% - (var(--xtc-per-view) - 1) * 20px) / var(--xtc-per-view));
	scroll-snap-align: start;
	background-color: #141414;
	border-radius: 14px;
	overflow: hidden;
}

.xtc-card__media {
	position: relative;
	width: 100%;
	aspect-ratio: 4/5;
	overflow: hidden;
	background-color: #0A0A0A;
}

.xtc-card__poster,
.xtc-card__hover-video {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	z-index: 0;
}

.xtc-card__hover-video {
	opacity: 0;
	transition: opacity 0.3s ease;
	pointer-events: none;
}

.xtc-card__hover-video.is-playing {
	opacity: 1;
}

/* Dark gradient across the bottom half only, so overlaid text stays readable
   without darkening the whole thumbnail. Transparent at the vertical
   midpoint, 90% black at the very bottom edge. */
.xtc-card__gradient {
	position: absolute;
	left: 0;
	right: 0;
	top: 50%;
	bottom: 0;
	background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.9) 100%);
	pointer-events: none;
	z-index: 1;
}

.xtc-card__logo {
	position: absolute;
	top: 16px;
	left: 16px;
	max-height: 28px;
	max-width: 40%;
	object-fit: contain;
	filter: brightness(0) invert(1);
	opacity: 0.9;
	z-index: 2;
}

.xtc-card__expand {
	position: absolute;
	top: 16px;
	right: 16px;
	z-index: 3;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	border: none;
	background-color: rgba(0, 0, 0, 0.5);
	backdrop-filter: blur(4px);
	color: #FFFFFF;
	cursor: pointer;
	padding: 0;
	transition: background-color 0.2s ease;
}

.xtc-card__expand:hover {
	background-color: rgba(0, 0, 0, 0.75);
}

/* Text overlay, anchored to the bottom of the image */
.xtc-card__overlay {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 2;
	padding: 20px;
	display: flex;
	flex-direction: column;
}

.xtc-card__stat {
	display: flex;
	align-items: baseline;
	gap: 8px;
	margin-bottom: 8px;
}

.xtc-card__stat-number {
	font-size: 28px;
	font-weight: 800;
	color: #E3A317;
	line-height: 1;
}

.xtc-card__stat-label {
	font-size: 13px;
	color: #E0E0E0;
}

.xtc-card__quote {
	font-size: 15px;
	line-height: 1.55;
	color: #FFFFFF;
	margin: 0 0 10px;
}

.xtc-card__person {
	display: flex;
	flex-direction: column;
}

.xtc-card__name {
	font-size: 15px;
	font-weight: 700;
	color: #FFFFFF;
}

.xtc-card__role {
	font-size: 13px;
	color: #D6D6D6;
	margin-top: 2px;
}

/* Lightbox */

.xtc-lightbox {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity 0.25s ease, visibility 0s linear 0.25s;
}

.xtc-lightbox.is-open {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
	transition: opacity 0.25s ease, visibility 0s linear 0s;
}

.xtc-lightbox__backdrop {
	position: absolute;
	inset: 0;
	background-color: rgba(0, 0, 0, 0.88);
}

.xtc-lightbox__close {
	position: absolute;
	top: 20px;
	right: 20px;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	border: none;
	background-color: rgba(255, 255, 255, 0.1);
	color: #FFFFFF;
	cursor: pointer;
	padding: 0;
}

.xtc-lightbox__close:hover {
	background-color: rgba(255, 255, 255, 0.2);
}

.xtc-lightbox__frame {
	position: relative;
	z-index: 1;
	width: 0;
	height: 0;
	max-width: 92vw;
	background-color: #000;
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.xtc-lightbox__frame iframe,
.xtc-lightbox__frame video {
	display: block;
	width: 100%;
	height: 100%;
	border: none;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
	.xtc-track {
		scroll-behavior: auto;
	}

	.xtc-card__hover-video,
	.xtc-lightbox {
		transition: none !important;
	}
}

/* Responsive */
@media (max-width: 900px) {
	.xtc-card__stat,
	.xtc-card__quote,
	.xtc-card__person {
		padding-left: 16px;
		padding-right: 16px;
	}
}

@media (max-width: 480px) {
	.xtc-arrows {
		display: none;
	}
}
