/* TEST-1: testimonials grid */

/* Cards in a row share one height. The person sits at the foot of each. */
.wprk-test-1 .wprk-test-1__card {
	display: flex;
	flex-direction: column;
	height: 100%;
}

/*
 * The opening mark is decoration, drawn from the heading typeface in the accent
 * colour. Its empty text alternative keeps it away from screen readers.
 */
.wprk-test-1 .wprk-test-1__card::before {
	color: var(--wprk-accent);
	content: "\201C";
	content: "\201C" / "";
	display: block;
	font-family: var(--wp--preset--font-family--heading);
	font-size: 4rem;
	font-weight: var(--wp--custom--heading--weight);
	height: 0.5em;
	line-height: 1;
}

.wprk-test-1 .wprk-test-1__card > .wp-block-post-excerpt {
	color: var(--wprk-heading);
	font-size: var(--wp--preset--font-size--large);
	line-height: 1.5;
	margin-block: var(--wp--preset--spacing--20) var(--wp--preset--spacing--40);
	overflow-wrap: break-word;
}

/* Photo, name and designation in one row above a hairline. */
.wprk-test-1 .wprk-test-1__person {
	border-block-start: 1px solid var(--wprk-border);
	gap: var(--wp--preset--spacing--20);
	margin-block-start: auto;
	padding-block-start: var(--wp--preset--spacing--30);
}

.wprk-test-1 .wprk-test-1__person > .wp-block-post-featured-image {
	flex: none;
	margin: 0;
	width: 3.5rem;
}

.wprk-test-1 .wprk-test-1__person > .wp-block-post-featured-image img {
	border-radius: 50%;
}

.wprk-test-1 .wprk-test-1__who {
	min-width: 0;
}

.wprk-test-1 .wprk-test-1__who > * {
	margin-block: 0;
	overflow-wrap: break-word;
}

/* The name is a heading for structure, but reads as bold body text. */
.wprk-test-1 .wprk-test-1__who > .wp-block-post-title {
	font-family: var(--wp--preset--font-family--body);
	font-size: var(--wp--preset--font-size--medium);
	font-weight: 600;
	letter-spacing: normal;
	line-height: 1.35;
}

.wprk-test-1 .wprk-test-1__who > p {
	font-size: var(--wp--preset--font-size--small);
	line-height: 1.4;
	margin-block-start: 0.125rem;
}

/* A testimonial without a designation leaves no gap. */
.wprk-test-1 .wprk-test-1__who > p:empty {
	display: none;
}
