/**
 * About page (page-about-me.php, inc/about.php): intro, education and
 * experience, consultation, procedures, skin care, technology. Loaded
 * on that page only. The split layout is in split.css, the technology
 * figures in commitment.css, the intro contact list in contact-list.css
 * and the consultation items in numbered-list.css. See "About page" in
 * docs/design-system.md.
 */

/* Lead paragraph (intro, consultation, procedures). */

.bst-about__lead {
	margin-bottom: 1.5em;
}

/*
 * Education and experience: two blocks, each an h3 and a list of lines
 * with hairlines between them; the second block ends with a paragraph.
 */
.bst-about-block + .bst-about-block {
	margin-top: 2em;
}

.bst-about-block__title {
	margin-bottom: 0.5em;
}

.bst-about-lines {
	margin: 0;
	padding: 0;
	list-style: none;
}

.bst-about-lines__item {
	margin: 0;
	padding: 0.75em 0;
}

.bst-about-lines__item + .bst-about-lines__item {
	border-top: 1px solid var(--color-border);
}

.bst-about-block__text {
	margin: 1em 0 0;
}

/*
 * Procedures (split layout): five items stacked with hairlines between
 * them: an h3 and an optional short paragraph.
 */
.bst-about-procedures__list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.bst-about-procedures__item {
	margin: 0;
	padding: 1.25em 0;
}

.bst-about-procedures__item:last-child {
	padding-bottom: 0;
}

.bst-about-procedures__item + .bst-about-procedures__item {
	border-top: 1px solid var(--color-border);
}

.bst-about-procedures__title {
	margin: 0;
}

.bst-about-procedures__text {
	margin: 0.5em 0 0;
}

/*
 * Skin care: three short facts (one column, three in a row from 600px;
 * label in the eyebrow style, text in body text), centered under the
 * section heading, then four photos at 4:5 (two columns below 1024px,
 * four from 1024px, gap --gap).
 */
.bst-about-facts {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: var(--gap);
	margin: 0 0 calc(var(--section-y) / 2);
	text-align: center;
}

.bst-about-facts__label {
	margin: 0 0 0.5em;
}

.bst-about-facts__text {
	margin: 0;
}

.bst-about-photos {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: var(--gap);
	margin: 0;
	padding: 0;
	list-style: none;
}

.bst-about-photos__item {
	margin: 0;
}

.bst-about-photos__img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 4 / 5;
	object-fit: cover;
}

/*
 * Technology: three figures in the style of the commitments section
 * (commitment.css), one column below 600px, three from 600px.
 */
.bst-about-tech__grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: var(--gap);
}

@media (min-width: 600px) {

	.bst-about-facts {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.bst-about-tech__grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (min-width: 1024px) {

	.bst-about-photos {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}
