/* Nos clients: scroll story (page-nos-clients.php, template-parts/clients/, assets/js/clients.js).
   Same language as Nos engagements and Avis clients vérifiés: photo hero, numbered chapters, words that light up, a
   photo that opens. Layouts are chosen here before the first paint, from html.gp-js (set in the head), the width and
   prefers-reduced-motion, so nothing jumps when clients.js starts; the script only moves what is already in place.
   Without JavaScript or with reduced motion every photo shows in plain grids and every word is lit. Colours come from
   the scheme tokens (light scheme too); the hero, the wall and the lightbox stay dark. */

.gp-cl [hidden] { display: none !important; }
.gp-cl { --cl-radius: clamp(14px, 1.4vw, 22px); }

/* ---------- Shared: chapter heads, photos ---------- */
.gp-cl-num { margin-bottom: .6rem; font-variant-numeric: tabular-nums; letter-spacing: .14em; }
.gp-cl-h2 { margin: 0; font-size: clamp(1.9rem, 1.15rem + 2.7vw, 3.6rem); }
.gp-cl-meta { margin: .7rem 0 0; color: var(--muted); font-size: .85rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.gp-cl-text { max-width: 52ch; margin: 1rem 0 0; color: var(--ink-2); font-size: 1.05rem; line-height: 1.6; }
.gp-cl-text a, .gp-cl-intro__more a { color: inherit; font-weight: 700; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .2em; }

.gp-cl-ph { position: relative; display: block; overflow: hidden; border-radius: var(--cl-radius); background: var(--bg-2); color: #fff; isolation: isolate; }
.gp-cl-ph__img { display: block; width: 100%; height: auto; transition: scale 1.1s var(--ease-out), filter .5s ease; }
.gp-cl-ph::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); pointer-events: none; }
.gp-cl-ph__zoom { position: absolute; z-index: 2; right: 10px; bottom: 10px; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: rgba(10, 11, 13, .62); color: #fff; opacity: 0; scale: .7; transition: opacity .3s ease, scale .4s var(--ease-out); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.gp-cl-ph__zoom .gp-i { width: 18px; height: 18px; }
.gp-cl-ph:hover .gp-cl-ph__img, .gp-cl-ph:focus-visible .gp-cl-ph__img { scale: 1.045; }
.gp-cl-ph:hover .gp-cl-ph__zoom, .gp-cl-ph:focus-visible .gp-cl-ph__zoom { opacity: 1; scale: 1; }
.gp-cl-ph:focus-visible { outline: 3px solid var(--accent-ink); outline-offset: 3px; }
@media (hover: none) {
	.gp-cl-ph__zoom { opacity: 1; scale: .85; } /* touch: the « + » shows that the photo opens */
}

/* ---------- Hero ---------- */
.gp-cl-hero { min-height: 100vh; min-height: 100svh; background: var(--bg); isolation: isolate; }
.gp-cl-hero__media { position: absolute; inset: 0; overflow: hidden; }
.gp-cl-hero__img { object-position: 34% 46%; transform-origin: 38% 55%; }
.gp-cl-hero__shade { background:
	linear-gradient(180deg, rgba(10, 11, 13, .6), rgba(10, 11, 13, 0) 26%),
	linear-gradient(270deg, rgba(10, 11, 13, .82), rgba(10, 11, 13, .42) 40%, rgba(10, 11, 13, 0) 62%),
	linear-gradient(0deg, rgba(10, 11, 13, .9) 3%, rgba(10, 11, 13, 0) 42%); }
.gp-cl-hero__inner { z-index: 2; }
.gp-cl-hero__title { max-width: 7.2em; font-size: clamp(2.6rem, 1.4rem + 3.6vw, 4.6rem); }
.gp-cl-hero__lead { max-width: 42ch; }
.gp-cl-index ol { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 0; padding: 0; list-style: none; }
.gp-cl-index a { display: inline-flex; align-items: center; gap: .55em; min-height: 44px; padding: .4em .95em; border: 1px solid rgba(255, 255, 255, .24); border-radius: 999px; background: rgba(10, 11, 13, .35); color: #f4f4f0; font-size: .85rem; font-weight: 600; text-decoration: none; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); transition: background-color .25s ease, border-color .25s ease; }
.gp-cl-index a span { color: var(--accent-on-dark, #d4ff3a); font-variant-numeric: tabular-nums; }
.gp-cl-index a:hover { background: rgba(255, 255, 255, .16); border-color: rgba(255, 255, 255, .5); }
.gp-cl-cue { display: none; }
@media (min-width: 900px) {
	/* The hiker looks to the right: his photo fills the left of the screen and melts into the page, the text sits on
	   the right, where he looks; his bag stays clear of it. */
	.gp-cl-hero__media { right: 34%; }
	.gp-cl-hero__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10, 11, 13, 0) 58%, var(--bg)); }
	.gp-cl-hero__shade { background: linear-gradient(180deg, rgba(10, 11, 13, .6), rgba(10, 11, 13, 0) 26%), linear-gradient(0deg, rgba(10, 11, 13, .7) 2%, rgba(10, 11, 13, 0) 30%); }
	.gp-cl-hero__inner { display: flex; flex-direction: column; align-items: flex-start; padding-left: max(var(--gutter), 61%); }
	.gp-cl-hero__img { object-position: 36% 40%; }
}
@media (min-width: 900px) and (min-height: 640px) {
	.gp-cl-cue { position: absolute; z-index: 3; bottom: 16px; left: 50%; display: grid; place-items: center; width: 44px; height: 58px; margin-left: -22px; }
	.gp-cl-cue span { position: relative; width: 26px; height: 42px; border: 2px solid rgba(255, 255, 255, .55); border-radius: 14px; }
	.gp-cl-cue span::after { content: ""; position: absolute; top: 8px; left: 50%; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: #fff; }
}
/* Phones and tablets: the photo is a band under the header (the hiker and his bag), the text follows on the page. */
@media (max-width: 899.98px) {
	.gp-cl-hero { display: block; min-height: 0; padding: 0 0 max(var(--space-sheet, 30px), clamp(18px, 5vw, 36px)); } /* the chips keep a band's padding above the light page */
	.gp-cl-hero__media { position: relative; inset: auto; height: clamp(360px, 62vw + 150px, 620px); }
	.gp-cl-hero__img { object-position: 40% 40%; }
	.gp-cl-hero__shade { inset: 0 0 auto; height: clamp(360px, 62vw + 150px, 620px); background: linear-gradient(180deg, rgba(10, 11, 13, .62), rgba(10, 11, 13, 0) 34%, rgba(10, 11, 13, 0) 64%, var(--bg)); }
	.gp-cl-hero__inner { margin-top: -64px; }
}
@media (prefers-reduced-motion: no-preference) {
	/* Both settle within five seconds and stop: the photo eases in, the scroll cue nudges twice. */
	.gp-cl-motion .gp-cl-hero__img { animation: gp-cl-push 4.8s var(--ease-out) both; }
	.gp-cl-motion .gp-cl-cue span::after { animation: gp-cl-cue 1.8s ease-in-out .8s 2 both; }
}
.gp-cl-motion .gp-cl-hero__media { translate: 0 calc(var(--cl-hp, 0) * 14%); }
@media (min-width: 900px) {
	.gp-cl-motion .gp-cl-hero__inner { opacity: calc(1 - var(--cl-hp, 0) * 1.25); translate: 0 calc(var(--cl-hp, 0) * -70px); }
}
@keyframes gp-cl-push { from { scale: 1.08; } to { scale: 1; } }
@keyframes gp-cl-cue { 0%, 100% { opacity: 1; translate: 0 0; } 45% { opacity: 0; translate: 0 14px; } 46% { opacity: 0; translate: 0 0; } } /* from the resting dot to the resting dot: nothing pops before, between or after the nudges */

/* ---------- Introduction: the words light up as you read ---------- */
.gp-cl-intro { padding-block: clamp(40px, 6vw, 92px) clamp(20px, 3vw, 40px); }
.gp-cl-statement { max-width: 32ch; margin: 0; font-family: var(--font-display); font-size: clamp(1.45rem, .95rem + 2vw, 2.6rem); font-weight: 800; line-height: 1.12; letter-spacing: -.012em; text-wrap: pretty; }
.gp-cl-statement--sm { max-width: 30ch; margin-top: 1.1rem; font-size: clamp(1.3rem, .95rem + 1.4vw, 2.1rem); }
.gp-cl-statement a { color: inherit; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .14em; }
.gp-cl-statement .gp-cl-hl { color: var(--accent-ink); text-decoration-color: color-mix(in srgb, var(--accent-ink) 55%, transparent); transition: text-decoration-color .25s ease; }
.gp-cl-statement .gp-cl-hl:hover { text-decoration-color: currentColor; }
.gp-cl-w { transition: opacity .35s ease; }
.gp-cl-motion .gp-cl-w { opacity: .2; }
.gp-cl-motion .gp-cl-w.is-lit { opacity: 1; }
.gp-cl-intro__more { max-width: 58ch; margin: 1.2rem 0 0; color: var(--ink-2); font-size: 1.05rem; line-height: 1.6; }

/* ---------- 01 Reel: masonry by default ---------- */
.gp-cl-reel { position: relative; padding-block: clamp(36px, 5vw, 72px) var(--space-section, clamp(70px, 9vw, 130px)); } /* the dark wall starts below: the section room before a new background */
.gp-cl-reel__pin { position: relative; }
.gp-cl-reel__ghost, .gp-cl-reel__hint, .gp-cl-reel__hud { display: none; }
.gp-cl-reel__head { margin-bottom: clamp(20px, 3vw, 36px); }
.gp-cl-reel__list { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); list-style: none; columns: 2; column-gap: 10px; }
.gp-cl-reel__item { margin: 0 0 10px; break-inside: avoid; }
@media (min-width: 600px) {
	.gp-cl-reel__list { columns: 3; column-gap: 12px; }
	.gp-cl-reel__item { margin-bottom: 12px; }
}
@media (min-width: 1100px) {
	.gp-cl-reel__list { columns: 4; column-gap: 14px; }
	.gp-cl-reel__item { margin-bottom: 14px; }
}

/* Reel as a travelling shot: from 900 px, JavaScript on and motion allowed. The chapter is as tall as the strip is
   long (CSS works it out from --cl-sum), its screen stays pinned and clients.js moves the strip. */
@media (min-width: 900px) and (min-height: 560px) and (prefers-reduced-motion: no-preference) {
	html.gp-js .gp-cl-reel {
		--cl-h: min(64svh, 640px);
		--cl-gap: clamp(14px, 1.3vw, 22px);
		--cl-head: min(34vw, 470px);
		/* one screen, plus the strip's travel (its length less the screen) at 0.7 px of scroll per px of travel */
		height: calc(100svh + (var(--gutter) * 3 + var(--cl-head) + var(--cl-h) * var(--cl-sum) + var(--cl-gap) * var(--cl-n) - 100vw) * .7);
		padding: 0;
		--cl-hud-b: clamp(18px, 3.4vh, 34px);
		/* the counter ends the pinned screen: with the margin, it keeps the section room above the dark wall (outside
		   the box, so the pinning and clients.js's progress, read from the box, do not change) */
		margin-bottom: calc(var(--space-section, clamp(70px, 9vw, 130px)) - var(--cl-hud-b));
	}
	html.gp-js .gp-cl-reel__pin { position: sticky; top: 0; display: flex; align-items: center; height: 100vh; height: 100svh; overflow: clip; }
	html.gp-js .gp-cl-reel__track { position: relative; z-index: 1; display: flex; align-items: center; gap: var(--cl-gap); width: max-content; padding: calc(var(--header-total, 76px) * .5) calc(var(--gutter) * 2) 0 var(--gutter); will-change: transform; }
	html.gp-js .gp-cl-reel__head { flex: none; width: var(--cl-head); max-width: none; margin: 0; padding: 0 clamp(10px, 2vw, 34px) 0 0; }
	html.gp-js .gp-cl-reel__hint { display: inline-flex; align-items: center; gap: .6em; margin: 1.6rem 0 0; color: var(--ink-2); font-size: .85rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
	html.gp-js .gp-cl-reel__hint .gp-i { width: 18px; height: 18px; color: var(--accent-ink); }
	html.gp-js .gp-cl-reel__list { display: flex; gap: var(--cl-gap); height: var(--cl-h); max-width: none; margin: 0; padding: 0; columns: auto; }
	html.gp-js .gp-cl-reel__item { flex: none; width: calc(var(--cl-h) * var(--k, 1) * var(--r)); height: calc(var(--cl-h) * var(--k, 1)); margin: 0; }
	html.gp-js .gp-cl-reel__item--top { align-self: flex-start; }
	html.gp-js .gp-cl-reel__item--bottom { align-self: flex-end; }
	html.gp-js .gp-cl-reel__item .gp-cl-ph { height: 100%; box-shadow: 0 30px 60px -34px rgba(0, 0, 0, .7); }
	html.gp-js .gp-cl-reel__item .gp-cl-ph__img { width: 116%; max-width: none; height: 100%; margin-left: -8%; object-fit: cover; }
	html.gp-js .gp-cl-reel__ghost { position: absolute; z-index: 0; top: calc(var(--header-total, 76px) + 1.5vh); left: 0; display: block; margin: 0; color: transparent; font-family: var(--font-display); font-size: clamp(4.5rem, 9vw, 9rem); font-weight: 800; line-height: .9; letter-spacing: -.03em; text-transform: uppercase; white-space: nowrap; -webkit-text-stroke: 1px color-mix(in srgb, var(--ink) 16%, transparent); pointer-events: none; will-change: transform; }
	html.gp-js .gp-cl-reel__hud { position: absolute; z-index: 2; right: var(--gutter); bottom: var(--cl-hud-b); left: var(--gutter); display: flex; align-items: center; gap: 18px; }
	html.gp-js .gp-cl-reel__count { flex: none; font-family: var(--font-display); font-size: 1rem; font-weight: 800; letter-spacing: .08em; font-variant-numeric: tabular-nums; }
	html.gp-js .gp-cl-reel__count span { color: var(--accent-ink); }
	html.gp-js .gp-cl-reel__bar { flex: 1; height: 3px; border-radius: 3px; background: color-mix(in srgb, var(--ink) 14%, transparent); overflow: hidden; }
	html.gp-js .gp-cl-reel__bar i { display: block; height: 100%; background: var(--accent-line); transform: scaleX(var(--cl-p, 0)); transform-origin: left; } /* a stroke: lime or cream on dark, olive on light (the cream fill is 1.06:1 on a light page) */
}

/* ---------- 02 Wall: two rows that drift (still rows that wrap by default) ---------- */
.gp-cl-wall { position: relative; padding-block: clamp(40px, 5vw, 80px); background: var(--bg); color: var(--ink); overflow: clip; }
.gp-cl-wall::before { content: ""; position: absolute; inset: 0; background: radial-gradient(70% 60% at 85% 0%, color-mix(in srgb, var(--accent) 10%, transparent), transparent 70%); pointer-events: none; }
.gp-cl-wall__head { position: relative; display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; margin-bottom: clamp(22px, 3vw, 40px); }
.gp-cl-wall__pause { flex: none; display: grid; place-items: center; width: 48px; height: 48px; padding: 0; border: 1px solid var(--field-line); border-radius: 50%; background: transparent; color: var(--ink); cursor: pointer; transition: background-color .2s ease; }
.gp-cl-wall__pause:hover { background: var(--hover); }
.gp-cl-wall__icon { display: grid; place-items: center; }
.gp-cl-wall__icon .gp-i { width: 18px; height: 18px; }
.gp-cl-wall__pause[aria-pressed="true"] .gp-cl-wall__icon--pause, .gp-cl-wall__pause[aria-pressed="false"] .gp-cl-wall__icon--play { display: none; }
/* Still wall: on phones each row is a column (two columns of whole photos). From 700 px the two rows pour into one
   masonry of whole photos, as the still reel above: no row ends on a half-empty line. */
.gp-cl-wall__rows { position: relative; display: grid; grid-template-columns: 1fr 1fr; align-items: start; gap: 10px; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.gp-cl-wall__row { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
@media (min-width: 700px) {
	.gp-cl-wall__rows { display: block; columns: 3; column-gap: 12px; }
	.gp-cl-wall__row { display: contents; } /* role="list" is on the element, so the lists keep their semantics */
	.gp-cl-wall__item { margin: 0 0 12px; break-inside: avoid; }
}
@media (min-width: 1100px) {
	.gp-cl-wall__rows { columns: 4; column-gap: 14px; }
	.gp-cl-wall__item { margin-bottom: 14px; }
}
/* Moving wall: JavaScript on and motion allowed. Rows in one line, as wide as their photos; clients.js moves them
   (and marks a wall whose rows are too short for the screen with .is-still: back to the rows that wrap). */
@media (prefers-reduced-motion: no-preference) {
	html.gp-js .gp-cl-wall:not(.is-still) {
		--wall-h: clamp(160px, 21vw, 420px);
		--wall-gap: clamp(10px, 1.1vw, 16px);
	}
	html.gp-js .gp-cl-wall:not(.is-still) .gp-cl-wall__rows { display: grid; grid-template-columns: 1fr; gap: var(--wall-gap); max-width: none; padding: 0; overflow: clip; columns: auto; }
	html.gp-js .gp-cl-wall:not(.is-still) .gp-cl-wall__row { display: flex; flex-wrap: nowrap; gap: 0; width: max-content; will-change: transform; }
	html.gp-js .gp-cl-wall:not(.is-still) .gp-cl-wall__row::after { content: none; }
	html.gp-js .gp-cl-wall:not(.is-still) .gp-cl-wall__item { flex: none; width: calc(var(--wall-h) * var(--r)); height: var(--wall-h); margin: 0 var(--wall-gap) 0 0; }
	html.gp-js .gp-cl-wall:not(.is-still) .gp-cl-wall__item .gp-cl-ph { height: 100%; }
	html.gp-js .gp-cl-wall:not(.is-still) .gp-cl-wall__item .gp-cl-ph__img { height: 100%; object-fit: cover; }
}

/* ---------- 03 Duo: the wide photo opens, the other rises ---------- */
.gp-cl-duo { padding-block: clamp(36px, 4.5vw, 72px) clamp(20px, 3vw, 40px); --cl-o: 1; }
.gp-cl-motion .gp-cl-duo { --cl-o: 0; }
.gp-cl-duo__grid { display: grid; gap: clamp(14px, 2vw, 26px); }
.gp-cl-duo__main .gp-cl-ph { clip-path: inset(calc(9% * (1 - var(--cl-o))) calc(7% * (1 - var(--cl-o))) round calc(var(--cl-radius) + 30px * (1 - var(--cl-o)))); }
.gp-cl-duo__main .gp-cl-ph__img { scale: calc(1.12 - .12 * var(--cl-o)); }
.gp-cl-duo__main .gp-cl-ph:hover .gp-cl-ph__img, .gp-cl-duo__main .gp-cl-ph:focus-visible .gp-cl-ph__img { scale: 1.045; }
.gp-cl-duo__side { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: clamp(14px, 2vw, 26px); margin: 0; padding: 0; list-style: none; }
.gp-cl-duo__item { translate: 0 calc((1 - var(--cl-o)) * 90px); }
/* From 700 px the wide photo and the other sit side by side (a tablet no longer stacks a portrait photo the width of
   the screen under the wide one). */
@media (min-width: 700px) {
	.gp-cl-duo__grid { grid-template-columns: minmax(0, 2.4fr) minmax(0, 1fr); grid-template-areas: "head head" "main side"; align-items: end; }
	.gp-cl-duo__grid--one { grid-template-columns: 1fr; grid-template-areas: "head" "main"; }
	.gp-cl-duo__head { grid-area: head; }
	.gp-cl-duo__main { grid-area: main; }
	.gp-cl-duo__side { grid-area: side; grid-template-columns: 1fr; align-self: stretch; align-content: end; }
	.gp-cl-duo__side .gp-cl-duo__item:first-child { margin-left: clamp(-90px, -5vw, -40px); position: relative; z-index: 2; }
	.gp-cl-duo__side .gp-cl-ph { box-shadow: 0 30px 60px -28px rgba(0, 0, 0, .75); }
}

/* ---------- 04 Share ---------- */
.gp-cl-share { padding-block: clamp(44px, 6vw, 96px) calc(var(--space-section, clamp(70px, 9vw, 130px)) + 4px); } /* the section room before the footer or the Pro band, plus the raised edge under the buttons (main.css) */
.gp-cl-share__grid { display: grid; gap: clamp(28px, 5vw, 80px); align-items: center; }
.gp-cl-share__actions { margin-top: clamp(22px, 3vw, 34px); }
.gp-cl-share__actions .gp-btn .gp-i { width: 20px; height: 20px; }
.gp-cl-shutter { justify-self: center; width: min(46vw, 210px); color: var(--ink); }
.gp-cl-shutter svg { display: block; width: 100%; height: auto; overflow: visible; }
.gp-cl-shutter__ring { fill: none; stroke: var(--line); stroke-width: 2; }
.gp-cl-shutter__ring--in { stroke: color-mix(in srgb, var(--accent-ink) 55%, transparent); stroke-dasharray: 2 8; }
.gp-cl-shutter__blade { fill: color-mix(in srgb, var(--ink) 12%, var(--bg-2)); stroke: var(--bg); stroke-width: 2.5; stroke-linejoin: round; }
.gp-cl-shutter__blade:nth-child(odd) { fill: color-mix(in srgb, var(--ink) 18%, var(--bg-2)); }
.gp-cl-shutter__rim { fill: none; stroke: color-mix(in srgb, var(--ink) 30%, transparent); stroke-width: 3; }
.gp-cl-shutter__dot { fill: var(--accent); stroke: var(--accent-rim); stroke-width: 1.5; } /* G1: the Pro cream dot takes the olive rim on a light page */
@media (min-width: 700px) {
	.gp-cl-share__grid { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); }
}
@media (min-width: 900px) {
	.gp-cl-shutter { width: min(26vw, 340px); }
}
@media (prefers-reduced-motion: no-preference) {
	/* One photo each time the shutter comes into view (or the mouse comes over it): the iris opens, holds and snaps shut
	   (SMIL, started by clients.js), the dot flashes as it closes and the dotted ring turns a sixth of a turn. Nothing
	   runs while it just sits on screen. */
	.gp-cl-motion .gp-cl-shutter.is-snap .gp-cl-shutter__ring--in { transform-origin: 120px 120px; animation: gp-cl-turn 4.4s var(--ease-out) both; }
	.gp-cl-motion .gp-cl-shutter.is-snap .gp-cl-shutter__dot { transform-origin: 120px 120px; animation: gp-cl-flash 4.4s ease-out both; }
}
@keyframes gp-cl-turn { from { rotate: 0deg; } to { rotate: 60deg; } }
@keyframes gp-cl-flash { 0%, 60%, 80%, 100% { scale: 1; opacity: 1; } 68% { scale: 4.5; opacity: .5; } }

/* ---------- Lightbox ---------- */
.gp-cl-box { position: fixed; inset: 0; width: 100%; max-width: none; height: 100%; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(8, 9, 11, .95); color: var(--ink); overflow: hidden; overscroll-behavior: contain; }
.gp-cl-box::backdrop { background: rgba(8, 9, 11, .6); }
.gp-cl-box__stage { position: absolute; inset: 0; display: grid; place-items: center; padding: 72px clamp(16px, 7vw, 96px) 24px; touch-action: pan-y pinch-zoom; }
.gp-cl-box__fig { display: grid; justify-items: center; gap: 14px; margin: 0; }
.gp-cl-box__img { display: block; max-width: none; border-radius: 14px; background: #121418; object-fit: cover; box-shadow: 0 40px 90px -40px rgba(0, 0, 0, .9); }
.gp-cl-box__cap { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: center; gap: 4px 14px; max-width: 72ch; color: var(--ink-2); font-size: .92rem; line-height: 1.45; text-align: center; }
.gp-cl-box__chap { color: var(--accent-ink); font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.gp-cl-box__n { font-variant-numeric: tabular-nums; font-weight: 700; color: var(--ink); }
.gp-cl-box__alt { flex-basis: 100%; }
.gp-cl-box__btn { position: absolute; z-index: 2; display: grid; place-items: center; width: 52px; height: 52px; padding: 0; border: 1px solid rgba(255, 255, 255, .26); border-radius: 50%; background: rgba(255, 255, 255, .08); color: #f4f4f0; cursor: pointer; transition: background-color .2s ease, border-color .2s ease; }
.gp-cl-box__btn:hover { background: rgba(255, 255, 255, .18); border-color: rgba(255, 255, 255, .5); }
.gp-cl-box__btn .gp-i { width: 22px; height: 22px; }
.gp-cl-box__btn--close { top: 14px; right: 14px; }
.gp-cl-box__btn--prev, .gp-cl-box__btn--next { top: 50%; margin-top: -26px; }
.gp-cl-box__btn--prev { left: clamp(10px, 2vw, 28px); }
.gp-cl-box__btn--prev .gp-i { rotate: 180deg; }
.gp-cl-box__btn--next { right: clamp(10px, 2vw, 28px); }
@media (max-width: 699.98px) {
	.gp-cl-box__stage { padding: 68px 12px 92px; }
	.gp-cl-box__btn--prev, .gp-cl-box__btn--next { top: auto; bottom: 18px; margin: 0; }
	.gp-cl-box__btn--prev { left: calc(50% - 64px); }
	.gp-cl-box__btn--next { right: calc(50% - 64px); }
}
@media (prefers-reduced-motion: no-preference) {
	.gp-cl-box[open] { animation: gp-cl-fade .3s ease both; }
	.gp-cl-box.is-closing { animation: gp-cl-fade .22s ease reverse both; }
	.gp-cl-box__img.is-swap { animation: gp-cl-swap .45s var(--ease-out) both; }
}
@keyframes gp-cl-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes gp-cl-swap { from { opacity: 0; translate: calc(var(--cl-dir, 1) * 40px) 0; } to { opacity: 1; translate: none; } }
