/* Project-photo enhancement; original image links work without JavaScript. */
.project-photo-link{display:block;color:inherit}
[data-gallery-image]{cursor:zoom-in}
[data-gallery-image]:focus-visible{outline:3px solid var(--copper,#8c5f3f);outline-offset:4px}
.project-gallery-dialog{position:fixed;inset:0;width:100vw;max-width:none;height:100dvh;max-height:none;margin:0;padding:20px;border:0;background:#22272b;color:#fff;overflow:hidden}
.project-gallery-dialog::backdrop{background:#22272b}
.project-gallery-dialog[open]{display:grid;grid-template-rows:auto minmax(0,1fr) auto;gap:12px}
.project-gallery-toolbar{display:flex;align-items:center;justify-content:space-between;gap:16px}
.project-gallery-dialog button{min-width:48px;min-height:48px;border:1px solid #a3a9ac;background:#2f3336;color:#fff;font:inherit;cursor:pointer}
.project-gallery-dialog button:focus-visible{outline:3px solid #fff;outline-offset:3px}
.project-gallery-view{display:grid;grid-template-columns:48px minmax(0,1fr) 48px;gap:16px;align-items:center;min-height:0;touch-action:pan-y}
.project-gallery-view img{display:block;width:100%;height:100%;max-height:100%;min-height:0;object-fit:contain;grid-column:2;grid-row:1;user-select:none}
.project-gallery-view button:first-child{grid-column:1;grid-row:1}
.project-gallery-view button:last-child{grid-column:3;grid-row:1}
.project-gallery-caption{margin:0;max-width:none;text-align:center;font-size:15px;line-height:1.6;min-height:2em}
@media(max-width:767px){.project-gallery-dialog{padding:12px;gap:8px}.project-gallery-view{grid-template-columns:44px minmax(0,1fr) 44px;gap:4px}.project-gallery-dialog button{min-width:44px;min-height:44px}.project-gallery-caption{font-size:14px}}
