.my-testimonials {
	/* Background left transparent so a section image can sit behind it. */
	--myt-card: #f5f3ee;
	--myt-ink: #1f2430;
	--myt-body: #4a4f57;
	--myt-onimage: #ffffff;
	--myt-gap: 24px;
	--myt-card-width: 21%;
	--myt-card-min-height: 520px;
	--myt-font: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

	background: transparent;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	position: relative;
	padding: 72px 40px 48px;
	box-sizing: border-box;
	max-width: none;
	width: 100%;
	font-family: var(--myt-font);
}

/*
 * Scrim only when an image is set, so a transparent section stays clean.
 * Content is lifted above it.
 */
.my-testimonials.has-bg::before {
	content: '';
	position: absolute;
	inset: 0;
	background: rgba(24, 28, 36, 0.4);
	pointer-events: none;
}

.my-testimonials.has-bg > * {
	position: relative;
	z-index: 1;
}

.my-testimonials *,
.my-testimonials *::before,
.my-testimonials *::after {
	box-sizing: border-box;
}

.my-testimonials h3,
.my-testimonials p,
.my-testimonials blockquote,
.my-testimonials button {
	font-family: inherit;
}

/* Head --------------------------------------------------------------- */

.my-testimonials__head {
	margin-bottom: 40px;
}

.my-testimonials__label {
	margin: 0;
	font-size: 12px;
	font-weight: 500;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: var(--myt-onimage);
}

.my-testimonials__rule {
	display: block;
	width: 48px;
	height: 1px;
	margin: 16px 0 28px;
	background: currentColor;
	color: var(--myt-onimage);
	opacity: 0.6;
}

.my-testimonials__headline {
	margin: 0;
	max-width: 88%;
	width: 100%;
	font-size: 35px;
	font-weight: 400;
	line-height: 1.2;
	letter-spacing: -0.01em;
	color: var(--myt-onimage);
}

/* Track -------------------------------------------------------------- */

.my-testimonials__viewport {
	overflow: hidden;
}

.my-testimonials__track {
	display: flex;
	align-items: stretch;
	/* Rows share the tallest card's height, so the shape stays even. */
	gap: var(--myt-gap);
	overflow-x: auto;
	scroll-behavior: smooth;
	scroll-snap-type: x mandatory;
	scroll-padding: 0;
	scrollbar-width: none;
	-ms-overflow-style: none;
	padding-bottom: 4px;
}

.my-testimonials__track::-webkit-scrollbar {
	display: none;
}

.my-testimonials.is-static .my-testimonials__track {
	justify-content: center;
	overflow-x: visible;
}

.my-testimonials.is-static .my-testimonials__footer {
	display: none;
}

/* Card --------------------------------------------------------------- */

.my-testimonials__card {
	flex: 0 0 auto;
	width: var(--myt-card-width, 21%);
	min-width: 240px;
	min-height: var(--myt-card-min-height, 460px);
	background: var(--myt-card);
	padding: 32px 26px 28px;
	scroll-snap-align: start;
	scroll-snap-stop: always;
	display: flex;
	flex-direction: column;
	align-self: stretch;
}

.my-testimonials__card-rule {
	display: block;
	width: 44px;
	height: 1px;
	margin-bottom: 26px;
	background: #b9b3a6;
}

.my-testimonials__card-title {
	margin: 0 0 18px;
	font-size: 21px;
	font-weight: 500;
	line-height: 1.3;
	color: var(--myt-ink);
}

.my-testimonials__quote {
	flex: 1 0 auto;
	margin: 0 0 24px;
	font-size: 14px;
	line-height: 1.65;
	color: var(--myt-body);
}

.my-testimonials__author {
	display: flex;
	align-items: center;
	gap: 14px;
	margin: auto 0 0;
	font-size: 12px;
	font-weight: 500;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--myt-ink);
}

.my-testimonials__author-rule {
	display: block;
	width: 32px;
	height: 1px;
	flex: 0 0 auto;
	background: currentColor;
}

/* Footer: arrows ----------------------------------------------------- */

.my-testimonials__footer {
	display: flex;
	align-items: center;
	justify-content: center;
	margin-top: 36px;
}

.my-testimonials__nav {
	display: flex;
	gap: 12px;
	flex: 0 0 auto;
}

.my-testimonials__arrow {
	width: 52px;
	height: 52px;
	padding: 0;
	line-height: 0;
	border: 1px solid rgba(255, 255, 255, 0.7);
	border-radius: 50%;
	background: transparent;
	color: var(--myt-onimage) !important;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	transition: background 0.2s ease, opacity 0.2s ease;
}

.my-testimonials__arrow.is-active {
	background: rgba(255, 255, 255, 0.9);
	border-color: transparent;
	color: var(--myt-ink) !important;
}

.my-testimonials__arrow[disabled] {
	opacity: 0.4;
	cursor: default;
}

.my-testimonials__arrow svg {
	width: 22px !important;
	height: 22px !important;
	max-width: none;
	display: block;
	fill: none;
	stroke: currentColor;
	pointer-events: none;
}

.my-testimonials__arrow svg path {
	fill: none !important;
	stroke: currentColor !important;
	stroke-width: 1.5;
}

/* Responsive --------------------------------------------------------- */

@media (max-width: 1024px) {
	.my-testimonials {
		padding: 56px 24px 36px;
	}

	.my-testimonials__card {
		width: 32%;
	}
}

@media (max-width: 782px) {
	.my-testimonials__card {
		width: 46%;
		min-width: 0;
	}
}

@media (max-width: 640px) {
	.my-testimonials {
		padding: 44px 0 30px;
	}

	.my-testimonials__head,
	.my-testimonials__footer {
		padding: 0 20px;
	}

	.my-testimonials__headline {
		max-width: none;
		font-size: 28px;
	}

	.my-testimonials__track {
		--myt-gap: 16px;
		padding-left: 20px;
		padding-right: 20px;
		scroll-padding-left: 20px;
	}

	.my-testimonials.is-static .my-testimonials__track {
		justify-content: flex-start;
	}

	.my-testimonials__card {
		width: 72%;
		min-width: 0;
		min-height: 420px;
		padding: 26px 22px 24px;
	}

	.my-testimonials__card-title {
		font-size: 21px;
	}

	.my-testimonials__arrow {
		width: 46px;
		height: 46px;
	}
}
