/*
 * News are editorial entries and are presented as one readable entry per row.
 */
.topbar-date {
	font-weight: 300;
	text-transform: lowercase;
}

.vicando-news-index .news-list,
.vicando-news-index .wp-block-post-template,
.vicando-home-news-rows,
.vicando-home-news-row,
.vicando-home-news-rows > .card-grid {
	display: grid !important;
	grid-template-columns: minmax(0, 1fr) !important;
	align-items: stretch;
	gap: 24px;
}

.vicando-news-index .news-card {
	height: auto;
	grid-template-columns: minmax(220px, 34%) minmax(0, 1fr) !important;
}

.vicando-news-index .news-card:not(.has-post-thumbnail) {
	grid-template-columns: minmax(0, 1fr) !important;
}

.vicando-news-index .news-card-image {
	min-height: 260px;
	aspect-ratio: auto;
}

.vicando-news-index .news-card-body {
	min-height: 0;
}

.vicando-home-news-row > .card,
.vicando-home-news-rows > .card-grid > .card {
	display: grid;
	grid-template-columns: minmax(220px, 34%) minmax(0, 1fr);
	min-height: 260px;
}

.vicando-home-news-row > .card:not(.has-post-thumbnail),
.vicando-home-news-rows > .card-grid > .card:not(.has-post-thumbnail) {
	grid-template-columns: minmax(0, 1fr);
}

.vicando-home-news-row .card-image,
.vicando-home-news-rows > .card-grid .card-image {
	width: 100%;
	height: clamp(220px, 24vw, 320px);
	max-height: 320px;
	min-height: 260px;
	aspect-ratio: auto;
	align-self: start;
	overflow: hidden;
}

.vicando-home-news-row .card-image img,
.vicando-home-news-rows > .card-grid .card-image img {
	display: block;
	width: 100%;
	height: 100%;
	max-height: 320px;
	object-fit: cover;
}

.vicando-home-news-row .card-body,
.vicando-home-news-rows > .card-grid .card-body {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	justify-content: center;
}

.vicando-home-news-row .news-read-more,
.vicando-home-news-rows > .card-grid .news-read-more {
	margin-top: auto;
	margin-right: auto;
	margin-left: 0;
	align-self: flex-start;
}

.vicando-home-news-row .card-excerpt,
.vicando-home-news-rows > .card-grid .card-excerpt {
	margin-bottom: 22px;
	line-height: 1.65;
}

.vicando-home-news-row .card-excerpt > :first-child,
.vicando-home-news-rows > .card-grid .card-excerpt > :first-child {
	margin-top: 0;
}

.vicando-home-news-row .card-excerpt > :last-child,
.vicando-home-news-rows > .card-grid .card-excerpt > :last-child {
	margin-bottom: 0;
}

@media (max-width: 700px) {
	.vicando-news-index .news-card,
	.vicando-home-news-row > .card,
	.vicando-home-news-rows > .card-grid > .card {
		grid-template-columns: minmax(0, 1fr) !important;
	}

	.vicando-news-index .news-card-image,
	.vicando-home-news-row .card-image,
	.vicando-home-news-rows > .card-grid .card-image {
		height: clamp(200px, 58vw, 280px);
		max-height: 280px;
		min-height: 210px;
		aspect-ratio: 16 / 10;
	}
}

/*
 * News thumbnails stay optically fixed. Only their surrounding glass card
 * may lift on hover.
 */
.vicando-news-index .news-card-image img,
.vicando-news-index .news-card:hover .news-card-image img,
.vicando-news-index .news-card:focus-within .news-card-image img,
.vicando-home-news-row .card-image img,
.vicando-home-news-row .card:hover .card-image img,
.vicando-home-news-rows .card-image img,
.vicando-home-news-rows .card:hover .card-image img {
	transform: none !important;
	transition: none !important;
}
