/* Pine 5: warm circuit-workshop project stories. */
.project-page{background:#f4f1e8;color:#163b2e;overflow:clip;font-family:'IBM Plex Sans',sans-serif}
.project-page .wrap{width:min(1280px,calc(100% - 80px));margin-inline:auto;box-sizing:border-box}
.project-breadcrumb{padding-top:32px;font-size:.8rem}
.project-breadcrumb a{color:#536358;text-decoration:none}
.project-breadcrumb a:hover{text-decoration:underline;text-underline-offset:5px}
.project-intro{display:grid;grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr);gap:48px;align-items:center;padding-block:42px 65px}
.project-intro-copy{min-width:0}
.project-kicker{color:#126b4b;font-size:.72rem;letter-spacing:.14em;text-transform:uppercase;margin:0 0 22px}
.project-intro h1{font-family:'Chakra Petch',sans-serif;font-size:clamp(2.4rem,4.8vw,4.9rem);font-weight:600;line-height:1.06;letter-spacing:-.04em;overflow-wrap:anywhere;margin:0 0 25px}
.project-lede{max-width:580px;color:#536358;font-size:1.05rem;line-height:1.8;overflow-wrap:anywhere}
.project-journal-link{display:inline-flex;align-items:center;gap:22px;color:#126b4b;text-decoration:none;border-bottom:1px solid #a9bfa9;font-size:.87rem;padding-block:14px}
.project-journal-link:hover{border-color:#126b4b}
.project-journal-link span{font-size:1.3rem}
.project-photo-count{font-size:.73rem;color:#536358;margin-top:17px}
.project-hero{margin:0;min-width:0;background:#ebece2;border:1px solid #d2d9ca;border-radius:5px;padding:12px}
.project-hero a{display:flex;align-items:center;justify-content:center;min-height:240px}
.project-hero img{display:block;width:auto;max-width:100%;height:auto;max-height:590px;object-fit:contain}
.gallery-sequence{font-family:'Chakra Petch',sans-serif;color:#126b4b;font-size:.82rem;flex:0 0 auto;font-weight:600}
.gallery-section{padding-top:56px;padding-bottom:48px;scroll-margin-top:100px}
.gallery-heading{display:flex;justify-content:space-between;align-items:baseline;gap:20px;margin-bottom:24px}
.gallery-heading h2{font-family:'Chakra Petch',sans-serif;font-size:clamp(1.9rem,4vw,3rem);font-weight:500;letter-spacing:-.04em;margin:0;line-height:1.2}
.gallery-status{font-size:.78rem;color:#5b7286;text-align:right;line-height:1.6}
.gallery-filters{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:38px}
.gallery-filters button{border:1px solid #d2d9ca;border-radius:10px;background:transparent;color:#5b7286;font:inherit;font-size:.8rem;padding:10px 15px;min-height:44px;cursor:pointer}
.gallery-filters button span{margin-left:8px;font-size:.72rem}
.gallery-filters button[aria-pressed=true]{background:#e8eee4;border-color:#126b4b;color:#163b2e}
.gallery-filters button:hover{border-color:#163b2e}
.gallery-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:46px 30px;align-items:start}
.gallery-item{margin:0;min-width:0}
.gallery-photo-link{display:block;text-decoration:none}
.gallery-image-frame{display:flex;align-items:center;justify-content:center;width:100%;min-height:1px;background:#ebece2;overflow:hidden;border:1px solid #d2d9ca;border-radius:16px;box-sizing:border-box}
.gallery-image-frame img{display:block;width:auto;max-width:100%;height:auto;max-height:800px;object-fit:contain}
.gallery-item figcaption{display:flex;align-items:baseline;gap:12px;font-size:.76rem;line-height:1.7;padding-top:15px;color:#5b7286;overflow-wrap:anywhere}
.gallery-phase{flex:0 0 auto;color:#163b2e;font-size:.65rem;font-weight:600;text-transform:uppercase;letter-spacing:.07em;border-left:3px solid #126b4b;padding-left:9px}
.gallery-item[data-phase=after] .gallery-phase{border-color:#126b4b}
.gallery-item[data-phase=during] .gallery-phase{border-color:#7c8860}
.gallery-more-row{margin-top:38px}
.gallery-more-row:has(.gallery-more[hidden]){display:none}
.gallery-more{font-size:.85rem;background:#e8eee4!important;color:#163b2e!important;border-color:#a9bfa9!important}
.gallery-item[hidden],.gallery-filters[hidden],.gallery-more[hidden],.lightbox-image[hidden]{display:none!important}
.project-feature{background:transparent;color:#163b2e;border:0;border-top:1px solid #d2d9ca;border-radius:0;max-width:800px;padding:28px 0 0!important;margin-top:10px;margin-bottom:36px}
.project-feature h2{font-family:'Chakra Petch',sans-serif;font-size:1.3rem;font-weight:500;line-height:1.4;letter-spacing:-.02em;margin:0 0 10px;max-width:720px;overflow-wrap:anywhere}
.project-feature>p{color:#5b7286;font-size:.88rem;line-height:1.7}
.project-feature-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;margin-top:20px}
.project-feature figure{margin:0;min-width:0;background:#ffffff;color:#163b2e;border:1px solid #d2d9ca;border-radius:14px;overflow:hidden}
.project-decal-view{display:block;position:relative;overflow:hidden;aspect-ratio:2/1;background:#e8eee4}
.project-decal-view img{position:absolute;display:block;max-width:none;height:auto}
.project-decal-before img{width:100%;left:0;top:-20%}
.project-decal-after img{width:400%;left:-16%;top:-288%}
.project-feature figcaption{display:flex;flex-direction:column;align-items:flex-start;gap:9px;padding:20px;font-size:.8rem;line-height:1.7;overflow-wrap:anywhere}
.project-feature figcaption strong{font-weight:500;color:#078193}
.project-feature figcaption a{color:#126b4b;text-underline-offset:4px}
.project-feature .project-feature-note{font-size:.76rem;margin-top:22px;margin-bottom:0}
.project-notes{padding-top:12px;padding-bottom:25px}
.project-notes details{max-width:740px;border-top:1px solid #d2d9ca}
.project-notes summary{cursor:pointer;font-size:.95rem;font-weight:500;padding:18px 0}
.project-notes p{color:#5b7286;line-height:1.8;overflow-wrap:anywhere;margin-top:10px}
.project-links{display:flex;flex-wrap:wrap;gap:12px;padding-top:10px;padding-bottom:25px}
.project-links .button{max-width:100%;overflow-wrap:anywhere;text-align:center;background:#e8eee4;color:#163b2e}
.project-next{display:flex;justify-content:space-between;align-items:flex-start;gap:35px;border-top:1px solid #d2d9ca;padding-top:30px;margin-top:36px;padding-bottom:70px}
.project-next a{text-decoration:none;font-size:.88rem;color:#163b2e;min-width:0;max-width:55%;overflow-wrap:anywhere}
.project-next a:last-child{text-align:right}
.project-next a span{display:block;font-size:.68rem;letter-spacing:.08em;text-transform:uppercase;color:#5b7286;margin-bottom:9px}
.project-next strong{display:block;font-family:'Chakra Petch',sans-serif;font-weight:500;font-size:1.25rem;line-height:1.5}
.project-next a:hover strong,.project-next a:first-child:hover{text-decoration:underline;text-underline-offset:5px}
.lightbox-open{overflow:hidden}
.lightbox-dialog{box-sizing:border-box;width:min(1400px,95vw);max-width:95vw;max-height:95dvh;padding:20px;border:1px solid #d2d9ca;border-radius:16px;background:#ffffff;color:#163b2e}
.lightbox-dialog::backdrop{background:#e7e9dfee}
.lightbox-top{display:flex;justify-content:space-between;align-items:center;gap:20px}
.lightbox-counter{margin:0;color:#5b7286;font-size:.82rem}
.lightbox-dialog button,.lightbox-original{font:inherit;font-size:.82rem;color:#163b2e;border:1px solid #c2cfbc;border-radius:4px;padding:10px 16px;min-height:44px;background:transparent;cursor:pointer;text-decoration:none}
.lightbox-dialog button:disabled{opacity:.35;cursor:default}
.lightbox-dialog button:hover,.lightbox-original:hover{background:#e8eee4}
.lightbox-figure{margin:18px 0}
.lightbox-image{display:block;width:100%;height:min(67dvh,850px);object-fit:contain}
.lightbox-caption{line-height:1.6;color:#5b7286;font-size:.82rem;margin-top:14px;min-height:1.6em;overflow-wrap:anywhere}
.lightbox-controls{display:flex;justify-content:space-between;align-items:center;gap:12px}
.project-page :focus-visible,.lightbox-dialog :focus-visible{outline:3px solid #126b4b;outline-offset:5px}
.project-opening :focus-visible,.project-feature :focus-visible,.lightbox-dialog :focus-visible{outline-color:#126b4b}
@media(max-width:800px){.project-feature{padding:26px 0 0!important}.gallery-grid{gap:36px 20px}.gallery-item figcaption{display:block}.gallery-phase{display:block;margin-bottom:8px}.project-next{padding-bottom:50px}.lightbox-dialog{padding:14px}.lightbox-image{height:64dvh}}
@media(max-width:540px){.gallery-section{padding-top:38px}.gallery-grid{grid-template-columns:1fr;gap:34px}.gallery-image-frame img{max-height:720px}.gallery-heading{align-items:center}.gallery-status{max-width:160px;font-size:.7rem}.gallery-filters{gap:7px;margin-bottom:28px}.gallery-filters button{padding:8px 11px;font-size:.75rem;max-width:100%}.project-feature{padding:24px 0 0!important}.project-feature-grid{grid-template-columns:1fr;gap:22px}.project-feature figcaption{padding:16px}.project-next{gap:22px}.project-next a{font-size:.78rem}.project-next strong{font-size:1rem}.lightbox-controls{flex-wrap:wrap;gap:8px}.lightbox-original{order:3;width:100%;text-align:center}.lightbox-dialog button,.lightbox-original{padding:10px 12px;font-size:.75rem}}
@media(prefers-reduced-motion:reduce){.project-journal-link span{transition:none}}

@media(max-width:900px){.project-intro{gap:28px;grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.project-intro h1{font-size:clamp(2.3rem,4.8vw,3.7rem)}.project-page .wrap{width:calc(100% - 48px)}}
@media(max-width:640px){.project-page .wrap{width:calc(100% - 36px)}.project-intro{grid-template-columns:1fr;padding-block:32px 38px;gap:30px}.project-intro h1{font-size:clamp(2.3rem,10vw,3.8rem)}.project-lede{font-size:.98rem}.project-hero img{max-height:530px}.project-hero a{min-height:0}.gallery-item figcaption{display:flex;flex-wrap:wrap;gap:6px 10px}.gallery-item figcaption>span:last-child{flex-basis:100%}.gallery-phase{margin-bottom:0}}

/* Display-only viewports preserve the untouched documentary source image. */
.gallery-crop{display:block;width:100%;height:auto;max-width:100%;overflow:hidden}
.lightbox-crop{display:block;width:min(100%,calc(60dvh * var(--crop-ratio,1)));height:auto;max-height:60dvh;aspect-ratio:var(--crop-ratio,1);margin-inline:auto;overflow:hidden}
.gallery-crop image,.lightbox-crop image{pointer-events:none}
.lightbox-crop[hidden]{display:none!important}

