/* Editorial legacy pages presented through EVT-owned block templates. */

.evt-editorial-page {
	background: var(--evt-color-paper);
	overflow: clip;
	padding-bottom: clamp(5rem, 9vw, 10rem);
}

.evt-editorial-page__header,
.evt-editorial-page__grid {
	display: grid;
	gap: var(--evt-grid-gap);
	grid-template-columns: repeat(12, minmax(0, 1fr));
	margin-inline: auto;
	max-width: none !important;
	width: var(--evt-shell);
}

.evt-editorial-page__header {
	align-items: end;
	border-bottom: 1px solid var(--evt-color-line);
	padding-block: clamp(5rem, 9vw, 10rem) clamp(3rem, 6vw, 6rem);
}

.evt-editorial-page__header .evt-eyebrow {
	align-self: start;
	grid-column: 1 / 3;
	margin: 0.65rem 0 0;
}

.evt-editorial-page__title {
	font-size: clamp(3rem, 2rem + 3.8vw, 5.75rem) !important;
	grid-column: 3 / 8;
	line-height: 0.92 !important;
	margin: 0;
	max-width: 11ch;
}

.evt-editorial-page__lead {
	align-self: end;
	color: var(--evt-color-muted);
	font-family: var(--wp--preset--font-family--display);
	font-size: clamp(1.2rem, 1.05rem + 0.6vw, 1.625rem);
	grid-column: 8 / -1;
	line-height: 1.5;
	margin: 0;
	max-width: 32rem;
}

.evt-editorial-page__grid {
	align-items: start;
	padding-top: clamp(4rem, 8vw, 9rem);
}

.evt-about-page__portrait {
	background:
		linear-gradient(to top, rgb(0 0 0 / 16%), transparent 55%),
		url('../images/placeholders/flute-portrait.jpg') center 30% / cover no-repeat;
	grid-column: 1 / 7;
	min-height: clamp(36rem, 64vw, 60rem);
}

.evt-about-page__content,
.evt-contact-page__content {
	color: #383634;
	font-family: var(--wp--preset--font-family--display);
	font-size: clamp(1.125rem, 1.05rem + 0.35vw, 1.375rem);
	grid-column: 8 / -1;
	line-height: 1.72;
	max-width: 38rem;
}

.evt-about-page__content > :first-child:has(img) {
	display: none;
}

.evt-about-page__content > *,
.evt-contact-page__content > * {
	margin-inline: 0;
	max-width: 100%;
}

.evt-contact-page__label {
	font-size: clamp(1.5rem, 1.2rem + 1vw, 2.25rem);
	grid-column: 3 / 7;
	margin: 0;
}

.evt-contact-page__content > h1:first-child {
	display: none;
}

.evt-contact-page__content a {
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 0.2em;
}

.evt-women-gallery {
	margin-inline: auto !important;
	max-width: none !important;
	width: var(--evt-photo-max) !important;
}

.evt-women-gallery > :where(.wp-block-image, figure) {
	max-width: none !important;
}

@media (max-width: 1023px) {
	.evt-editorial-page__header .evt-eyebrow {
		grid-column: 1 / 4;
	}

	.evt-editorial-page__title {
		grid-column: 4 / -1;
	}

	.evt-editorial-page__lead {
		grid-column: 6 / -1;
		margin-top: 2rem;
	}

	.evt-about-page__portrait {
		grid-column: 1 / 7;
	}

	.evt-about-page__content,
	.evt-contact-page__content {
		grid-column: 7 / -1;
	}
}

@media (max-width: 767px) {
	.evt-editorial-page__header,
	.evt-editorial-page__grid {
		gap: 1.25rem;
		grid-template-columns: minmax(0, 1fr);
	}

	.evt-editorial-page__header {
		padding-block: clamp(3.5rem, 16vw, 5rem) clamp(2.75rem, 12vw, 4rem);
	}

	.evt-editorial-page__header .evt-eyebrow,
	.evt-editorial-page__title,
	.evt-editorial-page__lead,
	.evt-about-page__portrait,
	.evt-about-page__content,
	.evt-contact-page__label,
	.evt-contact-page__content {
		grid-column: 1;
	}

	.evt-editorial-page__header .evt-eyebrow,
	.evt-editorial-page__lead {
		margin-top: 0;
	}

	.evt-editorial-page__title {
		font-size: clamp(2.2rem, 10vw, 3.6rem) !important;
	}

	.evt-about-page__portrait {
		min-height: min(130vw, 42rem);
	}

	.evt-about-page__content,
	.evt-contact-page__content {
		margin-top: 1rem;
	}
}
