/* A short strip preserves the supplied photographs' full aspect ratios. */
#clinic-gallery{padding-block:24px;--gallery-photo-height:180px}
.clinic-gallery-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:16px}
#clinic-gallery h2{font-size:30px;line-height:1.2;letter-spacing:-.04em;margin:0}
#clinic-gallery h2 span{color:#d90000}
.clinic-gallery-controls{display:flex;gap:8px;flex-shrink:0}
.clinic-gallery-controls[hidden]{display:none}
.clinic-gallery-controls button,.clinic-photo-arrow,.clinic-photo-close{display:grid;place-items:center;width:44px;height:44px;min-width:44px;min-height:44px;border:1px solid #e8e8e8;border-radius:50%;background:#fff;color:#000;cursor:pointer;padding:0}
.clinic-gallery-controls button:disabled{opacity:.35;cursor:default}
.clinic-gallery-controls [data-clinic-scroll="previous"] .icon,.clinic-photo-arrow[data-clinic-full="previous"] .icon{rotate:180deg}
.clinic-gallery-controls .icon,.clinic-photo-arrow .icon{width:20px;height:20px}
.clinic-gallery-track{display:flex;gap:12px;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:none;-ms-overflow-style:none;padding:3px 3px 8px;overscroll-behavior-x:contain}
.clinic-gallery-item{display:block;flex:0 0 auto;width:calc(var(--photo-ratio)*var(--gallery-photo-height));height:var(--gallery-photo-height);overflow:hidden;border-radius:16px;background:#f5f5f5;border:1px solid #e8e8e8;scroll-snap-align:start}
.clinic-gallery-item img{width:100%;height:100%;display:block;object-fit:contain}
.clinic-gallery-track:focus-visible,.clinic-gallery-item:focus-visible,.clinic-gallery-controls button:focus-visible,.clinic-photo-dialog button:focus-visible{outline:3px solid #d90000;outline-offset:2px}
.clinic-photo-dialog{width:min(1100px,calc(100vw - 32px));max-width:calc(100vw - 32px);max-height:calc(100dvh - 32px);padding:16px;border:0;border-radius:24px;background:#fff;color:#000}
.clinic-photo-dialog::backdrop{background:#000b}
.clinic-photo-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:8px}
.clinic-photo-heading h3{font-size:18px;line-height:1.4;margin:0}
.clinic-photo-close{font-size:28px;line-height:1}
.clinic-photo-full{display:block;width:100%;height:min(680px,calc(100dvh - 180px));object-fit:contain;border-radius:8px}
.clinic-photo-navigation{display:flex;align-items:center;justify-content:center;gap:24px;margin-top:12px;font-size:14px;font-variant-numeric:tabular-nums}
@media(hover:hover){.clinic-gallery-item:hover,.clinic-gallery-controls button:not(:disabled):hover,.clinic-photo-dialog button:hover{border-color:#d90000}}
@media(max-width:767px){#clinic-gallery{padding-block:20px;--gallery-photo-height:160px}#clinic-gallery h2{font-size:28px}.clinic-gallery-heading{margin-bottom:12px;gap:12px}.clinic-gallery-controls{gap:4px}.clinic-gallery-track{gap:10px}.clinic-gallery-item{border-radius:14px}.clinic-photo-dialog{width:calc(100vw - 16px);max-width:calc(100vw - 16px);padding:12px;border-radius:20px;max-height:calc(100dvh - 24px)}.clinic-photo-full{height:calc(100dvh - 172px)}.clinic-photo-navigation{margin-top:8px}}

/* Hide the visual scrollbar while preserving native horizontal touch scrolling. */
.clinic-gallery-track::-webkit-scrollbar{display:none;width:0;height:0}
