/*
Theme Name: Pacucci
Theme URI: https://www.fabiopacucci.com/
Description: Child theme of Twenty Twenty-Five for www.fabiopacucci.com. Navy, crimson, and blue, with Source Serif 4 and Source Sans 3 served from the theme.
Author: Fabio Pacucci
Template: twentytwentyfive
Version: 0.2.1
Requires at least: 6.7
Tested up to: 7.1
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: pacucci
*/

/* ---------- Page frame ---------- */

body {
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

/* No gaps between header, main area, and footer. */
.wp-site-blocks > * + * {
	margin-block-start: 0;
}

/* A short crimson bar above section titles. */
.fp-ruled::before {
	content: "";
	display: block;
	width: 36px;
	height: 3px;
	background: #C8102E;
	margin-bottom: 14px;
}

/* ---------- Header and menu ---------- */

.fp-header {
	border-bottom: 1px solid #1D2A4D;
}

.fp-header .fp-header-bar {
	gap: 8px 40px;
}

.fp-site-title {
	margin: 0;
}

.fp-site-title a,
.fp-site-title a:hover,
.fp-site-title a:focus {
	color: #FFFFFF;
	text-decoration: none;
}

.fp-nav {
	letter-spacing: .01em;
}

.fp-nav .wp-block-navigation-item__content {
	color: #FFFFFF;
	padding: 10px 0;
	text-decoration: none;
}

.fp-nav .wp-block-navigation-item__content:hover,
.fp-nav .wp-block-navigation-item__content:focus,
.fp-nav .current-menu-item > .wp-block-navigation-item__content {
	color: #FFFFFF;
	text-decoration: underline;
	text-decoration-color: #C8102E;
	text-decoration-thickness: 2px;
	text-underline-offset: 8px;
}

/* "Menu" and "Close" buttons on phones. */
.fp-nav .wp-block-navigation__responsive-container-open,
.fp-nav .wp-block-navigation__responsive-container-close {
	min-height: 44px;
	padding: 0 14px;
	border: 1px solid rgba(255, 255, 255, .35);
	border-radius: 4px;
	background: transparent;
	color: #FFFFFF;
	font-family: var(--wp--preset--font-family--sans);
	font-size: 15px;
	font-weight: 600;
}

.fp-nav .wp-block-navigation__responsive-container.is-menu-open {
	padding: 16px 20px 32px;
}

.fp-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content {
	padding-top: 64px;
	align-items: stretch;
}

.fp-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container {
	gap: 0;
	width: 100%;
	align-items: stretch;
}

.fp-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item {
	width: 100%;
	border-bottom: 1px solid #1D2A4D;
}

.fp-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content {
	display: flex;
	align-items: center;
	min-height: 54px;
	padding: 0 4px;
	font-size: 18px;
}

/* ---------- Page title band (every page except the homepage) ---------- */

.fp-title-band .wp-block-post-title {
	margin: 0;
	color: #FFFFFF;
}

/* ---------- Footer ---------- */

.fp-footer {
	font-family: var(--wp--preset--font-family--sans);
	font-size: 14px;
	line-height: 1.6;
}

.fp-footer .fp-footer-bar {
	gap: 10px 32px;
}

.fp-footer p {
	margin: 0;
}

.fp-footer a {
	color: #A9BEFF;
}

.fp-footer a:hover {
	color: #FFFFFF;
}

.fp-motto {
	font-family: var(--wp--preset--font-family--serif);
	font-style: italic;
	color: #FFFFFF;
}

.fp-footer-right {
	text-align: right;
}

/* ---------- Homepage: masthead ---------- */

.fp-masthead .wp-block-columns {
	gap: 32px 40px;
	margin: 0;
}

.fp-name {
	margin: 0;
	color: #FFFFFF;
	font-size: 46px;
	line-height: 1.1;
}

.fp-positions {
	margin: 14px 0 0;
	font-family: var(--wp--preset--font-family--sans);
	font-size: 16px;
	line-height: 1.55;
	color: #C9D3EA;
}

.fp-keywords {
	list-style: none;
	margin: 20px 0 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.fp-keywords li {
	margin: 0;
	padding: 5px 12px;
	border: 1px solid rgba(255, 255, 255, .3);
	border-radius: 999px;
	font-family: var(--wp--preset--font-family--sans);
	font-size: 13.5px;
	line-height: 1.4;
	color: #E6ECF8;
}

/* Images that fade into the navy background. */
.fp-feather {
	margin: 0;
}

.fp-feather img {
	display: block;
	width: 100%;
	height: 360px;
	object-fit: cover;
	-webkit-mask-image: radial-gradient(ellipse 52% 54% at 50% 50%, #000 55%, transparent 100%);
	mask-image: radial-gradient(ellipse 52% 54% at 50% 50%, #000 55%, transparent 100%);
}

.fp-band .fp-feather img {
	height: 300px;
	-webkit-mask-image: radial-gradient(ellipse 52% 54% at 50% 50%, #000 50%, transparent 100%);
	mask-image: radial-gradient(ellipse 52% 54% at 50% 50%, #000 50%, transparent 100%);
}

.fp-masthead .wp-element-caption,
.fp-band .wp-element-caption {
	margin: 10px 0 0;
	font-size: 12.5px;
	line-height: 1.5;
	color: #9FB0D0;
	text-align: left;
}

.fp-masthead a,
.fp-band a {
	color: #A9BEFF;
}

.fp-masthead a:hover,
.fp-band a:hover {
	color: #FFFFFF;
}

/* ---------- Homepage: introduction ---------- */

.fp-intro {
	gap: 32px 40px;
	margin: 0;
}

.fp-portrait {
	margin: 0;
}

.fp-portrait img {
	display: block;
	width: 200px;
	height: 250px;
	object-fit: cover;
	border-radius: 2px;
}

.fp-intro p {
	margin: 0 0 16px;
}

.fp-links {
	font-family: var(--wp--preset--font-family--sans);
	font-size: 15.5px;
	line-height: 1.7;
}

/* Rows of links: spacing alone separates them, with no symbols between. */
ul.fp-linkrow {
	list-style: none;
	margin: 16px 0 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 4px 28px;
	font-family: var(--wp--preset--font-family--sans);
	font-size: 15.5px;
	line-height: 1.7;
}

ul.fp-linkrow li {
	margin: 0;
	padding: 0;
}

/* ---------- Section headings on the homepage and on pages ---------- */

.fp-section-title {
	margin: 0 0 18px;
}

.fp-note {
	margin: -8px 0 18px;
	font-family: var(--wp--preset--font-family--sans);
	font-size: 15px;
	color: #555555;
}

/* ---------- News and two-column lists (tables without borders) ---------- */

.wp-block-table.fp-news,
.wp-block-table.fp-defs {
	margin: 0;
}

.wp-block-table.fp-news table,
.wp-block-table.fp-defs table {
	width: 100%;
	border-collapse: collapse;
	border-bottom: 1px solid #E3E7EF;
}

.wp-block-table.fp-news td,
.wp-block-table.fp-defs td {
	border: 0;
	border-top: 1px solid #E3E7EF;
	padding: 14px 24px 14px 0;
	vertical-align: top;
	line-height: 1.6;
}

.wp-block-table.fp-news td:last-child,
.wp-block-table.fp-defs td:last-child {
	padding-right: 0;
}

.wp-block-table.fp-news td:first-child,
.wp-block-table.fp-defs td:first-child {
	white-space: nowrap;
	padding-top: 17px;
	font-family: var(--wp--preset--font-family--sans);
	font-size: 14px;
	font-weight: 600;
	color: #C8102E;
}

.wp-block-table.fp-news td:first-child {
	width: 96px;
}

.wp-block-table.fp-defs td:first-child {
	width: 160px;
}

.wp-block-table.fp-defs td:last-child {
	font-size: 18px;
}

/* ---------- Public engagement band ---------- */

.fp-band .wp-block-columns {
	gap: 32px 56px;
	margin: 0;
}

.fp-band h2 {
	color: #FFFFFF;
	margin: 0 0 14px;
}

.fp-band p {
	color: #DCE3F2;
}

/* ---------- Publication lists ---------- */

ol.fp-pubs {
	margin: 0;
	padding-left: 1.6em;
}

.fp-pubs li {
	margin: 0 0 18px;
	padding-left: 4px;
	font-family: var(--wp--preset--font-family--sans);
	font-size: 15px;
	line-height: 1.55;
	color: #555555;
}

.fp-pubs li::marker {
	color: #555555;
}

.fp-pubs li strong {
	display: block;
	margin-bottom: 3px;
	font-family: var(--wp--preset--font-family--serif);
	font-size: 17px;
	font-weight: 600;
	line-height: 1.45;
	color: #1B1B1B;
}

/* ---------- Phones and narrow windows ---------- */

@media (max-width: 781px) {
	.fp-name {
		font-size: 34px;
	}

	.fp-feather img {
		height: 230px;
	}

	.fp-band .fp-feather img {
		height: 220px;
	}

	.fp-portrait img {
		width: 140px;
		height: 175px;
	}
}

@media (max-width: 600px) {
	.fp-site-title {
		font-size: 20px;
	}

	.fp-footer-right {
		text-align: left;
	}

	.fp-title-band .wp-block-post-title {
		font-size: 32px;
	}

	.wp-block-table.fp-news td:first-child,
	.wp-block-table.fp-defs td:first-child {
		width: 72px;
		padding-right: 14px;
	}

	.wp-block-table.fp-defs td:first-child {
		white-space: normal;
		width: 90px;
	}
}

/* Space above a section title that follows a table on ordinary pages. */
.fp-page-content .fp-after-table {
	margin-top: 44px;
}

/* Keep the footer at the bottom of the window on short pages. */
.wp-site-blocks {
	display: flex;
	flex-direction: column;
	min-height: 100vh;
}

.wp-site-blocks > .fp-main {
	flex: 1 0 auto;
}

/* Phone menu: centered button text, left-aligned items. */
.fp-nav .wp-block-navigation__responsive-container-open,
.fp-nav .wp-block-navigation__responsive-container-close {
	align-items: center;
	justify-content: center;
}

.fp-nav .wp-block-navigation__responsive-container-close {
	display: inline-flex;
}

/* Below 850px (phones, and tablets held upright) the "Menu" button replaces
   the full menu, which would otherwise wrap onto several lines. From 850px
   up, the full menu shows and the button stays hidden, whatever order the
   stylesheets load in. */
@media (min-width: 600px) and (max-width: 849px) {
	.fp-nav .wp-block-navigation__responsive-container-open:not(.always-shown) {
		display: flex;
	}

	.fp-nav .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) {
		display: none;
	}
}

@media (min-width: 850px) {
	.fp-nav .wp-block-navigation__responsive-container-open:not(.always-shown) {
		display: none;
	}
}

.fp-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content,
.fp-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container {
	align-items: stretch !important;
}

.fp-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content {
	justify-content: flex-start;
	width: 100%;
	text-align: left;
}

/* On phones, the masthead shows the first five research keywords. */
@media (max-width: 600px) {
	.fp-keywords li:nth-child(n+6) {
		display: none;
	}

	.fp-keywords {
		gap: 6px;
		margin-top: 16px;
	}

	.fp-keywords li {
		font-size: 12.5px;
		padding: 4px 10px;
	}

	.fp-masthead .wp-block-columns {
		gap: 20px;
	}
}

/* On phones, two-column lists such as the Contact details stack:
   the label sits above its value, which gets the full width. */
@media (max-width: 600px) {
	.wp-block-table.fp-defs table,
	.wp-block-table.fp-defs tbody,
	.wp-block-table.fp-defs tr,
	.wp-block-table.fp-defs td {
		display: block;
		width: auto;
	}

	.wp-block-table.fp-defs tr {
		border-top: 1px solid #E3E7EF;
		padding: 14px 0;
	}

	.wp-block-table.fp-defs td,
	.wp-block-table.fp-defs td:first-child {
		width: auto;
		border: 0;
		padding: 0;
	}

	.wp-block-table.fp-defs td:first-child {
		margin-bottom: 4px;
	}

	.wp-block-table.fp-defs td:last-child {
		overflow-wrap: anywhere;
	}
}

/* ---------- Homepage masthead: positions and image ---------- */

/* On laptop and desktop screens, each position stays on one line. */
@media (min-width: 1024px) {
	.fp-positions {
		white-space: nowrap;
	}
}

/* From 1024px up, the masthead image is 440px tall. When the window leaves
   room, it extends up to 120px into the right margin, while the text and
   the caption keep to the page grid. */
.fp-masthead {
	overflow: hidden;
}

@media (min-width: 1024px) {
	.fp-masthead .fp-feather {
		--fp-bleed: clamp(0px, calc((100vw - 976px) / 2 - 32px), 120px);
		margin-right: calc(-1 * var(--fp-bleed));
	}

	.fp-masthead .fp-feather img {
		height: 440px;
	}

	.fp-masthead .fp-feather .wp-element-caption {
		padding-right: var(--fp-bleed);
	}
}

/* On tablets and phones, the image keeps its own proportions. */
@media (max-width: 781px) {
	.fp-masthead .fp-feather img {
		height: auto;
		aspect-ratio: 5 / 4;
		max-width: 560px;
	}
}

/* On tablets held upright, the TED-Ed still keeps its proportions too,
   instead of being cropped to a thin strip. */
@media (min-width: 601px) and (max-width: 781px) {
	.fp-band .fp-feather img {
		height: auto;
		aspect-ratio: 8 / 5;
		max-width: 560px;
	}
}

/* ---------- Research page and other long pages ---------- */

/* Room above each section title in page content. */
.fp-page-content > h2.wp-block-heading {
	margin-top: 56px;
}

/* Figures in page content, such as Figure 1 on the Research page. */
.fp-figure img {
	display: block;
	width: 100%;
	height: auto;
}

.fp-figure .wp-element-caption {
	margin: 10px 0 0;
	font-family: var(--wp--preset--font-family--sans);
	font-size: 13.5px;
	line-height: 1.55;
	color: #555555;
	text-align: left;
}

/* Small labels ("Selected papers") and notes ("In the press"). */
.fp-label {
	margin-top: 22px;
	margin-bottom: 4px;
	font-family: var(--wp--preset--font-family--sans);
	font-size: 14px;
	font-weight: 600;
	color: #C8102E;
}

/* A paragraph under a label ("Colleagues" on the Teaching page) sits close to it. */
.fp-page-content > .fp-label + p {
	margin-block-start: 6px;
}

.fp-aside {
	font-family: var(--wp--preset--font-family--sans);
	font-size: 15px;
	line-height: 1.6;
	color: #555555;
}

/* Lists of references and of roles. */
ul.fp-refs,
ul.fp-roles {
	padding-left: 1.2em;
	font-family: var(--wp--preset--font-family--sans);
	font-size: 15px;
	line-height: 1.6;
	color: #555555;
}

ul.fp-refs {
	margin-top: 0;
}

ul.fp-refs li,
ul.fp-roles li {
	margin: 0 0 4px;
}

/* Table of telescope programs. */
.wp-block-table.fp-programs {
	margin: 20px 0 0;
}

.wp-block-table.fp-programs table {
	width: 100%;
	border-collapse: collapse;
	border-bottom: 1px solid #E3E7EF;
	font-family: var(--wp--preset--font-family--sans);
	font-size: 15px;
	line-height: 1.5;
}

.wp-block-table.fp-programs thead {
	border-bottom: 0;
}

.wp-block-table.fp-programs th,
.wp-block-table.fp-programs td {
	border: 0;
	border-top: 1px solid #E3E7EF;
	padding: 10px 16px 10px 0;
	text-align: left;
	vertical-align: top;
}

.wp-block-table.fp-programs th:last-child,
.wp-block-table.fp-programs td:last-child {
	padding-right: 0;
}

.wp-block-table.fp-programs thead th {
	border-top: 0;
	padding-top: 0;
	font-size: 13px;
	font-weight: 600;
	color: #555555;
}

.wp-block-table.fp-programs td:first-child {
	font-size: 14px;
	font-weight: 600;
	color: #C8102E;
}

/* On phones, each program becomes one line under its year. */
@media (max-width: 600px) {
	.wp-block-table.fp-programs thead {
		display: none;
	}

	.wp-block-table.fp-programs table,
	.wp-block-table.fp-programs tbody,
	.wp-block-table.fp-programs tr {
		display: block;
		width: auto;
	}

	.wp-block-table.fp-programs tr {
		border-top: 1px solid #E3E7EF;
		padding: 10px 0;
	}

	.wp-block-table.fp-programs td {
		display: inline;
		border: 0;
		padding: 0;
	}

	.wp-block-table.fp-programs td:first-child {
		display: block;
		margin-bottom: 2px;
	}

	.wp-block-table.fp-programs td:not(:first-child):not(:last-child)::after {
		content: ", ";
	}
}

/* Images beside the text on long pages: floated right inside the text
   column on wider screens, full width on phones. */
.fp-page-content > .wp-block-image.fp-float {
	float: right;
	width: calc(min(100%, var(--wp--style--global--content-size, 800px)) * 0.46);
	margin: 6px max(0px, calc((100% - var(--wp--style--global--content-size, 800px)) / 2)) 18px 28px !important;
}

.fp-page-content > .wp-block-image.fp-float.fp-narrow {
	width: calc(min(100%, var(--wp--style--global--content-size, 800px)) * 0.38);
}

.fp-float img {
	display: block;
	width: 100%;
	height: auto;
}

.fp-float .wp-element-caption {
	margin: 8px 0 0;
	font-family: var(--wp--preset--font-family--sans);
	font-size: 12.5px;
	line-height: 1.5;
	color: #555555;
	text-align: left;
}

/* Section titles and paper lists start below any image beside the text. */
.fp-page-content > h2.wp-block-heading,
.fp-page-content > .fp-label {
	clear: both;
}

@media (max-width: 600px) {
	.fp-page-content > .wp-block-image.fp-float,
	.fp-page-content > .wp-block-image.fp-float.fp-narrow {
		float: none;
		width: auto;
		margin: 8px 0 20px !important;
	}
}

/* Academic summary on the CV page: item, total, detail. */
.wp-block-table.fp-figures {
	margin: 20px 0 0;
}

.wp-block-table.fp-figures table {
	width: 100%;
	border-collapse: collapse;
	border-bottom: 1px solid #E3E7EF;
	font-family: var(--wp--preset--font-family--sans);
	font-size: 15px;
	line-height: 1.5;
}

.wp-block-table.fp-figures td {
	border: 0;
	border-top: 1px solid #E3E7EF;
	padding: 9px 16px 9px 0;
	text-align: left;
	vertical-align: baseline;
}

.wp-block-table.fp-figures td:nth-child(2) {
	font-weight: 600;
	color: #0B1530;
	text-align: right;
	white-space: nowrap;
	padding-right: 24px;
}

.wp-block-table.fp-figures td:last-child {
	padding-right: 0;
	font-size: 14px;
	color: #555555;
}

/* On phones, each item sits on its own line, with its total and detail below. */
@media (max-width: 600px) {
	.wp-block-table.fp-figures table,
	.wp-block-table.fp-figures tbody,
	.wp-block-table.fp-figures tr {
		display: block;
		width: auto;
	}

	.wp-block-table.fp-figures tr {
		border-top: 1px solid #E3E7EF;
		padding: 9px 0;
	}

	.wp-block-table.fp-figures td {
		display: inline;
		border: 0;
		padding: 0;
	}

	.wp-block-table.fp-figures td:first-child {
		display: block;
		margin-bottom: 2px;
	}

	.wp-block-table.fp-figures td:nth-child(2) {
		text-align: left;
		padding-right: 0;
	}

	.wp-block-table.fp-figures td:last-child:not(:empty)::before {
		content: ", ";
	}
}

/* ---------- Public engagement page ---------- */

/* Entries (articles, books, talks, interviews): one per row, with a hairline between rows. */
ul.fp-entries {
	list-style: none;
	margin-top: 18px;
	padding: 0;
	border-bottom: 1px solid #E3E7EF;
	font-size: 17px;
	line-height: 1.55;
}

ul.fp-entries > li {
	margin: 0;
	padding: 11px 0;
	border-top: 1px solid #E3E7EF;
}

ul.fp-entries strong {
	font-weight: 600;
}

/* Several items under one entry (the Scientific American op-eds). */
ul.fp-entries ul {
	margin: 6px 0 2px;
	padding-left: 1.2em;
	list-style: disc;
	font-size: 16px;
}

ul.fp-entries ul li {
	margin: 0 0 4px;
	padding: 0;
	border: 0;
}

ul.fp-entries ul li::marker {
	color: #8A93A6;
}

/* Pictures at the end of a section: small images in a row, each opening larger on click. */
.fp-page-content .fp-thumbs {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	gap: 12px;
	margin-top: 22px;
}

.fp-page-content .fp-thumbs > * {
	margin-block: 0;
}

.fp-thumbs .wp-block-image {
	margin: 0;
}

.fp-thumbs .wp-block-image img {
	display: block;
	width: auto;
	height: 112px;
	max-width: 100%;
	object-fit: cover;
	border: 1px solid #E3E7EF;
	background: #F4F6FA;
}

/* Videos: two per row, one per row on phones. */
.fp-page-content .fp-videos {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 26px 24px;
	margin-top: 28px;
}

.fp-page-content .fp-videos > * {
	margin-block: 0;
}

.fp-videos .wp-block-embed {
	margin: 0;
}

.fp-videos .wp-block-embed__wrapper {
	background: #0B1530;
}

.fp-videos .wp-element-caption {
	margin: 8px 0 0;
	font-family: var(--wp--preset--font-family--sans);
	font-size: 13.5px;
	line-height: 1.5;
	color: #555555;
	text-align: left;
}

@media (max-width: 600px) {
	ul.fp-entries {
		font-size: 16px;
	}

	.fp-page-content .fp-thumbs {
		gap: 10px;
	}

	.fp-thumbs .wp-block-image img {
		height: 84px;
	}

	.fp-page-content .fp-videos {
		grid-template-columns: minmax(0, 1fr);
		gap: 22px;
	}
}

/* A list right under a small label ("Books") sits close to it; the row of links has room above it. */
.fp-page-content > .fp-label + ul.fp-entries {
	margin-top: 8px;
}

.fp-page-content > ul.fp-entries + ul.fp-linkrow {
	margin-top: 28px;
}

/* ---------- TED-Ed lessons page ---------- */

/* Lessons two per row, one per row on phones: player, title, credit, description. */
.fp-page-content .fp-lessons {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 40px 28px;
	margin-top: 32px;
}

.fp-page-content .fp-lessons > * {
	margin-block: 0;
}

.fp-lessons .fp-lesson > * {
	margin-block: 0;
}

.fp-lessons .wp-block-embed {
	margin: 0;
}

.fp-lessons .wp-block-embed__wrapper {
	background: #0B1530;
}

.fp-lessons .fp-lesson > .wp-block-heading {
	margin: 14px 0 0;
	font-size: 19px;
	line-height: 1.35;
}

.fp-lessons .fp-lesson > p {
	margin: 6px 0 0;
	font-size: 15.5px;
	line-height: 1.55;
	color: #3A3F4B;
}

.fp-lessons .fp-lesson > p.fp-credit {
	margin-top: 2px;
	font-family: var(--wp--preset--font-family--sans);
	font-size: 13.5px;
	color: #555555;
}

@media (max-width: 600px) {
	.fp-page-content .fp-lessons {
		grid-template-columns: minmax(0, 1fr);
		gap: 32px;
	}
}

/* A picture beside a list of entries covers the row lines behind it (Code and tools). */
.fp-page-content > .wp-block-image.fp-float {
	background: #FFFFFF;
}

/* Videos, YouTube players, and formulas never make a page wider than the screen.
   The GEMS video player and the YouTube players of three press pages had fixed widths. */
.fp-page-content .wp-video {
	max-width: min(100%, var(--wp--style--global--content-size, 800px));
}

:where(.fp-page-content) iframe {
	max-width: 100%;
}

:where(.fp-page-content .embed-youtube) iframe {
	height: auto;
	aspect-ratio: 16 / 9;
}

/* A display formula wider than a phone scrolls sideways inside its own line (Formulas page). */
.fp-page-content mjx-container[display="true"] {
	max-width: 100%;
	overflow-x: auto;
	overflow-y: hidden;
}

/* Centered pictures on pages written in the old editor (Formulas page). */
.fp-page-content img.aligncenter {
	display: block;
	margin-left: auto;
	margin-right: auto;
}
