main {
	padding: 4rem 0rem;

	background-image: var(--bg-image);
	background-repeat: no-repeat;
	background-position: center right;
}

main h2 {
	color: var(--secondary);
	text-transform: uppercase;
	text-align: center;
}

hr {
	margin-inline: auto;
	margin-bottom: 2rem;
}

.post-list {
	max-width: 1280px;
	padding-inline: 2rem;
	margin-inline: auto;
	display: grid;
	grid: auto / repeat(3, 1fr);
	gap: 2rem;
}

@media (max-width: 1280px) {
	.post-list {
		grid: auto / repeat(2, 1fr);
	}
}

@media (max-width: 800px) {
	.post-list {
		display: flex;
		flex-direction: column;
	}
}

.post {
	display: flex;
	background-color: var(--post);
	flex-direction: column;
}

.post:hover {
	background-color: var(--bg1);
	box-shadow: 0px 0px 8px -2px black;
}

.post img {
	width: 100%;
	height: 20rem;
	flex-shrink: 0;
	object-position: center;
	object-fit: cover;
}

.post-content {
	padding: 1rem;
	flex: 1;

	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.post-content time,
.post-content h1 {
	font-weight: 800;
}

.post-content h1 {
	font-size: 1.25rem;
}

.post-content p {
	margin-block: 2rem;
}

.post-content a {
	margin-top: auto;
	width: max-content;
	padding: 0.5rem 1rem;
	border: solid 1px var(--secondary);
	border-radius: 1.5rem;
	color: var(--secondary);

	transition: all 0.15s ease-in-out;
}

.post-content a:hover {
	border: solid 1px var(--bg2);
	background-color: var(--bg2);
	color: var(--bg1);
}

.pagination {
	margin-top: 2rem;
	width: max-content;
	margin-inline: auto;
}

.pagination-content {
	height: 100%;

	display: flex;
	flex-direction: row;
}

.pagination p,
.pagination a {
	height: 100%;
	padding: 0.5rem 1rem;
}

.navigation {
	border: solid 1px #dee2e6;
	color: var(--secondary);
}

.disabled {
	color: #dee2e6;
}

.navigation:not(.disabled):hover {
	background-color: #dee2e6;
	color: #0056b3;
}

.prev {
	border-top-left-radius: 0.25rem;
	border-bottom-left-radius: 0.25rem;
	border-right: none;
}

.next {
	border-top-right-radius: 0.25rem;
	border-bottom-right-radius: 0.25rem;
	border-left: none;
}
