/* Detail pages only: the portfolio overview retains its original stylesheet. */
.page-project-gallery .page-hero h1{font-size:clamp(2.6rem,6vw,5.5rem);overflow-wrap:anywhere}
.gallery-return{display:inline-block;color:var(--gold);margin-bottom:24px;text-underline-offset:5px}
.project-gallery{max-width:var(--max);margin:auto;padding:38px 24px 56px}
.gallery-summary{color:var(--muted);margin-bottom:24px}
.gallery-photos{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:28px 20px}
.gallery-photos figure{margin:0;min-width:0}
.gallery-photo-link{display:block;background:var(--coal);cursor:zoom-in}
.gallery-photo-link img{width:100%;height:auto;aspect-ratio:3/2;object-fit:contain}
.gallery-photos figcaption{padding-top:10px;font-size:.9rem;color:var(--muted)}
.page-project-gallery a:focus-visible,.page-project-gallery button:focus-visible{outline:3px solid var(--gold);outline-offset:4px}
.gallery-lightbox{width:min(94vw,1600px);padding:54px 14px 14px;max-height:94dvh;overflow:auto}
.gallery-lightbox img{max-height:calc(94dvh - 130px)}
.gallery-controls{display:flex;align-items:center;justify-content:center;gap:20px;padding-top:14px;color:#fff}
.gallery-controls button{font:inherit;background:var(--coal);border:1px solid var(--gold);color:#fff;padding:6px 14px;cursor:pointer}
.gallery-lightbox .lightbox-close{min-width:44px;min-height:44px}
@media(max-width:600px){.gallery-photos{grid-template-columns:minmax(0,1fr);gap:24px}.project-gallery{padding-top:28px}.gallery-controls{gap:10px;font-size:.85rem}}
@media(prefers-reduced-motion:reduce){.page-project-gallery{scroll-behavior:auto}}
