/* ===== Testimonial carousel (sections.js turns .ig-carousel into a one-at-a-time slider) ===== */
.ig-testimonials {
	background: var(--wp--preset--color--grey);
	text-align: center;
}
.ig-carousel { margin-top: 20px; }
.ig-carousel .wp-block-quote {
	box-sizing: border-box;
	max-width: 900px;
	margin: 0 auto;
	padding: 0;
	border: 0;
}
.ig-carousel .wp-block-quote + .wp-block-quote { margin-top: 56px; } /* without JavaScript: stacked */
.ig-carousel .wp-block-quote::before {
	content: "“";
	display: block;
	margin-bottom: 18px;
	color: var(--wp--preset--color--light-blue);
	font-family: Georgia, "Times New Roman", serif;
	font-size: 80px;
	line-height: 0.6;
}
.ig-carousel .wp-block-quote p {
	color: var(--wp--preset--color--navy);
	font-size: clamp(19px, 2.6vw, 26px);
	font-weight: 600;
	line-height: 1.5;
	letter-spacing: -0.01em;
}
.ig-carousel .wp-block-quote cite {
	display: block;
	margin-top: 24px;
	color: var(--wp--preset--color--muted);
	font-size: 13px;
	font-style: normal;
	line-height: 1.5;
}
.ig-carousel .wp-block-quote cite strong {
	color: var(--wp--preset--color--navy);
	font-size: 15px;
}
/* Slider: every quote sits in the same grid cell, so the height is the tallest quote's and nothing jumps. */
.ig-carousel.is-ready:focus-visible { outline-offset: 8px; }
.ig-carousel__track { display: grid; align-items: center; } /* a short quote sits in the middle of the tallest one's height */
.ig-carousel__track > .wp-block-quote,
.ig-carousel__track > .wp-block-quote + .wp-block-quote {
	grid-area: 1 / 1;
	margin-top: 0;
}
.ig-carousel__track > .wp-block-quote[hidden] {
	display: block;
	visibility: hidden;
}
.ig-carousel__nav {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	margin-top: 28px;
}
.ig-carousel__arrow {
	display: grid;
	place-items: center;
	flex: none;
	width: 40px;
	height: 40px;
	margin: 0 6px;
	padding: 0;
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 50%;
	background: var(--wp--preset--color--white);
	color: var(--wp--preset--color--blue);
	font: inherit;
	font-size: 16px;
	line-height: 1;
	cursor: pointer;
}
.ig-carousel__arrow:hover {
	border-color: var(--wp--preset--color--blue);
	background: var(--wp--preset--color--blue);
	color: var(--wp--preset--color--white);
}
/* Dots: a 24px target with an 8px dot (22px wide for the current quote). */
.ig-carousel__dot {
	display: grid;
	place-items: center;
	flex: none;
	width: 24px;
	height: 24px;
	padding: 0;
	border: 0;
	background: none;
	cursor: pointer;
}
.ig-carousel__dot::before {
	content: "";
	width: 8px;
	height: 8px;
	border-radius: 999px;
	background: #94a3b8;
}
.ig-carousel__dot:hover::before { background: var(--wp--preset--color--muted); }
.ig-carousel__dot[aria-current="true"] { width: 30px; }
.ig-carousel__dot[aria-current="true"]::before {
	width: 22px;
	background: var(--wp--preset--color--blue);
}
/* Counter ("3 / 12"): replaces the dots on narrow screens, where a long row of them can't fit. */
.ig-carousel__count {
	display: none;
	min-width: 4.5em;
	color: var(--wp--preset--color--muted);
	font-size: 14px;
	font-weight: 600;
	text-align: center;
	font-variant-numeric: tabular-nums;
}
/* 519px: a row of 12 dots and the arrows needs about 500px. */
@media (max-width: 519px) {
	.ig-carousel__dot { display: none; }
	.ig-carousel__count { display: block; }
}
