/* Luxury Testimonial Slider */
.lxt {
	--lxt-card: var(--lxt-card-d, 300px);
	container: lxt / inline-size;
	position: relative;
	box-sizing: border-box;
	background: var(--lxt-bg, #0a0a0e);
	color: var(--lxt-text, #fcfaf2);
	padding: 64px 0 32px;
	overflow: hidden;
	width: 100%;
	max-width: 100%;
	-webkit-tap-highlight-color: transparent;
}
.lxt.lxt--full { width: var(--lxt-vw, 100vw); max-width: var(--lxt-vw, 100vw); margin-left: calc(50% - var(--lxt-vw, 100vw) / 2) !important; margin-right: calc(50% - var(--lxt-vw, 100vw) / 2) !important; }
.lxt.lxt--font { font-family: 'IBM Plex Sans Thai', Tahoma, sans-serif; }
.lxt *, .lxt *::before, .lxt *::after { box-sizing: border-box; }

/* reset ปุ่ม/ข้อความ กันธีมใส่สไตล์ทับ */
.lxt button {
	font: inherit; margin: 0; padding: 0; min-height: 0; min-width: 0; line-height: 1;
	text-transform: none; letter-spacing: normal; box-shadow: none; text-shadow: none;
	-webkit-appearance: none; appearance: none; cursor: pointer;
}
.lxt button:focus-visible, .lxt .lxt-track:focus-visible { outline: 3px solid var(--lxt-accent, #ebd49a); outline-offset: 4px; }
.lxt p, .lxt h2 { margin: 0; padding: 0; }

/* ---------- Intro ---------- */
.lxt-intro { text-align: center; padding: 0 24px; max-width: 720px; margin: 0 auto; }
.lxt-kicker { font-size: 11px; color: var(--lxt-accent); letter-spacing: 3px; margin-bottom: 16px !important; }
.lxt .lxt-heading { font-family: inherit; font-size: clamp(28px, 4vw, 48px); font-weight: 500; line-height: 1.35; color: inherit; margin-bottom: 16px; letter-spacing: normal; text-transform: none; }
.lxt-heading em { font-family: Georgia, 'Times New Roman', serif; font-weight: 400; color: var(--lxt-accent); }
.lxt-desc { opacity: .72; font-size: 15px; line-height: 1.8; }

/* ---------- Track ---------- */
.lxt-carousel { position: relative; margin-top: 35px; }
.lxt-intro + .lxt-carousel { margin-top: 35px; }
.lxt > .lxt-carousel:first-child { margin-top: 0; }
.lxt-track {
	--w: min(var(--lxt-card), 82cqw);
	display: flex;
	align-items: center;
	gap: var(--lxt-gap, 24px);
	overflow-x: auto;
	overflow-y: hidden;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
	overscroll-behavior-x: contain;
	padding: 34px max(24px, calc((100% - var(--w)) / 2));
	-webkit-overflow-scrolling: touch;
	cursor: grab;
	user-select: none;
	-webkit-user-select: none;
}
.lxt-track::-webkit-scrollbar { display: none; }
.lxt-track.is-dragging { scroll-snap-type: none; cursor: grabbing; scroll-behavior: auto; }
.lxt-track.is-dragging .lxt-card { transition: none; }

.lxt-card {
	flex: 0 0 var(--w);
	width: var(--w);
	aspect-ratio: var(--lxt-ratio, 1 / 1);
	scroll-snap-align: center;
	position: relative;
	border-radius: var(--lxt-radius, 16px);
	overflow: hidden;
	background: #222;
	transform: scale(var(--lxt-side-scale, .91));
	opacity: var(--lxt-side-opacity, .6);
	transition: transform .35s ease, opacity .35s ease;
	box-shadow: 0 12px 28px rgba(0, 0, 0, .33);
	/* Safari: ให้ border-radius ตัดวิดีโอได้ */
	-webkit-mask-image: -webkit-radial-gradient(white, black);
}
.lxt-card.is-active { transform: scale(1); opacity: 1; }
.lxt-card .lxt-media {
	position: absolute; inset: 0; width: 100%; height: 100%; max-width: none;
	object-fit: cover; display: block; margin: 0; border-radius: 0; pointer-events: none;
	-webkit-user-drag: none;
}
.lxt-card::after {
	content: ''; position: absolute; inset: 30% 0 0;
	background: linear-gradient(transparent, rgba(0, 0, 0, .8)); pointer-events: none;
}
.lxt .lxt-open {
	position: absolute; inset: 0; width: 100%; height: 100%;
	border: 0; border-radius: 0; background: transparent; color: #fff; z-index: 2;
}
.lxt .lxt-open:hover, .lxt .lxt-open:focus { background: transparent; }
.lxt-circle {
	position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
	display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%;
	background: var(--lxt-text, #fcfaf2); color: #151817; font-size: 20px;
	box-shadow: 0 4px 20px rgba(0, 0, 0, .15);
	transition: transform .25s ease, opacity .25s ease;
}
.lxt-card[data-type=video] .lxt-circle { padding-left: 3px; }
.lxt-card:not(.is-active) .lxt-circle { opacity: .75; transform: translate(-50%, -50%) scale(.85); }
.lxt .lxt-open:hover .lxt-circle { transform: translate(-50%, -50%) scale(1.08); }
.lxt-caption { position: absolute; left: 22px; right: 22px; bottom: 24px; z-index: 3; pointer-events: none; color: #fff; }
.lxt-caption small { display: block; letter-spacing: 1.7px; font-size: 10px; color: var(--lxt-accent); margin-bottom: 8px; }
.lxt-caption strong { display: block; font-weight: 500; font-size: 17px; line-height: 1.5; }
.lxt-badge {
	position: absolute; top: 16px; left: 16px; z-index: 3; font-size: 10px; letter-spacing: 1px; color: #fff;
	background: rgba(0, 0, 0, .4); padding: 5px 9px; border: 1px solid rgba(255, 255, 255, .19); border-radius: 20px; pointer-events: none;
}

/* ---------- Nav ---------- */
.lxt-nav { max-width: 1030px; margin: 4px auto 0; padding: 0 28px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.lxt-nav:not(:has(.lxt-arrow)) { justify-content: center; }
.lxt .lxt-arrow {
	flex: 0 0 48px; width: 48px; height: 48px; border-radius: 50%;
	border: 1px solid var(--lxt-accent); background: transparent; color: var(--lxt-accent); font-size: 22px;
	display: grid; place-items: center; transition: background .2s, color .2s, opacity .2s;
}
.lxt .lxt-arrow:hover:not(:disabled) { background: var(--lxt-accent); color: var(--lxt-bg); }
.lxt .lxt-arrow:disabled { opacity: .25; cursor: default; }
.lxt-dots { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.lxt .lxt-dot {
	width: 10px; height: 10px; border: 0; border-radius: 50%; background: var(--lxt-text, #fcfaf2); opacity: .35;
	transition: width .25s ease, opacity .25s ease, background .25s;
}
.lxt .lxt-dot[aria-current=true] { background: var(--lxt-accent); opacity: 1; width: 28px; border-radius: 8px; }
.lxt-counter { text-align: center; opacity: .65; font-size: 12px; margin-top: 16px; letter-spacing: 1px; }
.lxt-hint { font-size: 11px; opacity: .55; text-align: center; margin-top: 14px !important; padding: 0 24px; }

/* ---------- Lightbox ---------- */
.lxt-dialog {
	border: 0; padding: 0; background: #121216; color: #fff; border-radius: 12px;
	max-width: 94vw; max-height: 94vh; max-height: 94dvh; overflow: hidden; font-family: inherit;
}
.lxt-dialog::backdrop { background: rgba(0, 0, 0, .87); }
.lxt-dialog-head { display: flex; gap: 20px; align-items: center; justify-content: space-between; padding: 10px 12px 10px 18px; }
.lxt-dialog-title { font-size: 13px; }
.lxt .lxt-close { flex: 0 0 36px; background: transparent; color: #fff; border: 1px solid #777; border-radius: 50%; width: 36px; height: 36px; font-size: 20px; display: grid; place-items: center; }
.lxt-viewer { display: flex; align-items: center; justify-content: center; min-width: 260px; }
.lxt-viewer video, .lxt-viewer img { display: block; max-width: 90vw; max-height: 80vh; max-height: 80dvh; width: auto; height: auto; object-fit: contain; }
.lxt-error { padding: 25px; }

/* ---------- Responsive ---------- */
@container lxt (max-width: 1024px) {
	.lxt-track { --lxt-card: var(--lxt-card-t, 260px); }
}
@container lxt (max-width: 700px) {
	.lxt-intro { padding: 0 22px; }
	.lxt .lxt-heading { font-size: 32px; }
	.lxt-desc { font-size: 14px; }
	.lxt-carousel, .lxt-intro + .lxt-carousel { margin-top: 22px; }
	.lxt-track { gap: min(var(--lxt-gap, 24px), 14px); padding-top: 24px; padding-bottom: 24px; }
	.lxt-caption { left: 18px; right: 18px; bottom: 20px; }
	.lxt-caption strong { font-size: 15px; }
	.lxt-nav { padding: 0 20px; gap: 12px; }
	.lxt .lxt-arrow { flex-basis: 42px; width: 42px; height: 42px; font-size: 19px; }
	.lxt-badge { top: 12px; left: 12px; }
}
@container lxt (max-width: 600px) {
	.lxt-track { --lxt-card: var(--lxt-card-m, 230px); }
}
@container lxt (max-width: 380px) {
	.lxt .lxt-heading { font-size: 27px; }
	.lxt-dots { gap: 7px; }
}
@media (max-width: 700px) {
	.lxt { padding-top: 40px; }
}
@media (prefers-reduced-motion: reduce) {
	.lxt-card, .lxt-circle, .lxt .lxt-dot { transition: none; }
}
