/**
 * Testimonial
 *
 * Two styles over one field set. Shared here is only the quote block itself — mark,
 * blockquote, attribution. The single style's geometry follows; the carousel's is in
 * testimonial/carousel.css.
 */

.module.testimonial .quote {
	display: flex;
	flex-direction: column;
}

.module.testimonial .mark {
	align-self: flex-start;
}

.module.testimonial .mark svg {
	color: var(--dark-teal);
	display: block;
	height: 64px;
	width: 64px;
}

.module.testimonial blockquote {
	margin: 0;
}

.module.testimonial blockquote p {
	margin: 0;
}

.module.testimonial figcaption {
	display: flex;
	flex-direction: column;
}

.module.testimonial figcaption p {
	margin: 0;
}

/*** Style: single — one quote beside a photo that runs to the edge of the screen ***/

.page-builder > .module.testimonial.style-single:last-child {
	margin-bottom: 0;
}

.module.testimonial.style-single .media {
	aspect-ratio: 766 / 825;
	grid-row: 1;
}

.module.testimonial.style-single .quote {
	align-self: center;
	gap: var(--text-spacing-small);
	grid-row: 1;
	margin: 0 0 86px;
	position: sticky;
	top: calc(var(--text-spacing-xsmall) + var(--sticky-nav-height) + var(--text-spacing-small));
}

.module.testimonial.style-single figcaption {
	gap: 4px;
}

/** Layout: image left (default) **/

.module.testimonial.style-single.image-left .media {
	grid-column: 1 / span 7;
	margin-left: var(--viewport-edge);
	margin-right: 37px;
}

.module.testimonial.style-single.image-left .quote {
	grid-column: 8 / span 5;
}

/** Layout: image right **/

.module.testimonial.style-single.image-right .media {
	grid-column: 6 / span 7;
	margin-left: 37px;
	margin-right: var(--viewport-edge);
}

.module.testimonial.style-single.image-right .quote {
	grid-column: 1 / span 5;
}

/***************************************************************************************************************************************************************************************/
/* MQ MAX-WIDTH 950 - Tablet Sizes */
/***************************************************************************************************************************************************************************************/

@media only screen and (max-width: calc(950rem/16)) {

	.module.testimonial.style-single:is(.image-left, .image-right) .media {
		aspect-ratio: 3 / 2;
		grid-column: 1 / -1;
		grid-row: auto;
		margin-inline: var(--viewport-edge);
	}

	.module.testimonial.style-single:is(.image-left, .image-right) .quote {
		grid-column: 1 / -1;
		grid-row: auto;
		margin: 0;
		position: static;
	}

	/* The wash paints the module's own box, and stacked the attribution was that box's last line —
	   so the gradient stopped dead under the name. Padding carries it on past the words. Wash only:
	   without one this would be empty space. */
	.module.testimonial.style-single.wash {
		padding-bottom: 48px;
	}

}
