/**
 * Captioned figure in the style of the commitments section
 * (.bst-commitment): the image in a frame with a fixed aspect ratio
 * (object-fit: cover), the caption below in the heading font italic at
 * --text-h3. Shared by the homepage commitments section (its grid and
 * stagger are in home.css) and the technology figures of the about page
 * (about.css). Loaded on those two pages.
 *
 * Markup: figure.bst-commitment.bst-commitment--square|--portrait >
 * .bst-commitment__media > img.bst-commitment__img, then
 * figcaption.bst-commitment__caption.
 */

.bst-commitment {
	margin: 0;
}

.bst-commitment__media {
	overflow: hidden;
	background-color: var(--color-border); /* while the photo loads */
}

.bst-commitment--square .bst-commitment__media {
	aspect-ratio: 1;
}

.bst-commitment--portrait .bst-commitment__media {
	aspect-ratio: 4 / 5;
}

.bst-commitment__img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.bst-commitment__caption {
	margin-top: 1em;
	color: var(--color-forest);
	font-family: var(--font-heading);
	font-size: var(--text-h3);
	font-style: italic;
	line-height: 1.3;
	text-align: left;
	text-transform: none;
}
