.gallery-page{background:#030303}
.gallery-page .gallery-hero{min-height:270px;background-image:url('../images/about-workshop-wide.png');background-position:center 60%;border-bottom:1px solid #987300}
.gallery-page .gallery-hero:after{background:linear-gradient(90deg,#030303 10%,rgba(3,3,3,.88) 40%,rgba(3,3,3,.15))}
.gallery-page .gallery-hero .hero-copy{position:relative;z-index:1;padding:35px 0}
.gallery-page .gallery-hero small{color:var(--yellow);letter-spacing:2px}
.gallery-page .gallery-hero p{font-size:17px;max-width:440px}
.gallery-page .gallery-wrap{background:#030303;padding:35px 0 50px}
.gallery-page .gallery-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
.gallery-page .gallery-grid a{position:relative;display:block;aspect-ratio:4/3;background:#151515;border:1px solid #383838;padding:5px;transition:border-color .2s}
.gallery-page .gallery-grid img{display:block;width:100%;height:100%;object-fit:cover;transition:transform .25s;transform:none}
.gallery-page .gallery-grid a:hover{border-color:var(--yellow)}
.gallery-page .gallery-grid a:hover img{transform:scale(1.025)}
.gallery-page .gallery-grid a:focus-visible{outline:2px solid var(--yellow);outline-offset:4px}
.gallery-page .booking-strip{border-top:1px solid #987300}
.gallery-viewer{border:1px solid #555;background:#070707;color:#fff;padding:50px 54px 38px;width:min(1100px,96vw);max-width:96vw;max-height:94vh;margin:auto}
.gallery-viewer::backdrop{background:rgba(0,0,0,.92)}
.gallery-viewer img{display:block;max-width:100%;width:auto;max-height:75vh;object-fit:contain;margin:auto}
.gallery-viewer button{position:absolute;background:#111;border:1px solid #777;color:var(--yellow);width:36px;height:36px;font:25px/1 Arial;cursor:pointer}
.gallery-viewer button:focus-visible{outline:2px solid var(--yellow);outline-offset:3px}
.gallery-viewer-close{top:8px;right:10px}.gallery-viewer-prev{left:9px;top:48%}.gallery-viewer-next{right:9px;top:48%}
.gallery-viewer-count{position:absolute;bottom:8px;left:0;right:0;text-align:center;font-size:14px;color:#ddd;margin:0}
.contact-workshop-photo{margin:24px 0 0;border:1px solid #987300;background:#030303}
.contact-workshop-photo img{display:block;width:100%;height:auto;max-height:380px;object-fit:cover;object-position:center 65%}
.contact-workshop-photo figcaption{font-size:14px;padding:10px 14px;color:#ddd}
@media(max-width:800px){.gallery-page .gallery-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}}
@media(max-width:480px){.gallery-page .gallery-grid{grid-template-columns:1fr}.gallery-page .gallery-hero{min-height:250px}.gallery-viewer{padding:48px 40px 38px}}
@media(prefers-reduced-motion:reduce){.gallery-page .gallery-grid img,.gallery-page .gallery-grid a{transition:none}}

.gallery-page .gallery-grid{grid-template-columns:repeat(auto-fit,minmax(160px,200px));justify-content:center;gap:16px}
.gallery-page .gallery-grid a{aspect-ratio:1;padding:0;border-color:#8c6d12}
.gallery-page .gallery-grid img{object-fit:contain;filter:none;image-rendering:auto}
.gallery-page .gallery-grid a:hover img{transform:none}
@media(max-width:480px){.gallery-page .gallery-grid{grid-template-columns:repeat(2,minmax(0,200px));gap:10px}}

/* Larger frames; original image dimensions remain the enlargement limit. */
.gallery-page .gallery-grid{grid-template-columns:repeat(auto-fit,minmax(180px,240px));gap:16px}
.gallery-page .gallery-grid a{display:flex;align-items:center;justify-content:center;background:#090909}
.gallery-page .gallery-grid img{width:100%;height:auto;max-height:100%;object-fit:contain}

@media(max-width:480px){.gallery-page .gallery-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}}
