/* 0.8.38 — Uniform project pages + uniform projects listing. Additive; loaded last.
   Sand palette for placeholders: #D9CFC1 sheet, #2A2622 ink. */

/* ---------- Placeholder card (never a button, never in the lightbox) ---------- */
.kph{position:relative;display:grid;place-items:center;text-align:center;background:#D9CFC1;color:#2A2622;overflow:hidden;width:100%;padding:24px;box-sizing:border-box}
.kph::before{content:'';position:absolute;inset:10px;border:1px solid rgba(42,38,34,.14);pointer-events:none}
.kph-in{position:relative;display:grid;justify-items:center;gap:14px;max-width:36ch}
.kph-i{width:34px;height:34px;opacity:.62}
.kph-t{margin:0;font:400 clamp(15px,1.6vw,19px)/1.4 var(--head);letter-spacing:-.005em;color:#2A2622}
.kcar-ph .kcar-frame{background:#D9CFC1}
.kcar-ph .kcar-frame>.kph{position:absolute;inset:0;height:100%}
.vid.kph{background:#D9CFC1}
.wtv.kph{width:auto}
.vid.kph::after{display:none}
.shc .vid.kph{aspect-ratio:9/16;border-radius:4px}
.ked-hero>.kph,.ked-grid>figure>.kph{aspect-ratio:var(--ked-ratio,3/2)}
.ked-grid>figure>.kph-tile{background:#E2D9CC}
.ked-grid>figure>.kph-tile .kph-i{opacity:.4;width:28px;height:28px}
.ked-grid>figure>.kph-tile .kph-t{font-size:13.5px}
.kph-dec{min-height:200px;align-self:stretch}
@media(max-width:600px){.kph{padding:18px}.kph-i{width:28px;height:28px}.kph-t{font-size:14.5px}.shc .vid.kph .kph-i{width:22px;height:22px}}

/* ---------- Uniform project pages share Bali's hero + renders framing ---------- */
body.p-work .bh .art.kph{width:100%;aspect-ratio:4/3;margin-inline:0}
@media(min-width:768px){body.p-work .bh .art.kph{aspect-ratio:1784/620;max-height:min(62svh,680px)}}
body.p-uni .gal.renders .hd{margin-bottom:20px}
body.p-uni .gal.renders .more{margin-top:28px;width:100%}
@media(min-width:960px){body.p-uni .gal.renders{padding-top:72px}body.p-uni .gal.renders .more{width:auto}}

/* ---------- Projects listing: identical cards, symmetric grid ---------- */
html body.p-work .pgrid{display:grid!important;grid-template-columns:1fr!important;gap:44px!important;padding-top:28px!important}
@media(min-width:640px){html body.p-work .pgrid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:48px 24px!important}}
@media(min-width:1024px){html body.p-work .pgrid{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:56px 28px!important;padding-top:48px!important}}
html body.p-work .pgrid>.pcard.pcard.pcard{grid-column:auto!important;margin:0!important;display:flex!important;flex-direction:column;align-items:stretch!important;gap:0!important;min-width:0}
html body.p-work .pgrid>.pcard.pcard.pcard>.im{position:relative;display:block;width:100%!important;height:auto!important;aspect-ratio:4/3!important;overflow:hidden;background:#D9CFC1!important}
html body.p-work .pgrid>.pcard.pcard.pcard>.im picture{position:absolute;inset:0;display:block}
html body.p-work .pgrid>.pcard.pcard.pcard>.im img,html body.p-work .pgrid>.pcard.pcard.pcard>.im picture img{position:absolute;inset:0;width:100%!important;height:100%!important;object-fit:cover!important;object-position:50% 50%}
html body.p-work .pgrid>.pcard.pcard.pcard>.im .ph-tile{position:absolute;inset:0;padding:0}
html body.p-work .pgrid>.pcard.pcard.pcard>.im .ph-tile.kph img{display:none}
html body.p-work .pgrid>.pcard.pcard.pcard>.bd{padding-top:14px;display:grid;gap:4px;min-height:58px}
html body.p-work .pgrid>.pcard.pcard.pcard h3{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}
html body.p-work .pgrid>.pcard.pcard.pcard .mt{flex-wrap:nowrap;overflow:hidden;white-space:nowrap;min-height:1.4em}
