/*
 * The stops of a journey and the wall of the posters of the page Chi sono (site:gallery/stops, site:gallery/wall), as
 * the preview approved on 2026-11-21. The prints are white paper in both themes (the colour of the button's text, white
 * in this site); every other colour is the palette's. The rev counter behind the motorbikes is drawn with gradients
 * in the band's text colour, faint; its needle climbs to the red while the page runs.
 */

.axyo-site-gallery {
	--ga-paper: var(--color-section-dark-text);
	container-type: inline-size;
	overflow-x: clip;
}

.axyo-site-gallery figure { margin: 0; }
.axyo-site-gallery .ga-img { display: block; width: 100%; height: auto; object-fit: cover; }

.axyo-site-gallery figcaption {
	padding: 0.55em 0.1em 0.75em;
	font-size: 0.6875em;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--color-section-dark-bg);
	opacity: 0.7;
}

/* The stops: three prints laid one on the other, crooked; every second stop the other way round. */
.axyo-site-gallery .ga-stops { position: relative; }
.axyo-site-gallery .ga-stops.is-below { margin-top: calc(var(--axp-pad, 4em) * -0.6); }
.axyo-site-gallery .ga-list { position: relative; z-index: 1; display: grid; gap: clamp(4em, 9cqi, 7em); width: min(100%, 60em); margin-inline: auto; }
/* Under the bar (its room is the page's scroll-padding); more only as much as the stamp stands out above. */
.axyo-site-gallery .ga-stop { position: relative; scroll-margin-top: 0; }
.axyo-site-gallery .ga-stop:has(.ga-stamp) { scroll-margin-top: 2.8em; }
.axyo-site-gallery .ga-snaps { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); align-items: start; }
.axyo-site-gallery .ga-snaps figure { position: relative; padding: 0.55em 0.55em 0; background: var(--ga-paper); box-shadow: 0 1.4em 2.4em -1.2em color-mix(in srgb, var(--section-fg) 45%, transparent); }
.axyo-site-gallery .s-a { grid-column: 1 / 8; grid-row: 1 / 3; z-index: 1; rotate: -1.5deg; }
.axyo-site-gallery .s-b { grid-column: 9 / 13; grid-row: 1; rotate: 2deg; }
.axyo-site-gallery .s-c { grid-column: 6 / 12; grid-row: 2; z-index: 2; margin-top: -14%; rotate: -1deg; }
.axyo-site-gallery :is(.s-a, .s-c) .ga-img { aspect-ratio: 4 / 3; }
.axyo-site-gallery .s-b .ga-img { aspect-ratio: 3 / 4; }
.axyo-site-gallery .is-flip .s-a { grid-column: 6 / 13; rotate: 1.5deg; }
.axyo-site-gallery .is-flip .s-b { grid-column: 1 / 5; rotate: -2deg; }
.axyo-site-gallery .is-flip .s-c { grid-column: 2 / 8; rotate: 1deg; }

/* The motorbikes: the one on its back laid in the middle, under the other two (the user, 2026-11-21). */
.axyo-site-gallery .has-gauge .ga-snaps figure { box-shadow: 0 1.8em 3em -1.2em var(--color-section-dark-bg); }
.axyo-site-gallery .has-gauge .s-c { grid-column: 6 / 10; margin-top: -42%; z-index: 3; }
.axyo-site-gallery .has-gauge .s-c .ga-img { aspect-ratio: 3 / 4; }

/* The stamp of the passport. */
.axyo-site-gallery .ga-stamp {
	position: absolute;
	z-index: 3;
	top: -2.6em;
	left: 54%;
	display: grid;
	place-content: center;
	width: 8.5em;
	aspect-ratio: 1;
	margin: 0;
	border: 3px double var(--section-accent);
	border-radius: 50%;
	color: var(--section-accent);
	text-align: center;
	rotate: -10deg;
	mix-blend-mode: multiply;
}

.axyo-site-gallery .ga-stamp::before { content: ''; position: absolute; inset: 0.45em; border: 1px dashed currentColor; border-radius: 50%; opacity: 0.7; }
.axyo-site-gallery .ga-stamp b { font: 800 1.125em / 1.05 var(--axyo-font-heading); letter-spacing: -0.01em; text-transform: uppercase; }
.axyo-site-gallery .ga-stamp span { margin-top: 0.3em; font-size: 0.625em; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; }
.axyo-site-gallery .is-flip .ga-stamp { left: auto; right: 54%; rotate: 8deg; }

/* The rev counter: ticks every 250 revs on 240 degrees, the red from 12, the numbers, the needle. */
.axyo-site-gallery .ga-gauge { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.axyo-site-gallery .ga-dial {
	--ga-ink: var(--section-fg);
	position: absolute;
	right: -8%;
	top: 50%;
	width: min(78cqi, 60em);
	aspect-ratio: 1;
	translate: 0 -50%;
	container-type: inline-size;
	border-radius: 50%;
	box-shadow: inset 0 0 0 0.4cqi var(--ga-ink);
	opacity: 0.14;
	filter: blur(0.04em);
}

.axyo-site-gallery .ga-dial::before,
.axyo-site-gallery .ga-dial::after {
	content: '';
	position: absolute;
	inset: 4.5%;
	border-radius: 50%;
	background:
		repeating-conic-gradient(from 239.5deg, var(--ga-ink) 0 1deg, transparent 1deg 17.142857deg),
		repeating-conic-gradient(from 239.7deg, var(--ga-ink) 0 0.6deg, transparent 0.6deg 4.285714deg);
	-webkit-mask: radial-gradient(closest-side, transparent 86%, var(--ga-ink) 86.5% 100%), conic-gradient(from 239deg, var(--ga-ink) 0 242deg, transparent 0);
	-webkit-mask-composite: source-in;
	mask: radial-gradient(closest-side, transparent 86%, var(--ga-ink) 86.5% 100%), conic-gradient(from 239deg, var(--ga-ink) 0 242deg, transparent 0);
	mask-composite: intersect;
}

.axyo-site-gallery .ga-dial::after {
	inset: 2.5%;
	background: conic-gradient(from 85.7deg, var(--color-section-dark-danger) 0 34.3deg, transparent 0);
	-webkit-mask: radial-gradient(closest-side, transparent 95%, var(--ga-ink) 95.5% 100%);
	mask: radial-gradient(closest-side, transparent 95%, var(--ga-ink) 95.5% 100%);
}

.axyo-site-gallery .ga-num {
	position: absolute;
	left: 50%;
	top: 50%;
	font: 700 5.5cqi / 1 var(--axyo-font-heading);
	color: var(--ga-ink);
	translate: -50% -50%;
	transform: rotate(var(--a)) translateY(-31cqi) rotate(calc(var(--a) * -1));
}

.axyo-site-gallery .ga-num.is-red { color: var(--color-section-dark-danger); }
.axyo-site-gallery .ga-num:nth-child(1) { --a: -120deg; }
.axyo-site-gallery .ga-num:nth-child(2) { --a: -102.86deg; }
.axyo-site-gallery .ga-num:nth-child(3) { --a: -85.71deg; }
.axyo-site-gallery .ga-num:nth-child(4) { --a: -68.57deg; }
.axyo-site-gallery .ga-num:nth-child(5) { --a: -51.43deg; }
.axyo-site-gallery .ga-num:nth-child(6) { --a: -34.29deg; }
.axyo-site-gallery .ga-num:nth-child(7) { --a: -17.14deg; }
.axyo-site-gallery .ga-num:nth-child(8) { --a: 0deg; }
.axyo-site-gallery .ga-num:nth-child(9) { --a: 17.14deg; }
.axyo-site-gallery .ga-num:nth-child(10) { --a: 34.29deg; }
.axyo-site-gallery .ga-num:nth-child(11) { --a: 51.43deg; }
.axyo-site-gallery .ga-num:nth-child(12) { --a: 68.57deg; }
.axyo-site-gallery .ga-num:nth-child(13) { --a: 85.71deg; }
.axyo-site-gallery .ga-num:nth-child(14) { --a: 102.86deg; }
.axyo-site-gallery .ga-num:nth-child(15) { --a: 120deg; }
.axyo-site-gallery .ga-rpm { position: absolute; left: 50%; top: 67%; translate: -50% 0; font-size: 2.75cqi; font-weight: 600; letter-spacing: 0.18em; color: var(--ga-ink); }

.axyo-site-gallery .ga-needle {
	position: absolute;
	left: 49.4%;
	bottom: 50%;
	width: 1.2%;
	height: 37%;
	background: var(--color-section-dark-danger);
	transform-origin: 50% 100%;
	rotate: -120deg;
}

.axyo-site-gallery .ga-needle::after { content: ''; position: absolute; left: 50%; bottom: -3.5cqi; width: 7cqi; aspect-ratio: 1; translate: -50% 0; border-radius: 50%; background: var(--ga-ink); }

/* The wall of the posters. */
.axyo-site-gallery .ga-wall-head { max-width: 60em; }

/* The magazines where the pages came out, beside the words, each logo on a white card (the user, 2026-11-21). */
.axyo-site-gallery .ga-wall-head.has-press { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2em 4cqi; align-items: end; max-width: none; }
.axyo-site-gallery .ga-words { min-width: 0; max-width: 60em; }
.axyo-site-gallery .ga-press { min-width: 0; }
.axyo-site-gallery .ga-logos { display: flex; flex-wrap: wrap; align-items: stretch; gap: 0.8em; margin: 0.9em 0 0; padding: 0; list-style: none; }
.axyo-site-gallery .ga-logos li { display: grid; place-items: center; height: 5.2em; margin: 0; padding: 0.6em 0.8em; background: var(--ga-paper); box-shadow: 0 1em 2em -1.2em var(--color-section-dark-bg); }
.axyo-site-gallery .ga-press .ga-logos > li { margin: 0; }
.axyo-site-gallery .ga-logo { display: block; width: auto; max-width: 12em; height: auto; max-height: 4em; object-fit: contain; }
.axyo-site-gallery .ga-eyebrow { margin: 0; font: 500 0.75em ui-monospace, monospace; letter-spacing: 0.08em; color: var(--section-accent); }
.axyo-site-gallery .ga-title { margin: 0.25em 0 0; font: 800 clamp(2em, 4.6vw, 4em) / 1 var(--axyo-font-heading); letter-spacing: -0.045em; }
.axyo-site-gallery .ga-title em { font-style: normal; color: var(--section-accent); }
.axyo-site-gallery .ga-lead { max-width: 46ch; margin: 1.1em 0 0; font-size: 1.0625em; color: var(--section-muted); }
.axyo-site-gallery .ga-run { margin: 2.6em calc(var(--frame-x, 1.25em) * -1) 0; }
.axyo-site-gallery :is(.ga-row, .ga-copy) { display: flex; gap: clamp(1em, 2.4cqi, 2em); }
.axyo-site-gallery .ga-row { width: max-content; padding: 1em 0 3.4em; }
.axyo-site-gallery .ga-row figure { flex: none; width: clamp(12em, 20cqi, 19em); transition: rotate 0.5s, scale 0.5s; }
.axyo-site-gallery .ga-row figure:nth-of-type(odd) { rotate: -2deg; }
.axyo-site-gallery .ga-row figure:nth-of-type(even) { rotate: 1.5deg; translate: 0 1.6em; }
.axyo-site-gallery .ga-row figure:is(:hover, :focus-within) { position: relative; z-index: 1; rotate: 0deg; scale: 1.05; }
.axyo-site-gallery .ga-row .ga-img { aspect-ratio: 5 / 7; box-shadow: 0 1.6em 2.6em -1.2em var(--color-section-dark-bg); }
.axyo-site-gallery .ga-row figcaption { padding: 0.8em 0 0; color: var(--section-muted); opacity: 1; }

@container (max-width: 48em) {
	.axyo-site-gallery .ga-row figure { width: 56cqi; }
	.axyo-site-gallery .ga-wall-head.has-press { grid-template-columns: minmax(0, 1fr); }
	.axyo-site-gallery .ga-logos { gap: 0.5em; }
	.axyo-site-gallery .ga-logos li { height: 3.6em; padding: 0.45em 0.55em; }
	.axyo-site-gallery .ga-logo { max-width: 7.5em; max-height: 2.7em; }
	/* On a phone the prints stand one under the other, whole, still crooked (the user, 2026-11-21). */
	.axyo-site-gallery .ga-snaps { display: flex; flex-direction: column; gap: 1.6em; }
	.axyo-site-gallery .ga-snaps figure { width: 100%; margin: 0 !important; }
	.axyo-site-gallery .ga-stamp, .axyo-site-gallery .is-flip .ga-stamp { top: -3.4em; left: auto; right: 0; width: 6.8em; }
	.axyo-site-gallery .ga-list { gap: 5.5em; }
	.axyo-site-gallery .ga-stop:has(.ga-stamp) { scroll-margin-top: 3.6em; }
}

@media (prefers-reduced-motion: reduce) {
	.axyo-site-gallery * { animation: none; }
	.axyo-site-gallery .ga-run { overflow-x: auto; }
	.axyo-site-gallery .ga-copy { display: none; }
}

@media (prefers-reduced-motion: no-preference) {
	.axyo-site-gallery .ga-row { animation: gallery-run 70s linear infinite; }
	.axyo-site-gallery .ga-run:is(:hover, :focus-within) .ga-row { animation-play-state: paused; }

	@supports (animation-timeline: view()) {
		/* The large print from its side, the small one from the other, the one between from below; the stamp falls. */
		.axyo-site-gallery .ga-snaps figure { animation: gallery-up linear both; animation-timeline: view(); animation-range: entry 0% exit 100%; }
		.axyo-site-gallery .ga-stop .s-a, .axyo-site-gallery .is-flip .s-b { animation-name: gallery-left; }
		.axyo-site-gallery .ga-stop .s-b, .axyo-site-gallery .is-flip .s-a { animation-name: gallery-right; }
		.axyo-site-gallery .is-flip .s-c, .axyo-site-gallery .ga-stop .s-c { animation-name: gallery-up; }
		.axyo-site-gallery .ga-stamp { animation: gallery-stamp linear both; animation-timeline: view(); animation-range: entry 30% cover 45%; }
		.axyo-site-gallery .has-gauge { view-timeline-name: --gallery-gauge; }
		.axyo-site-gallery .ga-needle { animation: gallery-rev linear both; animation-timeline: --gallery-gauge; animation-range: entry 10% exit 60%; }
	}
}

@keyframes gallery-run { to { translate: -50% 0; } }
@keyframes gallery-up { 0% { opacity: 0; translate: 0 30%; } 28%, 72% { opacity: 1; translate: 0 0; } 100% { opacity: 0; translate: 0 -12%; } }
@keyframes gallery-left { 0% { opacity: 0; translate: -35% 0; } 28%, 72% { opacity: 1; translate: 0 0; } 100% { opacity: 0; translate: -35% 0; } }
@keyframes gallery-right { 0% { opacity: 0; translate: 35% 0; } 28%, 72% { opacity: 1; translate: 0 0; } 100% { opacity: 0; translate: 35% 0; } }
@keyframes gallery-stamp { 0% { opacity: 0; scale: 2.2; } 70% { opacity: 1; scale: 0.94; } 100% { opacity: 1; scale: 1; } }
@keyframes gallery-rev { 0% { rotate: -120deg; } 70% { rotate: 85deg; } 78% { rotate: 70deg; } 100% { rotate: 98deg; } }

.axyo-site-gallery .ga-wall { position: relative; }
