.posts
{
	display: grid;
	gap: 50px;
}

.posts:where(:not(:nth-child(2)))
{
	margin-top: var(--wp--custom--v-pad);
}

.post
{
	background: var(--wp--preset--color--white);
	border-radius: 20px;
	padding: 50px;
	display: grid;
	grid-template-rows: auto 1fr auto;
	grid-template-areas: "title" "date" "categories" "excerpt" "button";
	justify-items: start;

	box-shadow: 0 0 20px #10438E3D;
}

.post .title
{
	font-weight: 700;
	font-size: var(--wp--preset--font-size--twentyfive);
	text-transform: uppercase;
	margin-top: 10px;
	margin-bottom: 0;
	grid-area: title;
}

.post .date
{
	margin: 0;
}

.post .categories
{
	grid-area: categories;
	margin: 10px 0;
	padding: 0;
	list-style: none;
	display: inline-flex;
	flex-wrap: wrap;
	gap: 5px;
}

.post .categories a
{
	padding: 2px 8px;
	background: #0003;
	color: #FFF;
	border-radius: 5px;
	text-decoration: none;
}

.post .excerpt
{
	margin: 5px 0 20px;
	grid-area: excerpt;
}

.post .button
{
	color: var(--theme-colour);
	font-size: var(--wp--preset--font-size--smaller);
	grid-area: button;
	padding-inline: 1.2em;
}

@media (min-width: 500px)
{
	.posts
	{
		grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
		justify-items: center;
	}

	.post
	{
		max-width: 500px;
		width: 100%
	}
}

@media (hover: hover)
{
	.post:has(.button:hover)
	{
		background: linear-gradient(var(--theme-colour), var(--wp--preset--color--blue));
		color: var(--wp--preset--color--white)
	}

	.post .button:hover
	{
		background: var(--wp--preset--color--white)
	}
}
