/*LIST*/

.news,
.news p {
	color: var(--black);
	font-family: var(--font-primary);
}

/* List view */
.news .news-list-view {

}
.news .news-list-view .article {
	display: flex;
	gap: 1rem;
	flex-direction: column;
}

.news .news-list-view .article:hover {
	transform: none;
}

.news .news-list-view .article .header {
	margin-bottom: 1rem;
	text-align: center;
}

.news .news-list-view .article .header h2 {
	overflow-wrap: break-word; /* Allows breaking within words */
	hyphens: auto;
}


.news .news-list-view .article .news-img-wrap {
	margin: 0;
	display: flex;
	justify-content: center;
}

.news .news-list-view .article .news-img-wrap a {
	padding: 0;
	border: none;
}
.news .news-list-view .article .news-img-wrap img {
	float: none;
	width: 100%;
	height: auto;
	aspect-ratio: 16 / 9;
	object-fit: cover;
}

.news .news-list-view .article .content-box {
	padding: 0 15px 10px;
	text-align: center;
	color: inherit;
}

.news .news-list-view .article a.more {
	font-family: var(--font-primary);
	text-decoration: underline;
}

/* Pagination - bottom only, centered */
.news .news-list-view > .page-navigation:first-child,
.news .news-list-view > .page-navigation:first-child + .news-clear {
	display: none;
}

.news .news-list-view .page-navigation {
	width: 100%;
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: 2rem 0 0;
}

.news .news-list-view .page-navigation > p {
	display: none;
}

.news .news-list-view .page-navigation ul.f3-widget-paginator {
	display: inline-flex;
	list-style: none;
	padding: 0;
	margin: 0;
	flex-wrap: wrap;
	justify-content: center;
}

.news .news-list-view .page-navigation ul.f3-widget-paginator li {
	display: flex;
	align-items: stretch;
	margin-left: -1px;
}

.news .news-list-view .page-navigation ul.f3-widget-paginator li:first-child {
	margin-left: 0;
}

.news .news-list-view .page-navigation ul.f3-widget-paginator li a,
.news .news-list-view .page-navigation ul.f3-widget-paginator li.current {
	display: flex;
	align-items: center;
	padding: 0.5rem 0.875rem;
	border: 1px solid #dee2e6;
	background-color: var(--white);
	color: var(--black);
	font-family: var(--font-primary);
	font-size: 0.9rem;
	line-height: 1.5;
	text-decoration: none;
	transition: background-color 0.15s ease-in-out, border-color 0.15s ease-in-out;
}

.news .news-list-view .page-navigation ul.f3-widget-paginator li:first-child a,
.news .news-list-view .page-navigation ul.f3-widget-paginator li:first-child.current {
	border-top-left-radius: 0.375rem;
	border-bottom-left-radius: 0.375rem;
}

.news .news-list-view .page-navigation ul.f3-widget-paginator li:last-child a,
.news .news-list-view .page-navigation ul.f3-widget-paginator li:last-child.current {
	border-top-right-radius: 0.375rem;
	border-bottom-right-radius: 0.375rem;
}

.news .news-list-view .page-navigation ul.f3-widget-paginator li a:hover {
	background-color: #f8f9fa;
	color: var(--black);
	text-decoration: none;
}

.news .news-list-view .page-navigation ul.f3-widget-paginator li.current {
	background-color: var(--black);
	color: var(--white);
	border-color: var(--black);
	font-family: var(--font-primary-bold);
	z-index: 1;
}

/* Single news article */
.news.news-single .article .reference-header-image {
	float: none;
	width: 100%;
	height: auto;
	aspect-ratio: 16 / 9;
	max-height: 400px;
	object-fit: cover;
	margin-bottom: 1rem;
}

.news.news-single .article .header {
	margin-bottom: 1rem;
}

.news.news-single .article .insights {
	--columns: 4;
	--gap: 1rem;
	display: flex;
	flex-wrap: wrap;
	gap: var(--gap);
}

.news.news-single .article .insights .insight {
	background-color: var(--white);
	width: calc((100% - (var(--gap) * (var(--columns) - 1))) / var(--columns));
}

.news.news-single .article .insights .insight img {
	width: 100%;
	height: auto;
}
.news.news-single .article .news-backlink-wrap a {
	font-family: var(--font-primary);
	text-decoration: underline;
}

.news.news-single .article .content-elements .frame-container {
	padding: 0;
}

@media (max-width: 1199px) {
	.news.news-single .article .insights {
		--columns: 3;
	}
}

@media (max-width: 767px) {
	.news.news-single .article .insights {
		--columns: 2;
	}
}

@media (max-width: 575px) {
	.news.news-single .article .insights {
		--columns: 1;
	}
}

/* Remove frame h1 header from news detail page */
/*
body:has(.news-single) .frame-header h1 {
	display: none;
	visibility: hidden;
}*/
