[hidden]{display:none!important}#project-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:32px}.project-card{min-width:0;background:#fff;border:1px solid #dce1e4;overflow:hidden}.project-cover{border:0;background:#e9edf0;position:relative;display:block;width:100%;padding:0;cursor:pointer}.project-cover img{width:100%;height:auto;aspect-ratio:18/13;object-fit:cover;display:block;transition:transform .3s}.project-cover:hover img{transform:scale(1.025)}.project-photo-count{position:absolute;bottom:18px;left:18px;background:#fff;color:#20252a;font:700 14px/1.4 Manrope,Arial,sans-serif;padding:9px 13px}.project-copy{padding:28px}.project-copy h3{font-family:'Roboto Condensed',Arial,sans-serif;font-size:2.25rem;line-height:1.1;margin:0 0 10px}.project-copy>p{color:#626a73;margin:0 0 18px;white-space:pre-wrap;overflow-wrap:anywhere}.project-open{border:0;border-bottom:2px solid #e7bf00;background:none;padding:10px 0;cursor:pointer;font:800 16px/1.5 Manrope,Arial,sans-serif;color:#111316}.project-gallery{max-width:none;max-height:none;width:100%;height:100dvh;margin:0;padding:0;border:0;background:#111316;color:#fff;overflow:hidden}.project-gallery[open]{display:flex;flex-direction:column}.project-gallery::backdrop{background:#111}.gallery-header{display:flex;justify-content:space-between;align-items:center;gap:20px;padding:calc(18px + env(safe-area-inset-top)) max(24px,env(safe-area-inset-right)) 18px max(24px,env(safe-area-inset-left));flex-shrink:0;background:white;color:#111316}.gallery-header h2{font:700 clamp(20px,3vw,32px)/1.2 'Roboto Condensed',Arial,sans-serif;margin:0;overflow-wrap:anywhere}.gallery-header p{font-size:14px;color:#626a73;margin:5px 0 0;max-height:3em;overflow:auto;white-space:pre-wrap}.gallery-close{background:#f2c500;border:0;padding:12px 20px;font:800 16px/1.4 Arial,sans-serif;cursor:pointer;flex-shrink:0;min-height:48px}.gallery-stage{position:relative;flex:1;min-height:0;display:flex;align-items:center;justify-content:center;padding:18px 80px;touch-action:pan-y}.gallery-stage>img{display:block;width:100%;height:100%;object-fit:contain}.gallery-arrow{position:absolute;top:50%;transform:translateY(-50%);height:54px;width:54px;border:1px solid #ffffff55;border-radius:50%;background:#222a;color:white;font:36px/1 Arial;cursor:pointer}.gallery-arrow:disabled{opacity:.3;cursor:default}.gallery-prev{left:16px}.gallery-next{right:16px}.gallery-error{max-width:500px;text-align:center}.gallery-footer{flex-shrink:0;padding:0 20px max(16px,env(safe-area-inset-bottom));max-height:140px}.gallery-count{text-align:center;font-size:14px;margin:4px 0 10px}.gallery-thumbs{display:flex;gap:8px;overflow-x:auto;padding:4px;max-width:850px;margin:auto}.gallery-thumbs button{flex:0 0 72px;padding:0;border:2px solid transparent;background:#30343a;cursor:pointer;height:54px}.gallery-thumbs button[aria-pressed=true]{border-color:#f2c500}.gallery-thumbs img{display:block;width:100%;height:100%;object-fit:cover}.project-card button:focus-visible,.project-gallery button:focus-visible{outline:3px solid #c59c00;outline-offset:4px}@media(max-width:650px){#project-list{grid-template-columns:1fr;gap:24px}.project-copy{padding:24px}.project-copy h3{font-size:1.9rem}.gallery-header{padding-left:16px;padding-right:16px;gap:10px}.gallery-close{padding:12px;font-size:14px}.gallery-stage{padding:10px 0}.gallery-arrow{height:44px;width:44px;background:#111b;z-index:1}.gallery-prev{left:8px}.gallery-next{right:8px}.gallery-header h2{font-size:22px}.gallery-footer{padding-left:12px;padding-right:12px}}@media(prefers-reduced-motion:reduce){.project-cover img{transition:none}}

/* Compact project covers; full details and all photos open on selection. */
#project-list{grid-template-columns:repeat(4,minmax(0,1fr));gap:18px}
.project-card:has(.project-open){cursor:pointer}
.project-cover{overflow:hidden}
.project-cover img{aspect-ratio:16/10;max-height:190px}
.project-copy{padding:14px 16px}
.project-copy h3{font-size:1.35rem;line-height:1.2;margin-bottom:6px}
.project-photo-count{bottom:10px;left:10px;font-size:14px;padding:4px 8px}
.project-open{padding:8px 0;min-height:44px;font-size:14px}
@media(max-width:1200px){#project-list{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:900px){#project-list{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}}
@media(max-width:540px){#project-list{grid-template-columns:1fr;gap:16px}.project-cover img{aspect-ratio:2/1;max-height:175px}}
