.nb-news,
.nb-news * {
	box-sizing: border-box;
}

.nb-news {
	--nb-accent: var(--template-link-color, var(--cassiopeia-color-primary, var(--link-color, currentColor)));
	--nb-columns: 3;
	--nb-tablet-columns: 2;
	--nb-gap: clamp(20px, 2.6vw, 28px);
	--nb-image-ratio: 16 / 9;
	color: inherit;
	font-family: inherit;
	width: 100%;
}

.nb-page-title {
	color: inherit;
	font: inherit;
	font-size: 30px;
	font-weight: 800;
	line-height: 1.2;
	margin: 0 0 24px;
	overflow-wrap: anywhere;
}

.nb-grid {
	display: grid;
	gap: var(--nb-gap);
	grid-template-columns: repeat(var(--nb-columns), minmax(0, 1fr));
	width: 100%;
}

.nb-card {
	background: transparent;
	color: inherit;
	display: flex;
	flex-direction: column;
	font: inherit;
	min-width: 0;
}

.nb-thumb {
	background: color-mix(in srgb, currentColor 8%, transparent);
	border-radius: 3px;
	display: block;
	margin: 0 0 14px;
	overflow: hidden;
	text-decoration: none;
	width: 100%;
}

.nb-thumb img {
	aspect-ratio: var(--nb-image-ratio);
	display: block;
	height: auto;
	object-fit: cover;
	transition: filter 220ms ease, transform 220ms ease;
	width: 100%;
}

.nb-card:hover .nb-thumb img,
.nb-card:focus-within .nb-thumb img {
	filter: saturate(1.04);
	transform: scale(1.06);
}

.nb-title {
	color: inherit;
	font: inherit;
	font-size: 20px;
	font-weight: 700;
	line-height: 1.18;
	margin: 0;
	overflow-wrap: anywhere;
	text-align: left;
}

.nb-title a {
	color: inherit;
	text-decoration: none;
}

.nb-title a:hover,
.nb-title a:focus-visible {
	color: var(--nb-accent);
	text-decoration: none;
}

.nb-meta {
	color: inherit;
	display: flex;
	flex-wrap: wrap;
	font: inherit;
	font-size: 0.86em;
	gap: 4px 9px;
	line-height: 1.35;
	margin: 8px 0 0;
	opacity: 0.62;
	overflow-wrap: anywhere;
}

.nb-meta span + span::before {
	content: "/";
	margin-right: 9px;
	opacity: 0.7;
}

.nb-thumb:focus-visible,
.nb-title a:focus-visible {
	outline: 3px solid currentColor;
	outline-offset: 3px;
}

.nb-empty {
	color: inherit;
	font: inherit;
	margin: 0;
	opacity: 0.72;
}

.nb-news--align-center .nb-title {
	text-align: center;
}

.nb-news--align-right .nb-title {
	text-align: right;
}

@supports not (background: color-mix(in srgb, currentColor 8%, transparent)) {
	.nb-thumb {
		background: rgba(127, 127, 127, 0.08);
	}
}

@media (max-width: 991.98px) {
	.nb-grid {
		grid-template-columns: repeat(var(--nb-tablet-columns), minmax(0, 1fr));
	}
}

@media (max-width: 640px) {
	.nb-grid {
		grid-template-columns: 1fr;
	}

	.nb-thumb {
		margin-bottom: 12px;
	}

	.nb-page-title {
		font-size: 26px;
	}

	.nb-title {
		font-size: 19px;
	}
}
