/*
 * Column page ("Column" template, automatic for pages with a "Latest Posts"
 * block): the introduction of the page as a lead, the list of articles as
 * a grid of cards. Loaded only on those pages.
 */
.column-hero .is-style-eyebrow {
	color: var(--wp--preset--color--primary);
}

.column-content > :where(p, .wp-block-paragraph, h2, h3, ol, ul:not(.wp-block-latest-posts)) {
	max-inline-size: 46rem;
}

.column-content > p:first-of-type {
	margin-block-start: 0;
	color: var(--wp--preset--color--contrast);
	font-family: var(--wp--preset--font-family--heading);
	font-size: var(--wp--preset--font-size--xl);
	line-height: 1.35;
}

.column-content > p:first-of-type strong {
	font-weight: 700;
}

.column-content > p {
	font-size: var(--wp--preset--font-size--lg);
	line-height: 1.6;
}

/* The articles: cards, image on top. */
.column-content .wp-block-latest-posts.wp-block-latest-posts__list {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr));
	gap: var(--wp--preset--spacing--60) var(--wp--preset--spacing--50);
	margin-block-start: var(--wp--preset--spacing--70);
	padding-block-start: var(--wp--preset--spacing--50);
	border-block-start: 3px solid var(--wp--preset--color--contrast);
}

.column-content .wp-block-latest-posts.wp-block-latest-posts__list > li {
	display: flex;
	flex-direction: column;
	gap: var(--wp--preset--spacing--20);
	padding: 0;
	border: 0;
}

.column-content .wp-block-latest-posts .wp-block-latest-posts__featured-image {
	margin-block-end: var(--wp--preset--spacing--20);
}

.column-content .wp-block-latest-posts .wp-block-latest-posts__featured-image img {
	aspect-ratio: 3 / 2;
}

/* The block sets the image size inline (max-width, max-height): fill the card. */
.column-content .wp-block-latest-posts .wp-block-latest-posts__featured-image :is(a, img) {
	display: block;
	inline-size: 100%;
	max-inline-size: none !important;
	max-block-size: none !important;
}

.column-content .wp-block-latest-posts .wp-block-latest-posts__post-title {
	font-size: var(--wp--preset--font-size--lg);
}
