.photo-preview{display:grid;grid-template-columns:repeat(auto-fill,minmax(125px,1fr));gap:12px;margin-top:14px}.project-photos{grid-column:1/-1}.project-photos summary{cursor:pointer;font-weight:600}.project-photos summary span{font-weight:400;color:#6e8077;margin-left:8px}.report-gallery{margin-top:32px}.gallery-status{font-size:14px;color:#64796e}.gallery-group{margin-top:26px}.gallery-group h3{font-size:19px;color:#184f3e;margin-bottom:14px}.gallery-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.gallery-grid figure{margin:0;min-width:0}.gallery-thumb{display:block;width:100%;padding:0;border:1px solid #dbe6df;border-radius:14px;overflow:hidden;background:#f0f4ed;cursor:zoom-in}.gallery-preview{display:flex;aspect-ratio:4/3;align-items:center;justify-content:center}.gallery-preview img{display:block;width:100%;height:100%;object-fit:cover}.gallery-placeholder{display:block;padding:18px;text-align:center;color:#60736a;font-size:14px;line-height:1.5}.gallery-grid figcaption{font-size:13px;line-height:1.5;margin-top:8px;color:#64776d;overflow-wrap:anywhere}.gallery-lightbox{box-sizing:border-box;width:min(1100px,96vw);max-height:94dvh;padding:52px 22px 20px;border:1px solid #d5e1d9;border-radius:20px;background:#fafcf8;color:#194b3b}.gallery-lightbox::backdrop{background:rgba(9,29,22,.85)}.gallery-close{position:absolute;right:14px;top:8px;font-size:30px;background:transparent;border:0;color:inherit;cursor:pointer;width:44px;height:44px}.gallery-frame{display:flex;min-height:140px;align-items:center;justify-content:center}.gallery-frame img{max-width:100%;max-height:65dvh;object-fit:contain;display:block}.gallery-caption{font-size:14px;text-align:center;overflow-wrap:anywhere}.gallery-controls{display:flex;align-items:center;justify-content:space-between;gap:12px}.gallery-controls button,.gallery-controls a{padding:10px 12px;border:1px solid #cddcd2;border-radius:10px;font-size:14px;background:#fff;color:#155640;text-decoration:none;cursor:pointer}.gallery-thumb:focus-visible,.gallery-controls :focus-visible{outline:3px solid #73966a;outline-offset:3px}@media(max-width:600px){.gallery-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.gallery-lightbox{padding:52px 12px 16px}.gallery-controls{flex-wrap:wrap;justify-content:center}.gallery-controls a{order:3}.gallery-group h3{font-size:18px}}@media print{.gallery-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}.gallery-grid figure{break-inside:avoid}.gallery-preview{height:200px;aspect-ratio:auto}.gallery-preview img{object-fit:contain}.gallery-thumb{border:0;background:none}.gallery-lightbox{display:none!important}.gallery-status{display:none}.report-gallery{break-before:auto}.gallery-group h3{break-after:avoid}}

.gallery-grid figure:only-child{grid-column:1/-1;width:100%;max-width:520px}

.gallery-project .gallery-preview img{object-fit:contain;background:#fff}

/* Full-screen photo viewer, with controls floating above an uninterrupted image. */
html.gallery-viewing{overflow:hidden;overscroll-behavior:none}
.gallery-lightbox{position:fixed;inset:0;width:100vw;max-width:none;height:100dvh;max-height:none;margin:0;padding:0;border:0;border-radius:0;background:#090d0b;color:#fff;overflow:hidden;overscroll-behavior:none;isolation:isolate}
.gallery-lightbox::backdrop{background:#090d0b}
.gallery-lightbox::before,.gallery-lightbox::after{content:'';position:absolute;left:0;right:0;pointer-events:none;z-index:1}
.gallery-lightbox::before{top:0;height:150px;background:linear-gradient(#0009,transparent)}
.gallery-lightbox::after{bottom:0;height:200px;background:linear-gradient(transparent,#000b)}
.gallery-frame{position:absolute;inset:0;min-height:0;width:100%;height:100%;display:flex;align-items:center;justify-content:center;touch-action:none;overflow:hidden;z-index:0}
.gallery-frame img{width:auto;height:auto;max-width:100%;max-height:100%;object-fit:contain;display:block;transform-origin:center;will-change:transform;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none}
.gallery-frame>p{font-size:14px;line-height:1.6;padding:24px;text-align:center;color:#d8e2da}
.gallery-frame>button{border:1px solid #54645a;background:#26352c;color:#fff;border-radius:24px;min-height:44px;padding:10px 18px}
.gallery-lightbox .gallery-close{position:absolute;right:max(20px,env(safe-area-inset-right));top:max(18px,env(safe-area-inset-top));z-index:3;display:grid;place-items:center;width:44px;height:44px;min-height:44px;border:1px solid #ffffff30;border-radius:50%;padding:0;background:#25352bd9;color:#fff;font-size:30px;line-height:1}
.gallery-caption{position:absolute;top:max(23px,env(safe-area-inset-top));left:72px;right:72px;margin:0;text-align:center;z-index:2;color:#fff;font-size:13px;line-height:1.5;letter-spacing:.1px;pointer-events:none}
.gallery-controls{position:absolute;z-index:3;bottom:max(18px,env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);display:flex;align-items:center;justify-content:center;flex-wrap:nowrap;gap:14px;margin:0;width:auto}
.gallery-controls button,.gallery-controls a{display:grid;place-items:center;flex:0 0 44px;width:44px;height:44px;box-sizing:border-box;min-height:44px;padding:0;border:1px solid #ffffff30;border-radius:50%;background:#25352bd9;color:#fff;font-size:26px;line-height:1;text-decoration:none;cursor:pointer}
.gallery-controls a{order:0}
.gallery-filmstrip{position:absolute;z-index:3;bottom:calc(max(18px,env(safe-area-inset-bottom)) + 62px);left:50%;transform:translateX(-50%);display:flex;justify-content:flex-start;gap:7px;max-width:calc(100vw - 32px);padding:5px;overflow-x:auto;scrollbar-width:none;border-radius:14px;background:#142219a6}
.gallery-filmstrip::-webkit-scrollbar{display:none}
.gallery-filmstrip button{flex:0 0 44px;display:block;width:44px;height:48px;border:2px solid transparent;border-radius:8px;overflow:hidden;padding:0;background:#314338;color:#fff;font-size:13px;opacity:.65}
.gallery-filmstrip button[aria-current=true]{border-color:#d8e9cf;opacity:1}
.gallery-filmstrip img{display:block;width:100%;height:100%;object-fit:cover}
.gallery-lightbox button:focus-visible,.gallery-lightbox a:focus-visible{outline:2px solid #d8e9cf;outline-offset:3px}
@media(max-width:600px){.gallery-grid{gap:10px}.gallery-thumb{border-radius:17px}.gallery-caption{font-size:12px;top:calc(max(18px,env(safe-area-inset-top)) + 6px)}.gallery-group{margin-top:22px}.gallery-lightbox .gallery-close{right:14px}}
@media(prefers-reduced-motion:no-preference){.gallery-frame img{animation:gallery-photo-in .18s ease-out}@keyframes gallery-photo-in{from{opacity:.35}to{opacity:1}}}

/* Demo photographs share a landscape crop; floor-plan thumbnails stay fully visible. */
.report-gallery-demo .gallery-preview{aspect-ratio:3/2}
.report-gallery-demo .gallery-project .gallery-preview img{object-fit:cover}
.report-gallery-demo .gallery-thumb.is-drawing .gallery-preview img{object-fit:contain;background:#fafbf8}
@media(max-width:600px){.report-gallery-demo .gallery-grid figure:last-child:nth-child(odd){grid-column:1/-1}.report-gallery-demo .gallery-grid figure:last-child:nth-child(odd) .gallery-preview{aspect-ratio:16/9}}
@media print{.report-gallery-demo .gallery-project .gallery-preview img{object-fit:contain}}
