.clinic-gallery { padding-top: 48px !important; padding-bottom: 48px !important; }
.gallery-heading { max-width: 760px; margin-bottom: 32px; }
.gallery-eyebrow { color: var(--primary); font-weight: 600; margin-bottom: 12px; }
.gallery-heading h1 { font-size: clamp(28px, 3.5vw, 44px); margin-bottom: 18px; }
.gallery-heading p:last-child { margin-bottom: 0; }
.gallery-page .gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.gallery-page .gallery-item { display: block; background: #edf3f1; border: 1px solid #dce9e4; }
.gallery-page .gallery-image { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: contain; transition: transform 200ms ease; }
.gallery-page .gallery-item:focus-visible { outline-offset: 4px; }
.gallery-viewer { border: 0; border-radius: 16px; padding: 48px 16px 16px; background: #fff; max-width: 95vw; max-height: 95dvh; }
.gallery-viewer::backdrop { background: rgb(10 30 34 / 85%); }
.gallery-viewer img { display: block; max-width: 85vw; max-height: 78dvh; width: auto; height: auto; margin: auto; }
.gallery-close { position: absolute; right: 4px; top: 2px; width: 44px; height: 44px; border: 0; background: transparent; color: #153b43; font-size: 30px; cursor: pointer; }
.gallery-page .back-to-top.is-visible { display: inline-flex; align-items: center; justify-content: center; }
@media (max-width: 991px) { .gallery-page .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 650px) {
    .clinic-gallery { padding-top: 30px !important; padding-bottom: 30px !important; }
    .gallery-heading { margin-bottom: 24px; }
    .gallery-page .gallery { grid-template-columns: minmax(0, 1fr); gap: 18px; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .gallery-page .gallery-image { transition: none; }
    .gallery-page .gallery .gallery-image:hover { transform: none; }
}
