/* About page (templates/page-about.html, patterns/template-page-about.php).
   Laid out on the measures of the artist index (assets/css/artists.css, the roster): the title at the
   theme's own h1 size and at the same height under the header, the text in the names' column (5 of
   12), the featured image in the preview's box (7 of 12: sticky, as tall as the viewport below the
   header, level with the title), shown whole and centred in it. Narrow screens: title, image, text.
   The image is never cropped, so a photograph of any orientation can replace it. */

.cg-about {
	--cg-gutter: max(var(--wp--style--root--padding-left, 20px), calc((100% - var(--wp--style--global--wide-size, 1400px)) / 2));
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: clamp(24px, 4vw, 40px);
	padding: var(--wp--preset--spacing--60) var(--cg-gutter) clamp(60px, 8vw, 110px);
}

.cg-about-title {
	margin: 0;
	/* The archive titles' setting (theme.json, core/query-title). */
	font-family: var(--wp--preset--font-family--inter);
	font-size: var(--wp--preset--font-size--xx-large);
}

.cg-about-figure { margin: 0; }
.cg-about-image { display: block; width: 100%; height: auto; max-height: 78vh; object-fit: contain; object-position: left top; }

.cg-about-text { max-width: 640px; }
.cg-about-text > :first-child { margin-top: 0; }
.cg-about-text p { margin-block: 0 1.25em; }
/* The opening paragraph in the light, tight setting of the roster's names, at a reading size. */
.cg-about-text > p.has-large-font-size { font-size: clamp(1.375rem, 1.8vw, 1.625rem) !important; line-height: 1.4; letter-spacing: -.01em; }
.cg-about-text a { color: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
.cg-about-text a:hover { color: var(--wp--preset--color--accent); }

.cg-about-contact { margin-top: clamp(40px, 6vw, 70px); padding-top: clamp(24px, 3vw, 32px); border-top: 1px solid currentColor; }
.cg-about-contact-title { margin: 0 0 20px; font-size: 12px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; }
.cg-about-contact-list { margin: 0; display: grid; gap: 10px; }
.cg-about-contact-list > div { display: grid; grid-template-columns: minmax(0, 9em) minmax(0, 1fr); gap: 20px; }
.cg-about-contact-list dt { opacity: 0.65; }
.cg-about-contact-list dd { margin: 0; }

@media (min-width: 901px) {
	.cg-about { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: clamp(40px, 6vw, 110px); row-gap: 54px; align-items: start; }
	.cg-about-title, .cg-about-text { grid-column: 1; }
	/* The roster's preview box: 64px header + breathing room, flex so the image's max-height resolves against it. */
	.cg-about-figure { grid-column: 2; grid-row: 1 / span 2; position: sticky; top: 84px; height: calc(100vh - 108px); display: flex; align-items: center; justify-content: center; }
	.cg-about-image { max-height: 100%; object-position: center; }
	.cg-about.is-plain { grid-template-columns: minmax(0, 1fr); }
}
