/* CRESTIAL — project-references. GENERATED by _source/_docs/build_page_css.py
 * from _source/project-references.src.html. Do not edit by hand. */

/* --- closing call to action (shell) -------------------------------------- */
.cta{background:var(--ink-2);color:var(--cream);text-align:center}
.cta .sub{color:rgba(252,251,248,.72)}
.cta .head{margin-bottom:clamp(30px,3.6vw,44px)}

/* ==========================================================================
   --- project references only --------------------------------------------
   ========================================================================== */

/* --- project cards -------------------------------------------------------
   The homepage's reference card, ported: image / title / location /
   "Discover the project". Same markup, same proportions, same hover. The only
   change is the ground — the homepage shows eight cards on its dark band; here
   twenty-two of them ARE the page, and a dark field from hero to footer would
   be four dark bands in a row. So the grid sits on --paper and the card's text
   colours are re-keyed to the light ground. Nothing structural moved.

   EVERY CARD IS IDENTICAL, including the Letter of Commendation. This list
   becomes a `project` custom post type the client adds to, removes from and
   reorders; a card that is special-cased today is the card that breaks when
   they drag it somewhere else. See CMS-REQUIREMENTS.md §1.

   Row gap is wider than the homepage's: there it separates two rows, here six,
   and at the homepage's 26px the titles of one row read as captions for the
   images below them. */
.refs__grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));
  gap:clamp(36px,4.2vw,60px) clamp(16px,2vw,26px)}
.ref{text-align:center}
.ref figure{margin:0 0 18px;border-radius:var(--rad);overflow:hidden;aspect-ratio:4/3;
  background:var(--stone)}
.ref img{width:100%;height:100%;object-fit:cover;transition:transform 1.4s var(--ease)}
.ref:hover img{transform:scale(1.06)}
.ref h3{font-size:16.5px;font-weight:300;letter-spacing:0;margin-bottom:6px}
.ref span{font-size:10.5px;letter-spacing:.2em;text-transform:uppercase;color:var(--taupe)}
.ref .more{display:block;margin-top:12px;font-size:10px;font-weight:500;
  letter-spacing:.2em;text-transform:uppercase;color:var(--ink);
  transition:color .35s var(--ease)}
.ref:hover .more{color:var(--orange)}
.ref:focus-visible{outline:2px solid var(--orange);outline-offset:6px;border-radius:var(--rad)}

/* --- project lightbox ----------------------------------------------------
   Opens from a reference card and shows that project's gallery, one frame at
   a time, each with its own description. */
.gal{display:none}
.lb{
  width:100%;max-width:100%;height:100%;max-height:100%;
  padding:0;border:0;background:transparent;color:var(--cream);overflow:hidden}
.lb::backdrop{background:rgba(12,10,8,.94)}
.lb__fig{
  margin:0;height:100%;display:flex;flex-direction:column;
  align-items:center;justify-content:center;gap:22px;
  padding:clamp(56px,7vw,80px) clamp(56px,9vw,120px)}
.lb__fig img{
  max-width:100%;max-height:72vh;width:auto;height:auto;
  object-fit:contain;border-radius:var(--rad);background:var(--ink-2)}
.lb__fig figcaption{text-align:center;max-width:62ch}
.lb__title{display:block;font-size:15px;font-weight:400;letter-spacing:.02em}
.lb__cap{display:block;margin-top:7px;font-size:13.5px;line-height:1.7;
  color:rgba(252,251,248,.72)}
/* An image with no caption shows nothing. The placeholder that used to live here read
   "Description to come" and was right while these were mockups being shown to the client -
   it made the ask visible. It is wrong on a live site: it puts our project-management note
   in front of the customer, on every one of the 38 frames that has no caption yet. Removed
   23 Oct 2026 on Keith's instruction. Captions are now written per image in the Gallery
   block (see inc/post-types.php), so the ask has somewhere real to live. */
.lb__count{display:block;margin-top:14px;font-size:10px;font-weight:500;
  letter-spacing:.22em;color:rgba(252,251,248,.5);font-variant-numeric:tabular-nums}
.lb__x,.lb__nav{
  position:absolute;z-index:2;display:grid;place-items:center;
  color:var(--cream);background:rgba(252,251,248,.10);border:1px solid rgba(255,255,255,.16);
  border-radius:50%;cursor:pointer;transition:background .3s var(--ease)}
.lb__x:hover,.lb__nav:hover{background:rgba(252,251,248,.22)}
.lb__x{top:clamp(14px,2vw,26px);right:clamp(14px,2vw,26px);width:42px;height:42px;
  font-size:22px;line-height:1}
.lb__nav{top:50%;transform:translateY(-50%);width:46px;height:46px;font-size:26px;
  line-height:1;padding-bottom:4px}
.lb__prev{left:clamp(10px,1.6vw,22px)}
.lb__next{right:clamp(10px,1.6vw,22px)}
.lb[data-single] .lb__nav,.lb[data-single] .lb__count{display:none}
.lb__x:focus-visible,.lb__nav:focus-visible{outline:2px solid var(--orange);outline-offset:3px}
@media(max-width:620px){
  .lb__fig{padding:64px 14px 22px;gap:16px}
  .lb__fig img{max-height:58vh}
  .lb__nav{width:40px;height:40px;top:auto;bottom:18px;transform:none}
  .lb__prev{left:22px} .lb__next{right:22px}
}

/* ===== responsive (this page only) ===== */
@media(max-width:1080px){
  .refs__grid{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media(max-width:860px){
  .refs__grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .frow{grid-template-columns:1fr;gap:clamp(24px,4vw,34px)}
  .frow--r .frow__media{order:0;margin-left:0}
  .frow__media{max-width:min(100%,540px)}
  .frow__text{max-width:none}
}
@media(max-width:420px){
  .refs__grid{gap:30px 14px}
  .ref h3{font-size:14.5px}
  .ref span{font-size:9.5px;letter-spacing:.16em}
}
