.latest-posts {
	position: relative;
	margin: 0;
	padding: clamp(36px, 2.3vw, 44px) 0 clamp(52px, 3.35vw, 64px);
	background: var(--site-background);
}

.latest-posts::before{
	position: absolute;
	right: var(--site-gutter);
	left: var(--site-gutter);
	height: 1px;
	background: var(--site-border-soft);
	content: "";
	pointer-events: none;
}

.latest-posts::before {
	top: 0;
}

.latest-posts__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	margin: 0 0 clamp(32px, 2.1vw, 40px);
	padding-inline: var(--site-gutter);
}

.latest-posts__heading {
	margin: 0;
	font-family: inherit;
	font-size: calc(18px * var(--a11y-text-scale, 1));
	font-weight: 400;
	line-height: 1.25;
}

.latest-posts__more {
	flex: 0 0 auto;
	margin: 0;
	font-size: calc(clamp(14px, 0.84vw, 16px) * var(--a11y-text-scale, 1));
	line-height: 1.25;
}

.latest-posts__more a,
.latest-posts__title a {
	color: inherit;
	text-decoration: none;
}

.latest-posts__more a {
	display: inline-flex;
	align-items: center;
	gap: 4px;
}

.latest-posts__query {
	margin: 0;
	padding-inline: var(--site-gutter);
}

.latest-posts__grid.wp-block-post-template {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 40px;
	margin: 0;
	padding: 0;
}

.latest-posts__card {
	margin: 0;
}

.latest-posts__image {
	margin: 0 0 12px;
	overflow: hidden;
}

.latest-posts__image img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 16 / 9;
	object-fit: cover;
	transition: transform 350ms ease;
}

.latest-posts__image:hover img,
.latest-posts__image:focus-within img {
	transform: scale(1.025);
}

.latest-posts__date {
	display: none;
}

.latest-posts__title {
	margin: 0;
	font-family: inherit;
	font-size: calc(18px * var(--a11y-text-scale, 1));
	font-weight: 400;
	line-height: 1.25;
}

.latest-posts__empty {
	margin: 0;
}

@media (max-width: 1024px) {
	.latest-posts {
		display: grid;
		padding-bottom: 0;
	}

	.latest-posts__header {
		display: contents;
	}

	.latest-posts__heading {
		order: 1;
		margin-bottom: clamp(32px, 4vw, 40px);
		padding-inline: var(--site-gutter);
	}

	.latest-posts__query {
		order: 2;
		padding-bottom: clamp(40px, 5vw, 56px);
	}

	.latest-posts__more {
		display: flex;
		align-items: center;
		justify-content: center;
		order: 3;
		height: 60px;
		margin: 0 var(--site-gutter);
		border-top: 1px solid #000;
	}

	.latest-posts__grid.wp-block-post-template {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		row-gap: 48px;
	}
}

@media (max-width: 768px) {
	.latest-posts::before{
		display: none;
	}

	.latest-posts__grid.wp-block-post-template {
		gap: 30px;
	}
}

@media (max-width: 599px) {
	.latest-posts {
		padding-top: 0;
	}

	.latest-posts__heading {
		margin-bottom: 32px;
	}


	.latest-posts__card {
		display: grid;
		grid-template-columns: 3fr 4fr;
		gap: 10px;
	}

	.latest-posts__card>div {
		margin: 0;
	}

	h3.latest-posts__title.wp-block-post-title {
		font-size: calc(15px * var(--a11y-text-scale, 1));
	}
}
