/**
 * Story Quotes block (blocks/content/story-quotes.php)
 *
 * "Quotes on Del Maguey": centered heading over a row of quotes, each under a
 * circular logo or portrait. Type follows achievements.css (the section above
 * it on Our Story): display face for heading and quotes, Roboto Condensed for
 * the attribution.
 */

.dm-story-quotes {
	background-color: var(--color-cream);
	padding-block: clamp(3rem, 6vw, 5.5rem);
}

.dm-story-quotes__inner {
	padding-inline: 16px;
}

.dm-story-quotes__heading {
	margin: 0 0 clamp(2.25rem, 4vw, 3rem);
	text-align: center;
	color: var(--dm-fg-default-primary);
	font-family: var(--font-display, "IM Fell Double Pica", serif);
	font-weight: 400;
	font-size: clamp(2.25rem, 4.2vw, 3.25rem);
	line-height: 1.1;
	letter-spacing: -0.02em;
}

.dm-story-quotes__heading em {
	font-style: italic;
}

/* ---- Quotes row ------------------------------------------------------ */
.dm-story-quotes__grid {
	list-style: none;
	margin: 0 auto;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	column-gap: clamp(2rem, 6vw, 7rem);
	row-gap: 3.5rem;
	max-width: 76rem;
}

.dm-story-quotes__grid--1 {
	grid-template-columns: minmax(0, 1fr);
	max-width: 38rem;
}

.dm-story-quotes__grid--3 {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.dm-story-quotes__figure {
	display: flex;
	flex-direction: column;
	align-items: center;
	margin: 0;
	text-align: center;
}

/* ---- Circle ---------------------------------------------------------- */
.dm-story-quotes__avatar {
	display: block;
	width: clamp(140px, 12vw, 186px);
	aspect-ratio: 1 / 1;
	border-radius: 50%;
	overflow: hidden;
}

.dm-story-quotes__avatar.is-empty {
	background: var(--dm-ext-grey); /* placeholder, as achievements */
}

.dm-story-quotes__img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* Logos: whole mark on a white disc, inset so corners never touch the edge. */
.dm-story-quotes__avatar--logo:not(.is-empty) {
	background: var(--dm-bg-default-white);
}

.dm-story-quotes__avatar--logo .dm-story-quotes__img {
	object-fit: contain;
	padding: 18%;
}

/* ---- Quote + attribution --------------------------------------------- */
.dm-story-quotes__quote {
	margin: clamp(1.75rem, 3vw, 2.5rem) 0 0;
	max-width: 36rem;
}

.dm-story-quotes__quote p {
	margin: 0;
	color: var(--dm-fg-default-primary);
	font-family: var(--font-display, "IM Fell Double Pica", serif);
	font-weight: 400;
	/* Figma heading/h4: 32px / 120%. */
	font-size: clamp(1.5rem, 2.3vw, 2rem);
	line-height: 1.2;
}

.dm-story-quotes__quote p::before {
	content: "\201C";
}

.dm-story-quotes__quote p::after {
	content: "\201D";
}

.dm-story-quotes__source {
	margin-top: clamp(1.25rem, 2vw, 1.75rem);
	color: var(--dm-fg-default-secondary);
	/* Figma body/lg/regular: 18px / 140%. */
	font-family: var(--font-sans, "Roboto Condensed", sans-serif);
	font-size: 18px;
	font-weight: 400;
	line-height: 1.4;
}

.dm-story-quotes__source::before {
	content: "\2013\00a0";
}

/* ---- Responsive ------------------------------------------------------ */
@media (max-width: 1023px) {
	.dm-story-quotes__grid--3 {
		grid-template-columns: minmax(0, 1fr);
		max-width: 38rem;
	}
}

@media (max-width: 767px) {
	.dm-story-quotes {
		padding-block: 3rem;
	}

	.dm-story-quotes__grid {
		grid-template-columns: minmax(0, 1fr);
		row-gap: 3rem;
	}

	.dm-story-quotes__avatar {
		width: 128px;
	}
}

/* ---- Small desktop (1024-1280) ---------------------------------------
 * No Figma board; shared 1280 rules. */
@media (min-width: 1024px) and (max-width: 1280.98px) {
	.dm-story-quotes {
		padding-block: 80px;
	}

	.dm-story-quotes__inner {
		/* The capped 1080 container already provides the 100px gutter. */
		padding-inline: 0;
	}

	.dm-story-quotes__heading {
		margin-bottom: 48px;
		font-size: 46px;
	}

	.dm-story-quotes__grid {
		column-gap: 48px;
		row-gap: 48px;
	}

	.dm-story-quotes__grid--3 {
		column-gap: 24px;
	}

	.dm-story-quotes__avatar {
		width: 160px;
	}

	.dm-story-quotes__quote {
		margin-top: 32px;
	}

	.dm-story-quotes__quote p {
		font-size: 26px;
	}
}
