/* Project archive and single. Built on the homepage industrial system. */

body.nil-projects {
	--nil-container: 1220px;
	background: #f3f6f8;
}

body.nil-projects .site-main {
	padding: 0;
}

body.nil-projects .nil-footer {
	margin-top: 0;
}

.nil-project-archive .nil-hero__photo,
.nil-project .nil-hero__photo {
	width: 100%;
	height: 22rem;
	margin-inline-start: 0;
	object-fit: cover;
}

.nil-project-archive .nil-hero__stage,
.nil-project .nil-hero__stage {
	min-height: 0;
}

.nil-hero--flat {
	padding-block: 2.8rem 3rem;
}

.nil-hero__grid--solo {
	grid-template-columns: minmax(0, 42rem);
}

.nil-hero .nil-chips {
	margin-top: 1.15rem;
}

.nil-hero .nil-chips li {
	background: rgb(255 255 255 / 12%);
	color: #e7f3fb;
}

.nil-hero .nil-chips a {
	color: inherit;
	text-decoration: none;
}

.nil-project-archive .nil-metrics,
.nil-project .nil-metrics {
	grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
}

.nil-project-search {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin: 0 0 0.9rem;
}

.nil-project-search input[type="search"] {
	flex: 1 1 16rem;
	min-height: 2.9rem;
	padding: 0.5rem 0.8rem;
	border: 1px solid #d5e0e8;
	border-radius: 0;
	background: #fff;
	color: #163044;
}

button.nil-btn {
	cursor: pointer;
	font: inherit;
	border-radius: 0;
}

.nil-project-search .nil-btn {
	flex: 0 0 auto;
	color: #fff;
}

.nil-project-filters.nil-paths {
	grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
	margin-top: 0;
	margin-bottom: 1.2rem;
}

.nil-project-filters a[aria-current="page"] {
	color: #0c7ab8;
	text-decoration: underline;
	text-underline-offset: 0.2rem;
}

.nil-project-countline {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.5rem 1rem;
	margin: 0 0 1rem;
}

.nil-project-count {
	margin: 0;
	color: #5d7282;
	font-weight: 700;
}

.nil-project-card .nil-room__media {
	background: #e7eef3;
}

.nil-project-fallback {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	min-height: 12rem;
	background: linear-gradient(160deg, #0d283c, #07141f);
	color: #9fd0ee;
	font-weight: 800;
	font-size: 1.35rem;
}

.nil-project-layout {
	display: grid;
	grid-template-columns: minmax(0, 1.35fr) minmax(16rem, 0.75fr);
	gap: 1.5rem;
	align-items: start;
}

.nil-project-layout--solo {
	grid-template-columns: minmax(0, 1fr);
}

.nil-project-copy > *:first-child {
	margin-top: 0;
}

.nil-project-copy > *:last-child {
	margin-bottom: 0;
}

.nil-project-copy h2,
.nil-project-copy h3 {
	margin: 1.5rem 0 0.45rem;
	font-weight: 800;
	line-height: 1.4;
}

.nil-project-copy h2 {
	font-size: 1.25rem;
}

.nil-project-copy h3 {
	font-size: 1.05rem;
}

.nil-project-copy p,
.nil-project-copy ul,
.nil-project-copy ol {
	margin: 0 0 0.9rem;
}

.nil-project-copy ul,
.nil-project-copy ol {
	padding-inline-start: 1.15rem;
}

.nil-project-copy a {
	color: #0c5f90;
}

.nil-project-copy img {
	height: auto;
}

.nil-project-specs {
	padding: 1.1rem 1.15rem 1.2rem;
	background: #fff;
	border: 1px solid #d5e0e8;
}

.nil-project-specs > h2 {
	margin: 0 0 0.8rem;
	font-size: 1.05rem;
	font-weight: 800;
}

.nil-spec-list {
	margin: 0;
}

.nil-spec {
	display: grid;
	grid-template-columns: 7.2rem minmax(0, 1fr);
	gap: 0.5rem;
	margin: 0;
	padding: 0.55rem 0;
	border-top: 1px solid #e6eef3;
	font-size: 0.92rem;
}

.nil-spec dt {
	margin: 0;
	color: #5d7282;
}

.nil-spec dd {
	margin: 0;
	font-weight: 700;
}

.nil-spec-list--grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0 1.5rem;
}

.nil-project-edit {
	margin: 1rem 0 0;
	font-size: 0.85rem;
}

.nil-project-edit a {
	color: #5d7282;
}

.nil-project-gallery {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 0.7rem;
}

.nil-project-gallery a {
	display: block;
	aspect-ratio: 1.2;
	overflow: hidden;
	background: #e7eef3;
}

.nil-project-gallery img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.45s ease;
}

.nil-project-gallery a:hover img {
	transform: scale(1.04);
}

.nil-projects .pagination {
	margin-top: 1.5rem;
}

.nil-projects .nav-links {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
}

.nil-projects .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 2.4rem;
	min-height: 2.4rem;
	padding: 0 0.6rem;
	background: #fff;
	border: 1px solid #d5e0e8;
	color: #163044;
	text-decoration: none;
	font-weight: 700;
}

.nil-projects .page-numbers.current {
	background: #0c7ab8;
	border-color: #0c7ab8;
	color: #fff;
}

.nil-project-filters a:focus-visible,
.nil-projects .page-numbers:focus-visible,
.nil-project-gallery a:focus-visible,
.nil-project-search input:focus-visible,
.nil-project-search .nil-btn:focus-visible {
	outline: 2px solid #0c7ab8;
	outline-offset: 2px;
}

@media (max-width: 860px) {
	.nil-project-layout,
	.nil-spec-list--grid,
	.nil-project-gallery {
		grid-template-columns: 1fr 1fr;
	}

	.nil-project-layout {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 640px) {
	.nil-project-archive .nil-metrics,
	.nil-project .nil-metrics,
	.nil-spec-list--grid,
	.nil-project-gallery {
		grid-template-columns: 1fr;
	}

	.nil-project-archive .nil-metrics li,
	.nil-project .nil-metrics li {
		border-inline-start: 0;
		border-top: 1px solid #e6eef3;
	}

	.nil-project-archive .nil-metrics li:first-child,
	.nil-project .nil-metrics li:first-child {
		border-top: 0;
	}
}

@media (prefers-reduced-motion: reduce) {
	.nil-project-gallery img {
		transition: none;
	}
}
