/* Gallery-only additions: shared navigation, footer and breakpoints are preserved. */
.gallery-page .page-hero[data-hero-template="gallery"]{background:linear-gradient(125deg,#141b2b,#24324a);color:#fff}
.gallery-page .page-hero h1,.gallery-page .page-hero .lead,.gallery-page .page-hero .breadcrumb,.gallery-page .page-hero .breadcrumb a{color:#fff}
.gallery-page .page-hero .lead{max-width:660px;line-height:1.65}
.gallery-page .page-hero .breadcrumb{opacity:.88}
.gallery-page .page-hero-art{color:#fff;border-color:rgba(255,255,255,.22)}
.gallery-page .page-hero-art-label,.gallery-page .page-hero-art-detail{color:#e3e8f0}
.gallery-page .page-hero-mark{color:#fff}
.sb-gallery-actions{display:flex;flex-wrap:wrap;align-items:center;gap:16px;margin-top:24px}
.sb-gallery-hero-link{color:#fff;text-decoration:underline;text-underline-offset:4px;min-height:44px;display:inline-flex;align-items:center}
.sb-gallery-intro{max-width:780px;margin-bottom:28px}
.sb-gallery-intro h2{margin:0 0 14px;font-size:clamp(1.65rem,3vw,2.25rem);line-height:1.2}
.sb-gallery-intro p{margin:0;line-height:1.7;color:var(--ink2,#253044)}
.sb-gallery-filters{display:flex;flex-wrap:wrap;gap:10px;margin:0 0 16px}
.sb-gallery-filters button,.sb-gallery-more,.sb-gallery-dialog button{font:inherit;font-weight:700;min-height:44px;padding:10px 16px;border:1px solid #c9d0da;border-radius:9px;background:#fff;color:#141b2b;cursor:pointer}
.sb-gallery-filters button[aria-pressed="true"]{background:#141b2b;border-color:#141b2b;color:#fff}
.sb-gallery-filters button:hover,.sb-gallery-more:hover,.sb-gallery-dialog button:hover{border-color:#b91c1c}
.sb-gallery-status{margin:0 0 24px;color:#4a5568;font-size:.95rem;min-height:1.5em}
.sb-gallery-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px;align-items:stretch}
.sb-gallery-card{min-width:0;max-width:394px;width:100%;margin:0 auto;border:1px solid #e0e5ed;border-radius:16px;background:#fff;overflow:hidden;box-shadow:0 5px 18px rgba(20,27,43,.05);display:flex;flex-direction:column}
.sb-gallery-image{display:block;position:relative;background:#eef1f5;line-height:0}
.sb-gallery-image img{display:block;width:100%;height:auto;aspect-ratio:394/296;object-fit:contain;margin:0}
.sb-gallery-image:after{content:"View photo";position:absolute;bottom:12px;right:12px;background:#141b2b;color:#fff;border:1px solid rgba(255,255,255,.5);border-radius:6px;padding:8px 10px;line-height:1;font-size:12px;font-weight:700}
.sb-gallery-caption{padding:20px;display:flex;flex-direction:column;flex:1}
.sb-gallery-category{margin:0 0 9px;color:#9f1723;font-size:.75rem;font-weight:800;letter-spacing:.07em;text-transform:uppercase}
.sb-gallery-caption h3{font-size:1.12rem;line-height:1.35;margin:0 0 10px;color:#141b2b;overflow-wrap:anywhere}
.sb-gallery-caption p:not(.sb-gallery-category){font-size:.95rem;line-height:1.6;color:#4a5568;margin:0 0 14px}
.sb-gallery-service{display:inline-flex;align-items:center;min-height:44px;margin-top:auto;color:#991b1b;font-size:.94rem;font-weight:700;text-decoration:underline;text-underline-offset:3px}
.sb-gallery-more-wrap{display:flex;justify-content:center;margin-top:32px}
.sb-gallery-more{padding:12px 24px}
.sb-gallery-next{background:#f6f8fb;border-top:1px solid #e6eaf0;border-bottom:1px solid #e6eaf0}
.sb-gallery-next .wrap{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:28px;align-items:center}
.sb-gallery-next h2{margin:0 0 12px;font-size:clamp(1.5rem,3vw,2rem);line-height:1.25}
.sb-gallery-next p{max-width:720px;margin:0;line-height:1.7}
.sb-gallery-next p a{color:#991b1b;font-weight:700;text-decoration:underline;text-underline-offset:3px}
.sb-gallery-faq{max-width:860px;margin:0 auto}
.sb-gallery-faq h2{margin:0 0 24px;font-size:clamp(1.6rem,3vw,2rem);line-height:1.25}
.sb-gallery-faq details{border-bottom:1px solid #dce2eb;padding:8px 0}
.sb-gallery-faq summary{cursor:pointer;min-height:48px;padding:12px 4px;font-weight:700;color:#141b2b;line-height:1.5}
.sb-gallery-faq details p{margin:4px 0 18px;padding:0 4px;line-height:1.75;color:#4a5568}
.sb-gallery-dialog{width:calc(100% - 32px);max-width:620px;max-height:calc(100vh - 32px);max-height:calc(100dvh - 32px);margin:auto;padding:24px;border:1px solid #dce2eb;border-radius:16px;overflow:auto;background:#fff;color:#141b2b;box-shadow:0 20px 80px rgba(0,0,0,.3)}
.sb-gallery-dialog:not([open]){display:none}
.sb-gallery-dialog::backdrop{background:rgba(8,15,27,.8)}
.sb-gallery-dialog-top{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:16px}
.sb-gallery-dialog-count{font-size:.9rem;color:#4a5568}
.sb-gallery-dialog figure{margin:0}
.sb-gallery-dialog img{display:block;max-width:100%;width:394px;height:auto;max-height:48vh;object-fit:contain;margin:0 auto 20px;border-radius:10px;background:#eef1f5}
.sb-gallery-dialog h2{font-size:1.3rem;line-height:1.35;margin:0 0 10px}
.sb-gallery-dialog p{line-height:1.6;margin:0 0 8px}
.sb-gallery-dialog-nav{display:flex;justify-content:space-between;gap:16px;margin-top:16px;border-top:1px solid #e6eaf0;padding-top:16px}
.sb-gallery-dialog button:disabled{opacity:.5;cursor:default}
.gallery-page .sb-gallery-image:focus-visible{outline:3px solid #b91c1c;outline-offset:-3px}
.gallery-page .sb-gallery-filters button:focus-visible,.gallery-page .sb-gallery-more:focus-visible,.gallery-page .sb-gallery-dialog button:focus-visible,.gallery-page .sb-gallery-service:focus-visible,.gallery-page .sb-gallery-faq summary:focus-visible{outline:3px solid #b91c1c;outline-offset:3px}
@media(max-width:900px){.sb-gallery-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}.sb-gallery-next .wrap{grid-template-columns:1fr}.sb-gallery-next .btn{justify-self:start}}
@media(max-width:560px){.sb-gallery-grid{grid-template-columns:minmax(0,1fr)}.sb-gallery-caption{padding:18px}.sb-gallery-filters{gap:8px}.sb-gallery-filters button{padding:10px 12px;font-size:.88rem}.sb-gallery-dialog{padding:16px}.sb-gallery-actions{gap:12px}.sb-gallery-intro{margin-bottom:24px}}
