/*
 * Francesca Pinna — front-end styles, V1 "Corallo".
 *
 * Breakpoints (docs/specifiche.md): mobile 0–767, tablet 768–1023 (mobile
 * structure, wider), desktop from 1024. Measures come from the 390 / 834 /
 * 1440 px boards. Text sizes per band are custom properties set below.
 */

/* -------------------------------------------------------------------------
 * Tokens
 * ---------------------------------------------------------------------- */

:root {
	--fp-bg: #efdad5;
	--fp-text: #a8362a;
	--fp-line: #e4604f;
	--fp-onphoto: #47a4ab;
	--fp-display: "DM Sans", "Helvetica Neue", Arial, sans-serif;
	--fp-ui: "Space Mono", ui-monospace, Menlo, Consolas, monospace;

	/* Mobile */
	--fp-m: 20px;
	--fp-g: 12px;
	--fp-bar: 64px;
	--fp-bar-portfolio: 104px;
	--fp-page-top: 28px;
	--fp-name-bar: 22px;
	--fp-h1: 24px;
	--fp-clients: 22px;
	--fp-sep: 12px;
	--fp-contact: 24px;
	--fp-bio: 17px;
	--fp-label: 13px;
	--fp-label-dot: 7px;
	--fp-label-gap: 6px;
	--fp-label-inset: 12px;
	--fp-filter: 12px;
	--fp-privacy: 10px;
	--fp-home-name: 32px;
}

@media (min-width: 768px) {
	:root {
		--fp-m: 32px;
		--fp-g: 16px;
		--fp-page-top: 36px;
		--fp-name-bar: 26px;
		--fp-h1: 32px;
		--fp-clients: 28px;
		--fp-sep: 13px;
		--fp-contact: 32px;
		--fp-bio: 20px;
		--fp-label: 16px;
		--fp-label-dot: 8px;
		--fp-label-gap: 8px;
		--fp-label-inset: 16px;
		--fp-privacy: 11px;
		--fp-home-name: 48px;
	}
}

@media (min-width: 1024px) {
	:root {
		--fp-m: 56px;
		--fp-g: 24px;
		--fp-bar: 72px;
		--fp-bar-portfolio: 72px;
		--fp-page-top: 56px;
		--fp-name-bar: 22px;
		--fp-h1: 34px;
		--fp-clients: 36px;
		--fp-sep: 14px;
		--fp-contact: 48px;
		--fp-bio: 24px;
		--fp-label: 20px;
		--fp-label-dot: 10px;
		--fp-label-gap: 10px;
		--fp-label-inset: 20px;
		--fp-filter: 11px;
		--fp-privacy: 11px;
		--fp-home-name: 84px;
	}
}

/* -------------------------------------------------------------------------
 * Base
 * ---------------------------------------------------------------------- */

html {
	background: var(--fp-bg);
}

body {
	margin: 0;
	background: var(--fp-bg);
	color: var(--fp-text);
	font-family: var(--fp-display);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
}

.wp-site-blocks,
.fp-template {
	padding: 0;
	margin: 0;
}

.wp-site-blocks > *,
.fp-template > * {
	margin-block: 0;
}

a {
	color: inherit;
	text-decoration: none;
}

img {
	max-width: 100%;
	height: auto;
}

button {
	font: inherit;
	color: inherit;
}

:focus-visible {
	outline: 2px solid var(--fp-text);
	outline-offset: 4px;
}

:focus:not(:focus-visible) {
	outline: none;
}

/* With JavaScript, focus rings only after real keyboard use on the page
   (html.fp-kbd, set by front.js on Tab or arrow keys): never after a load,
   a Back, an anchor or a click after which a script moved the focus. */
html.fp-js:not(.fp-kbd) .wp-site-blocks :focus-visible {
	outline: none;
}

/* Photos never get a ring (decided by Reverse Studio, 29/10/2026): in the
   Portfolio the keyboard focus shows as veil and title. */
.fp-card:focus-visible,
.fp-home-link:focus-visible,
.fp-home-zone:focus-visible,
.fp-viewer-zone:focus-visible,
.fp-viewer-track:focus-visible {
	outline: none;
}

[hidden] {
	display: none !important;
}

.fp-sr {
	position: absolute !important;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}

.fp-skip {
	position: fixed;
	top: 8px;
	left: 8px;
	z-index: 1000;
	padding: 10px 16px;
	background: var(--fp-bg);
	border: 2px solid var(--fp-text);
	font: 400 12px/1 var(--fp-ui);
	letter-spacing: 0.02em;
	transform: translateY(-200%);
}

.fp-skip:focus {
	transform: none;
}

.fp-wrap {
	box-sizing: border-box;
	max-width: 1920px;
	margin: 0 auto;
	padding-inline: var(--fp-m);
}

.fp-button {
	box-sizing: border-box;
	display: inline-flex;
	align-items: center;
	gap: 10px;
	min-height: 48px;
	padding: 0 28px;
	border: 2px solid var(--fp-text);
	border-radius: 0;
	background: var(--fp-bg);
	font: 400 12px/1 var(--fp-ui);
	letter-spacing: 0.02em;
}

.fp-link-button {
	min-height: 44px;
	padding: 0;
	border: 0;
	background: transparent;
	font: 400 12px/1 var(--fp-ui);
	letter-spacing: 0.02em;
	cursor: pointer;
}

/* Privacy · Cookies */

.fp-privacy {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0;
	font: 400 var(--fp-privacy) / 1 var(--fp-ui);
	letter-spacing: 0.02em;
}

.fp-privacy a {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
}

@media (min-width: 1024px) {
	.fp-privacy a {
		min-height: 0;
	}
}

/* -------------------------------------------------------------------------
 * Top bar
 * ---------------------------------------------------------------------- */

.fp-bar {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 50;
	background: var(--fp-bg);
	transition: transform 0.3s ease;
}

.admin-bar .fp-bar {
	top: var(--wp-admin--admin-bar--height, 0);
}

.fp-bar-inner {
	box-sizing: border-box;
	display: flex;
	justify-content: space-between;
	align-items: center;
	max-width: 1920px;
	height: var(--fp-bar);
	margin: 0 auto;
	padding: 0 var(--fp-m);
}

.fp-bar-name {
	font: 700 var(--fp-name-bar) / 1 var(--fp-display);
	letter-spacing: -0.01em;
}

.fp-bar-filters,
.fp-bar-main {
	display: none;
}

.fp-menu-toggle,
.fp-menu-close {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	margin-right: -10px;
}

.fp-dot,
.fp-ring {
	display: block;
	box-sizing: border-box;
	width: 12px;
	height: 12px;
	border-radius: 50%;
}

.fp-dot {
	background: var(--fp-text);
}

.fp-ring {
	border: 2px solid var(--fp-bg);
}

.fp-filter,
.fp-nav-link {
	font: 400 var(--fp-filter) / 1 var(--fp-ui);
	letter-spacing: 0.02em;
}

/* Active item: only the line below (on desktop a border, see below). */
.fp-bar-filters-m .fp-filter.is-active {
	text-decoration: underline;
	text-decoration-thickness: 2px;
	text-underline-offset: 6px;
}

.fp-bar-filters-m {
	display: flex;
	justify-content: center;
	gap: 24px;
	margin-top: -4px;
	padding: 0 var(--fp-m);
}

.fp-bar-filters-m .fp-filter {
	display: flex;
	align-items: center;
	min-height: 44px;
}

@media (min-width: 1024px) {
	.fp-bar-inner {
		display: grid;
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.fp-bar-name {
		justify-self: start;
	}

	.fp-bar-filters,
	.fp-bar-main {
		display: flex;
		gap: 24px;
	}

	.fp-bar-filters {
		justify-self: center;
	}

	.fp-bar-main {
		justify-self: end;
		align-items: center;
	}

	.fp-bar-filters a,
	.fp-bar-main a {
		padding: 6px 0;
		border-bottom: 2px solid transparent;
	}

	.fp-bar-filters .is-active,
	.fp-bar-main [aria-current="page"] {
		border-bottom-color: var(--fp-text);
	}

	.fp-menu-toggle,
	.fp-bar-filters-m {
		display: none;
	}
}

/* Full-screen menu, below 1024 px. Opens with :target (or .is-open, task 06). */

.fp-menu {
	position: fixed;
	inset: 0;
	z-index: 100;
	display: none;
	flex-direction: column;
	overflow-y: auto;
	background: var(--fp-text);
	color: var(--fp-bg);
}

.fp-menu:target,
.fp-menu.is-open {
	display: flex;
}

.fp-menu :focus-visible {
	outline-color: var(--fp-bg);
}

.fp-menu-head {
	box-sizing: border-box;
	display: flex;
	flex-shrink: 0;
	justify-content: space-between;
	align-items: center;
	height: var(--fp-bar);
	padding: 0 var(--fp-m);
}

.fp-menu-nav {
	display: flex;
	flex-direction: column;
	flex-grow: 1;
	gap: 14px;
	padding: 48px var(--fp-m) 0;
}

.fp-menu-big {
	display: flex;
	align-items: center;
	min-height: 44px;
	font: 700 34px/1 var(--fp-display);
	letter-spacing: -0.01em;
}

.fp-menu-sub {
	display: flex;
	flex-direction: column;
	padding-left: 4px;
}

.fp-menu-big[aria-current="page"] {
	text-decoration: underline;
	text-decoration-thickness: 2px;
	text-underline-offset: 8px;
}

.fp-menu-sub a {
	display: flex;
	align-items: center;
	min-height: 44px;
	font: 400 12px/1 var(--fp-ui);
	letter-spacing: 0.02em;
}

.fp-menu-foot {
	display: flex;
	justify-content: space-between;
	align-items: center;
	min-height: 44px;
	padding: 8px var(--fp-m);
}

.fp-privacy--menu {
	font-size: 10px;
}

.fp-menu-instagram {
	margin-left: auto;
	font: 400 11px/1 var(--fp-ui);
	letter-spacing: 0.02em;
}

@media (min-width: 1024px) {
	.fp-menu,
	.fp-menu:target {
		display: none;
	}
}

/* -------------------------------------------------------------------------
 * Home
 * ---------------------------------------------------------------------- */

.fp-home {
	--fp-photo-h: max(300px, calc(100vh - 224px));
	--fp-photo-h: max(300px, calc(100svh - 224px));
	--fp-name-inset: 16px;
	--fp-name-top: 28px;
	--fp-dots-gap: 37px;
	--fp-enter-bottom: 100px;
	--fp-foot-bottom: 28px;

	position: relative;
	height: 100vh;
	height: 100svh;
	min-height: 520px;
	overflow: hidden;
}

@media (min-width: 768px) {
	.fp-home {
		--fp-photo-h: max(400px, calc(100vh - 314px));
		--fp-photo-h: max(400px, calc(100svh - 314px));
		--fp-name-inset: 24px;
		--fp-name-top: 36px;
		--fp-dots-gap: 67px;
		--fp-enter-bottom: 130px;
		--fp-foot-bottom: 36px;
	}
}

.fp-home-slides {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: var(--fp-photo-h);
	margin: 0;
	padding: 0;
	list-style: none;
}

.fp-home-slide {
	position: absolute;
	inset: 0;
	display: none;
	overflow: hidden;
}

.fp-home-slide.is-current {
	display: block;
}

.fp-home-link {
	display: block;
	width: 100%;
	height: 100%;
}

.fp-home-link img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.fp-home-name {
	position: absolute;
	z-index: 3;
	margin: 0;
	writing-mode: vertical-rl;
	font: 700 var(--fp-home-name) / 1 var(--fp-display);
	letter-spacing: -0.01em;
	color: var(--fp-onphoto);
	mix-blend-mode: difference;
	pointer-events: none;
}

.fp-home-name--first {
	top: var(--fp-name-top);
	left: var(--fp-name-inset);
}

/* Mirrored: "Pinna" reads from the bottom. */
.fp-home-name--last {
	right: var(--fp-name-inset);
	top: calc(var(--fp-photo-h) - var(--fp-name-top));
	transform: translateY(-100%) rotate(180deg);
}

.fp-home-zone {
	position: absolute;
	top: 0;
	z-index: 2;
	width: 20%;
	height: var(--fp-photo-h);
	padding: 0;
	border: 0;
	background: transparent;
	cursor: pointer;
}

.fp-home-zone--prev {
	left: 0;
}

.fp-home-zone--next {
	right: 0;
}

.fp-home-dots {
	position: absolute;
	top: calc(var(--fp-photo-h) + var(--fp-dots-gap));
	left: 50%;
	display: flex;
	gap: 6px;
	transform: translateX(-50%);
}

.fp-home-dot {
	width: 22px;
	height: 2px;
	background: var(--fp-text);
	opacity: 0.3;
}

.fp-home-dot.is-current {
	opacity: 1;
}

.fp-home-enter {
	position: absolute;
	bottom: var(--fp-enter-bottom);
	left: 50%;
	transform: translateX(-50%);
}

.fp-privacy--home,
.fp-home-instagram {
	position: absolute;
	bottom: calc(var(--fp-foot-bottom) - 14px);
}

.fp-privacy--home {
	left: var(--fp-m);
}

.fp-home-instagram {
	right: var(--fp-m);
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	font: 400 var(--fp-privacy) / 1 var(--fp-ui);
	letter-spacing: 0.02em;
}

/* Desktop: centred cover with side previews, scaled on the 1440 × 900 board. */
@media (min-width: 1024px) {
	.fp-home {
		--u: min(calc(100vh / 900), calc(100vw / 1440));
		--u: min(calc(100svh / 900), calc(100vw / 1440));

		min-height: 600px;
	}

	.fp-home-slides {
		inset: 0;
		width: auto;
		height: auto;
	}

	.fp-home-slide {
		inset: auto;
	}

	.fp-home-slide.is-current {
		top: calc(50% - 340 * var(--u));
		left: calc(50% - 240 * var(--u));
		z-index: 2;
		width: calc(480 * var(--u));
		height: calc(600 * var(--u));
	}

	.fp-home-slide.is-prev,
	.fp-home-slide.is-next {
		top: calc(50% - 270 * var(--u));
		z-index: 1;
		display: block;
		width: calc(170 * var(--u));
		height: calc(460 * var(--u));
	}

	.fp-home-slide.is-prev {
		left: calc(50% - 380 * var(--u));
	}

	.fp-home-slide.is-next {
		left: calc(50% + 210 * var(--u));
	}

	.fp-home-slide.is-prev img,
	.fp-home-slide.is-next img {
		opacity: 0.85;
	}

	/* Side previews are not links: the zones (task 06) sit on top of them. */
	.fp-home-slide.is-prev .fp-home-link,
	.fp-home-slide.is-next .fp-home-link {
		pointer-events: none;
	}

	.fp-home-name {
		color: var(--fp-text);
		mix-blend-mode: normal;
	}

	.fp-home-name--first {
		top: 64px;
		left: 64px;
	}

	.fp-home-name--last {
		top: auto;
		right: 64px;
		bottom: 120px;
		transform: rotate(180deg);
	}

	.fp-home-zone {
		top: calc(50% - 270 * var(--u));
		width: calc(170 * var(--u));
		height: calc(460 * var(--u));
	}

	.fp-home-zone--prev {
		left: calc(50% - 380 * var(--u));
	}

	.fp-home-zone--next {
		right: auto;
		left: calc(50% + 210 * var(--u));
	}

	.fp-home-dots {
		display: none;
	}

	.fp-home-enter {
		bottom: 60px;
	}

	.fp-privacy--home {
		left: 64px;
		bottom: 28px;
	}

	.fp-home-instagram {
		right: 64px;
		bottom: 28px;
		min-height: 0;
	}
}

/* -------------------------------------------------------------------------
 * Portfolio
 * ---------------------------------------------------------------------- */

.fp-portfolio {
	padding-top: var(--fp-bar-portfolio);
}

.fp-masonry {
	display: flex;
	align-items: flex-start;
	gap: var(--fp-g);
}

.fp-masonry--3 {
	display: none;
}

@media (min-width: 1024px) {
	.fp-masonry--3 {
		display: flex;
	}

	.fp-masonry--2 {
		display: none;
	}
}

.fp-masonry-col {
	display: flex;
	flex: 1 1 0;
	flex-direction: column;
	gap: var(--fp-g);
	min-width: 0;
}

.fp-card {
	position: relative;
	display: block;
	aspect-ratio: var(--fp-ratio, 0.75);
	overflow: hidden;
	background: #bcb7b0;
	scroll-margin-top: 164px;
}

@media (min-width: 1024px) {
	.fp-card {
		scroll-margin-top: 150px;
	}
}

.fp-card-img {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.fp-card-veil {
	position: absolute;
	inset: 0;
	background: var(--fp-veil-color, var(--fp-line));
	mix-blend-mode: multiply;
	opacity: 0;
	transition: opacity 0.35s ease;
	pointer-events: none;
}

.fp-card-title {
	position: absolute;
	top: 50%;
	left: 20px;
	right: 20px;
	font: italic 400 20px/1.25 var(--fp-ui);
	letter-spacing: 0.02em;
	text-align: center;
	color: #fff;
	opacity: 0;
	transform: translateY(calc(-50% + 6px));
	transition: opacity 0.35s ease, transform 0.35s ease;
	pointer-events: none;
}

/* Veil and title: mouse over the photo from 1024 px, or keyboard focus
   (only after real keyboard use: see html.fp-kbd). Colour and opacity come from
   Sito › Portfolio as custom properties on .fp-portfolio. */
@media (min-width: 1024px) and (hover: hover) {
	.fp-card:hover .fp-card-veil {
		opacity: var(--fp-veil-opacity, 0.7);
	}

	.fp-card:hover .fp-card-title {
		opacity: 1;
		transform: translateY(-50%);
	}
}

@media (min-width: 1024px) {
	html:not(.fp-js) .fp-card:focus-visible .fp-card-veil,
	html.fp-kbd .fp-card:focus-visible .fp-card-veil {
		opacity: var(--fp-veil-opacity, 0.7);
	}

	html:not(.fp-js) .fp-card:focus-visible .fp-card-title,
	html.fp-kbd .fp-card:focus-visible .fp-card-title {
		opacity: 1;
		transform: translateY(-50%);
	}
}

/* Veil switched off: the title alone, with a soft shadow to stay readable. */
.fp-portfolio--no-veil .fp-card-veil {
	display: none;
}

.fp-portfolio--no-veil .fp-card-title {
	text-shadow: 0 1px 3px rgba(0, 0, 0, 0.45), 0 0 12px rgba(0, 0, 0, 0.25);
}

.fp-onphoto-label {
	position: absolute;
	top: var(--fp-label-inset);
	left: var(--fp-label-inset);
	z-index: 2;
	display: flex;
	align-items: center;
	gap: var(--fp-label-gap);
	font: 400 var(--fp-label) / 1 var(--fp-ui);
	letter-spacing: 0.02em;
	white-space: nowrap;
	color: var(--fp-onphoto);
	mix-blend-mode: difference;
	pointer-events: none;
}

.fp-onphoto-dot {
	display: block;
	width: var(--fp-label-dot);
	height: var(--fp-label-dot);
	border-radius: 50%;
	background: var(--fp-onphoto);
}

.fp-privacy--portfolio {
	padding: 32px 0 24px;
}

@media (min-width: 1024px) {
	.fp-privacy--portfolio {
		padding: 72px 0 40px;
	}
}

.fp-empty {
	margin: 0;
	padding: 56px 0;
	font: 400 var(--fp-bio) / 1.5 var(--fp-display);
}

/* -------------------------------------------------------------------------
 * Pages: Clients, Info, 404, generic
 * ---------------------------------------------------------------------- */

.fp-page {
	padding-top: var(--fp-bar);
}

.fp-page-inner {
	padding-top: var(--fp-page-top);
}

.fp-h1 {
	margin: 0 0 20px;
	font: 700 var(--fp-h1) / 1 var(--fp-display);
	letter-spacing: -0.01em;
}

@media (min-width: 1024px) {
	.fp-h1 {
		margin-bottom: 40px;
	}
}

.fp-privacy--page {
	padding: 40px 0 16px;
}

@media (min-width: 1024px) {
	.fp-privacy--page {
		padding: 80px 0 40px;
	}
}

/* Clients: " / " between names, added here so it is not part of the names. */
.fp-clients-list {
	margin: 0;
	padding: 0;
	list-style: none;
	font: italic 400 var(--fp-clients) / 1.3 var(--fp-display);
}

.fp-clients-list li {
	display: inline;
}

.fp-clients-list li:not(:last-child)::after {
	content: "\a0/ ";
	font: normal 400 var(--fp-sep) / 1 var(--fp-ui);
	letter-spacing: 0;
	color: var(--fp-line);
}

/* Clients, Info and 404: content on top, Privacy · Cookies at the bottom. */
.fp-clients .fp-page-inner,
.fp-info .fp-page-inner,
.fp-notfound .fp-page-inner,
.fp-generic .fp-page-inner {
	display: flex;
	flex-direction: column;
	min-height: calc(100vh - var(--fp-bar));
	min-height: calc(100svh - var(--fp-bar));
	box-sizing: border-box;
}

.fp-info .fp-page-inner {
	gap: 26px;
}

.fp-info .fp-h1 {
	margin: 0;
}

.fp-bio {
	max-width: 880px;
	margin: 0;
	font: 400 var(--fp-bio) / 1.5 var(--fp-display);
}

.fp-contacts {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 28px;
}

.fp-contact {
	font: 700 var(--fp-contact) / 1 var(--fp-display);
	letter-spacing: -0.02em;
	overflow-wrap: anywhere;
}

.fp-privacy--bottom {
	margin-top: auto;
	padding: 24px 0 12px;
}

@media (min-width: 1024px) {
	.fp-info .fp-page-inner {
		gap: 40px;
	}

	.fp-info .fp-bio {
		margin-top: 0;
	}

	.fp-contacts {
		gap: 18px;
	}

	.fp-privacy--bottom {
		padding: 40px 0 28px;
	}
}

.fp-notfound-code {
	margin: 0 0 14px;
	font: 400 11px/1 var(--fp-ui);
	letter-spacing: 0.02em;
}

.fp-notfound-title {
	margin: 0 0 18px;
	font: 700 30px/1.05 var(--fp-display);
	letter-spacing: -0.01em;
}

.fp-notfound-text {
	max-width: 720px;
	margin: 0 0 20px;
	font: 400 var(--fp-bio) / 1.5 var(--fp-display);
}

.fp-back {
	display: inline-flex;
	align-items: center;
	align-self: flex-start;
	min-height: 44px;
	font: 400 11px/1 var(--fp-ui);
	letter-spacing: 0.02em;
}

@media (min-width: 768px) {
	.fp-notfound-title {
		font-size: 40px;
	}
}

@media (min-width: 1024px) {
	.fp-notfound-code {
		margin-bottom: 20px;
		font-size: 12px;
	}

	.fp-notfound-title {
		margin-bottom: 28px;
		font-size: 48px;
		line-height: 1;
	}

	.fp-notfound-text {
		margin-bottom: 40px;
	}

	.fp-back {
		font-size: 12px;
	}
}

.fp-generic-content {
	max-width: 880px;
	font: 400 var(--fp-bio) / 1.5 var(--fp-display);
}

/* -------------------------------------------------------------------------
 * Single project
 * ---------------------------------------------------------------------- */

.fp-project {
	position: relative;
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	height: 100vh;
	height: 100svh;
	min-height: 520px;
	padding-top: var(--fp-bar);
}

/* Below 1024 px only the counter, on the right (the h1 is for readers). */
.fp-project-head {
	display: flex;
	justify-content: flex-end;
	padding: 18px var(--fp-m) 0;
}

.fp-project-counter {
	margin: 0;
	font: 400 11px/1 var(--fp-ui);
	letter-spacing: 0.02em;
	white-space: nowrap;
}

.fp-viewer {
	position: relative;
	flex: 1 1 auto;
	min-height: 0;
	margin: 32px var(--fp-m) 0;
	overflow: hidden;
}

.fp-viewer-track {
	display: flex;
	height: 100%;
	overflow-x: auto;
	overflow-y: hidden;
	overscroll-behavior-x: contain;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
}

.fp-viewer-track::-webkit-scrollbar {
	display: none;
}

.fp-slide {
	box-sizing: border-box;
	display: flex;
	flex: 0 0 100%;
	align-items: center;
	justify-content: center;
	height: 100%;
	margin: 0;
	scroll-snap-align: start;
	scroll-snap-stop: always;
}

.fp-slide--image img {
	display: block;
	width: auto;
	height: auto;
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
}

.fp-slide--credits {
	overflow-y: auto;
}

.fp-viewer-zone {
	position: absolute;
	top: 0;
	z-index: 2;
	width: 50%;
	height: 100%;
	padding: 0;
	border: 0;
	background: transparent;
}

.fp-viewer-zone--prev {
	left: 0;
	cursor: w-resize;
}

.fp-viewer-zone--next {
	right: 0;
	cursor: e-resize;
}

/* Credits slide */

.fp-credits {
	display: flex;
	flex-direction: column;
	gap: 22px;
	width: 100%;
	max-height: 100%;
}

.fp-credits-title {
	margin: 0;
	font: 700 var(--fp-h1) / 1 var(--fp-display);
	letter-spacing: -0.01em;
}

.fp-credits-list {
	display: grid;
	grid-template-columns: 130px minmax(0, 1fr);
	align-items: baseline;
	gap: 10px 12px;
	margin: 0;
}

.fp-credits-list dt {
	font: 400 10px/1.5 var(--fp-ui);
	letter-spacing: 0.02em;
}

.fp-credits-list dd {
	margin: 0;
	font: 400 14px/1.5 var(--fp-display);
}

.fp-credits-foot {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding-top: 14px;
	border-top: 2px solid var(--fp-line);
}

.fp-credits-next {
	order: -1;
	display: flex;
	align-items: center;
	min-height: 44px;
	font: 700 22px/1.05 var(--fp-display);
	letter-spacing: -0.01em;
}

.fp-credits-prev {
	display: flex;
	align-self: flex-start;
	align-items: center;
	font-size: 11px;
}

/* Credits hidden from the project: no line above "Next" and "← Previous". */
.fp-slide--end .fp-credits-foot {
	padding-top: 0;
	border-top: 0;
}

/* Bottom bar: progress lines centred under the photo (and the counter on
   desktop). With many photos the lines get shorter instead of widening
   the page. */

.fp-project-bar {
	display: flex;
	justify-content: center;
	align-items: center;
	min-height: 44px;
	padding: 60px var(--fp-m) 28px;
}

.fp-progress {
	display: flex;
	align-items: center;
	gap: 16px;
	min-width: 0;
	max-width: 100%;
}

.fp-project-counter--bar {
	display: none;
}

.fp-progress-bars {
	display: flex;
	gap: 4px;
	min-width: 0;
	overflow: hidden;
}

.fp-progress-bar {
	flex: 0 1 auto;
	width: 22px;
	min-width: 2px;
	height: 2px;
	background: var(--fp-text);
	opacity: 0.25;
}

.fp-progress-bar.is-current {
	opacity: 1;
}

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

	.fp-viewer {
		margin-top: 42px;
	}

	.fp-project-bar {
		padding-top: 42px;
	}

	.fp-credits {
		width: 520px;
		gap: 28px;
	}

	.fp-credits-list {
		grid-template-columns: 180px minmax(0, 1fr);
	}

	.fp-credits-list dd {
		font-size: 16px;
	}
}

@media (min-width: 1024px) {
	.fp-project {
		gap: 20px;
		padding: calc(var(--fp-bar) + 24px) 0 24px;
	}

	/* On desktop the counter lives in the bottom bar; keep the h1 for readers. */
	.fp-project-head {
		position: absolute !important;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip-path: inset(50%);
		white-space: nowrap;
	}

	.fp-viewer {
		box-sizing: border-box;
		width: 100%;
		max-width: 1920px;
		margin: 0 auto;
		padding: 0 var(--fp-m);
	}

	.fp-viewer-zone--prev {
		left: var(--fp-m);
		width: calc(50% - var(--fp-m));
	}

	.fp-viewer-zone--next {
		right: var(--fp-m);
		width: calc(50% - var(--fp-m));
	}

	.fp-slide--image img {
		max-height: min(100%, 680px);
	}

	.fp-credits {
		width: 680px;
		gap: 36px;
	}

	.fp-credits-list {
		grid-template-columns: 220px minmax(0, 1fr);
		gap: 14px 24px;
	}

	.fp-credits-list dt {
		font-size: 11px;
	}

	.fp-credits-foot {
		flex-direction: row;
		justify-content: space-between;
		align-items: center;
		gap: 16px;
		padding-top: 20px;
	}

	.fp-credits-next {
		order: 0;
		min-height: 0;
		font-size: 28px;
	}

	.fp-credits-prev {
		align-self: center;
		min-height: 0;
		font-size: 12px;
	}

	.fp-project-bar {
		box-sizing: border-box;
		width: 100%;
		max-width: 1920px;
		min-height: 56px;
		margin: 0 auto;
		padding: 0 var(--fp-m);
	}

	/* Clear of Privacy · Cookies at the bottom left on the last slide. */
	.fp-progress {
		max-width: 60%;
	}

	.fp-progress-bars {
		gap: 6px;
	}

	.fp-progress-bar {
		width: 32px;
	}

	.fp-project-counter--bar {
		display: block;
		font-size: 12px;
	}
}

/* -------------------------------------------------------------------------
 * Reduced motion
 * ---------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		transition-duration: 0.01ms !important;
		animation-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}
}

/* -------------------------------------------------------------------------
 * Editor preview (Site Editor): fixed and full-height parts stay in flow.
 * ---------------------------------------------------------------------- */

.editor-styles-wrapper .fp-bar,
.editor-styles-wrapper .fp-menu {
	position: relative;
}

.editor-styles-wrapper .fp-menu {
	display: none;
}

.editor-styles-wrapper .fp-portfolio,
.editor-styles-wrapper .fp-page,
.editor-styles-wrapper .fp-project {
	padding-top: 0;
}

/* Arrows and text inside flex links: whitespace is dropped, use a gap. */
.fp-home-instagram,
.fp-menu-instagram,
.fp-back,
.fp-credits-prev,
.fp-credits-next {
	gap: 0.4em;
}

/* -------------------------------------------------------------------------
 * Behaviours (task 06, assets/js/front.js)
 * ---------------------------------------------------------------------- */

/* Menu: with JavaScript it opens with .is-open, not with :target. */
.fp-js .fp-menu:target {
	display: none;
}

.fp-js .fp-menu.is-open {
	display: flex;
}

html.fp-menu-open,
html.fp-menu-open body {
	overflow: hidden;
}

/* Portfolio bar hides while scrolling down. */
.fp-bar.is-hidden {
	transform: translateY(-100%);
}

/* On-photo labels, moved by the script to a fixed layer. */
.fp-labels {
	position: fixed;
	inset: 0;
	z-index: 40;
	pointer-events: none;
}

.fp-labels .fp-onphoto-label {
	top: 0;
	left: 0;
	visibility: hidden;
	will-change: transform;
}

/* Viewer halves: buttons for keyboard and readers; pointer clicks and
   swipes go to the track underneath. */
.fp-viewer-zone {
	pointer-events: none;
}

/* Custom cursor: 12 px dot, difference blend, mouse or trackpad only. */
.fp-cursor {
	position: fixed;
	top: 0;
	left: 0;
	z-index: 1000;
	width: 12px;
	height: 12px;
	border-radius: 50%;
	background: var(--fp-onphoto);
	mix-blend-mode: difference;
	opacity: 0;
	pointer-events: none;
}

.fp-cursor.is-visible {
	opacity: 1;
}

/* Only on the page and the theme's own content: third-party layers appended
   to the body (iubenda banner and preferences, admin bar) keep the system
   cursor. */
@media (hover: hover) and (pointer: fine) {
	html.fp-has-cursor,
	html.fp-has-cursor body,
	html.fp-has-cursor .wp-site-blocks,
	html.fp-has-cursor .wp-site-blocks * {
		cursor: none !important;
	}

	html.fp-has-cursor body > :not(.wp-site-blocks) {
		cursor: auto;
	}
}

/* Project, last slide: Privacy · Cookies at the bottom of the window, at
   the same place as in Clients and Info. With JavaScript it shows only on
   the last slide (.is-end, set by front.js); there, below 1024 px, the
   progress lines make room for it. */
.fp-project-privacy {
	position: absolute;
	right: 0;
	bottom: 0;
	left: 0;
	pointer-events: none;
}

.fp-project-privacy a {
	pointer-events: auto;
}

.fp-js .fp-project:not(.is-end) .fp-project-privacy {
	visibility: hidden;
}

@media (max-width: 1023px) {
	.fp-js .fp-project.is-end .fp-progress {
		visibility: hidden;
	}
}

/* Logged-in users: the full-screen menu starts below the admin bar, like
   the top bar, so the dot and the ring stay in the same place. */
.admin-bar .fp-menu {
	top: var(--wp-admin--admin-bar--height, 0);
}
