/* CRESTIAL — a single project.
 *
 * ⚑ HAND-WRITTEN, like shop.css and product.css and unlike the ten generated files beside
 * them. There is no mockup: the design opens a lightbox rather than a page, and these URLs
 * exist because the cards link to real permalinks so the gallery survives without JavaScript.
 * See the header of single-crestial_project.php.
 *
 * Small on purpose. It borrows .phero, .sec, .wrap, .pills and the type scale, and adds only
 * the gallery grid and the band's crumb.
 */

/* The band is shorter than a content page's: the picture below is the point, and a 560px hero
   of the same photograph above it is the same image twice. */
.phero--project {
	height: clamp(300px, 42vh, 440px);
}

.phero--project .crumb a {
	color: inherit;
	border-bottom: 1px solid rgba(252, 251, 248, .34);
	padding-bottom: 2px;
}

.phero--project .crumb a:hover {
	border-color: var(--cream);
}

/* ============================================================================
 * The gallery
 * ========================================================================== */

.proj__gal .wrap {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: clamp(20px, 2.6vw, 40px);
}

/* A project with one photograph gets the full width rather than a half-width picture beside
   a hole — eight of the twenty-five have no gallery at all and several have exactly one. */
.proj__gal .wrap > figure:only-child {
	grid-column: 1 / -1;
	max-width: 900px;
	margin-inline: auto;
}

.proj__gal figure {
	margin: 0;
}

.proj__gal img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: var(--rad);
	background: var(--card);
}

.proj__gal figcaption {
	margin-top: 12px;
	font-size: 13px;
	line-height: 1.7;
	color: var(--taupe);
}

/* ============================================================================
 * Closing call to action
 *
 * The content pages each carry their own `.cta` in their own stylesheet. This page has no
 * generated stylesheet, so it needs the few rules that block depends on.
 * ========================================================================== */

.sec.cta {
	background: var(--ink-2);
	color: var(--cream);
	text-align: center;
}

.sec.cta .t-sec,
.sec.cta .eyebrow {
	color: var(--cream);
}

.sec.cta .eyebrow {
	color: rgba(252, 251, 248, .72);
}

@media (max-width: 760px) {
	.proj__gal .wrap {
		grid-template-columns: 1fr;
	}
}
