/* Section: blog — template-parts/sections/blog.php */

.blog__title {
	margin-inline-start: 60px;
	margin-bottom: 80px;
}

.blog__slide {
	display: grid;
	gap: var(--wp--preset--spacing--40);
}

@media (min-width: 782px) {
	.blog__slide {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 20px;
		padding: 10px 10px 6px;
	}
}

.blog__post-title {
	margin: 0;
	font-size: var(--wp--preset--font-size--large);
	font-weight: 500;
	line-height: 1.2;
	text-transform: uppercase;
	text-align: end;
	color: var(--wp--preset--color--accent);
}

.blog__post-title a {
	color: inherit;
	text-decoration: none;
}

.blog__media {
	display: block;
	aspect-ratio: 360 / 350;
	background: var(--wp--preset--color--surface);
}

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

.blog__summary {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	justify-content: flex-end;
	gap: 20px;
	padding-bottom: 3px;
}

.blog__excerpt {
	margin: 0;
}

@media (max-width: 781.98px) {
	.blog__title {
		margin-inline-start: 0;
		margin-bottom: 40px;
	}
}

/* Vertical position matched to the original design (desktop). */
@media (min-width: 782px) {
	.blog {
		padding-top: 84px;
	}
}

/* Phones — measured against timsteel.pt at 375px. */
@media (max-width: 781.98px) {
	.blog__title {
		margin-bottom: 44px;
	}

	.blog__slide {
		gap: 20px;
		padding: 10px;
	}

	.blog__post-title {
		font-size: 20px;
		text-align: end;
	}

	.blog__media {
		aspect-ratio: 307 / 350;
	}

	.blog__summary {
		margin-top: -4px;
		padding-bottom: 0;
	}
}
