/* Facilities: overview list and facility pages. */

.gp-facilities-page > *,
.gp-facility-page > * {
	margin-block: 0;
}

.gp-facilities-page__list {
	padding-block: var(--wp--preset--spacing--60) var(--wp--preset--spacing--80);
}

@media (min-width: 64em) {
	.gp-facilities-page .gp-sites {
		grid-auto-rows: minmax(18rem, auto);
	}
}

/* ---------- Facility hero ---------- */

.gp-fd__hero {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	background: var(--wp--preset--color--ink);
	padding-block: var(--wp--preset--spacing--50) clamp(3rem, 2rem + 5vw, 6rem);
	min-height: clamp(26rem, 64svh, 38rem);
	display: grid;
	align-items: end;
}

.gp-fd__bg {
	position: absolute;
	inset: 0;
	z-index: -1;
}

.gp-fd__bg img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	filter: saturate(0.8);
}

.gp-fd__bg::after {
	content: "";
	position: absolute;
	inset: 0;
	background:
		linear-gradient(0deg, rgb(21 22 58 / 0.96) 0%, rgb(21 22 58 / 0.55) 55%, rgb(21 22 58 / 0.35) 100%),
		linear-gradient(90deg, rgb(21 22 58 / 0.7), transparent 70%);
}

.gp-fd__hero-inner {
	display: grid;
	gap: 0.6rem;
	align-content: end;
	height: 100%;
}

.gp-fd__hero-inner > * {
	margin-block: 0;
}

.gp-crumbs--light {
	align-self: start;
	margin-bottom: auto;
}

.gp-crumbs--light ol,
.gp-crumbs--light a {
	color: rgb(255 255 255 / 0.75);
}

.gp-crumbs--light li + li::before {
	color: rgb(255 255 255 / 0.4);
}

.gp-fd__place {
	margin-top: clamp(4rem, 12vw, 9rem) !important;
	font-family: var(--wp--preset--font-family--display);
	font-weight: 500;
	color: var(--wp--preset--color--amber);
}

.gp-fd__title {
	font-size: clamp(2.5rem, 1.6rem + 3.8vw, 5rem);
	line-height: 1;
	letter-spacing: -0.02em;
}

.gp-fd__figure {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 0.25rem 0.75rem;
	margin-top: 0.75rem !important;
	font-family: var(--wp--preset--font-family--display);
	color: var(--wp--preset--color--white);
}

.gp-fd__value {
	font-size: clamp(2.75rem, 1.6rem + 4.5vw, 5.5rem);
	font-weight: 700;
	font-stretch: 118%;
	line-height: 0.95;
	letter-spacing: -0.03em;
	font-variant-numeric: tabular-nums;
}

.gp-fd__unit {
	font-size: var(--wp--preset--font-size--heading-4);
	color: var(--wp--preset--color--amber);
}

.gp-fd__label {
	flex-basis: 100%;
	font-family: var(--wp--preset--font-family--body);
	font-size: var(--wp--preset--font-size--small);
	color: rgb(255 255 255 / 0.7);
}

.gp-fd__actions {
	margin-top: 1.5rem !important;
	gap: 0.75rem;
}

/* ---------- Overview and capabilities ---------- */

.gp-fd__overview-grid {
	display: grid;
	gap: var(--wp--preset--spacing--50) var(--wp--preset--spacing--70);
}

@media (min-width: 60em) {
	.gp-fd__overview-grid {
		grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
	}
}

.gp-fd__overview-grid > * > * {
	margin-block: 0;
}

.gp-fd__overview-grid > * > * + * {
	margin-top: 1rem;
}

.gp-fd__lead {
	font-size: var(--wp--preset--font-size--lead);
	line-height: 1.6;
	color: var(--wp--preset--color--text);
}

.gp-fd__caps {
	padding: 1.5rem;
	border-radius: var(--wp--custom--radius--large);
	background: var(--wp--preset--gradient--metal);
	border: 1px solid var(--wp--preset--color--rule);
	box-shadow: var(--wp--preset--shadow--raised);
}

.gp-fd__caps h3 {
	font-size: var(--wp--preset--font-size--heading-4);
}

.gp-caps {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.gp-caps li {
	max-width: none;
}

.gp-caps a {
	display: inline-flex;
	align-items: center;
	min-height: 40px;
	padding: 0.35rem 0.85rem;
	border: 1px solid var(--wp--preset--color--rule);
	border-radius: var(--wp--custom--radius--pill);
	background: var(--wp--preset--color--white);
	color: var(--wp--preset--color--ink);
	font-family: var(--wp--preset--font-family--display);
	font-weight: 600;
	font-size: 0.9375rem;
	text-decoration: none;
}

.gp-caps a:hover {
	border-color: var(--wp--preset--color--indigo);
	color: var(--wp--preset--color--indigo);
}

/* Technical information reuses the spec plate; on the facility page it has no photo column. */
.gp-spec--data .gp-spec__inner {
	grid-template-columns: 1fr;
}

.gp-spec--data .gp-spec__title {
	font-size: var(--wp--preset--font-size--heading-2);
}

.gp-spec--data .gp-spec__rows {
	margin-top: var(--wp--preset--spacing--50) !important;
}

/* Large data panels: each specification is a raised metallic-edged cell. */
.gp-spec--data .gp-spec__row {
	border-top: 0;
	padding: 1.4rem 1.4rem 1.5rem;
	margin-bottom: 1rem;
	border-radius: var(--wp--custom--radius--medium);
	background: linear-gradient(160deg, rgb(255 255 255 / 0.09), rgb(255 255 255 / 0.02));
	box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.12), 0 24px 40px -30px rgb(0 0 0 / 0.8);
}

.gp-spec--data .gp-spec__row::before {
	left: 1.4rem;
	top: 0;
}

.gp-spec--data .gp-spec__primary,
.gp-spec--data .gp-spec__row--label dt {
	font-size: clamp(1.25rem, 1rem + 0.8vw, 1.6rem);
}

/* ---------- Gallery and lightbox ---------- */

.gp-fd__gallery {
	background: var(--wp--preset--color--surface);
}

.gp-gallery-filter {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
}

.gp-gallery-filter button {
	min-height: 40px;
	padding: 0.35rem 0.9rem;
	border: 1px solid var(--wp--preset--color--rule);
	border-radius: var(--wp--custom--radius--pill);
	background: var(--wp--preset--color--white);
	font: 600 0.9375rem var(--wp--preset--font-family--display);
	color: var(--wp--preset--color--ink);
	cursor: pointer;
}

.gp-gallery-filter button[aria-pressed="true"] {
	background: var(--wp--preset--color--ink);
	border-color: var(--wp--preset--color--ink);
	color: var(--wp--preset--color--white);
}

.gp-gallery {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0.75rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

@media (min-width: 48em) {
	.gp-gallery {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 1rem;
	}
}

.gp-gallery li {
	max-width: none;
	margin: 0;
}

.gp-gallery li.is-wide {
	grid-column: span 2;
	grid-row: span 2;
}

.gp-gallery li.is-row {
	grid-column: 1 / -1;
}

.gp-gallery li.is-row img {
	aspect-ratio: 21 / 9;
}

.gp-gallery li.is-pair {
	grid-column: span 2;
}

.gp-gallery li.is-pair img {
	aspect-ratio: 8 / 3;
}

@media (max-width: 47.99em) {
	.gp-gallery li.is-pair img {
		aspect-ratio: 16 / 9;
	}
}

.gp-gallery__open {
	display: block;
	width: 100%;
	height: 100%;
	padding: 0;
	border: 0;
	border-radius: var(--wp--custom--radius--medium);
	overflow: hidden;
	background: var(--wp--preset--color--ink);
	cursor: zoom-in;
}

.gp-gallery__open img {
	display: block;
	width: 100%;
	height: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	transition: scale var(--wp--custom--motion--slow) var(--wp--custom--motion--ease), opacity var(--wp--custom--motion--base) ease;
}

.gp-gallery__open:hover img {
	scale: 1.05;
	opacity: 0.92;
}

.gp-gallery__caption {
	margin: 0.4rem 0 0;
	font-size: var(--wp--preset--font-size--small);
	color: var(--wp--preset--color--steel);
}

.gp-lightbox {
	width: min(92vw, 70rem);
	max-height: 92vh;
	padding: 0;
	border: 0;
	border-radius: var(--wp--custom--radius--medium);
	background: var(--wp--preset--color--ink);
	color: var(--wp--preset--color--white);
	overflow: hidden;
}

.gp-lightbox::backdrop {
	background: rgb(10 11 30 / 0.85);
	backdrop-filter: blur(4px);
}

.gp-lightbox[open] {
	animation: gp-pop 260ms var(--wp--custom--motion--ease);
}

@keyframes gp-pop {
	from {
		opacity: 0;
		scale: 0.96;
	}
}

.gp-lightbox img {
	display: block;
	width: 100%;
	max-height: calc(92vh - 3rem);
	object-fit: contain;
}

.gp-lightbox form {
	position: absolute;
	top: 0.5rem;
	right: 0.5rem;
	margin: 0;
}

.gp-lightbox__close {
	width: 44px;
	height: 44px;
	border: 0;
	border-radius: 50%;
	background: rgb(21 22 58 / 0.8);
	color: var(--wp--preset--color--white);
	font-size: 1.75rem;
	line-height: 1;
	cursor: pointer;
}

.gp-lightbox__caption {
	margin: 0;
	padding: 0.75rem 1rem;
	font-size: var(--wp--preset--font-size--small);
}

/* ---------- Contact, documents, other facilities ---------- */

.gp-fd__contact-grid {
	display: grid;
	gap: 1.5rem;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr));
}

.gp-fd__card {
	padding: clamp(1.25rem, 3vw, 2rem);
	border-radius: var(--wp--custom--radius--large);
	border: 1px solid var(--wp--preset--color--rule);
	background: var(--wp--preset--color--white);
	box-shadow: var(--wp--preset--shadow--raised);
}

.gp-fd__card > * {
	margin-block: 0;
}

.gp-fd__card > * + * {
	margin-top: 1rem;
}

.gp-fd__card--cta {
	background: linear-gradient(140deg, var(--wp--preset--color--indigo) 0%, var(--wp--preset--color--ink) 100%);
	border: 0;
}

.gp-fd__card h2 {
	font-size: var(--wp--preset--font-size--heading-3);
}

.gp-fd__company {
	font-family: var(--wp--preset--font-family--display);
	font-weight: 600;
	font-size: 1.125rem;
	color: var(--wp--preset--color--ink);
}

.gp-fd__card address {
	font-style: normal;
	color: var(--wp--preset--color--steel);
}

.gp-fd__lines {
	display: grid;
	gap: 0.35rem;
	padding: 0;
	list-style: none;
}

.gp-fd__lines a {
	font-weight: 600;
}

.gp-fd__others {
	background: var(--wp--preset--color--surface);
	border-top: 1px solid var(--wp--preset--color--rule);
}

.gp-fd__others h2 {
	margin: 0 0 1.25rem;
	font-size: var(--wp--preset--font-size--heading-3);
}

.gp-others {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr));
	gap: 0.75rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.gp-others li {
	max-width: none;
}

.gp-others a {
	display: flex;
	align-items: center;
	gap: 0.9rem;
	padding: 0.6rem;
	border-radius: var(--wp--custom--radius--medium);
	background: var(--wp--preset--color--white);
	border: 1px solid var(--wp--preset--color--rule);
	color: inherit;
	text-decoration: none;
}

.gp-others a:hover {
	border-color: var(--wp--preset--color--indigo);
}

.gp-others img {
	flex: none;
	width: 4.5rem;
	height: 4.5rem;
	object-fit: cover;
	border-radius: var(--wp--custom--radius--small);
}

.gp-others strong {
	display: block;
	font-family: var(--wp--preset--font-family--display);
	color: var(--wp--preset--color--ink);
}

.gp-others span span {
	font-size: var(--wp--preset--font-size--small);
	color: var(--wp--preset--color--steel);
}
