/* SM Testimonials */
.smt {
	--smt-gap: 96px;
	--smt-quote-size: 190px;
	--smt-quote-color: #e6e3df;
	--smt-text-color: #2b2b2b;
	--smt-author-color: #9a9a9a;
	--smt-nav-color: #8b6e57;
	--smt-nav-align: flex-start;
	position: relative;
	width: 100%;
}

.smt .smt__track {
	display: grid;
	gap: var(--smt-gap);
}

/* Carousel: native scroll-snap, so swipe and trackpads work without a library */
.smt.smt--carousel .smt__track {
	grid-auto-flow: column;
	grid-auto-columns: calc((100% - (var(--smt-cols, 2) - 1) * var(--smt-gap)) / var(--smt-cols, 2));
	overflow-x: auto;
	overscroll-behavior-x: contain;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	scrollbar-width: none;
}
.smt.smt--carousel .smt__track::-webkit-scrollbar {
	display: none;
}
.smt.smt--carousel .smt__track:focus-visible {
	outline: 2px solid var(--smt-nav-color);
	outline-offset: 6px;
}

.smt.smt--grid .smt__track {
	grid-template-columns: repeat(var(--smt-cols, 2), minmax(0, 1fr));
	row-gap: calc(var(--smt-gap) * 0.6);
}

.smt .smt__item {
	position: relative;
	margin: 0;
	padding: 52px 0 0 40px;
	scroll-snap-align: start;
	min-width: 0;
}

.smt .smt__quote {
	position: absolute;
	top: 0;
	left: 0;
	z-index: 0;
	font-family: Georgia, "Times New Roman", serif;
	font-size: var(--smt-quote-size);
	font-weight: 700;
	font-style: italic;
	line-height: 0.8;
	color: transparent;
	-webkit-text-stroke: 1.5px var(--smt-quote-color);
	pointer-events: none;
	user-select: none;
}

.smt .smt__body {
	position: relative;
	z-index: 1;
}

.smt .smt__title {
	margin: 0 0 12px;
	font-size: 1.25rem;
	font-weight: 500;
	color: var(--smt-text-color);
}

.smt .smt__text {
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
	font-size: 1.25rem;
	font-weight: 300;
	font-style: normal;
	line-height: 1.75;
	color: var(--smt-text-color);
	quotes: none;
}
.smt .smt__text::before,
.smt .smt__text::after {
	content: none; /* themes often add their own quote marks to blockquote */
}
.smt .smt__text p {
	margin: 0 0 0.8em;
	font: inherit;
	color: inherit;
}
.smt .smt__text p:last-child {
	margin-bottom: 0;
}

.smt .smt__author {
	margin-top: 22px;
	font-size: 0.8rem;
	font-weight: 500;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--smt-author-color);
}
.smt .smt__job {
	display: block;
	margin-top: 4px;
	letter-spacing: 0.08em;
	text-transform: none;
}

/* Navigation */
.smt .smt__nav {
	display: flex;
	align-items: center;
	justify-content: var(--smt-nav-align);
	gap: 16px;
	margin-top: 36px;
	padding-left: 40px;
}
.smt .smt__nav[hidden] {
	display: none;
}

.smt button.smt__arrow {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	margin: 0;
	padding: 0;
	color: var(--smt-nav-color);
	background: transparent;
	border: 1px solid currentColor;
	border-radius: 50%;
	box-shadow: none;
	cursor: pointer;
	opacity: 0.8;
	transition: opacity 0.2s, background-color 0.2s;
}
.smt button.smt__arrow:hover,
.smt button.smt__arrow:focus {
	color: var(--smt-nav-color);
	background: transparent;
	opacity: 1;
}
.smt button.smt__arrow:focus-visible {
	outline: 2px solid var(--smt-nav-color);
	outline-offset: 2px;
}
.smt button.smt__arrow svg {
	width: 18px;
	height: 18px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.smt .smt__dots {
	display: flex;
	gap: 4px;
}
.smt button.smt__dot {
	width: 24px;
	height: 24px;
	margin: 0;
	padding: 0;
	background: transparent;
	border: 0;
	box-shadow: none;
	cursor: pointer;
	position: relative;
}
.smt button.smt__dot::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 8px;
	height: 8px;
	margin: -4px 0 0 -4px;
	border-radius: 50%;
	background: var(--smt-nav-color);
	opacity: 0.3;
	transition: opacity 0.2s, transform 0.2s;
}
.smt button.smt__dot[aria-current="true"]::after {
	opacity: 1;
	transform: scale(1.2);
}
.smt button.smt__dot:hover,
.smt button.smt__dot:focus {
	background: transparent;
}
.smt button.smt__dot:focus-visible {
	outline: 2px solid var(--smt-nav-color);
	outline-offset: -2px;
	border-radius: 50%;
}

@media (max-width: 1024px) {
	.smt { --smt-gap: 48px; }
}

@media (max-width: 767px) {
	.smt {
		--smt-cols: 1; /* Elementor's own column setting overrides this */
		--smt-gap: 32px;
		--smt-quote-size: 140px;
	}
	.smt .smt__item { padding: 40px 0 0 24px; }
	.smt .smt__text { font-size: 1.1rem; }
	.smt .smt__nav { padding-left: 24px; }
}

@media (prefers-reduced-motion: reduce) {
	.smt.smt--carousel .smt__track { scroll-behavior: auto; }
}

.smt-empty {
	padding: 40px;
	text-align: center;
	color: #6b6b6b;
	background: #f3f3f3;
	border: 1px dashed #c9c9c9;
	border-radius: 8px;
}
