.project-gallery{padding-block:48px 80px;border-top:1px solid var(--line);scroll-margin-top:125px}
.project-gallery-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:32px;margin-bottom:32px}
.project-gallery-heading h2{font-size:clamp(34px,3.2vw,48px);margin-bottom:14px}
.project-gallery-heading p{margin:0;color:var(--muted);font-size:15px;max-width:60ch}
.gallery-total{font-size:12px;color:var(--muted);white-space:nowrap;padding-bottom:3px}
.project-gallery-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:30px 24px}
.gallery-card{margin:0;min-width:0}.gallery-card[hidden]{display:none}
.gallery-photo{display:block;position:relative;aspect-ratio:4/5;background:var(--soft);overflow:hidden;outline:1px solid rgba(0,0,0,.08);outline-offset:-1px}
.gallery-photo img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .25s ease}
.gallery-photo:focus-visible{outline:3px solid #078077;outline-offset:5px}
.gallery-enlarge{position:absolute;right:10px;bottom:10px;display:grid;place-items:center;width:36px;height:36px;background:#083e40ed;color:white;pointer-events:none}
.gallery-enlarge .icon{width:18px;height:18px}
.gallery-card figcaption{font-size:12px;line-height:1.6;color:var(--muted);padding-top:12px}
.gallery-more{display:flex;align-items:center;justify-content:space-between;gap:24px;border-top:1px solid var(--line);margin-top:30px;padding-top:24px}
.gallery-showing{margin:0;font-size:12px;color:var(--muted)}.gallery-show-more[hidden]{display:none}
.gallery-open{overflow:hidden}
.gallery-dialog{width:min(1340px,calc(100vw - 48px));height:calc(100dvh - 48px);max-width:none;max-height:none;margin:auto;padding:20px 24px;border:0;background:#083e40;color:#f3f7f4;box-shadow:0 20px 80px #0005}
.gallery-dialog[open]{display:grid;grid-template-rows:auto minmax(0,1fr) auto;gap:16px}
.gallery-dialog::backdrop{background:rgba(3,24,25,.94)}
.gallery-dialog-header{display:flex;align-items:center;justify-content:space-between;gap:16px}
.gallery-dialog-header h2{font-family:var(--sans);font-size:15px;letter-spacing:0;margin:0}
.gallery-close,.gallery-previous,.gallery-next{display:grid;place-items:center;width:48px;height:48px;flex-shrink:0;border:1px solid #84f6e740;background:transparent;color:#f3f7f4;cursor:pointer;transition:background-color .15s ease,scale .15s ease}
.gallery-close:hover,.gallery-previous:hover,.gallery-next:hover{background:#ffffff14}.gallery-close:active,.gallery-previous:active,.gallery-next:active{scale:.96}
.gallery-close:focus-visible,.gallery-previous:focus-visible,.gallery-next:focus-visible{outline-color:#84f6e7}
.gallery-previous .icon{transform:rotate(180deg)}
.gallery-viewer-image{position:relative;min-height:0;display:grid;place-items:center;overflow:hidden}
.gallery-full-image{display:block;width:100%;height:100%;min-height:0;object-fit:contain}
.gallery-load-status{position:absolute;inset:auto 10px 10px;margin:0;font-size:12px;text-align:center;background:#083e40ed;padding:10px}
.gallery-load-status[hidden]{display:none}
.gallery-dialog-footer{display:flex;align-items:center;justify-content:space-between;gap:24px}
.gallery-dialog-description{text-align:center}.gallery-dialog-caption{font-size:14px;line-height:1.5;margin:0 0 4px}.gallery-counter{font-size:11px;color:#b9d8cd;font-variant-numeric:tabular-nums}
@media(hover:hover){.gallery-photo:hover img{transform:scale(1.025)}}
@media(max-width:1000px){.project-gallery-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:640px){.project-gallery{padding-block:32px 50px;scroll-margin-top:95px}.project-gallery-heading{display:block;margin-bottom:25px}.project-gallery-heading h2{font-size:34px}.project-gallery-heading p{font-size:14px}.gallery-total{display:block;margin-top:15px}.project-gallery-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:24px 16px}.gallery-card figcaption{font-size:11px;padding-top:9px}.gallery-enlarge{width:30px;height:30px;right:7px;bottom:7px}.gallery-more{align-items:flex-start;flex-direction:column;gap:17px}.gallery-dialog{width:100vw;height:100dvh;margin:0;padding:12px 16px max(16px,env(safe-area-inset-bottom));gap:12px}.gallery-dialog-header h2{font-size:13px}.gallery-dialog-footer{gap:12px}.gallery-dialog-caption{font-size:12px}.gallery-close,.gallery-previous,.gallery-next{width:44px;height:44px}}
@media(prefers-reduced-motion:reduce){.gallery-photo img,.gallery-close,.gallery-previous,.gallery-next{transition:none}.gallery-photo:hover img{transform:none}}
/* Photo framing */
.page-projects-aberthaw .gallery-photo-1 img{object-position:center 35%}
.page-projects-aberthaw .gallery-photo-2 img{object-position:center 45%}
.page-projects-aberthaw .gallery-photo-3 img{object-position:center 35%}
.page-projects-aberthaw .gallery-photo-4 img{object-position:center}
.page-projects-aberthaw .gallery-photo-5 img{object-position:center}
.page-projects-aberthaw .gallery-photo-6 img{object-position:center 30%}
.page-projects-aberthaw .gallery-photo-7 img{object-position:center}
.page-projects-aberthaw .gallery-photo-8 img{object-position:center}
.page-projects-aberthaw .gallery-photo-9 img{object-position:center}
.page-projects-aberthaw .gallery-photo-10 img{object-position:center}
.page-projects-aberthaw .gallery-photo-11 img{object-position:center 25%}
.page-projects-aberthaw .gallery-photo-12 img{object-position:center}
.page-projects-aberthaw .gallery-photo-13 img{object-position:center}
.page-projects-aberthaw .gallery-photo-14 img{object-position:center}
.page-projects-aberthaw .gallery-photo-15 img{object-position:center}
.page-projects-aberthaw .gallery-photo-16 img{object-position:center}
.page-projects-aberthaw .gallery-photo-17 img{object-position:center 25%}
.page-projects-aberthaw .gallery-photo-18 img{object-position:center}
.page-projects-aberthaw .gallery-photo-19 img{object-position:center}
.page-projects-aberthaw .gallery-photo-20 img{object-position:center}
.page-projects-aberthaw .gallery-photo-21 img{object-position:center}
.page-projects-aberthaw .gallery-photo-22 img{object-position:center}
.page-projects-aberthaw .gallery-photo-23 img{object-position:center 25%}
.page-projects-aberthaw .gallery-photo-24 img{object-position:center}

/* Adelaide photographs and portrait footage retain their original full-view framing. */
.page-projects-adelaide .gallery-photo{aspect-ratio:4/3}
.gallery-total a{color:var(--ink);text-underline-offset:4px}
.project-videos{margin-top:64px;padding-top:40px;border-top:1px solid var(--line);scroll-margin-top:125px}
.project-videos-heading{margin-bottom:28px}.project-videos-heading h3{font-size:32px;margin:0 0 12px}.project-videos-heading p{font-size:15px;color:var(--muted);margin:0}
.project-video-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:32px}
.project-video{margin:0;min-width:0}.project-video video{display:block;width:100%;height:560px;max-height:70dvh;object-fit:contain;background:#083e40}
.project-video figcaption{padding-top:18px}.project-video-title{display:flex;justify-content:space-between;align-items:baseline;gap:16px}.project-video-title h4{font-family:var(--sans);font-size:16px;line-height:1.5;margin:0}.project-video-title span{font-size:12px;white-space:nowrap;color:var(--muted);font-variant-numeric:tabular-nums}.project-video figcaption p{font-size:13px;line-height:1.7;color:var(--muted);margin:8px 0 0}
@media(max-width:640px){.project-videos{margin-top:44px;padding-top:30px;scroll-margin-top:95px}.project-video-grid{grid-template-columns:1fr;gap:36px}.project-video video{height:480px}.project-videos-heading h3{font-size:28px}.project-video-title{align-items:flex-start}.project-video-title h4{font-size:15px}}
