/* Blog article (single post). Values follow Figma "Blog interior" Desktop / Mobile. */

.article,
.other-news {
	background: var(--gray-200);
}

.article {
	padding: 48px 0 0;
}

.article__meta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	padding-bottom: 24px;
	color: var(--gray-700);
	font-size: 14px;
	line-height: 1.5;
}

.article__back {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	color: var(--gray-600);
	font-size: 16px;
	line-height: 1.2;
}

.article__back:hover,
.article__back:focus-visible {
	color: var(--gray-900);
}

.article__paper {
	background: var(--gray-100);
}

/*
 * Cover fills the whole card width, no grey bars. On phones the image keeps its own
 * proportions (up to the 236px of the design) so text in landscape covers is not cut off.
 */
.article__hero {
	display: block;
	width: 100%;
	height: auto;
	max-height: 236px;
	object-fit: cover;
}

/* Tall covers (e.g. 4:3 with text at the edges) are shown whole, see single.php. */
.article__hero--whole {
	max-height: none;
}

/* Grey box when an article has no cover image at all. */
.article__hero.media-placeholder {
	aspect-ratio: 343 / 236;
}

.article__content {
	padding: 40px 16px 32px;
}

.article__content > * {
	max-width: 920px;
	margin-right: auto;
	margin-left: auto;
}

.article__content > .article__title {
	max-width: none;
	margin: 0 -16px 40px;
	color: var(--gray-900);
	font-size: 22px;
	font-weight: 400;
	line-height: 1.3;
	text-align: center;
}

.article__content p {
	max-width: 920px;
	margin-top: 0;
	margin-bottom: 8px;
	color: var(--gray-600);
	font-size: 15px;
	font-weight: 300;
	line-height: 1.5;
}

.article__content strong,
.article__content b {
	font-weight: 700;
}

.article__content h2 {
	max-width: 920px;
	margin-top: 32px;
	margin-bottom: 24px;
	font-size: 16px;
}

/* Sub-headings inside the article text (e.g. "Maßgefertigte Eleganz:"). */
.article__content h3,
.article__content h4 {
	margin-top: 40px;
	margin-bottom: 8px;
	color: var(--gray-600);
	font-size: 15px;
	font-weight: 700;
	line-height: 1.5;
}

/* Images in the text: full text width, 40px to the text around them. Emoji stay inline. */
.article__content img:not(.emoji):not(.wp-smiley) {
	display: block;
	width: 100%;
	max-width: 100%;
	height: auto;
	margin: 40px auto;
}

.article__content > :last-child {
	margin-bottom: 0;
}

.article__image {
	width: 100%;
	height: 220px;
	margin: 32px auto;
}

.article-navigation {
	display: flex;
	justify-content: space-between;
	gap: 20px;
	padding-block: 24px 48px;
}

.article-navigation .button {
	flex: 1 1 auto;
	gap: 8px;
	min-height: 48px;
	padding: 8px 24px;
	border-color: var(--gray-600);
	color: var(--gray-900);
	font-size: 16px;
	line-height: 1.2;
}

.article-navigation .button .icon {
	color: var(--gray-600);
}

.other-news {
	padding-bottom: 64px;
}

.other-news__title {
	margin: 0 0 24px;
	font-size: 32px;
	font-weight: 400;
	text-align: center;
}

.other-news__grid {
	display: grid;
	gap: 16px;
}


@media (min-width: 768px) {
	.article {
		padding-top: 24px;
	}

	/* Design: 1392 × 540; keeps that shape on tablets instead of cutting the sides. */
	.article__hero,
	.article__hero.media-placeholder {
		max-height: none;
		aspect-ratio: 1392 / 540;
	}

	.article__hero--whole {
		object-fit: contain;
	}

	.article__content {
		padding: 40px 24px 80px;
	}

	.article__content > .article__title {
		max-width: 900px;
		margin: 0 auto 40px;
		font-size: 40px;
		line-height: 1.17;
	}

	.article__content h2 {
		font-size: 20px;
	}

	.article__image {
		max-width: 920px;
		height: 580px;
		margin-block: 48px;
	}

	.article-navigation {
		justify-content: flex-end;
		padding-block: 48px 64px;
	}

	.article-navigation .button {
		flex: 0 0 auto;
	}

	.other-news {
		padding-bottom: 104px;
	}

	.other-news__title {
		font-size: 40px;
	}

	.other-news__grid {
		grid-template-columns: repeat(3, 1fr);
		gap: 24px;
	}

	.other-news__grid .blog-card:not(:first-child) {
		display: flex;
	}
}

@media (min-width: 768px) and (max-width: 1023px) {
	.other-news__grid {
		grid-template-columns: repeat(2, 1fr);
	}
}
