/* 0.8.33 — (1) Project cards are one link: photo, name and details all open the
   project page (no lightbox, no zoom). (2) "Completed project" site-photos section.
   Loaded last on Home, /projects/ and the project pages. */

/* —— (1) Whole card = one link (stretched title link) —— */
.pcard.plink,.hpc.plink{position:relative;cursor:pointer}
.pcard.plink .bd,.pcard.plink h3,.hpc.plink .bd,.hpc.plink h3{position:static}
.pcard.plink h3 a::after,.hpc.plink h3 a::after{content:'';position:absolute;inset:0;z-index:4}
.pcard.plink h3 a:focus-visible,.hpc.plink h3 a:focus-visible{outline:none}
.pcard.plink:has(h3 a:focus-visible),.hpc.plink:has(h3 a:focus-visible){outline:2px solid var(--brass,#a8875a);outline-offset:6px}
/* Tasteful hover: arrow nudges and the photo dims a touch. No scale/zoom. */
.pcard.plink .im img,.hpc.plink .im img{transition:opacity .35s ease}
@media(hover:hover){
  .pcard.plink:hover .im img,.hpc.plink:hover .im img{opacity:.9}
  .pcard.plink:hover h3 .ar,.hpc.plink:hover h3 .ar{transform:translateX(4px)}
}
.pcard.plink .im,.hpc.plink .im{cursor:pointer}
.pcard.plink .zoom img,.hpc.plink .zoom img{transform:none!important}

/* —— (2) Site photos: same look as the Renders section —— */
.gal.sitep{padding-top:56px;padding-bottom:0}
.gal.sitep .hd{display:flex;justify-content:space-between;align-items:end;gap:20px;margin-bottom:20px}
.gal.sitep .hd h2{margin-top:12px}
.gal.sitep .spg{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.gal.sitep .spg.odd figure:last-child{grid-column:1/-1}
.gal.sitep .spg:has(figure:only-child){grid-template-columns:1fr}
.gal.sitep figure{position:relative;margin:0}
.gal.sitep .sp-b{display:block;width:100%;padding:0;border:0;background:#ece8de;aspect-ratio:var(--spr,4/3);overflow:hidden;cursor:zoom-in}
.gal.sitep .sp-b img{display:block;width:100%;height:100%;object-fit:cover;object-position:50% 50%;transform:none!important}
.gal.sitep figcaption{display:flex;gap:8px;font-size:12px;color:var(--muted);padding-top:6px;line-height:1.3}
.gal.sitep figcaption b{font:500 12px/1.3 var(--body);color:var(--brass-d)}
.gal.sitep .more{margin-top:28px;width:100%}
@media(min-width:960px){
  .gal.sitep{padding-top:72px}
  .gal.sitep .spg{gap:16px}
  /* Odd count: the last photo sits centred under the pair, same size as the others. */
  .gal.sitep .spg.odd figure:last-child{width:calc(50% - 8px);justify-self:center}
  .gal.sitep .spg:has(figure:only-child) figure{width:100%}
  .gal.sitep .more{width:auto}
}
