/* Natige — factory gallery.
   First still is the title card. The rest is a numbered contact sheet. */

.gallery-page {
	--gallery-blue: #0064b0;
	--gallery-lime: #8dc331;
	--gallery-ink: #1c2430;
	--gallery-ease: cubic-bezier(0.35, 0, 0.14, 1);
	--gallery-gap: 8px;
	background:
		radial-gradient(920px 420px at 8% -80px, rgba(0, 100, 176, 0.10), transparent 68%),
		radial-gradient(640px 280px at 100% 12%, rgba(141, 195, 49, 0.08), transparent 62%),
		#f6f3ec;
	padding-bottom: 64px;
}

@media (max-width: 1199.98px) {
	.gallery-page {
		margin-top: -90px;
	}
	.gallery-hero__veil {
		padding-top: 32px;
	}
}

.gallery-hero {
	position: relative;
	min-height: 72vh;
	min-height: 72dvh;
	color: #f4f7f8;
	overflow: hidden;
	background: #1c2430;
}

.gallery-hero__media {
	position: absolute;
	inset: 0;
	z-index: 0;
	display: block;
	overflow: hidden;
}

.gallery-hero__media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center 30%;
	transform: scale(1);
	transition: transform 0.8s var(--gallery-ease);
}

.gallery-hero__veil {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	min-height: 72vh;
	min-height: 72dvh;
	padding: 24px 32px 40px;
	pointer-events: none;
	background:
		linear-gradient(to top, rgba(12, 32, 56, 0.88) 0%, rgba(12, 32, 56, 0.48) 38%, rgba(12, 32, 56, 0.18) 68%, rgba(12, 32, 56, 0.08) 100%);
}

.gallery-hero__top {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 16px;
}

.gallery-hero__crumb {
	pointer-events: auto;
	text-shadow: 0 1px 10px rgba(0, 24, 48, 0.55);
}

.gallery-hero__crumb ol {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
	font-size: 13px;
	font-weight: 500;
}

.gallery-hero__crumb li:not(:last-child)::after {
	content: '/';
	margin-left: 8px;
	opacity: 0.55;
}

.gallery-hero__crumb a {
	color: rgba(255, 255, 255, 0.78);
	text-decoration: none;
}

.gallery-hero__crumb a:hover,
.gallery-hero__crumb a:focus-visible {
	color: #fff;
}

.gallery-hero__count {
	margin: 0;
	padding: 6px 12px;
	border: 1px solid rgba(255, 255, 255, 0.28);
	border-radius: 999px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #fff;
	background: rgba(0, 40, 80, 0.35);
}

.gallery-hero__copy {
	max-width: 36em;
}

.gallery-hero__eyebrow {
	margin: 0 0 8px;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--gallery-lime);
}

.gallery-hero__title {
	margin: 0 0 12px;
	font-size: 56px;
	font-weight: 700;
	line-height: 1.05;
	color: #fff;
}

.gallery-hero__title--ink {
	color: var(--gallery-blue);
	font-size: 40px;
}

.gallery-hero__lead {
	margin: 0 0 20px;
	font-size: 18px;
	line-height: 1.5;
	color: rgba(255, 255, 255, 0.86);
}

.gallery-hero__open {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 10px 16px;
	border: 1.5px solid rgba(255, 255, 255, 0.45);
	border-radius: 8px;
	font-size: 14px;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: #fff;
	background: rgba(0, 100, 176, 0.35);
	transition: background 160ms ease, border-color 160ms ease;
}

.gallery-hero__open i {
	font-size: 16px;
	line-height: 1;
}

.gallery-hero:hover .gallery-hero__media img,
.gallery-hero__media:focus-visible img {
	transform: scale(1.04);
}

.gallery-hero:hover .gallery-hero__open,
.gallery-hero__media:focus-visible ~ .gallery-hero__veil .gallery-hero__open {
	background: var(--gallery-blue);
	border-color: var(--gallery-blue);
}

.gallery-hero__media:focus-visible {
	outline: 2px solid var(--gallery-lime);
	outline-offset: -4px;
}

.gallery-page__head {
	padding: 24px 0 8px;
}

.gallery-page__empty {
	margin: 12px 0 0;
	font-size: 17px;
	color: #5a6168;
}

.gallery-sheet {
	padding-top: 32px;
}

.gallery-sheet__label {
	margin: 0 0 12px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--gallery-blue);
}

.gallery-wall {
	display: grid;
	grid-template-columns: repeat(12, minmax(0, 1fr));
	gap: var(--gallery-gap);
	margin: 0;
	padding: 0;
	list-style: none;
}

.gallery-wall__item--0 {
	grid-column: 1 / 9;
	grid-row: span 2;
}

.gallery-wall__item--1,
.gallery-wall__item--2 {
	grid-column: 9 / 13;
}

.gallery-wall__item--3 {
	grid-column: 1 / 7;
}

.gallery-wall__item--4 {
	grid-column: 7 / 13;
}

.gallery-wall__item {
	min-width: 0;
	min-height: 0;
}

.gallery-shot {
	position: relative;
	display: block;
	height: 100%;
	min-height: 0;
	overflow: hidden;
	background-color: #d9e3ea;
	color: inherit;
	box-shadow: inset 0 0 0 0 var(--gallery-lime);
	transition: box-shadow 180ms ease;
}

.gallery-shot img {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transform: scale(1);
	transition: transform 0.7s var(--gallery-ease);
}

.gallery-wall__item--0 .gallery-shot {
	min-height: 0;
}

.gallery-wall__item--1 .gallery-shot,
.gallery-wall__item--2 .gallery-shot {
	aspect-ratio: 4 / 3;
}

.gallery-wall__item--3 .gallery-shot,
.gallery-wall__item--4 .gallery-shot {
	aspect-ratio: 16 / 10;
}

.gallery-shot__no {
	position: absolute;
	top: 12px;
	left: 12px;
	z-index: 1;
	padding: 4px 8px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.1em;
	color: #fff;
	background: rgba(0, 100, 176, 0.88);
}

.gallery-shot:hover img,
.gallery-shot:focus-visible img {
	transform: scale(1.05);
}

.gallery-shot:hover,
.gallery-shot:focus-visible {
	box-shadow: inset 0 0 0 3px var(--gallery-lime);
}

.gallery-shot:focus-visible {
	outline: 2px solid var(--gallery-lime);
	outline-offset: 3px;
}

@media (max-width: 991.98px) {
	.gallery-hero,
	.gallery-hero__veil {
		min-height: 64vh;
		min-height: 64dvh;
	}
	.gallery-hero__veil {
		padding: 20px 20px 28px;
	}
	.gallery-hero__title {
		font-size: 40px;
	}
	.gallery-hero__lead {
		font-size: 16px;
	}
	.gallery-wall {
		grid-template-columns: 1fr 1fr;
	}
	.gallery-wall__item--0,
	.gallery-wall__item--1,
	.gallery-wall__item--2,
	.gallery-wall__item--3,
	.gallery-wall__item--4 {
		grid-column: auto;
		grid-row: auto;
	}
	.gallery-wall__item--0 {
		grid-column: 1 / -1;
	}
	.gallery-wall__item--0 .gallery-shot {
		min-height: 0;
		aspect-ratio: 16 / 10;
	}
	.gallery-wall__item--1 .gallery-shot,
	.gallery-wall__item--2 .gallery-shot,
	.gallery-wall__item--3 .gallery-shot,
	.gallery-wall__item--4 .gallery-shot {
		aspect-ratio: 4 / 3;
	}
}

@media (max-width: 575.98px) {
	.gallery-hero,
	.gallery-hero__veil {
		min-height: 78vh;
		min-height: 78dvh;
	}
	.gallery-hero__title {
		font-size: 36px;
	}
	.gallery-wall {
		grid-template-columns: 1fr;
		gap: 6px;
	}
	.gallery-wall__item--0 {
		grid-column: auto;
	}
}

@media (prefers-reduced-motion: reduce) {
	.gallery-hero__media img,
	.gallery-shot img {
		transition: none;
	}
	.gallery-hero:hover .gallery-hero__media img,
	.gallery-hero__media:focus-visible img,
	.gallery-shot:hover img,
	.gallery-shot:focus-visible img {
		transform: none;
	}
}
