.nel-posts {
	display: grid;
	gap: 24px;
}

.nel-posts--cols-1 {
	grid-template-columns: 1fr;
}

.nel-posts--cols-2 {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.nel-posts--cols-3 {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.nel-posts--cols-4 {
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

.nel-posts--masonry {
	display: block;
	column-gap: 24px;
}

.nel-posts--masonry.nel-posts--cols-1 {
	column-count: 1;
}

.nel-posts--masonry.nel-posts--cols-2 {
	column-count: 2;
}

.nel-posts--masonry.nel-posts--cols-3 {
	column-count: 3;
}

.nel-posts--masonry.nel-posts--cols-4 {
	column-count: 4;
}

.nel-posts--masonry .nel-card {
	break-inside: avoid;
	margin-bottom: 24px;
}

.nel-posts--list {
	display: grid;
	grid-template-columns: 1fr;
	gap: 18px;
}

.nel-posts--list .nel-card {
	display: grid;
	grid-template-columns: minmax(220px, 320px) 1fr;
	align-items: stretch;
}

.nel-posts--list .nel-card__thumb {
	display: block;
	height: 100%;
}

.nel-posts--list .nel-card__thumb img {
	height: 100%;
	object-fit: cover;
}

.nel-posts--magazine {
	display: grid;
	grid-template-columns: 2fr 1fr;
	gap: 24px;
}

.nel-posts--magazine .nel-card:first-child {
	grid-row: span 2;
}

.nel-posts--magazine .nel-card:first-child .nel-card__title {
	line-height: 1.25;
}

.nel-posts--minimal {
	display: grid;
	grid-template-columns: 1fr;
	gap: 14px;
}

.nel-posts--minimal .nel-card {
	background: transparent;
	border: 0;
	border-radius: 0;
	border-bottom: 1px solid currentColor;
}

.nel-posts--minimal .nel-card__content {
	padding: 0 0 14px;
}

.nel-posts--minimal .nel-card__thumb {
	display: none;
}

.nel-carousel-wrap {
	position: relative;
}

.nel-posts--carousel {
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: minmax(280px, 1fr);
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	gap: 16px;
	padding-bottom: 6px;
}

.nel-posts--carousel .nel-card {
	scroll-snap-align: start;
}

.nel-posts--carousel::-webkit-scrollbar {
	height: 8px;
}

.nel-posts--carousel::-webkit-scrollbar-thumb {
	background: currentColor;
	border-radius: 999px;
}

.nel-carousel-arrow {
	position: absolute;
	top: 42%;
	transform: translateY(-50%);
	z-index: 2;
	width: 44px;
	height: 44px;
	border-radius: 999px;
	border: 1px solid currentColor;
	background: transparent;
	color: inherit;
	cursor: pointer;
}

.nel-carousel-arrow--prev {
	left: -10px;
}

.nel-carousel-arrow--next {
	right: -10px;
}

.nel-carousel-dots {
	display: flex;
	gap: 8px;
	justify-content: center;
	margin-top: 14px;
}

.nel-carousel-dot {
	width: 10px;
	height: 10px;
	border-radius: 999px;
	border: 0;
	background: currentColor;
	opacity: 0.35;
	padding: 0;
	cursor: pointer;
}

.nel-carousel-dot.is-active {
	opacity: 1;
}

.nel-card {
	background: transparent;
	border: 1px solid currentColor;
	color: inherit;
	border-radius: 12px;
	overflow: hidden;
}

.nel-card__thumb img {
	display: block;
	width: 100%;
	height: auto;
}

.nel-card__content {
	padding: 16px;
}

.nel-card__title {
	margin: 0 0 8px;
}

.nel-card__title a {
	text-decoration: none;
	color: inherit;
}

.nel-card__title a:focus-visible,
.nel-card__read-more:focus-visible,
.nel-term-chip:focus-visible,
.nel-pagination a:focus-visible,
.nel-pagination span:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 2px;
}

.nel-card__meta {
	color: inherit;
	opacity: 0.8;
	margin-bottom: 10px;
}

.nel-card__sep {
	margin: 0 6px;
}

.nel-card__excerpt {
	margin: 0;
}

.nel-card__read-more {
	display: inline-flex;
	margin-top: 14px;
	font-weight: 600;
	text-decoration: none;
	color: inherit;
}

.nel-terms {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.nel-term-chip {
	display: inline-flex;
	align-items: center;
	padding: 8px 12px;
	border: 1px solid currentColor;
	border-radius: 999px;
	text-decoration: none;
	color: inherit;
	transition: opacity 0.2s ease;
}

.nel-term-chip.is-active {
	opacity: 0.75;
}

.nel-pagination {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 28px;
}

.nel-pagination a,
.nel-pagination span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 40px;
	min-height: 40px;
	padding: 8px 12px;
	border: 1px solid currentColor;
	border-radius: 10px;
	text-decoration: none;
	color: inherit;
}

.nel-pagination .current {
	opacity: 0.75;
}

.nel-archive-header {
	margin-bottom: 28px;
}

.nel-archive-header__title {
	margin: 0 0 10px;
}

.nel-archive-header__description p {
	margin: 0;
}

.nel-archive-header__count {
	margin: 10px 0 0;
	opacity: 0.8;
}

.nel-is-unstyled .nel-card {
	border: 0;
	border-radius: 0;
	background: transparent;
}

.nel-is-unstyled .nel-card__content {
	padding: 0;
}

.nel-is-unstyled .nel-card__read-more {
	margin-top: 8px;
	font-weight: inherit;
}

.nel-is-unstyled .nel-term-chip {
	border: 0;
	padding: 0;
	border-radius: 0;
}

.nel-is-unstyled .nel-pagination {
	gap: 12px;
}

.nel-is-unstyled .nel-pagination a,
.nel-is-unstyled .nel-pagination span {
	border: 0;
	padding: 0;
	min-width: auto;
	min-height: auto;
	border-radius: 0;
}

.nel-archive-header.nel-is-unstyled {
	margin-bottom: 0;
}

.nel-archive-header.nel-is-unstyled .nel-archive-header__count {
	opacity: 1;
}

@media (max-width: 1024px) {
	.nel-posts--cols-4,
	.nel-posts--cols-3 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.nel-posts--masonry.nel-posts--cols-4,
	.nel-posts--masonry.nel-posts--cols-3 {
		column-count: 2;
	}

	.nel-posts--magazine {
		grid-template-columns: 1fr 1fr;
	}

	.nel-carousel-arrow--prev {
		left: -6px;
	}

	.nel-carousel-arrow--next {
		right: -6px;
	}
}

@media (max-width: 767px) {
	.nel-posts--cols-4,
	.nel-posts--cols-3,
	.nel-posts--cols-2 {
		grid-template-columns: 1fr;
	}

	.nel-posts--masonry.nel-posts--cols-4,
	.nel-posts--masonry.nel-posts--cols-3,
	.nel-posts--masonry.nel-posts--cols-2 {
		column-count: 1;
	}

	.nel-posts--list .nel-card {
		grid-template-columns: 1fr;
	}

	.nel-posts--magazine {
		grid-template-columns: 1fr;
	}

	.nel-posts--magazine .nel-card:first-child {
		grid-row: auto;
	}

	.nel-carousel-arrow {
		display: none;
	}
}
