/* Five records retain the supplied four-card desktop and one-card mobile strip. */
.nh-testimonial-collection {
	/* Keep caption glyph descent inside the horizontal scrollport so a vertical
	 * touch gesture chains to the document on its first movement. */
	padding-bottom: .25em;
}

.nh-testimonial-collection > .nh-testimonial-card {
	flex: 0 0 calc((100% - 30px) / 4);
	min-width: 0;
	text-align: center;
}

.nh-home-testimonials .nh-testimonial-card {
	flex-basis: 301px;
}

.nh-testimonial-play {
	position: relative;
	display: block;
	width: 100%;
	aspect-ratio: 1;
	margin-bottom: 24px;
	border-radius: 50%;
	overflow: hidden;
}

.nh-testimonial-play img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
	transition: transform var(--nh-motion-image) var(--nh-motion-ease);
}

.nh-testimonial-play:is(:hover, :active) img {
	transform: scale(1.04);
}

.nh-testimonial-play-art {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 60px;
	height: 60px;
	background: url('ui-states/testimonial-play.svg') center / 60px 60px no-repeat;
	transform: translate(-50%, -50%);
	pointer-events: none;
}

.nh-testimonial-card .nh-testimonial-play-art {
	top: 80%;
	opacity: .85;
	transition: opacity var(--nh-motion-open) var(--nh-motion-ease);
}

.nh-testimonial-card .nh-testimonial-play:is(:hover, :focus-visible) .nh-testimonial-play-art {
	opacity: 1;
}

.nh-testimonial-preview-unavailable {
	display: grid;
	place-items: center;
	width: 100%;
	height: 100%;
	padding: 20px;
	background: var(--nh-teal);
	color: #fff;
}

.nh-testimonial-play:focus-visible {
	outline: 3px solid var(--nh-teal);
	outline-offset: -4px;
}

.nh-testimonial-card h3 {
	margin: 0 0 8px;
	font: 600 24px/1 Manrope, Arial, sans-serif;
	letter-spacing: -.02em;
}

.nh-testimonial-card > p {
	margin: 0;
	font-size: 16px;
	line-height: 1;
	text-transform: uppercase;
	color: var(--nh-muted-ink);
	opacity: 1;
}

.nh-testimonial-dialog {
	width: min(960px, calc(100% - 24px));
	max-width: none;
	max-height: calc(100dvh - 24px);
	padding: 52px 20px 16px;
}

.nh-testimonial-dialog h2 {
	margin: 0 0 12px;
	font: 600 24px/1.2 Manrope, Arial, sans-serif;
	text-align: center;
}

.nh-testimonial-dialog .nh-testimonial-video {
	display: block;
	width: 100%;
	height: min(640px, calc(100dvh - 160px));
	min-height: 100px;
	margin: 0;
	background: #000;
	object-fit: contain;
}

.nh-testimonial-error {
	margin: 12px 0 0;
	font-size: 14px;
}

@media (width <= 700px) {
	.nh-testimonial-collection > .nh-testimonial-card,
	.nh-home-testimonials .nh-testimonial-card {
		flex-basis: min(301px, calc(84 * var(--nh-canvas-vw, 1vw)));
	}

	.nh-home-testimonials .nh-testimonial-strip .nh-strip-controls {
		display: none;
	}

	.nh-testimonial-dialog {
		padding-inline: 12px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.nh-testimonial-play img,
	.nh-testimonial-card .nh-testimonial-play-art {
		transition: none;
	}
}
