/*
 * site.css — additions that sit on top of the validated theme.css.
 *
 * Keep Geocarnet-specific layout, the join form, the home fullscreen
 * control and the home header logo morph here, so theme.css can stay
 * close to the WordPress original. Loaded after theme.css.
 */

/* Hexo-specific additions on top of the validated theme.css */

html,
body {
	margin: 0;
}

.skip-link {
	position: absolute;
	left: 12px;
	top: -40px;
	z-index: 1000;
	padding: 8px 12px;
	background: #1a1a1a;
	color: #fff;
	text-decoration: none;
}
.skip-link:focus {
	top: 8px;
}

.gc-nav-lang a {
	font-weight: 500;
	opacity: 0.75;
}

.gc-work-grid {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 28px 24px;
}
.gc-work-card-media {
	display: block;
	background: #e8e4dc;
}
.gc-work-card-media img {
	width: 100%;
	height: auto;
	display: block;
	vertical-align: middle;
}
.gc-work-card .gc-card-body h3 {
	margin: 8px 0 0;
	font-family: "Instrument Serif", Georgia, serif;
	font-weight: 400;
	font-size: 1.25rem;
}
.gc-work-card .gc-card-body a {
	color: inherit;
	text-decoration: none;
}
.gc-work-card .gc-card-body a:hover {
	text-decoration: underline;
}
.gc-work-card-voyage,
.gc-work-card-artist {
	margin: 4px 0 0;
	font-size: 0.9rem;
	opacity: 0.75;
}

.gc-work-map-wrap {
	margin: 2rem auto 3rem;
	max-width: 1100px;
	padding: 0 24px;
}
.gc-theme-map {
	width: 100%;
	background: #e8e4dc;
	border-radius: 2px;
}
.gc-map-popup {
	display: flex;
	flex-direction: column;
	gap: 6px;
	min-width: 140px;
}
.gc-map-popup img {
	width: 100%;
	height: auto;
	display: block;
}
.gc-map-popup-artist {
	font-size: 0.85rem;
	font-style: italic;
	font-family: "Instrument Serif", Georgia, serif;
}
.gc-map-popup-open {
	font-size: 0.8rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	text-decoration: none;
}

.gc-page-content,
.gc-work-content {
	max-width: 42rem;
	margin: 0 auto 3rem;
	padding: 0 24px;
	line-height: 1.6;
}
.gc-page-intro {
	margin: 0.4rem 0 0;
	max-width: 36rem;
}

@media (max-width: 880px) {
	.gc-work-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}
@media (max-width: 600px) {
	.gc-work-grid {
		grid-template-columns: 1fr;
	}
}

/* Unstyled default links (no WordPress global styles here). */
a {
	color: var(--gc-text);
}
a:visited {
	color: var(--gc-text);
}
.gc-footer-brand,
.gc-footer-brand:visited {
	color: var(--gc-text);
}
.gc-artist-card-name,
.gc-carnet-card-name {
	color: var(--gc-text);
}

/* Align inner pages with the header gutter. */
main#content {
	padding-left: 1.75rem;
	padding-right: 1.75rem;
	box-sizing: border-box;
}
.gc-footer-inner {
	padding-left: 1.75rem;
	padding-right: 1.75rem;
	box-sizing: border-box;
}
@media (min-width: 1440px) {
	main#content,
	.gc-footer-inner {
		padding-left: 2rem;
		padding-right: 2rem;
	}
}

/* ==========================================================================
   Long-form pages (À propos)
   ========================================================================== */

.gc-page-content p {
	margin: 0 0 1.15rem;
}
.gc-page-content a {
	text-decoration: underline;
	text-underline-offset: 0.15em;
}

/* ==========================================================================
   Rejoindre / Join form
   Modelled on the stacked contact form at celinebarrier.fr (label above
   the field, a clear primary button, then a live status message) but
   drawn with Geocarnet type and colours — no Bootstrap.
   ========================================================================== */

.gc-join-form {
	max-width: 36rem;
	margin: 0 auto 4rem;
	padding: 0 1.75rem 2rem;
	box-sizing: border-box;
}
.gc-join-field {
	margin: 0 0 1.25rem;
}
.gc-join-field label {
	display: block;
	font-size: 0.92rem;
	font-weight: 500;
	margin: 0 0 0.4rem;
}
.gc-join-field input,
.gc-join-field textarea {
	display: block;
	width: 100%;
	box-sizing: border-box;
	padding: 0.65rem 0.75rem;
	border: 1px solid var(--gc-line);
	border-radius: var(--gc-radius, 2px);
	background: var(--gc-paper);
	color: var(--gc-text);
	font: inherit;
	font-size: 1rem;
}
.gc-join-field textarea {
	min-height: 12rem;
	resize: vertical;
	line-height: 1.5;
}
.gc-join-field input:focus,
.gc-join-field textarea:focus {
	outline: 2px solid var(--gc-text);
	outline-offset: 2px;
}
.gc-join-hint {
	margin: 0.35rem 0 0;
	font-size: 0.82rem;
	color: var(--gc-muted);
}
.gc-join-actions {
	margin: 1.5rem 0 1rem;
}
.gc-join-submit {
	appearance: none;
	-webkit-appearance: none;
	border: 1px solid var(--gc-text);
	background: var(--gc-text);
	color: var(--gc-paper);
	font: inherit;
	font-size: 0.85rem;
	font-weight: 500;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	padding: 0.7rem 1.4rem;
	cursor: pointer;
	border-radius: var(--gc-radius, 2px);
}
.gc-join-submit:hover,
.gc-join-submit:focus-visible {
	background: #000;
}
.gc-join-submit:disabled {
	opacity: 0.6;
	cursor: default;
}

/* Honeypot: visually hidden but still in the DOM so bots often fill it.
   Not display:none — some bots skip those. Off-screen is enough. */
.gc-join-hp {
	position: absolute;
	left: -10000px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.gc-join-alert {
	margin: 0 0 0.75rem;
	padding: 0.75rem 0.9rem;
	font-size: 0.95rem;
	line-height: 1.45;
	border-radius: var(--gc-radius, 2px);
}
.gc-join-alert.is-info {
	background: #e8eef2;
	color: var(--gc-text);
}
.gc-join-alert.is-success {
	background: #e7efe6;
	color: var(--gc-text);
}
.gc-join-alert.is-error {
	background: #f3e6e4;
	color: var(--gc-text);
}

/* ==========================================================================
   Home map: simple fullscreen control
   A Leaflet button in the top-left stack (under zoom). When active, the
   map wrapper fills the screen so the Esri tiles and pins can be read large.
   ========================================================================== */

.gc-home-map-wrap:fullscreen,
.gc-home-map-wrap:-webkit-full-screen {
	width: 100%;
	height: 100%;
	background: #e7e4dc;
}
.gc-home-map-wrap:fullscreen .gc-home-map,
.gc-home-map-wrap:-webkit-full-screen .gc-home-map {
	height: 100% !important;
}
.leaflet-control-gc-fullscreen a {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	font-size: 16px;
	line-height: 1;
	text-decoration: none;
	color: #333;
	background: #fff;
}
.leaflet-control-gc-fullscreen a:hover {
	background: #f4f4f4;
}

/* ==========================================================================
   Home header logo morph (side-by-side layout, 1100px and up)
   When the right-hand artist panel is closed, the header shows the full
   GEOCARNET wordmark, as on the Artistes page. When the panel opens, the
   letters collapse into the G and the red arrow retracts, so the name is
   not repeated (it is already large in the panel). The opposite plays
   when the panel closes. Driven by html.gc-panel-closed, which home.js
   already toggles. Hover is disabled here so the wordmark cannot cover
   the navigation. Timing: ~550ms.
   ========================================================================== */

@media (min-width: 1100px) {
	body.home .gc-header .gc-brand,
	body.front-page .gc-header .gc-brand,
	body.home .gc-header .gc-header-logo,
	body.front-page .gc-header .gc-header-logo {
		display: inline-block !important;
		flex: 0 0 auto;
		--gc-h: 32px;
	}

	body.home .gc-header .gc-fit,
	body.front-page .gc-header .gc-fit {
		width: calc(32px * 1.3);
		overflow: hidden;
		transition: width 0.55s cubic-bezier(0.45, 0, 0.15, 1);
	}

	body.home .gc-header .gc-logo .gc-head,
	body.home .gc-header .gc-logo .gc-shaft,
	body.home .gc-header .gc-logo .gc-l,
	body.home .gc-header .gc-logo .gc-r,
	body.home .gc-header .gc-logo .gc-gh,
	body.front-page .gc-header .gc-logo .gc-head,
	body.front-page .gc-header .gc-logo .gc-shaft,
	body.front-page .gc-header .gc-logo .gc-l,
	body.front-page .gc-header .gc-logo .gc-r,
	body.front-page .gc-header .gc-logo .gc-gh {
		transition-duration: 0.55s;
		transition-timing-function: cubic-bezier(0.45, 0, 0.15, 1);
	}

	/* Neutralise the logo kit's hover unfold so the G never covers the menu. */
	body.home .gc-header .gc-header-logo:hover,
	body.home .gc-header .gc-header-logo:focus-visible,
	body.front-page .gc-header .gc-header-logo:hover,
	body.front-page .gc-header .gc-header-logo:focus-visible {
		width: calc(32px * 1.3);
	}
	body.home .gc-header .gc-header-logo:hover > .gc-logo .gc-head,
	body.home .gc-header .gc-header-logo:focus-visible > .gc-logo .gc-head,
	body.front-page .gc-header .gc-header-logo:hover > .gc-logo .gc-head,
	body.front-page .gc-header .gc-header-logo:focus-visible > .gc-logo .gc-head {
		transform: none;
	}
	body.home .gc-header .gc-header-logo:hover > .gc-logo .gc-shaft,
	body.front-page .gc-header .gc-header-logo:hover > .gc-logo .gc-shaft {
		stroke-dashoffset: var(--f0);
	}
	body.home .gc-header .gc-header-logo:hover > .gc-logo .gc-l,
	body.front-page .gc-header .gc-header-logo:hover > .gc-logo .gc-l {
		stroke-dashoffset: 1;
		opacity: 0;
	}
	body.home .gc-header .gc-header-logo:hover > .gc-logo .gc-r,
	body.front-page .gc-header .gc-header-logo:hover > .gc-logo .gc-r {
		transform: translateX(var(--rs));
	}
	body.home .gc-header .gc-header-logo:hover > .gc-logo .gc-gh,
	body.front-page .gc-header .gc-header-logo:hover > .gc-logo .gc-gh {
		opacity: 1;
	}

	/* Panel closed: expand to the full wordmark (same width as inner pages). */
	html.gc-panel-closed body.home .gc-header .gc-fit,
	html.gc-panel-closed body.front-page .gc-header .gc-fit,
	html.gc-panel-closed body.home .gc-header .gc-header-logo:hover,
	html.gc-panel-closed body.home .gc-header .gc-header-logo:focus-visible,
	html.gc-panel-closed body.front-page .gc-header .gc-header-logo:hover,
	html.gc-panel-closed body.front-page .gc-header .gc-header-logo:focus-visible {
		width: calc(32px * 4.21);
	}
	html.gc-panel-closed body.home .gc-header .gc-logo .gc-head,
	html.gc-panel-closed body.home .gc-header .gc-header-logo:hover > .gc-logo .gc-head,
	html.gc-panel-closed body.front-page .gc-header .gc-logo .gc-head,
	html.gc-panel-closed body.front-page .gc-header .gc-header-logo:hover > .gc-logo .gc-head {
		transform: translateX(var(--shift));
	}
	html.gc-panel-closed body.home .gc-header .gc-logo .gc-shaft,
	html.gc-panel-closed body.home .gc-header .gc-header-logo:hover > .gc-logo .gc-shaft,
	html.gc-panel-closed body.front-page .gc-header .gc-logo .gc-shaft {
		stroke-dashoffset: 0;
	}
	html.gc-panel-closed body.home .gc-header .gc-logo .gc-l,
	html.gc-panel-closed body.home .gc-header .gc-header-logo:hover > .gc-logo .gc-l,
	html.gc-panel-closed body.front-page .gc-header .gc-logo .gc-l {
		stroke-dashoffset: 0;
		opacity: 1;
	}
	html.gc-panel-closed body.home .gc-header .gc-logo .gc-r,
	html.gc-panel-closed body.home .gc-header .gc-header-logo:hover > .gc-logo .gc-r,
	html.gc-panel-closed body.front-page .gc-header .gc-logo .gc-r {
		transform: none;
	}
	html.gc-panel-closed body.home .gc-header .gc-logo .gc-gh,
	html.gc-panel-closed body.home .gc-header .gc-header-logo:hover > .gc-logo .gc-gh,
	html.gc-panel-closed body.front-page .gc-header .gc-logo .gc-gh {
		opacity: 0;
	}
}

@media (min-width: 1100px) and (prefers-reduced-motion: reduce) {
	body.home .gc-header .gc-fit,
	body.home .gc-header .gc-logo .gc-head,
	body.home .gc-header .gc-logo .gc-shaft,
	body.home .gc-header .gc-logo .gc-l,
	body.home .gc-header .gc-logo .gc-r,
	body.home .gc-header .gc-logo .gc-gh,
	body.front-page .gc-header .gc-fit,
	body.front-page .gc-header .gc-logo * {
		transition: none !important;
		animation: none !important;
	}
}


/* ==========================================================================
   P10 — sticky header, locked home stage, full wordmark + hamburger,
   natural-proportion work galleries
   ========================================================================== */

/* The menu bar stays on screen while the page (or the home panel) scrolls. */
.gc-header {
	position: sticky;
	top: 0;
	z-index: 40;
	background: var(--gc-bg);
}

/* Sticky-footer on every page: the footer sits at the bottom of the
   window on a short page (Artistes, Rejoindre, …) with no empty band
   of background underneath it. It is never “always visible” on a tall
   page — it stays at the end of the document. */
html {
	min-height: 100%;
}

body {
	display: flex;
	flex-direction: column;
	min-height: 100dvh;
}

.gc-header {
	flex: 0 0 auto;
}

main#content,
main.gc-home {
	flex: 1 1 auto;
}

.gc-footer {
	flex: 0 0 auto;
	width: 100%;
	max-width: none;
	margin-left: 0;
	margin-right: 0;
}

.gc-footer-bar,
.gc-footer .gc-footer-inner,
.gc-footer-inner {
	max-width: none !important;
	width: 100%;
	margin-left: 0 !important;
	margin-right: 0 !important;
	padding-top: 0.5rem;
	padding-bottom: 0.5rem;
	box-sizing: border-box;
}

/* Desktop home (≥1100px), as in P10: the menu header sits ONLY above the
   map column (sticky, so the menu stays visible) and the right-hand panel
   starts at the very top of the window. The stage is exactly one window
   high: the map stays put and only the panel scrolls. The slim footer sits
   BELOW the stage, just under the fold: it is not visible on arrival, and
   a short extra scroll (scroll chaining, once the panel reaches its end)
   reveals it. */
@media (min-width: 1100px) {
	body.home,
	body.front-page {
		display: flex;
		flex-direction: column;
		min-height: 100dvh;
		height: auto;
		max-height: none;
		overflow: visible;
	}

	body.home .gc-home,
	body.front-page .gc-home {
		flex: 0 0 auto;
		display: block;
		min-height: 0;
	}

	body.home .gc-home-stage,
	body.front-page .gc-home-stage {
		flex: none;
		height: 100vh;
		height: 100dvh;
		min-height: 0;
		max-height: none;
		overflow: hidden;
		/* clip (not hidden) does not create a scroll container, so the
		   sticky menu header keeps sticking to the window while the
		   document scrolls the few pixels that reveal the footer. */
		overflow: clip;
	}

	body.home .gc-home-map-col {
		overscroll-behavior: contain;
	}

	body.home .gc-home-panel,
	body.front-page .gc-home-panel,
	aside.gc-home-panel {
		overscroll-behavior: auto;
	}

	body.home .gc-footer,
	body.front-page .gc-footer {
		flex: 0 0 auto;
		position: relative;
		z-index: 6;
	}

	/* On a wide home screen, “Espace artiste” stays in the right panel. */
	body.home .gc-header .gc-account,
	body.front-page .gc-header .gc-account {
		display: none;
	}

	/* Artist panel: one hero row for every artist.
	   All artist slides share the same two grid rows (subgrid), so the
	   hero row is as tall as the tallest hero (today: the full biography
	   of Céline Barrier, never scrolled or clipped) and the thumbnail
	   strip starts at the same y for every artist, with the name at the
	   same y too. The photo is a square box the size of Celine Barrier's
	   photo, centred in the row as in P10; a portrait is scaled down to
	   fit that box and never sets the row height. A hero that grows
	   (a longer biography) moves the strip down, never clips the text.
	   The row is also the same whether a work is selected or not (the
	   hidden biography keeps its room), so the strip does not jump.
	   Thumbnail size is untouched. */
	.gc-home-panel:not(.is-welcome) .gc-featured-slides {
		display: grid;
		grid-template-columns: minmax(0, 1fr);
		grid-template-rows: 0 auto auto 0;
		align-content: space-between;
		flex: 1 0 auto;
		min-height: 0;
	}

	.gc-home-panel:not(.is-welcome) .gc-featured-slide,
	.gc-home-panel:not(.is-welcome) .gc-featured-slide:not([hidden]) {
		display: grid;
		grid-template-columns: minmax(0, 1fr);
		grid-template-rows: subgrid;
		grid-column: 1;
		grid-row: 2 / 4;
		flex: none;
		min-height: 0;
	}

	/* Inactive artists keep their room in the shared rows but are
	   neither visible, clickable nor read by assistive technology. */
	.gc-home-panel:not(.is-welcome) .gc-featured-slide[hidden] {
		visibility: hidden;
		pointer-events: none;
	}

	.gc-home-panel:not(.is-welcome) .gc-featured-hero {
		grid-row: 1;
		margin-top: 0;
		margin-bottom: 0;
		grid-template-rows: auto minmax(0, 1fr);
	}

	.gc-home-panel:not(.is-welcome) .gc-featured-body {
		grid-row: 2;
		margin-top: 0;
	}

	/* Photo box = Celine Barrier's square (column width, capped by
	   --gc-photo-max), the same box for every artist, centred
	   vertically in the hero row exactly as her photo was in P10.
	   Images keep their ratio and are contained and centred in that
	   box (a portrait gets a narrower width, same maximum height). */
	.gc-home-panel:not(.is-welcome) .gc-featured-photo {
		align-self: center;
		justify-self: center;
		width: 100%;
		max-width: var(--gc-photo-max, 360px);
		max-height: var(--gc-photo-max, 360px);
		aspect-ratio: 1 / 1;
		height: auto;
		min-width: 0;
		min-height: 0;
		position: relative;
		display: flex;
		align-items: center;
		justify-content: center;
		overflow: hidden;
		background: none;
		box-sizing: border-box;
	}

	.gc-home-panel:not(.is-welcome) .gc-featured-photo img {
		position: static;
		transform: none;
		width: auto;
		height: auto;
		max-width: 100%;
		max-height: 100%;
		object-fit: contain;
		object-position: center;
	}

	/* Text column: the biography is always laid out (hidden but not
	   removed while a work is selected) so the hero keeps its height;
	   the work title sits at the bottom of the same cell. */
	.gc-home-panel:not(.is-welcome) .gc-featured-intro {
		display: grid;
		grid-template-columns: minmax(0, 1fr);
		grid-template-rows: auto;
		align-content: stretch;
	}

	.gc-home-panel:not(.is-welcome) .gc-featured-artist-copy,
	.gc-home-panel:not(.is-welcome) .gc-featured-work-copy {
		grid-area: 1 / 1;
		align-self: start;
	}

	.gc-home-panel:not(.is-welcome) .gc-featured-artist-copy[hidden] {
		display: block;
		visibility: hidden;
		pointer-events: none;
	}

	.gc-home-panel:not(.is-welcome) .gc-featured-work-copy {
		align-self: end;
		margin-top: 0;
	}

	/* Vertical rhythm scales with the window height so that the whole
	   artist block (nav, hero, thumbnail strip) fits the window. The
	   biography is the only text that grows or shrinks; the thumbnail
	   strip keeps its size. */
	.gc-home-panel:not(.is-welcome) {
		--gc-vgap: clamp(0.5rem, 2.1dvh, 1.75rem);
		--gc-hero-max: 100000px;
		--gc-hero-gap: 1.5rem;
		--gc-photo-frac: 0.581;
		--gc-bio-fs: clamp(13px, calc(13px + (100dvh - 900px) * 0.0125), 18.4px);
		/* photo box: its p10 width (share of the hero width), capped by
		   --gc-photo-max and by the height available in the window */
		--gc-photo-h: min(clamp(170px, calc(100dvh - 530px), 880px), max(170px, calc((100vw - 1040px) * 0.85)));
		gap: var(--gc-vgap);
	}

	body.home aside.gc-home-panel:not(.is-welcome) {
		padding-top: clamp(0.75rem, 2.5dvh, 2.4rem) !important;
		padding-bottom: clamp(0.75rem, 2.8dvh, 3rem) !important;
	}

	.gc-home-panel:not(.is-welcome) .gc-featured-nav {
		margin-bottom: calc(var(--gc-vgap) * 0.6);
	}

	.gc-home-panel:not(.is-welcome) .gc-featured-body {
		padding-top: clamp(0.75rem, 2.8dvh, 3rem);
	}

	.gc-home-panel:not(.is-welcome) .gc-featured-slides {
		container-type: inline-size;
	}

	/* Photo column = the photo box: p10 width, or less when the window
	   is short, so the text column takes the freed width (fewer lines). */
	.gc-home-panel:not(.is-welcome) .gc-featured-hero:not(.has-no-photo) {
		grid-template-columns:
			minmax(0, min(
				calc((min(100cqw, var(--gc-hero-max)) - var(--gc-hero-gap)) * var(--gc-photo-frac)),
				var(--gc-photo-max, 360px),
				var(--gc-photo-h)
			))
			minmax(0, 1fr);
		column-gap: var(--gc-hero-gap);
	}

	/* Fit the window: the biography and the name scale gently with the
	   window height (never below 13px), the photo box with the available
	   height; the thumbnail strip keeps its size. */
	.gc-home-panel:not(.is-welcome) .gc-featured-bio {
		font-size: var(--gc-bio-fs, 1.15rem);
		line-height: 1.48;
		margin-bottom: 0.5rem;
	}

	.gc-home-panel:not(.is-welcome) .gc-featured-name {
		font-size: clamp(1.65rem, min(2.9vw, 4.4dvh), 2.7rem);
		margin-bottom: 0.35rem;
	}
}

@media (min-width: 1600px) {
	.gc-home-panel:not(.is-welcome) {
		--gc-hero-max: 72rem;
		--gc-hero-gap: 2.25rem;
		--gc-photo-frac: 0.614;
	}
}

@media (min-width: 2000px) {
	.gc-home-panel:not(.is-welcome) {
		--gc-hero-max: 78rem;
	}
}

/* Narrow screens: the header is a page-level sticky bar. On the home
   page, lift it out of the map column (display: contents) so it can
   stick to the viewport while the visitor scrolls the panel below. */
@media (max-width: 1099px) {
	body.home .gc-home-map-col,
	body.front-page .gc-home-map-col {
		display: contents;
	}

	body.home .gc-header,
	body.front-page .gc-header {
		order: -1;
		position: sticky;
		top: 0;
		z-index: 40;
		width: 100%;
		background: var(--gc-bg);
	}

	body.home .gc-home-map-wrap,
	body.front-page .gc-home-map-wrap {
		flex: 0 0 auto;
		width: 100%;
		min-height: 36vh;
		height: 42vh;
	}

	body.home .gc-home-panel-account,
	body.front-page .gc-home-panel-account,
	body.home .gc-home-panel-top,
	body.front-page .gc-home-panel-top {
		display: none !important;
	}
}

/* Full GEOCARNET wordmark on every page, including phones (no folded G). */
@media (max-width: 1099px) {
	body.home .gc-header .gc-header-logo,
	body.home .gc-header .gc-brand.gc-fit,
	body.front-page .gc-header .gc-header-logo,
	body.front-page .gc-header .gc-brand.gc-fit,
	body:not(.home):not(.front-page) .gc-header .gc-header-logo,
	body:not(.home):not(.front-page) .gc-header .gc-brand.gc-fit {
		--gc-h: 32px !important;
	}

	body.home .gc-header .gc-fit,
	body.home .gc-header .gc-brand.gc-fit,
	body.home .gc-header .gc-nohover.gc-fit,
	body.front-page .gc-header .gc-fit,
	body.front-page .gc-header .gc-brand.gc-fit,
	body.front-page .gc-header .gc-nohover.gc-fit,
	body:not(.home):not(.front-page) .gc-header .gc-fit,
	body:not(.home):not(.front-page) .gc-header .gc-brand.gc-fit,
	body:not(.home):not(.front-page) .gc-header .gc-nohover.gc-fit {
		width: calc(32px * 4.21) !important;
		overflow: visible !important;
		transition: none !important;
		animation: none !important;
		display: inline-block !important;
	}

	body.home .gc-header .gc-logo,
	body.home .gc-header .gc-logo *,
	body.front-page .gc-header .gc-logo,
	body.front-page .gc-header .gc-logo *,
	body:not(.home):not(.front-page) .gc-header .gc-logo,
	body:not(.home):not(.front-page) .gc-header .gc-logo * {
		transition: none !important;
		animation: none !important;
	}

	body.home .gc-header .gc-logo .gc-head,
	body.front-page .gc-header .gc-logo .gc-head,
	body:not(.home):not(.front-page) .gc-header .gc-logo .gc-head {
		transform: translateX(var(--shift)) !important;
	}

	body.home .gc-header .gc-logo .gc-shaft,
	body.front-page .gc-header .gc-logo .gc-shaft,
	body:not(.home):not(.front-page) .gc-header .gc-logo .gc-shaft {
		stroke-dashoffset: 0 !important;
	}

	body.home .gc-header .gc-logo .gc-r,
	body.front-page .gc-header .gc-logo .gc-r,
	body:not(.home):not(.front-page) .gc-header .gc-logo .gc-r {
		transform: none !important;
	}

	body.home .gc-header .gc-logo .gc-l,
	body.front-page .gc-header .gc-logo .gc-l,
	body:not(.home):not(.front-page) .gc-header .gc-logo .gc-l {
		stroke-dashoffset: 0 !important;
		opacity: 1 !important;
	}

	body.home .gc-header .gc-logo .gc-gh,
	body.front-page .gc-header .gc-logo .gc-gh,
	body:not(.home):not(.front-page) .gc-header .gc-logo .gc-gh {
		opacity: 0 !important;
	}
}

/* Also unfold the wordmark on inner pages at any width (including phones). */
body:not(.home):not(.front-page) .gc-header .gc-header-logo,
body:not(.home):not(.front-page) .gc-header .gc-brand.gc-fit {
	--gc-h: 32px !important;
}

body:not(.home):not(.front-page) .gc-header .gc-fit,
body:not(.home):not(.front-page) .gc-header .gc-brand.gc-fit,
body:not(.home):not(.front-page) .gc-header .gc-nohover.gc-fit {
	width: calc(32px * 4.21) !important;
	overflow: visible !important;
	transition: none !important;
	animation: none !important;
}

body:not(.home):not(.front-page) .gc-header .gc-logo,
body:not(.home):not(.front-page) .gc-header .gc-logo * {
	transition: none !important;
	animation: none !important;
}

body:not(.home):not(.front-page) .gc-header .gc-logo .gc-head {
	transform: translateX(var(--shift)) !important;
}

body:not(.home):not(.front-page) .gc-header .gc-logo .gc-shaft {
	stroke-dashoffset: 0 !important;
}

body:not(.home):not(.front-page) .gc-header .gc-logo .gc-r {
	transform: none !important;
}

body:not(.home):not(.front-page) .gc-header .gc-logo .gc-l {
	stroke-dashoffset: 0 !important;
	opacity: 1 !important;
}

body:not(.home):not(.front-page) .gc-header .gc-logo .gc-gh {
	opacity: 0 !important;
}

/* Hamburger: three-line button, used below 1100px. Without JS, the nav
   stays visible under the bar. With .gc-js it is hidden until opened. */
.gc-menu-toggle {
	display: none;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	margin-left: auto;
	width: 2.5rem;
	height: 2.5rem;
	padding: 0;
	border: 1px solid var(--gc-line);
	border-radius: var(--gc-radius, 2px);
	background: transparent;
	color: var(--gc-text);
	cursor: pointer;
}

.gc-menu-toggle-bars {
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 5px;
	width: 1.05rem;
	pointer-events: none;
}

.gc-menu-toggle-bars span {
	display: block;
	width: 100%;
	height: 1.5px;
	background: currentColor;
	border-radius: 1px;
}

@media (max-width: 1099px) {
	.gc-menu-toggle {
		display: inline-flex !important;
	}

	.gc-header-inner {
		flex-wrap: wrap;
		min-height: 52px;
		padding-top: 0.55rem;
		padding-bottom: 0.55rem;
	}

	/* Keep the wordmark, hamburger and FR · EN on the first row when the menu opens. */
	.gc-header .gc-header-logo {
		order: 1;
	}

	.gc-menu-toggle {
		order: 2;
		margin-left: auto;
	}

	.gc-lang-switch {
		order: 3;
		margin-left: 0.5rem;
	}

	.gc-nav {
		order: 4;
	}

	.gc-header .gc-account {
		order: 5;
	}

	/* No JS: keep the links readable in a stacked list. */
	.gc-nav,
	.gc-header .gc-account {
		flex-basis: 100%;
		margin-left: 0;
	}

	.gc-nav-list {
		flex-direction: column;
		align-items: flex-start;
		gap: 0.65rem;
		padding: 0.35rem 0 0.5rem;
	}

	html.gc-js .gc-nav,
	html.gc-js .gc-header .gc-account {
		display: none !important;
	}

	html.gc-js .gc-header.is-open .gc-nav,
	html.gc-js .gc-header.is-open .gc-account {
		display: flex !important;
		flex-direction: column;
		align-items: flex-start;
		gap: 0.75rem;
		padding-bottom: 0.75rem;
	}

	html.gc-js .gc-header.is-open .gc-nav-list {
		flex-direction: column;
		align-items: flex-start;
		gap: 0.65rem;
	}

	.gc-header.is-open .gc-menu-toggle-bars span:nth-child(1) {
		transform: translateY(6.5px) rotate(45deg);
	}

	.gc-header.is-open .gc-menu-toggle-bars span:nth-child(2) {
		opacity: 0;
	}

	.gc-header.is-open .gc-menu-toggle-bars span:nth-child(3) {
		transform: translateY(-6.5px) rotate(-45deg);
	}

	.gc-header.is-open .gc-menu-toggle-bars span {
		transform-origin: center;
		transition: transform 0.16s ease, opacity 0.16s ease;
	}
}

@media (min-width: 1100px) {
	.gc-menu-toggle {
		display: none !important;
	}
}

/* Work galleries: masonry wall, natural proportions (see js/gallery.js).
   Before JS runs (or if it is off), a simple CSS grid still shows each
   image at its own ratio — never a 4/3 crop. */
.gc-work-grid {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 28px 24px;
	--gc-wall-cols: 3;
	--gc-wall-gap: 24px;
}

.gc-work-wall.is-laid {
	display: block;
	position: relative;
	grid-template-columns: none;
	gap: 0;
}

.gc-work-wall.is-laid .gc-work-card {
	position: absolute;
	left: 0;
	top: 0;
	margin: 0;
	box-sizing: border-box;
}

.gc-work-card-media img {
	width: 100%;
	height: auto;
	display: block;
	object-fit: contain;
	background: #e8e4dc;
}

@media (max-width: 880px) {
	.gc-work-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		--gc-wall-cols: 2;
	}
}

@media (max-width: 600px) {
	.gc-work-grid {
		grid-template-columns: 1fr;
		--gc-wall-cols: 1;
	}
}

/* ==========================================================================
   Standalone artist page: info on the left, map in the empty space
   on the right. The map height follows the info block (with a min and
   a max). On a narrow screen the map stacks under the text, at a modest
   height. The artist name uses the same serif face as on the home panel.
   Carnet titles on a voyage page use the same display face, for consistency
   of content-page titles; section titles (Artistes, Carnets, …) stay as they are.
   ========================================================================== */

.gc-artist-header h1,
.gc-archive-header h1,
.gc-work-header h1 {
	font-family: "Instrument Serif", "Times New Roman", Times, serif;
	font-weight: 400;
	font-size: clamp(1.9rem, 2.9vw, 2.7rem);
	line-height: 1.12;
	margin: 0 0 0.85rem;
	letter-spacing: 0;
	color: var(--gc-text);
}

.gc-artist-header {
	padding: 2.5rem 0 2.25rem;
}

.gc-artist-header.has-map {
	display: grid;
	grid-template-columns: minmax(16rem, 38rem) minmax(16rem, 1fr);
	gap: 1.75rem 2.5rem;
	align-items: stretch;
}

.gc-artist-info {
	min-width: 0;
}

.gc-artist-header .gc-archive-bio {
	color: var(--gc-text);
	font-size: 1.05rem;
	line-height: 1.58;
	max-width: none;
}

.gc-artist-header .gc-archive-bio p {
	margin: 0 0 0.7rem;
}

.gc-artist-header .gc-archive-web {
	margin: 0.15rem 0 0;
	font-size: 0.85rem;
}

.gc-artist-header .gc-archive-web a {
	color: var(--gc-muted);
}

.gc-artist-map {
	position: relative;
	min-height: 240px;
	max-height: min(72vh, 640px);
	min-width: 0;
}

.gc-artist-map .gc-theme-map {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100% !important;
	min-height: 0 !important;
	max-height: none !important;
	margin: 0;
	border: 1px solid var(--gc-line);
	box-sizing: border-box;
}

@media (max-width: 880px) {
	.gc-artist-header.has-map {
		display: flex;
		flex-direction: column;
		gap: 1.25rem;
	}

	.gc-artist-map {
		position: static;
		flex: 0 0 auto;
		width: 100%;
		height: 220px;
		min-height: 200px;
		max-height: 260px;
	}

	.gc-artist-map .gc-theme-map {
		position: static;
		height: 220px !important;
		min-height: 200px !important;
		max-height: 260px !important;
	}
}
