/* Project */
.project {
	max-width: 1320px;
	margin: 0 auto;
	padding: 56px var(--gutter) 120px;
}
.project-head {
	text-align: center;
	margin-bottom: 56px;
}
.project-head h1 {
	font-size: clamp(30px, 4.4vw, 56px);
	letter-spacing: 0.06em;
	text-transform: uppercase;
	font-weight: 300;
	line-height: 1.15;
	margin-bottom: 8px;
}
.gallery {
	columns: 2 420px;
	column-gap: 16px;
}
/* Padding, not margin: a bottom margin can carry over to the top of the next
   column and push it down. Block (not inline-block) avoids whitespace gaps. */
.gallery-item {
	display: block;
	padding-bottom: 16px;
	break-inside: avoid;
	cursor: zoom-in;
}
.gallery-item img {
	width: 100%;
	background: var(--line);
}
.project-pager {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 24px;
	margin-top: 96px;
	padding-top: 40px;
	border-top: 1px solid var(--line);
	font-size: 15px;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}
.project-pager a {
	display: flex;
	align-items: center;
	gap: 20px;
}
.pager-next {
	flex-direction: row-reverse;
	text-align: right;
}
.project-pager figure {
	flex: none;
	width: clamp(120px, 18vw, 240px);
	aspect-ratio: 4 / 3;
	margin: 0;
	overflow: hidden;
	background: var(--line);
}
.project-pager img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.project-pager a:hover img {
	transform: scale(1.05);
}

@media (max-width: 600px) {
	.project-pager {
		gap: 16px;
		font-size: 13px;
		letter-spacing: 0.1em;
	}
	.project-pager figure {
		display: none;
	}
}

/* Lightbox */
.lightbox {
	width: 100vw;
	height: 100vh;
	max-width: none;
	max-height: none;
	margin: 0;
	padding: 0;
	border: 0;
	background: rgb(10 12 13 / 0.96);
	/* Horizontal drags are handled by site.js as photo swipes. */
	touch-action: pan-y pinch-zoom;
	overscroll-behavior: contain;
}
.lb-image {
	width: 100%;
	height: 100%;
	object-fit: contain;
	padding: 56px clamp(16px, 6vw, 96px);
}
.lightbox button {
	position: absolute;
	background: none;
	border: 0;
	color: #fff;
	font: 300 15px var(--sans);
	letter-spacing: 0.16em;
	text-transform: uppercase;
	padding: 20px;
	cursor: pointer;
}
.lb-close {
	top: 0;
	right: 0;
}
.lightbox .lb-prev,
.lightbox .lb-next {
	top: 50%;
	transform: translateY(-50%);
	font-size: 32px;
}
.lightbox .lb-prev {
	left: 0;
}
.lightbox .lb-next {
	right: 0;
}
