  /* ==========================================================================
   Art Gallery — home-only immersive hero
   Gantari, image-forward; JS adds .gallery-hero, slides, and .gallery-hero__inner
   ========================================================================== */

/* Empty hero (before home JS) — cool neutral, not a loud brand bar */
main > .hero:not(.gallery-hero) {
	background: linear-gradient(165deg, #0a1520 0%, #1a2e3d 50%, #243948 100%);
	color: #fff;
	position: relative;
	overflow: hidden;
	min-height: clamp(240px, 38vh, 420px);
}
main > .hero:not(.gallery-hero) h1,
main > .hero:not(.gallery-hero) a {
	color: #fff;
}
main > .hero:not(.gallery-hero) .breadcrumb-item a,
main > .hero:not(.gallery-hero) .breadcrumb-item + .breadcrumb-item::before {
	color: rgba(255, 255, 255, 0.82);
}

/* ----- Rotating home hero: tall canvas, type at foot ----- */
main > .hero.gallery-hero {
	--gh-font: "Gantari", "Helvetica Neue", Arial, sans-serif;
	position: relative;
	overflow: hidden;
	display: block;
	padding: 0;
	min-height: min(88vh, 56rem);
	font-family: var(--gh-font);
}

.gallery-hero__slides {
	position: absolute;
	inset: 0;
	z-index: 0;
}

.gallery-hero__slide {
	position: absolute;
	inset: 0;
	background: #0d1820 center center / cover no-repeat;
	opacity: 0;
	z-index: 0;
	transform: scale(1.05);
	filter: brightness(0.97);
	transition: opacity 2.2s ease-in-out, transform 9s ease-out, filter 2.2s ease;
}
.gallery-hero__slide.is-active {
	opacity: 1;
	z-index: 1;
	transform: scale(1);
	filter: brightness(1);
}

/* Soft lift from the bottom for legible type — no gold, no left stripe */
.gallery-hero__scrim {
	position: absolute;
	inset: 0;
	z-index: 1;
	pointer-events: none;
	background:
		linear-gradient(
			180deg,
			rgba(5, 12, 18, 0) 0%,
			rgba(5, 12, 18, 0.08) 35%,
			rgba(5, 12, 18, 0.5) 75%,
			rgba(5, 10, 16, 0.88) 100%
		);
}

/* Optional “mat” line — whispers a gallery frame, stays out of the way of imagery */
main > .hero.gallery-hero::after {
	content: "";
	position: absolute;
	inset: clamp(0.5rem, 1.2vw, 1rem);
	border: 1px solid rgba(255, 255, 255, 0.1);
	pointer-events: none;
	z-index: 2;
}
@media (max-width: 575.98px) {
	main > .hero.gallery-hero::after {
		inset: 0.35rem;
		opacity: 0.6;
	}
}

/* Content anchored low — most of the view is for the work */
.gallery-hero__inner {
	position: relative;
	z-index: 3;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	min-height: min(88vh, 56rem);
	padding: 0;
	pointer-events: none;
}
.gallery-hero__inner a {
	pointer-events: auto;
}
.gallery-hero__inner .container-fluid {
	pointer-events: auto;
	width: 100%;
	max-width: 72rem;
	margin-left: 0;
	margin-right: auto;
	padding-top: 2.5rem;
	padding-bottom: 0.25rem;
}

main > .hero.gallery-hero h1,
.gallery-hero h1 {
	position: relative;
	padding-left: clamp(1.5rem, 3vw, 3rem);
	padding-right: clamp(1.5rem, 3vw, 3rem);
	font-family: var(--gh-font) !important;
	font-size: clamp(2.15rem, 4.3vw, 3.85rem) !important;
	font-weight: 900 !important;
	letter-spacing: -0.02em;
	line-height: 1.08 !important;
	color: #f4f8f9 !important;
	background: none !important;
	-webkit-text-fill-color: #f4f8f9 !important;
	text-shadow:
		0 1px 0 rgba(0, 0, 0, 0.1),
		0 0.2em 1.35em rgba(0, 0, 0, 0.38);
	max-width: 20ch;
	margin-bottom: 0.4em !important;
}

/* Breadcrumb: quiet, subservient to the work */
main > .hero.gallery-hero .breadcrumb {
	padding-left: clamp(1.75rem, 3.25vw, 4.25rem);
	padding-right: clamp(1.75rem, 3.25vw, 4.25rem);
	margin-bottom: 0;
	font-family: var(--gh-font);
	font-size: 0.78rem;
	font-weight: 400;
	text-transform: uppercase;
}
main > .hero.gallery-hero .breadcrumb a {
	color: rgba(255, 255, 255, 0.88) !important;
}
main > .hero.gallery-hero .breadcrumb a:hover,
main > .hero.gallery-hero .breadcrumb a:focus {
	color: #fff !important;
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 0.2em;
}
main > .hero.gallery-hero .breadcrumb-item + .breadcrumb-item::before,
main > .hero.gallery-hero .breadcrumb-item.active {
	color: rgba(255, 255, 255, 0.5);
}

/* Slide index: editorial, like a folio (image-focused, not a progress bar) */
.gallery-hero__index {
	position: absolute;
	z-index: 3;
	right: clamp(0.75rem, 2vw, 1.5rem);
	bottom: clamp(0.9rem, 2vw, 1.4rem);
	font-family: var(--gh-font);
	font-size: 0.7rem;
	font-weight: 600;
	letter-spacing: 0.28em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.5);
	-webkit-user-select: none;
	user-select: none;
	pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
	.gallery-hero__slide {
		transition: none;
		transform: none;
	}
}
