/*
	Studio Areoart — galleria dei progetti a tutto schermo.
	Fondo bianco, testo nero/grigi, nessun colore d'accento (come il resto del sito).
	Desktop: colonna di testo fissa a sinistra (nome, descrizione, contatore), foto a destra, miniature sotto.
	Mobile: foto in alto, nome e contatore sotto; la descrizione si apre con "Info".
*/

/* Riquadri in home */

	.gallery .image .count {
		position: absolute;
		right: 0.9em;
		bottom: 0.9em;
		padding: 0.35em 0.7em;
		background: rgba(255, 255, 255, 0.92);
		color: #111;
		font-size: 0.68rem;
		font-weight: 500;
		letter-spacing: 0.18em;
		text-transform: uppercase;
		line-height: 1.4;
		pointer-events: none;
	}

/* Pagina progetto senza JavaScript */

	.progetto-foto {
		display: grid;
		gap: 2em;
		margin: 3em 0;
	}

		.progetto-foto img {
			display: block;
			width: 100%;
			height: auto;
		}

		.progetto-foto figcaption {
			margin-top: 0.6em;
			font-size: 0.8rem;
			color: #777;
		}

	.more-back:after {
		content: '\2190';
	}

/* Pagina del progetto (impostazione "pagina"): foto grande in alto, le altre in riquadri */

	.pp .pp-hero,
	.pp .pp-card {
		margin: 0;
	}

		.pp .pp-hero a,
		.pp .pp-card a {
			position: relative;
			display: block;
			overflow: hidden;
			background: #f2f2f2;
			border: 0;
			cursor: zoom-in;
		}

		.pp .pp-hero img,
		.pp .pp-card img {
			display: block;
			width: 100%;
			object-fit: cover;
			transition: transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1), opacity 0.3s ease;
		}

		.pp .pp-hero img {
			height: auto;
			max-height: 82vh;
		}

		.pp .pp-card img {
			aspect-ratio: 4 / 3;
			height: auto;
		}

		.pp .pp-hero a:hover img,
		.pp .pp-card a:hover img {
			transform: scale(1.025);
		}

		.pp .pp-card a:hover img {
			opacity: 0.92;
		}

		.pp .pp-hero a:focus-visible,
		.pp .pp-card a:focus-visible {
			outline: solid 2px #111;
			outline-offset: 3px;
		}

		.pp figcaption {
			margin-top: 0.6em;
			font-size: 0.8rem;
			color: #777;
		}

	.pp .pp-zoom {
		position: absolute;
		right: 0.9em;
		bottom: 0.9em;
		padding: 0.35em 0.7em;
		background: rgba(255, 255, 255, 0.92);
		color: #111;
		font-size: 0.68rem;
		font-weight: 500;
		letter-spacing: 0.18em;
		text-transform: uppercase;
		line-height: 1.4;
		pointer-events: none;
	}

	.pp .pp-descr {
		max-width: 44em;
		margin: 3.5em 0 0;
	}

	.pp .pp-grid {
		display: grid;
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 1.5em;
		margin: 4em 0 3em;
	}

	/* "Tutti i progetti" e menu "Vai al progetto…" */

	.pp .pp-nav {
		display: flex;
		flex-direction: column;
		align-items: flex-start;
		gap: 1.6em;
	}

		.pp .pp-nav p {
			margin: 0;
		}

	.pp .pp-goto {
		margin: 0;
	}

		.pp .pp-goto[open] {
			align-self: stretch;
		}

		.pp .pp-goto summary {
			cursor: pointer;
			list-style: none;
		}

			.pp .pp-goto summary::-webkit-details-marker {
				display: none;
			}

			.pp .pp-goto summary:after {
				content: '\2192';
			}

			.pp .pp-goto[open] summary:after {
				content: '\2193';
			}

		.pp .pp-goto ul {
			list-style: none;
			margin: 1.4em 0 0;
			padding: 0;
			columns: 2 22em;
			column-gap: 3em;
		}

			.pp .pp-goto li {
				break-inside: avoid;
				padding: 0;
				margin: 0;
				border-bottom: solid 1px #e5e5e5;
			}

			.pp .pp-goto li a {
				display: block;
				padding: 0.7em 0;
				color: #111;
				text-decoration: none;
				border: 0;
			}

				.pp .pp-goto li a:hover {
					color: #777;
				}

				.pp .pp-goto li a span {
					display: block;
					font-size: 0.66rem;
					letter-spacing: 0.18em;
					text-transform: uppercase;
					color: #888;
				}

				.pp .pp-goto li a[aria-current] {
					color: #aaa;
					pointer-events: none;
				}

	@media screen and (max-width: 980px) {
		.pp .pp-grid {
			grid-template-columns: repeat(2, minmax(0, 1fr));
			gap: 1em;
		}
	}

	@media screen and (max-width: 480px) {
		.pp .pp-grid {
			grid-template-columns: minmax(0, 1fr);
		}

		.pp .pp-hero img {
			max-height: 70vh;
		}
	}

	@media (prefers-reduced-motion: reduce) {
		.pp .pp-hero img,
		.pp .pp-card img {
			transition: none;
		}

		.pp .pp-hero a:hover img,
		.pp .pp-card a:hover img {
			transform: none;
		}
	}

/* Mappa a colori / link */

	.map {
		position: relative;
	}

		.map.map-color iframe {
			filter: none;
			-webkit-filter: none;
		}

		.map .map-open {
			position: absolute;
			left: 16px;
			bottom: 16px;
			padding: 0.7em 1.1em;
			background: #fff;
			color: #111;
			font-size: 0.68rem;
			font-weight: 500;
			letter-spacing: 0.2em;
			text-transform: uppercase;
			text-decoration: none;
			border: solid 1px #111;
		}

			.map .map-open:hover {
				background: #f5f5f5;
			}

/* ---------------------------------------------------------------- galleria */

	html.pg-lock,
	html.pg-lock body {
		overflow: hidden;
	}

	.pg {
		position: fixed;
		inset: 0;
		z-index: 20000;
		display: grid;
		grid-template-columns: minmax(18em, 26em) minmax(0, 1fr);
		grid-template-rows: minmax(0, 1fr) auto;
		grid-template-areas:
			"info stage"
			"info thumbs";
		background: #ffffff;
		color: #444;
		opacity: 0;
		visibility: hidden;
		transition: opacity 0.35s ease, visibility 0.35s ease;
	}

		.pg.is-open {
			opacity: 1;
			visibility: visible;
		}

		.pg [hidden] {
			display: none !important;
		}

		.pg button {
			height: auto;
			line-height: 1;
			border: 0;
			background: transparent;
			color: #111;
			padding: 0;
			font-family: inherit;
			letter-spacing: 0.22em;
			cursor: pointer;
		}

			.pg button:hover,
			.pg button:active {
				background: transparent;
			}

			.pg button:focus-visible {
				outline: solid 1px #111;
				outline-offset: 4px;
			}

	/* Colonna di testo */

		.pg-info {
			grid-area: info;
			display: flex;
			flex-direction: column;
			min-height: 0;
			padding: 2.5em 2.5em 2em 2.5em;
			border-right: solid 1px #e5e5e5;
		}

			.pg-logo {
				display: block;
				line-height: 0;
				margin-bottom: 3em;
			}

				.pg-logo img {
					height: 22px;
					width: auto;
				}

			.pg-info .kicker {
				margin-bottom: 1em !important;
			}

			.pg-title {
				font-size: 1.6em;
				font-weight: 300;
				line-height: 1.2;
				letter-spacing: -0.02em;
				margin: 0 0 0.6em 0;
				color: #111;
			}

			.pg-meta {
				font-size: 0.82em;
				color: #777;
				margin: 0 0 1.5em 0;
			}

				.pg-meta:empty {
					display: none;
				}

			.pg-descr {
				flex: 1 1 auto;
				min-height: 0;
				overflow-y: auto;
				font-size: 0.92em;
				line-height: 1.7;
				padding-right: 0.5em;
				overscroll-behavior: contain;
			}

				.pg-descr p {
					margin: 0 0 1em 0;
				}

			.pg-foot {
				flex: 0 0 auto;
				padding-top: 1.5em;
				margin-top: 1.5em;
				border-top: solid 1px #e5e5e5;
			}

			.pg-count {
				font-size: 0.72rem;
				font-weight: 500;
				letter-spacing: 0.22em;
				color: #111;
				font-variant-numeric: tabular-nums;
				margin: 0;
			}

				.pg-count .tot {
					color: #bbb;
				}

			.pg-cap {
				font-size: 0.8rem;
				color: #777;
				margin: 0.6em 0 0 0;
				min-height: 1.3em;
			}

	/* Foto */

		.pg-stage {
			grid-area: stage;
			position: relative;
			min-height: 0;
			overflow: hidden;
			touch-action: pan-y pinch-zoom;
			user-select: none;
		}

			.pg-figure {
				position: absolute;
				inset: 2.5em 5.5em 1em 5.5em;
				display: flex;
				align-items: center;
				justify-content: center;
				margin: 0;
			}

				.pg-figure img {
					display: block;
					max-width: 100%;
					max-height: 100%;
					width: auto;
					height: auto;
					object-fit: contain;
					opacity: 0;
					transition: opacity 0.4s ease, transform 0.4s ease;
				}

					.pg-figure img.is-ready {
						opacity: 1;
					}

					.pg-figure img.from-next { transform: translateX(14px); }
					.pg-figure img.from-prev { transform: translateX(-14px); }
					.pg-figure img.is-ready.from-next,
					.pg-figure img.is-ready.from-prev { transform: none; }

			.pg-loader {
				position: absolute;
				left: 50%;
				top: 50%;
				width: 28px;
				height: 1px;
				margin-left: -14px;
				background: #bbb;
				opacity: 0;
				transition: opacity 0.2s ease 0.3s;
				animation: pg-load 1s ease-in-out infinite;
			}

				.pg.is-loading .pg-loader {
					opacity: 1;
				}

			@keyframes pg-load {
				0%, 100% { transform: scaleX(0.2); }
				50% { transform: scaleX(1); }
			}

			.pg-nav {
				position: absolute;
				top: 0;
				bottom: 0;
				width: 5.5em;
				display: flex;
				align-items: center;
				justify-content: center;
			}

				.pg-nav[disabled] {
					opacity: 0.15;
					cursor: default;
				}

				.pg-prev { left: 0; }
				.pg-next { right: 0; }

				.pg-nav svg {
					width: 28px;
					height: 28px;
					stroke: #111;
					stroke-width: 1;
					fill: none;
				}

	/* Pulsanti in alto a destra (Chiudi, cambio vista e, nella vista immersiva, Indice/Info/Schermo intero) */

		.pg-actions {
			position: absolute;
			top: 1.6em;
			right: 2em;
			z-index: 5;
			display: flex;
			align-items: center;
			gap: 2.2em;
		}

			.pg-btn {
				display: inline-flex;
				align-items: center;
				gap: 0.8em;
				font-size: 0.72rem !important;
				font-weight: 500;
				text-transform: uppercase;
				white-space: nowrap;
			}

				.pg-btn svg {
					width: 18px;
					height: 18px;
					stroke: #111;
					stroke-width: 1.2;
					fill: none;
				}

				.pg-btn[aria-expanded="true"] .pg-lbl {
					text-decoration: underline;
					text-underline-offset: 0.5em;
				}

			.pg:not(.is-full) .pg-grid-btn,
			.pg:not(.is-full) .pg-panel-btn,
			.pg:not(.is-full) .pg-fs-btn,
			.pg:not(.is-full) .pg-hud,
			.pg:not(.is-full) .pg-sheet,
			.pg:not(.is-full) .pg-panel,
			.pg:not(.is-full) .pg-cursor {
				display: none;
			}

	/* Miniature */

		.pg-thumbs {
			grid-area: thumbs;
			display: flex;
			gap: 8px;
			justify-content: center;
			padding: 0.75em 5.5em 1.75em 5.5em;
			overflow-x: auto;
			scrollbar-width: thin;
		}

			.pg-thumbs:empty {
				display: none;
			}

			.pg-thumbs button {
				flex: 0 0 auto;
				width: 72px;
				height: 52px;
				padding: 0;
				opacity: 0.45;
				transition: opacity 0.2s ease;
				border-bottom: solid 1px transparent;
			}

				.pg-thumbs button:hover {
					opacity: 0.85;
				}

				.pg-thumbs button[aria-current="true"] {
					opacity: 1;
					border-bottom-color: #111;
					padding-bottom: 4px;
				}

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

		.pg-info-toggle,
		.pg-top {
			display: none;
		}

		.pg-info .kicker:empty {
			display: none;
		}

	/* Medium */

		@media screen and (max-width: 1000px) {

			.pg {
				grid-template-columns: minmax(15em, 20em) minmax(0, 1fr);
			}

				.pg-info {
					padding: 2em 1.75em 1.5em 1.75em;
				}

				.pg-figure {
					inset: 4em 3.5em 0.75em 3.5em;
				}

				.pg-nav {
					width: 3.5em;
				}

				.pg-thumbs {
					padding: 0.75em 3.5em 1.25em 3.5em;
					justify-content: flex-start;
				}

		}

	/* Small (mobile): foto sopra, testo sotto */

		@media screen and (max-width: 736px) {

			.pg {
				grid-template-columns: minmax(0, 1fr);
				grid-template-rows: auto minmax(0, 1fr) auto auto;
				grid-template-areas:
					"top"
					"stage"
					"thumbs"
					"info";
			}

				.pg-top {
					display: block;
					grid-area: top;
					height: 56px;
					border-bottom: solid 1px #e5e5e5;
				}

				.pg-actions {
					position: fixed;
					top: 0;
					right: 0;
					height: 56px;
					padding: 0 16px;
					gap: 1.4em;
				}

					/* su telefono restano solo le icone (il nome resta per i lettori di schermo) */
					.pg-actions .pg-lbl {
						position: absolute;
						width: 1px;
						height: 1px;
						overflow: hidden;
						clip: rect(0 0 0 0);
						white-space: nowrap;
					}

				.pg-logo {
					position: fixed;
					top: 0;
					left: 16px;
					height: 56px;
					display: flex;
					align-items: center;
					margin: 0;
				}

					.pg-logo img {
						height: 18px;
					}

				.pg-figure {
					inset: 0.5em 0;
				}

				.pg-nav {
					display: none;
				}

				.pg-thumbs {
					padding: 0.5em 16px;
					gap: 6px;
				}

					.pg-thumbs button {
						width: 56px;
						height: 42px;
					}

				.pg-info {
					border-right: 0;
					border-top: solid 1px #e5e5e5;
					padding: 1em 16px calc(1em + env(safe-area-inset-bottom)) 16px;
					max-height: 46vh;
					max-height: 46svh;
				}

					.pg-info .kicker {
						margin-bottom: 0.4em !important;
					}

					.pg-head {
						display: flex;
						align-items: flex-start;
						justify-content: space-between;
						gap: 1em;
					}

					.pg-title {
						font-size: 1.15em;
						margin-bottom: 0.25em;
					}

					.pg-meta {
						margin-bottom: 0;
					}

					.pg-info-toggle {
						display: inline-flex;
						flex: 0 0 auto;
						align-items: center;
						gap: 0.5em;
						font-size: 0.68rem !important;
						font-weight: 500;
						text-transform: uppercase;
						padding: 0.35em 0 !important;
						border-bottom: solid 1px #111 !important;
					}

					.pg-descr {
						display: none;
						margin-top: 1em;
					}

						.pg.show-info .pg-descr {
							display: block;
						}

					.pg-foot {
						display: flex;
						align-items: baseline;
						justify-content: space-between;
						gap: 1em;
						margin-top: 0.75em;
						padding-top: 0.75em;
					}

						.pg-cap {
							margin: 0;
							text-align: right;
						}

		}

/* ------------------------------------------------ vista immersiva ("Foto in grande") */

	.pg.is-full {
		display: block;
		background: #0c0c0c;
		color: #bbb;
	}

		.pg.is-full .pg-info,
		.pg.is-full .pg-thumbs,
		.pg.is-full .pg-top,
		.pg.is-full .pg-nav {
			display: none;
		}

		.pg.is-full button {
			color: #fff;
		}

			.pg.is-full button:focus-visible {
				outline-color: #fff;
			}

		.pg.is-full .pg-btn svg {
			stroke: #fff;
		}

		/* La foto: quasi a tutto schermo, con un margine sottile */

		.pg.is-full .pg-stage {
			position: absolute;
			inset: 0;
		}

			.pg.is-full .pg-figure {
				inset: 1.25rem;
			}

				.pg.is-full .pg-figure img.from-next { transform: translateX(48px); }
				.pg.is-full .pg-figure img.from-prev { transform: translateX(-48px); }
				.pg.is-full .pg-figure img.is-ready.from-next,
				.pg.is-full .pg-figure img.is-ready.from-prev { transform: none; }

			.pg.is-full .pg-loader {
				background: #666;
			}

			@media (hover: hover) and (pointer: fine) {
				.pg.is-full:not(.is-single) .pg-stage {
					cursor: none;
				}
			}

		/* Barre sopra la foto: compaiono al movimento, spariscono da sole */

		.pg-hud,
		.pg.is-full .pg-actions {
			transition: opacity 0.6s ease;
		}

		/* solo opacità (non visibility): il pulsante col focus non lo perde */
		.pg.is-full.ui-idle .pg-hud,
		.pg.is-full.ui-idle .pg-actions,
		.pg.is-full.ui-idle .pg-cursor {
			opacity: 0;
			pointer-events: none;
		}

			.pg.is-full.ui-idle .pg-hud a,
			.pg.is-full.ui-idle .pg-actions button {
				pointer-events: none;
			}

		.pg.is-full.ui-idle .pg-stage {
			cursor: none;
		}

		.pg-hud {
			position: absolute;
			left: 0;
			right: 0;
			z-index: 3;
			pointer-events: none;
		}

			.pg-hud a,
			.pg-hud button {
				pointer-events: auto;
			}

		.pg-hud-top {
			top: 0;
			height: 7em;
			padding: 1.5em 2em;
			background: linear-gradient(to bottom, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0));
		}

			.pg-hud-logo {
				display: inline-block;
				line-height: 0;
			}

				.pg-hud-logo img {
					height: 20px;
					width: auto;
				}

		.pg.is-full .pg-actions {
			top: 1.4em;
			right: 2em;
		}

		.pg-hud-bottom {
			bottom: 0;
			display: flex;
			align-items: flex-end;
			justify-content: space-between;
			gap: 2em;
			padding: 4em 2em calc(1.5em + env(safe-area-inset-bottom)) 2em;
			background: linear-gradient(to top, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0));
		}

			.pg-hud-text {
				min-width: 0;
			}

			.pg-hud-title {
				margin: 0;
				color: #fff;
				font-size: 1.25em;
				font-weight: 300;
				letter-spacing: -0.01em;
				line-height: 1.25;
			}

			.pg-hud-sub {
				margin: 0.35em 0 0 0;
				color: rgba(255, 255, 255, 0.7);
				font-size: 0.8rem;
				line-height: 1.4;
			}

				.pg-hud-sub:empty {
					display: none;
				}

			.pg-hud-count {
				flex: 0 0 auto;
				margin: 0;
				color: #fff;
				font-size: 0.72rem;
				font-weight: 500;
				letter-spacing: 0.22em;
				font-variant-numeric: tabular-nums;
			}

				.pg-hud-count .tot {
					color: rgba(255, 255, 255, 0.45);
				}

			.pg-progress {
				position: absolute;
				left: 0;
				right: 0;
				bottom: 0;
				height: 2px;
				background: rgba(255, 255, 255, 0.12);
			}

				.pg-progress span {
					display: block;
					height: 100%;
					width: 0;
					background: rgba(255, 255, 255, 0.85);
					transition: width 0.4s ease;
				}

				.pg.is-single .pg-progress {
					display: none;
				}

		/* Cursore che indica la direzione */

		.pg-cursor {
			position: fixed;
			left: 0;
			top: 0;
			z-index: 4;
			pointer-events: none;
			opacity: 0;
			transition: opacity 0.2s ease;
			will-change: transform;
		}

			.pg-cursor.is-on {
				opacity: 1;
			}

			.pg-cursor.is-on.is-end {
				opacity: 0.35;
			}

			.pg-cursor > span {
				position: absolute;
				top: 0;
				display: inline-flex;
				align-items: center;
				gap: 0.6em;
				color: #fff;
				font-size: 0.68rem;
				font-weight: 500;
				letter-spacing: 0.22em;
				text-transform: uppercase;
				white-space: nowrap;
				transform: translateY(-50%);
				padding: 0.7em 1em;
				background: rgba(0, 0, 0, 0.45);
				-webkit-backdrop-filter: blur(6px);
				backdrop-filter: blur(6px);
			}

				.pg-cursor svg {
					width: 18px;
					height: 18px;
					stroke: #fff;
					stroke-width: 1.2;
					fill: none;
				}

			.pg-cur-prev { right: -20px; }
			.pg-cur-next { left: -20px; }

			.pg-cursor.is-prev .pg-cur-next,
			.pg-cursor:not(.is-prev) .pg-cur-prev {
				display: none !important;
			}

			@media not all and (hover: hover) and (pointer: fine) {
				.pg-cursor {
					display: none !important;
				}
			}

		/* Indice: provino di tutte le foto */

		.pg-sheet {
			position: absolute;
			inset: 0;
			z-index: 4;
			display: none;
			overflow-y: auto;
			overscroll-behavior: contain;
			padding: 6em 2em 3em 2em;
			background: rgba(12, 12, 12, 0.97);
		}

			.pg.show-sheet .pg-sheet {
				display: block;
				animation: pg-fade 0.3s ease;
			}

			.pg-sheet-grid {
				display: grid;
				grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
				gap: 12px;
				max-width: 1600px;
				margin: 0 auto;
			}

				.pg-sheet-grid button {
					position: relative;
					display: block;
					width: 100%;
					aspect-ratio: 3 / 2;
					padding: 0;
					overflow: hidden;
					opacity: 0.7;
					transition: opacity 0.2s ease;
				}

					.pg-sheet-grid button:hover,
					.pg-sheet-grid button:focus-visible,
					.pg-sheet-grid button[aria-current="true"] {
						opacity: 1;
					}

					.pg-sheet-grid button[aria-current="true"] {
						outline: solid 1px #fff;
						outline-offset: 4px;
					}

					.pg-sheet-grid img {
						display: block;
						width: 100%;
						height: 100%;
						object-fit: cover;
					}

				.pg-sheet-n {
					position: absolute;
					left: 0.7em;
					bottom: 0.6em;
					color: #fff;
					font-size: 0.65rem;
					font-weight: 500;
					letter-spacing: 0.2em;
					text-shadow: 0 0 8px rgba(0, 0, 0, 0.7);
				}

		/* Info: pannello del testo, scorre da destra sopra la foto */

		.pg-panel {
			position: absolute;
			top: 0;
			right: 0;
			bottom: 0;
			z-index: 4;
			display: none;
			width: min(30em, 100%);
			overflow-y: auto;
			overscroll-behavior: contain;
			padding: 6em 2.5em 2.5em 2.5em;
			background: rgba(12, 12, 12, 0.94);
			color: #bbb;
			font-size: 0.92em;
			line-height: 1.7;
		}

			.pg.show-panel .pg-panel {
				display: block;
				animation: pg-slide 0.35s ease;
			}

			.pg-panel .kicker {
				color: rgba(255, 255, 255, 0.6) !important;
				margin-bottom: 1em !important;
			}

				.pg-panel .kicker:empty {
					display: none;
				}

			.pg-panel-title {
				color: #fff;
				font-size: 1.6em;
				font-weight: 300;
				line-height: 1.2;
				letter-spacing: -0.02em;
				margin: 0 0 0.6em 0;
			}

			.pg-panel-meta {
				color: #888;
				font-size: 0.9em;
				margin: 0 0 1.5em 0;
			}

				.pg-panel-meta:empty {
					display: none;
				}

			.pg-panel-descr p {
				margin: 0 0 1em 0;
			}

		@keyframes pg-fade {
			from { opacity: 0; }
			to { opacity: 1; }
		}

		@keyframes pg-slide {
			from { transform: translateX(40px); opacity: 0; }
			to { transform: none; opacity: 1; }
		}

		/* Telefono: foto da bordo a bordo, solo icone in alto */

		@media screen and (max-width: 736px) {

			.pg.is-full .pg-figure {
				inset: 0;
			}

			.pg-hud-top {
				height: 5.5em;
				padding: 0 16px;
			}

				.pg-hud-logo {
					display: none;
				}

			.pg.is-full .pg-actions {
				top: 0;
				right: 0;
			}

			.pg-hud-bottom {
				padding: 3em 16px calc(1em + env(safe-area-inset-bottom)) 16px;
				gap: 1em;
			}

				.pg-hud-title {
					font-size: 1.05em;
				}

			.pg-sheet {
				padding: 4.5em 16px 2em 16px;
			}

				.pg-sheet-grid {
					grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
					gap: 6px;
				}

			.pg-panel {
				padding: 4.5em 16px calc(2em + env(safe-area-inset-bottom)) 16px;
				background: rgba(12, 12, 12, 0.96);
			}

		}

	@media (prefers-reduced-motion: reduce) {
		.pg,
		.pg-figure img,
		.pg-hud,
		.pg-actions,
		.pg-progress span {
			transition-duration: 0.01s;
		}

		.pg.show-sheet .pg-sheet,
		.pg.show-panel .pg-panel {
			animation: none;
		}
	}
