/* ===== Latest articles (core/query): cards like parts/post-card.php ===== */
.ig-latest-posts__head {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 12px 24px;
}
.ig-latest-posts__all a {
	color: var(--wp--preset--color--blue);
	font-size: 14px;
	font-weight: 700;
	text-decoration: none;
}
.ig-latest-posts__all a:hover { color: var(--wp--preset--color--navy); }
.ig-latest-posts .ig-latest-posts__grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 24px;
	margin: 40px 0 0;
	padding: 0;
	list-style: none;
}
.ig-latest-posts__grid > li { display: flex; margin: 0; }
.ig-latest-posts .ig-post-card {
	position: relative;
	display: flex;
	flex: 1;
	flex-direction: column;
	overflow: hidden;
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 16px;
	background: var(--wp--preset--color--white);
}
.ig-latest-posts .ig-pc-img {
	height: 190px;
	overflow: hidden;
}
.ig-latest-posts .ig-pc-img img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}
/* No featured image: the blue gradient block, as on the blog. */
.ig-latest-posts .ig-post-card:not(:has(.ig-pc-img))::before {
	content: "";
	display: block;
	height: 190px;
	background: linear-gradient(135deg, var(--wp--preset--color--blue), var(--wp--preset--color--light-blue));
}
.ig-latest-posts .ig-pc-body {
	display: flex;
	flex: 1;
	flex-direction: column;
	padding: 22px;
}
.ig-latest-posts .ig-pc-cat {
	color: var(--wp--preset--color--blue);
	font-size: 11px;
	font-weight: 800;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}
.ig-latest-posts .ig-pc-cat a { color: inherit; text-decoration: none; }
.ig-latest-posts .ig-pc-title {
	flex: 1;
	margin-top: 10px;
	font-size: 17px;
	font-weight: 700;
	line-height: 1.35;
}
/* The title link covers the whole card. */
.ig-latest-posts .ig-pc-title a {
	color: var(--wp--preset--color--navy);
	text-decoration: none;
}
.ig-latest-posts .ig-pc-title a::after {
	content: "";
	position: absolute;
	inset: 0;
}
.ig-latest-posts .ig-post-card:hover .ig-pc-title a { color: var(--wp--preset--color--blue); }
.ig-latest-posts .ig-pc-meta {
	margin-top: 14px;
	color: var(--wp--preset--color--muted);
	font-size: 12.5px;
}
@media (min-width: 600px) {
	.ig-latest-posts .ig-latest-posts__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 900px) {
	.ig-latest-posts .ig-latest-posts__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
