/* Gallery page */
.gallery-head { text-align: center; max-width: 42rem; margin: 0 auto 2.5rem; }
.gallery-head .btn-row, .gallery-foot { justify-content: center; }
.gallery-foot { margin-top: 2.5rem; }
.gallery-grid { list-style: none; margin: 0; padding: 0; columns: 4 240px; column-gap: 1rem; }
.gallery-item { break-inside: avoid; margin: 0 0 1rem; }
.gallery-item a { display: block; border-radius: 14px; overflow: hidden; background: var(--color-surface-alt, #EDE4D9); box-shadow: 0 1px 2px rgba(42,46,43,.08); }
.gallery-item img { display: block; width: 100%; height: auto; transition: transform .4s ease, opacity .3s; }
.gallery-item a:hover img, .gallery-item a:focus-visible img { transform: scale(1.04); }
.gallery-item a:focus-visible { outline: 3px solid var(--color-gold-ui, #9A7B3C); outline-offset: 3px; }
@media (max-width: 560px) { .gallery-grid { columns: 2; column-gap: .6rem; } .gallery-item { margin-bottom: .6rem; } }
.lightbox { position: fixed; inset: 0; z-index: 1000; background: rgba(20,22,21,.92); display: flex; align-items: center; justify-content: center; padding: 3.5rem 4rem; }
.lightbox[hidden] { display: none; }
.lightbox figure { margin: 0; max-width: 100%; max-height: 100%; text-align: center; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 8rem); width: auto; height: auto; border-radius: 8px; }
.lightbox figcaption { color: #F6F1E8; font-size: .9rem; margin-top: .75rem; }
.lightbox__btn { position: absolute; background: rgba(255,255,255,.12); color: #fff; border: 0; border-radius: 999px; width: 48px; height: 48px; font-size: 2rem; line-height: 1; cursor: pointer; display: grid; place-items: center; }
.lightbox__btn:hover, .lightbox__btn:focus-visible { background: rgba(255,255,255,.28); }
.lightbox__close { top: 1rem; right: 1rem; }
.lightbox__prev { left: 1rem; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 1rem; top: 50%; transform: translateY(-50%); }
@media (max-width: 640px) { .lightbox { padding: 3.5rem .5rem; } .lightbox__prev, .lightbox__next { top: auto; bottom: 1rem; transform: none; } }
@media (prefers-reduced-motion: reduce) { .gallery-item img { transition: none; } }
/* Service card photos */
/* 8-card services grid: 4 x 2 on wide screens */
@media (min-width: 1100px) { .services-grid--8 { grid-template-columns: repeat(4, 1fr); } }
