.asg-testimonial-slider {
	--asg-testimonial-desktop-slides: 4;
	--asg-testimonial-tablet-slides: 2;
	--asg-testimonial-gap: 24px;
	--asg-testimonial-lines: 8;
	--asg-testimonial-accent: #70151b;
}

/* ---- Track ---- */
.asg-testimonial-viewport {
	display: flex;
	align-items: stretch;
	gap: var(--asg-testimonial-gap);
	overflow-x: auto;
	overflow-y: hidden;
	scroll-snap-type: x mandatory;
	-webkit-overflow-scrolling: touch;
	overscroll-behavior-x: contain;
	scrollbar-width: none;
	-ms-overflow-style: none;
	padding: 4px 4px 6px;
	scroll-behavior: smooth;
}

.asg-testimonial-viewport::-webkit-scrollbar {
	display: none;
	height: 0;
	width: 0;
}

.asg-testimonial-slide {
	flex: 0 0 calc((100% - (var(--asg-testimonial-desktop-slides) - 1) * var(--asg-testimonial-gap)) / var(--asg-testimonial-desktop-slides));
	scroll-snap-align: start;
	text-align: left;
}

/* ---- Card ---- */
.asg-testimonial-card {
	height: 100%;
	display: flex;
	flex-direction: column;
	background: #fff;
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 1px 8px rgba(27, 28, 28, .06);
}

.asg-testimonial-photo {
	aspect-ratio: 16 / 9;
	overflow: hidden;
	background: #f2ede4;
}

/* Same footprint as a real photo, so a card without one still lines its
   name, stars and quote up with its neighbours. */
.asg-testimonial-photo--empty {
	display: flex;
	align-items: center;
	justify-content: center;
	background:
		radial-gradient(circle at 30% 25%, rgba(255, 255, 255, .55), transparent 60%),
		linear-gradient(140deg, #f3ebe0 0%, #e8dccd 100%);
}

.asg-testimonial-initials {
	font-family: 'Playfair Display', Georgia, serif;
	font-size: clamp(26px, 4vw, 40px);
	font-weight: 600;
	letter-spacing: .06em;
	color: var(--asg-testimonial-accent);
	opacity: .55;
	user-select: none;
}

.asg-testimonial-photo img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center 20%;
}

.asg-testimonial-body {
	padding: 18px 20px 22px;
	text-align: center;
	flex: 1;
	display: flex;
	flex-direction: column;
}

.asg-testimonial-name {
	font-family: 'Playfair Display', Georgia, serif;
	font-weight: 600;
	font-size: 17px;
	line-height: 1.35;
	color: #1b1c1c;
	margin: 2px 0 6px;
	/* Two lines' worth of space is reserved so a one-line name and a
	   two-line name still put their stars on the same baseline. */
	min-height: calc(2 * 1.35em);
	display: flex;
	align-items: center;
	justify-content: center;
}

.asg-testimonial-stars {
	display: block;
	color: #e0a734;
	font-size: 14px;
	letter-spacing: 3px;
	margin-bottom: 10px;
}

.asg-testimonial-quote-wrap {
	display: flex;
	flex-direction: column;
	align-items: center;
}

.asg-testimonial-quote {
	font-size: 14px;
	line-height: 1.7;
	color: #555;
	margin: 0;
	/* Trimmed to a set number of lines so one very long review can't
	   stretch every card in the row to its height. The JS only reveals
	   the toggle when the text genuinely overflows. */
	display: -webkit-box;
	-webkit-line-clamp: var(--asg-testimonial-lines);
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.asg-testimonial-quote.is-expanded {
	-webkit-line-clamp: unset;
	overflow: visible;
}

.asg-testimonial-more {
	margin-top: 8px;
	padding: 2px 0;
	border: 0;
	background: none;
	font: inherit;
	font-size: 13px;
	font-weight: 600;
	color: var(--asg-testimonial-accent);
	text-decoration: underline;
	text-underline-offset: 3px;
	cursor: pointer;
}

.asg-testimonial-more[hidden] {
	display: none;
}

.asg-testimonial-more:hover {
	opacity: .75;
}

.asg-testimonial-more:focus-visible {
	outline: 2px solid var(--asg-testimonial-accent);
	outline-offset: 2px;
}

/* ---- Dots ---- */
.asg-testimonial-dots {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 8px;
	margin-top: 20px;
}

.asg-testimonial-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #e5d9cf;
	border: none;
	padding: 0;
	cursor: pointer;
	transition: background .2s ease, transform .2s ease;
}

.asg-testimonial-dot.is-active {
	background: var(--asg-maroon, #70151b);
	transform: scale(1.3);
}

/* ---- Tablet: fewer cards per view ---- */
@media (max-width: 1024px) {
	.asg-testimonial-slider {
		--asg-testimonial-gap: 18px;
	}
	.asg-testimonial-slide {
		flex-basis: calc((100% - (var(--asg-testimonial-tablet-slides) - 1) * var(--asg-testimonial-gap)) / var(--asg-testimonial-tablet-slides));
	}
}

/* ---- Mobile: centered "peek" card - middle card 100%, neighbors peek ~10% on each side.
   Off-center cards are dimmed/scaled down so the peeked slivers read as an
   intentional carousel edge rather than clipped, overlapping content. ---- */
@media (max-width: 600px) {
	.asg-testimonial-slider {
		--asg-testimonial-gap: 14px;
	}
	.asg-testimonial-viewport {
		padding-inline: 10%;
		scroll-padding-inline: 10%;
	}
	.asg-testimonial-slide {
		flex-basis: 80%;
		scroll-snap-align: center;
		transition: opacity .35s ease, transform .35s ease;
		opacity: .45;
		transform: scale(.92);
	}
	.asg-testimonial-slide.is-active {
		opacity: 1;
		transform: scale(1);
	}
}

/* ---- Small phones (320-400px) ----
   The 10% side padding plus an 80% slide leaves a 230px card at 320px,
   which is too narrow for a quote column. Widen the slide and shrink
   the peek so the active card gets the room. */

@media (max-width: 400px) {
	.asg-testimonial-slider {
		--asg-testimonial-gap: 10px;
	}

	.asg-testimonial-viewport {
		padding-inline: 5%;
		scroll-padding-inline: 5%;
	}

	.asg-testimonial-slide {
		flex-basis: 90%;
	}

	.asg-testimonial-body {
		padding: 16px 14px 20px;
	}

	.asg-testimonial-name {
		font-size: 16px;
	}

	.asg-testimonial-quote {
		font-size: 13px;
		line-height: 1.65;
	}
}
