/*
Theme Name: Sphere
Theme URI: https://sphere-project.it
Description: Sphere WordPress theme
Version: 1.0
Author: SPHERE Project
Author URI: https://sphere-project.it
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: sphere
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
*/

.skip-link {
	position: absolute;
	left: -9999px;
	top: 0;
	z-index: 9999;
	padding: 0.5em 1em;
	background: var(--blue-dark, #094b74);
	color: #fff;
	text-decoration: none;
}
.skip-link:focus {
	left: 0;
}

:root {
	--gray: #f5f7fb;
	--gray-dark: #eaeef7;
	--gray-darker: #dadee7;
	--blue-light: #68accb;
	--blue: #1f7196;
	--blue-dark: #094b74;
	--blue50: rgba(31, 113, 150, 0.5);
	font-family: "Arial";
}
a {
	text-decoration: none;
	color: var(--blue-dark);
	font-weight: bold;
}
body {
	margin: 0;
	overflow-x: clip;
	color: var(--blue-dark);
	background: var(--gray);
}
section {
	width: min(1280px, 100%);
	margin: 0 auto;

	&.credits {
		display: flex;
		justify-content: space-between;
		img {
			width: 30%;
			border-radius: 4px;
			background: white;
			border: 3px solid var(--gray-dark);
		}
	}
}
header {
	background: white;
	box-shadow: 0 3px 16px rgba(9, 75, 116, 0.12);
	position: relative;

	&::after {
		content: "";
		position: absolute;
		bottom: 0;
		left: 0;
		width: 100%;
		height: 3px;
		background: linear-gradient(
			to right,
			var(--blue-dark),
			var(--blue-light),
			var(--blue),
			var(--blue-dark)
		);
	}

	section {
		display: flex;
		align-items: center;
	}
	img {
		margin: 0;
		height: 120px;
		width: 120px;
	}
}
.lang-switcher {
	display: flex;
	justify-content: flex-end;
	padding: 5px 16px;
	font-size: 15px;
	background: transparent;

	ul {
		display: flex;
		list-style: none;
		gap: 14px;
		margin: 0;
		padding: 0;
	}

	li {
		display: flex;
		align-items: center;
	}

	span,
	a {
		display: flex;
		align-items: center;
		gap: 5px;
	}

	span {
		color: var(--blue-dark);
		font-weight: bold;
		cursor: default;
	}

	a {
		color: var(--blue);
		font-weight: normal;
		&:hover {
			text-decoration: underline;
		}
	}
}
#visualizer {
	margin: 0;
	background: white;
	border: 2px solid var(--gray-darker);
	padding: 16px 20px;
	border-radius: 6px;
	box-shadow: 0 2px 10px rgba(9, 75, 116, 0.08);
	position: sticky;
	top: 0;
	z-index: 10;
}
.visualization {
	margin-top: 15px;
	width: 100%;
	padding: 20px;
	border-radius: 4px;
	background: white;
	border: 3px solid var(--gray-dark);
}
input[type="range"] {
	margin-top: 14px;
	cursor: grab;
	accent-color: var(--blue);
}
#main_menu {
	flex-grow: 1;

	ul {
		height: 100%;
		display: flex;
		list-style-type: none;
		justify-content: space-evenly;
		padding: 0;
		margin: 0;
	}

	li {
		height: 100%;
		flex-grow: 1;
		display: flex;
	}

	a {
		height: 100%;
		flex-grow: 1;
		display: flex;
		font-size: 21px;
		padding-top: 5px;
		align-items: center;
		justify-content: center;
		text-transform: uppercase;
		transition: color 0.25s;

		&:hover {
			color: var(--blue-light);
			text-decoration: underline;
		}
	}

	li.current-menu-item a {
		color: var(--blue);
		text-decoration: underline;
		transition: none;

		&:hover {
			color: var(--blue);
		}
	}
}

.content {
	padding-top: 20px;

	p {
		font-size: 20px;
	}

	.wp-block-image {
		margin: 20px auto;
		text-align: center;

		img {
			border: 3px solid var(--gray-dark);
			border-radius: 6px;
			box-shadow: 0 2px 10px rgba(9, 75, 116, 0.08);
			max-width: 100%;
			max-height: 500px;
			width: auto;
			height: auto;
		}
	}

	.wp-block-gallery {
		margin: 24px 0;
		gap: 16px;
		display: flex;
		flex-wrap: wrap;

		&.columns-2 .wp-block-image {
			flex: 1 1 calc(50% - 8px);
		}
		&.columns-3 .wp-block-image {
			flex: 1 1 calc(33.3% - 11px);
		}

		.wp-block-image {
			margin: 0;
			overflow: hidden;

			img {
				width: 100%;
				max-height: 350px;
				object-fit: cover;
				cursor: zoom-in;
				transition: opacity 0.3s;

				&:hover {
					opacity: 0.85;
				}
			}
		}
	}

	.wp-block-columns {
		display: flex;
		gap: 24px;
		margin: 24px 0;
		background: white;
		border: 2px solid var(--gray-darker);
		border-radius: 6px;
		padding: 24px;
		box-shadow: 0 2px 10px rgba(9, 75, 116, 0.08);
		align-items: start;

		&:has(.wp-block-image:first-child:last-child) {
			align-items: center;
		}

		.wp-block-column {
			flex: 1;
			min-width: 0;
		}

		.wp-block-image {
			margin: 0;

			img {
				width: 100%;
				max-height: 400px;
				object-fit: cover;
			}
		}

		h3, h4 {
			margin-top: 0;
		}

		.wp-block-quote {
			margin: 12px 0 0;
			box-shadow: none;
		}

		.wp-block-table {
			margin: 12px 0 0;
		}

		.wp-block-code {
			margin: 12px 0 0;
		}

		.wp-block-gallery {
			margin: 12px 0 0;
		}
	}

	.wp-block-group.has-background .wp-block-columns {
		background: transparent;
		border: none;
		box-shadow: none;
		padding: 0;
	}

	.wp-block-quote {
		margin: 24px 0;
		padding: 20px 28px;
		background: white;
		border: 2px solid var(--gray-darker);
		border-left: 4px solid var(--blue-light);
		border-radius: 6px;
		box-shadow: 0 2px 10px rgba(9, 75, 116, 0.08);

		p {
			font-style: italic;
			margin: 0 0 8px;
		}

		cite {
			font-size: 14px;
			font-style: normal;
			font-weight: bold;
			color: var(--blue);
		}
	}

	.wp-block-separator {
		border: none;
		border-top: 2px solid var(--gray-darker);
		margin: 32px 0;
	}

	.wp-block-heading {
		margin: 28px 0 12px;
	}

	.wp-block-list {
		font-size: 18px;
		line-height: 1.8;
		padding-left: 24px;
	}

	.wp-block-table {
		margin: 24px 0;
		overflow-x: auto;

		table {
			width: 100%;
			border-collapse: collapse;
			background: white;
			border: 2px solid var(--gray-darker);
			border-radius: 6px;
		}

		th {
			background: var(--gray-dark);
			font-weight: bold;
			text-align: left;
		}

		th,
		td {
			padding: 10px 16px;
			border-bottom: 1px solid var(--gray-darker);
			font-size: 16px;
		}

		tr:last-child td {
			border-bottom: none;
		}
	}

	.wp-block-code {
		margin: 24px 0;
		padding: 20px 24px;
		background: var(--blue-dark);
		color: #e0e8f0;
		border-radius: 6px;
		overflow-x: auto;

		code {
			font-family: monospace;
			font-size: 15px;
			white-space: pre;
		}
	}

	.wp-block-preformatted {
		margin: 24px 0;
		padding: 20px 24px;
		background: white;
		border: 2px solid var(--gray-darker);
		border-radius: 6px;
		font-family: monospace;
		font-size: 15px;
		overflow-x: auto;
		white-space: pre-wrap;
	}

	.wp-block-buttons {
		display: flex;
		gap: 12px;
		flex-wrap: wrap;
		margin: 24px 0;
	}

	.wp-block-button__link {
		display: inline-block;
		padding: 10px 24px;
		background: var(--blue);
		color: white;
		border-radius: 6px;
		font-size: 16px;
		font-weight: bold;
		transition: background 0.25s;

		&:hover {
			background: var(--blue-dark);
			color: white;
		}
	}

	.wp-block-button.is-style-outline .wp-block-button__link {
		background: transparent;
		border: 2px solid var(--blue);
		color: var(--blue);

		&:hover {
			background: var(--blue);
			color: white;
		}
	}

	.wp-block-media-text {
		display: flex;
		gap: 24px;
		margin: 24px 0;
		background: white;
		border: 2px solid var(--gray-darker);
		border-radius: 6px;
		overflow: hidden;
		box-shadow: 0 2px 10px rgba(9, 75, 116, 0.08);
		align-items: center;

		.wp-block-media-text__media {
			flex: 1;
			min-width: 0;

			img {
				width: 100%;
				height: 100%;
				object-fit: cover;
				display: block;
			}
		}

		.wp-block-media-text__content {
			flex: 1;
			padding: 24px;
		}
	}

	.wp-block-cover {
		margin: 24px 0;
		border-radius: 6px;
		overflow: hidden;
		position: relative;
		min-height: 300px;
		display: flex;
		align-items: center;
		justify-content: center;

		img {
			position: absolute;
			top: 0;
			left: 0;
			width: 100%;
			height: 100%;
			object-fit: cover;
		}

		.wp-block-cover__inner-container {
			position: relative;
			z-index: 1;
			color: white;
			text-align: center;
			padding: 24px;
		}
	}

	.wp-block-group {
		margin: 24px 0;

		&.has-background {
			padding: 24px;
			border-radius: 6px;
		}
	}

	.wp-block-embed {
		margin: 24px 0;

		iframe {
			max-width: 100%;
			border-radius: 6px;
			border: 3px solid var(--gray-dark);
		}

		figcaption {
			text-align: center;
			font-size: 14px;
			color: var(--blue);
			margin-top: 8px;
		}
	}

	figcaption {
		text-align: center;
		font-size: 14px;
		color: var(--blue);
		margin-top: 8px;
	}

	.wp-block-pullquote {
		margin: 32px 0;
		padding: 28px 0;
		border-top: 3px solid var(--blue-light);
		border-bottom: 3px solid var(--blue-light);
		text-align: center;

		p {
			font-size: 22px;
			font-style: italic;
		}

		cite {
			font-size: 14px;
			font-style: normal;
			font-weight: bold;
			color: var(--blue);
		}
	}

	.wp-block-details {
		margin: 24px 0;
		background: white;
		border: 2px solid var(--gray-darker);
		border-radius: 6px;
		padding: 0;
		box-shadow: 0 2px 10px rgba(9, 75, 116, 0.08);

		summary {
			padding: 14px 20px;
			font-weight: bold;
			cursor: pointer;
		}

		> :not(summary) {
			padding: 0 20px 14px;
		}
	}
}
h6 {
	text-align: center;
}
#home .wp-block-list {
	width: fit-content;
	margin: 0 auto;
	text-align: left;
	list-style-type: "- ";
}
#home {
	color: var(--blue);
	h1 {
		color: var(--blue-dark);
		margin-bottom: 20px;
	}
	header section {
		margin-bottom: 0;
	}
	section {
		text-align: center;
		margin: 0 auto 20px;
	}
	.hero-banner {
		position: relative;
		display: flex;
		align-items: center;
		justify-content: center;
		text-align: center;
		padding: 50px 20px;
		margin-top: 10px;
		margin-bottom: 45px;
		&::before {
			content: '';
			position: absolute;
			inset: -33px 0 -33px 0;
			background: url('assets/images/sphere_logo_large.png') center center no-repeat;
			background-size: auto calc(12em + 30px);
			opacity: 0.2;
			z-index: 0;
		}
		h1 {
			position: relative;
			z-index: 1;
			font-size: 34px;
			margin-bottom: 0;
			color: #052d47;
			-webkit-text-stroke: 3px #ffffff;
			paint-order: stroke fill;
		}
	}
	.reel {
		width: 100vw;
		margin-left: calc(-50vw + 50%);
		margin-bottom: 25px;
		overflow-x: clip;
		overflow-y: visible;
		user-select: none;
	}
	.reel-track {
		display: flex;
		gap: 8px;
		animation: reel-scroll 1555s linear infinite;
		width: max-content;
	}
	.reel:hover .reel-track,
	.reel.lightbox-open .reel-track {
		animation-play-state: paused;
	}
	.reel a {
		display: block;
		flex-shrink: 0;
		position: relative;
		transition:
			transform 0.4s,
			z-index 0s;

		&::after {
			content: attr(data-label);
			position: absolute;
			bottom: calc(100% + 10px);
			left: 50%;
			transform: translateX(-50%);
			background: var(--blue-dark);
			color: white;
			font-size: 13px;
			font-weight: bold;
			white-space: nowrap;
			padding: 5px 10px;
			border-radius: 4px;
			pointer-events: none;
			opacity: 0;
			transition: opacity 0.25s;
			z-index: 2;
		}

		&:hover {
			transform: scale(1.18);
			z-index: 1;

			&::after {
				opacity: 1;
			}

			img {
				opacity: 1;
				box-shadow: 0 8px 28px rgba(9, 75, 116, 0.4);
			}
		}
	}
	.reel img {
		height: 350px;
		width: auto;
		opacity: 0.69;
		user-select: none;
		-webkit-user-drag: none;
		display: block;
		border-radius: 6px;
		border: 3px solid var(--gray-dark);
		box-shadow: 0 4px 14px rgba(9, 75, 116, 0.2);
		transition:
			opacity 0.4s,
			box-shadow 0.4s;
	}
	p {
		font-size: 18px;
		font-weight: bold;
	}
}
.latest-news {
	text-align: left;
	h2 {
		text-align: center;
		font-size: 22px;
		margin-bottom: 16px;
	}
}
.news-cards {
	display: flex;
	flex-direction: column;
	gap: 16px;
}
.news-card {
	background: white;
	border: 2px solid var(--gray-darker);
	border-left: 4px solid var(--blue-light);
	border-radius: 6px;
	padding: 18px 22px;
	box-shadow: 0 2px 10px rgba(9, 75, 116, 0.08);

	.news-date {
		font-size: 13px;
		color: var(--blue);
		text-transform: uppercase;
		letter-spacing: 0.5px;
	}
	h3 {
		margin: 6px 0 8px;
		font-size: 17px;
	}
	h3 a {
		color: var(--blue-dark);
	}
	p {
		font-size: 15px;
		margin: 0 0 10px;
		font-weight: normal;
	}
	.news-readmore {
		font-size: 14px;
	}
}
.news-card.pinned {
	border-left-color: var(--blue-dark);
	border-left-width: 5px;
}
.news-archive-link {
	display: block;
	text-align: center;
	margin-top: 20px;
	font-size: 16px;
	font-weight: 600;
}
.news-archive .news-cards {
	max-width: 900px;
	margin: 0 auto;
}
@keyframes reel-scroll {
	0% {
		transform: translateX(0);
	}
	100% {
		transform: translateX(-50%);
	}
}
#team {
	display: flex;
	flex-direction: column;
	gap: 20px;
	padding: 20px;
	margin-top: 20px;
	width: 1000px;

	/* One person per row, full width */
	.member-wrap {
		display: flex;
		flex-direction: row;
		background: white;
		border: 2px solid var(--gray-darker);
		border-radius: 6px;
		overflow: hidden;
		box-shadow: 0 2px 10px rgba(9, 75, 116, 0.08);

		/* Even rows: text left, photo right */
		&:nth-child(even) {
			flex-direction: row-reverse;
		}
	}

	/* Photo side */
	.member {
		width: 300px;
		flex-shrink: 0;
		position: relative;
		overflow: hidden;
		background-color: var(--gray-darker);
		min-height: 280px;

		img {
			position: absolute;
			top: 0;
			left: 0;
			width: 100%;
			height: 100%;
			object-fit: cover;
		}
		h2 {
			position: absolute;
			bottom: 0;
			left: 0;
			z-index: 2;
			width: 100%;
			margin: 0;
			padding: 6px 12px;
			font-size: 18px;
			text-align: center;
			color: var(--blue-dark);
			background: rgba(234, 238, 247, 0.9);
			font-weight: bold;
			border-top: 1px solid var(--gray-darker);
		}
	}

	/* Text side */
	.member-bio {
		flex: 1;
		padding: 28px 36px;
		display: flex;
		flex-direction: column;
		justify-content: flex-start;
		font-size: 16px;
		line-height: 1.6;
		border-left: 4px solid var(--blue-light);

		.member-meta {
			display: flex;
			align-items: center;
			justify-content: space-between;
			margin: 0 0 12px;
		}
		.member-institution {
			font-weight: bold;
			color: var(--blue);
			font-size: 13px;
			text-transform: uppercase;
			letter-spacing: 0.5px;
		}
		.member-icons {
			display: flex;
			gap: 6px;
			align-items: center;
		}
		.orcid-link img,
		.personal-page-link img {
			height: 26px;
			width: 26px;
			display: block;
		}
		p {
			margin: 0 0 10px;
			&:last-child {
				margin-bottom: 0;
			}
		}
		.member-links {
			display: flex;
			gap: 14px;
			margin-top: 10px;
			a {
				font-weight: normal;
				font-size: 14px;
			}
		}
	}

	/* Flip accent bar for even (reversed) rows */
	.member-wrap:nth-child(even) .member-bio {
		border-left: none;
		border-right: 4px solid var(--blue-light);
	}
}
.data-section-row {
	display: flex;
	gap: 20px;
	margin-top: 40px;
}
@media (max-width: 767px) {
	.data-section-row {
		flex-direction: column;
	}
}
.data-section {
	flex: 1;
	margin-top: 0;
	padding: 24px 28px;
	background: white;
	border: 2px solid var(--gray-darker);
	border-left: 4px solid var(--blue-light);
	border-radius: 6px;
	box-shadow: 0 2px 10px rgba(9, 75, 116, 0.08);

	h2 {
		margin: 0 0 10px;
		font-size: 22px;
	}
	p {
		margin: 0 0 14px;
		font-size: 16px;
	}
	.data-link {
		display: inline-block;
		padding: 10px 24px;
		background: var(--blue);
		color: white;
		border-radius: 6px;
		font-size: 16px;
		font-weight: bold;
		transition: background 0.25s;

		&:hover {
			background: var(--blue-dark);
			color: white;
		}
	}
}
.nowrap {
	font-weight: normal;
}
.team-page,
.publications-page {
	padding-top: 20px;
	h1 {
		text-align: center;
	}
}
.publications-page section.content {
	max-width: 860px;
	margin: 0 auto;
	padding-bottom: 40px;
}
.publication {
	padding: 18px 24px;
	margin-bottom: 12px;
	background: white;
	border: 2px solid var(--gray-darker);
	border-left: 4px solid var(--blue-light);
	border-radius: 6px;
	display: flex;
	align-items: flex-start;
	gap: 10px;

	.pub-body {
		flex: 1;
	}
	.pub-title {
		display: block;
		font-size: 17px;
		font-weight: bold;
		color: var(--blue-dark);
		margin-bottom: 6px;
	}
	.pub-link {
		flex-shrink: 0;
		margin-top: 2px;
		img {
			display: block;
			width: 24px;
			height: 24px;
		}
		&:hover img {
			opacity: 0.75;
		}
	}
	.pub-meta {
		margin: 0;
		font-size: 14px;
		color: var(--blue-dark);
	}
	.pub-venue {
		color: var(--blue);
		font-style: italic;
	}
}
.footer {
	margin-top: 50px;
	background: #f0f3f9;
	box-shadow: 0 -3px 16px rgba(9, 75, 116, 0.1);
	position: relative;
	padding: 28px 0 40px;
	h6 {
		margin-bottom: 25px;
	}

	&::before {
		content: "";
		position: absolute;
		top: 0;
		left: 0;
		width: 100%;
		height: 3px;
		background: linear-gradient(
			to right,
			var(--blue-dark),
			var(--blue-light),
			var(--blue),
			var(--blue-dark)
		);
	}

	ul {
		display: flex;
		align-items: center;
		justify-content: center;
		list-style: none;
		padding: 0;
		margin: 0 0 11px;
		gap: 14px;
	}

	li {
		display: flex;
		align-items: center;
		justify-content: center;
		padding: 7px 11px;
		border-radius: 6px;
		border: 2px solid var(--gray-darker);
		background: white;
		position: relative;
		cursor: pointer;
		transition:
			transform 0.3s,
			box-shadow 0.3s;

		&::after {
			content: attr(data-label);
			position: absolute;
			bottom: calc(100% + 10px);
			left: 50%;
			transform: translateX(-50%);
			background: var(--blue-dark);
			color: white;
			font-size: 13px;
			font-weight: bold;
			white-space: nowrap;
			padding: 5px 10px;
			border-radius: 4px;
			pointer-events: none;
			opacity: 0;
			transition: opacity 0.25s;
		}

		&:hover {
			transform: scale(1.08);
			box-shadow: 0 6px 20px rgba(9, 75, 116, 0.2);
			z-index: 1;

			&::after {
				opacity: 1;
			}
		}

		a {
			display: flex;
			font-weight: normal;
		}
	}

	img {
		display: block;
		width: auto;
	}

	.logos img {
		height: 52px;
	}
}

@media (max-width: 1279px) {
	section {
		padding: 0 16px;
		box-sizing: border-box;
	}

	/* Header */
	header img {
		height: 100px;
		width: 100px;
	}
	header section {
		flex-direction: column;
		align-items: center;
		padding: 8px 0 0;
		gap: 0;
	}
	#main_menu {
		width: 100%;
		ul {
			height: auto;
			flex-direction: column;
			border-top: 2px solid var(--gray-dark);
		}
		li {
			height: auto;
			border-bottom: 1px solid var(--gray-dark);
		}
		a {
			height: auto;
			font-size: 16px;
			padding: 8px 20px;
			justify-content: center;
			&::after {
				display: none;
			}
		}
	}

	/* Home */
	#home .hero-banner {
		text-align: center;
		justify-content: center;
		padding: 30px 10px;
		&::before {
			background-size: auto 10em;
		}
		h1 {
			font-size: 1.5rem;
		}
	}
	#home .reel img {
		height: 180px;
	}

	/* Team */
	#team {
		width: 100%;
		padding: 12px;
		gap: 12px;
		.member-wrap {
			flex-direction: column !important;
			width: 100%;
			max-width: 480px;
			margin: 0 auto;
			box-sizing: border-box;
		}
		.member {
			width: 100%;
			min-height: unset;
			max-height: unset;
			img {
				position: static;
				height: auto;
				object-fit: unset;
			}
		}
		.member-bio {
			border-left: 4px solid var(--blue-light) !important;
			border-right: none !important;
			padding: 16px 20px;
		}
	}

	/* Visualizer form */
	#visualizer {
		border: none;
		border-bottom: 2px solid var(--gray-darker);
		border-radius: 0;
		margin: 0 -16px;
		width: calc(100% + 32px);
		box-shadow: 0 4px 12px rgba(9, 75, 116, 0.15);
		padding: 18px 8px 8px;
		row-gap: 8px;
	}
	#visualizer > [class*="col-"] {
		flex: 0 0 50%;
		max-width: 50%;
		padding: 0 5px;
		&:nth-child(-n + 2) {
			margin-bottom: 2px;
		}
	}
	#visualizer > .col-12 {
		flex: 0 0 100%;
		max-width: 100%;
	}
	#visualizer .form-label {
		display: none;
	}
	#visualizer .form-select {
		padding: 4px 6px;
		font-size: 14px;
	}
	#visualizer input[type="range"] {
		margin-top: 0;
	}
	.visualization {
		--container: 100vw;
		--chrome-w: calc(2 * (20px + 3px));
		display: block;
		width: calc(var(--container) * 1.5 + var(--chrome-w));
		max-width: none;
		padding: 0 20px;
		border: none;
		margin-top: 0;
		margin-left: -16px;
		&:first-of-type {
			margin-top: 20px;
		}
		transform: rotate(-90deg) translateX(-100%);
		transform-origin: top left;
	}
	.visualization.rotated {
		margin-bottom: var(--rotate-mb);
	}

	/* Footer */
	.footer {
		padding-top: 36px;
		h6 {
			margin: 0 0 36px;
		}
		.logos {
			flex-direction: column;
			align-items: stretch;
		}
		.logos li {
			width: 100%;
			box-sizing: border-box;
		}
		.logos img {
			height: 43px;
		}
		li {
			padding: 6px 7px;
		}
	}

	/* Content blocks */
	.content {
		.wp-block-image img {
			max-height: 350px;
		}

		.wp-block-gallery {
			&.columns-3 .wp-block-image {
				flex: 1 1 100%;
			}

			.wp-block-image img {
				max-height: 250px;
			}
		}

		.wp-block-columns {
			flex-direction: column;
			padding: 16px;
			gap: 16px;

			.wp-block-image img {
				max-height: 300px;
			}
		}

		.wp-block-quote {
			padding: 16px 20px;
		}

		.wp-block-table {
			th,
			td {
				padding: 8px 12px;
				font-size: 14px;
			}
		}

		.wp-block-code {
			padding: 16px;

			code {
				font-size: 13px;
			}
		}

		.wp-block-media-text {
			flex-direction: column;
			gap: 0;

			.wp-block-media-text__content {
				padding: 16px;
			}
		}

		.wp-block-pullquote p {
			font-size: 18px;
		}

		.wp-block-buttons {
			flex-direction: column;

			.wp-block-button__link {
				text-align: center;
				width: 100%;
				box-sizing: border-box;
			}
		}
	}

	/* Language switcher */
	.lang-switcher {
		justify-content: stretch;
		padding: 0;

		ul {
			width: 100%;
			gap: 0;
		}

		li {
			flex: 1;
			justify-content: center;
			padding: 10px 8px;
			font-size: 15px;
			border-top: 1px solid var(--gray-darker);

			&:first-child {
				border-right: 1px solid var(--gray-darker);
			}
		}

		/* English (last item): flag after text */
		li:last-child span,
		li:last-child a {
			flex-direction: row-reverse;
		}
	}
}
