.humanity-custom-posts {
	--humanity-posts-border: #111;
	--humanity-posts-divider: #dddddd;
	--humanity-posts-orange: #F99E5A;

	display: grid;
	grid-template-columns: repeat(var(--humanity-posts-columns, 3), minmax(0, 1fr));
	width: 100%;
	border-top: 5px solid var(--humanity-posts-border);
	padding-top: 18px;
	font-family: "Times New Roman", Times, serif;
}

.humanity-custom-posts--cols-1 {
	--humanity-posts-columns: 1;
}

.humanity-custom-posts--cols-2 {
	--humanity-posts-columns: 2;
}

.humanity-custom-posts--cols-3 {
	--humanity-posts-columns: 3;
}

.humanity-custom-posts--cols-4 {
	--humanity-posts-columns: 4;
}

.humanity-custom-posts__item {
	min-width: 0;
	border-left: 1px solid var(--humanity-posts-divider);
	padding: 0 26px;
}

.humanity-custom-posts__item:first-child {
	border-left: 0;
	padding-left: 0;
}

.humanity-custom-posts__inner {
	display: grid;
	grid-template-columns: max-content minmax(0, 1fr);
	column-gap: 12px;
	row-gap: 6px;
	align-items: start;
	color: #000;
}

.humanity-custom-posts .humanity-custom-posts__title-link,
.humanity-custom-posts .humanity-custom-posts__title-link:visited,
.humanity-custom-posts .humanity-custom-posts__title-link:hover,
.humanity-custom-posts .humanity-custom-posts__title-link:focus,
.humanity-custom-posts .humanity-custom-posts__title-link:focus-visible,
.humanity-custom-posts .humanity-custom-posts__title-link:active {
	display: block;
	grid-column: 2;
	color: #000 !important;
	background: transparent !important;
	border: 0 !important;
	box-shadow: none !important;
	outline: 0 !important;
	text-decoration: none !important;
	text-shadow: none !important;
	transition: none !important;
}

.humanity-custom-posts__number {
	display: block;
	grid-column: 1;
	grid-row: 1;
	width: auto !important;
	min-width: 0 !important;
	color: var(--humanity-posts-orange);
	font-size: clamp(34px, 3.4vw, 52px);
	line-height: 0.95;
	font-weight: 400;
}

.humanity-custom-posts__content {
	display: contents;
	min-width: 0;
}

.humanity-custom-posts__category {
	display: block;
	grid-column: 2;
	grid-row: 1;
	margin-bottom: 8px;
	font-size: 16px;
	line-height: 1.1;
	font-weight: 600;
}

.humanity-custom-posts__item--has-category .humanity-custom-posts__number {
	grid-row: 2;
}

.humanity-custom-posts__item--has-category .humanity-custom-posts__title-link {
	grid-row: 2;
}

.humanity-custom-posts__title {
	display: block;
	font-size: 26px;
	line-height: 1.02;
	font-weight: 500;
	overflow-wrap: anywhere;
}

@media (max-width: 1100px) {
	.humanity-custom-posts {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		row-gap: 24px;
	}

	.humanity-custom-posts__item:nth-child(odd) {
		border-left: 0;
		padding-left: 0;
	}
}

@media (max-width: 680px) {
	.humanity-custom-posts {
		grid-template-columns: 1fr;
		padding-top: 14px;
		row-gap: 18px;
	}

	.humanity-custom-posts__item {
		border-left: 0;
		border-top: 1px solid var(--humanity-posts-divider);
		padding: 18px 0 0;
	}

	.humanity-custom-posts__item:first-child {
		border-top: 0;
		padding-top: 0;
	}

	.humanity-custom-posts__inner {
		grid-template-columns: max-content minmax(0, 1fr);
		column-gap: 12px;
	}

	.humanity-custom-posts__category {
		font-size: 16px;
		margin-bottom: 6px;
	}

	.humanity-custom-posts__number {
		font-size: 28px;
	}

	.humanity-custom-posts__title {
		font-size: 20px;
	}
}
