/* Shared gallery presentation; items and captions are managed in the CMS. */
.md-clinic-gallery{min-width:0;scroll-margin-top:120px}
.md-clinic-gallery h2{margin-bottom:20px}
.md-clinic-gallery .md-gallery-heading{display:flex;align-items:center;justify-content:space-between;gap:24px;margin-bottom:20px}
.md-clinic-gallery .md-gallery-heading h2{flex:1;min-width:0;margin-bottom:0}
.md-clinic-gallery .md-gallery-controls{display:flex;align-items:center;justify-content:flex-end;gap:10px;flex:0 0 170px;max-width:100%;margin:0 0 18px}
.md-clinic-gallery .md-gallery-heading .md-gallery-controls{margin-bottom:0}
.md-clinic-gallery [data-gallery-status]{color:#527071;font-size:14px;line-height:1.45;font-variant-numeric:tabular-nums;white-space:nowrap}
.md-clinic-gallery [data-gallery-prev],.md-clinic-gallery [data-gallery-next]{display:inline-flex;align-items:center;justify-content:center;flex:0 0 44px;width:44px;min-height:44px;padding:8px;border:1px solid #c0d6ce;border-radius:50%;background:#fff;color:#166e70;font:inherit;font-size:24px;line-height:1;cursor:pointer;transition:background-color .15s,border-color .15s}
.md-clinic-gallery [data-gallery-prev]:hover:not(:disabled),.md-clinic-gallery [data-gallery-next]:hover:not(:disabled){background:#edf5f1;border-color:#4e9286}
.md-clinic-gallery [data-gallery-prev]:disabled,.md-clinic-gallery [data-gallery-next]:disabled{opacity:.38;cursor:default}
.md-clinic-gallery .md-gallery-track{display:flex;align-items:stretch;gap:24px;min-width:0;overflow-x:auto;overflow-y:hidden;scroll-snap-type:x mandatory;overscroll-behavior-x:contain;scrollbar-width:thin;scrollbar-color:#92b7ac #edf4f0;padding:3px 0 14px;-webkit-overflow-scrolling:touch}
.md-clinic-gallery .md-gallery-track::-webkit-scrollbar{height:7px}
.md-clinic-gallery .md-gallery-track::-webkit-scrollbar-track{background:#edf4f0;border-radius:5px}
.md-clinic-gallery .md-gallery-track::-webkit-scrollbar-thumb{background:#92b7ac;border-radius:5px}
.md-clinic-gallery .md-gallery-item{box-sizing:border-box;display:flex;flex-direction:column;flex:0 0 calc((100% - 24px)/2);min-width:0;margin:0;border:1px solid #d7e4de;border-radius:18px;overflow:hidden;background:#f2f6f3;scroll-snap-align:start}
.md-clinic-gallery .md-gallery-item[hidden]{display:none}
.md-clinic-gallery .md-gallery-item>img,.md-clinic-gallery .md-gallery-item>video{display:block;flex:0 0 auto;width:100%;height:auto;max-width:100%;aspect-ratio:4/3;object-fit:contain;object-position:center;background:#edf2ee}
.md-clinic-gallery .md-gallery-item>video{color:#224448;background:#e7eeea}
.md-clinic-gallery .md-gallery-item>img[role="button"]{cursor:zoom-in}
.md-clinic-gallery .md-gallery-item figcaption{flex:1;margin:0;padding:18px 21px;background:#fff;color:#35595b;font-size:15px;line-height:1.55;overflow-wrap:anywhere}
.md-clinic-gallery .md-gallery-item figcaption p{margin:0}
.md-clinic-gallery .md-gallery-item figcaption strong,.md-clinic-gallery .md-gallery-item figcaption span{display:block}
.md-clinic-gallery .md-gallery-item figcaption strong+span{margin-top:4px}
.md-clinic-gallery .md-gallery-item figcaption a{color:#166e70;text-decoration:underline;text-underline-offset:3px}
.md-clinic-gallery .md-gallery-note{margin:14px 0 0;color:#527071;font-size:14px;line-height:1.55}
.md-clinic-gallery button:focus-visible,.md-clinic-gallery .md-gallery-track:focus-visible,.md-clinic-gallery video:focus-visible,.md-clinic-gallery img[role="button"]:focus-visible,.md-gallery-viewer button:focus-visible{outline:3px solid #0799b0;outline-offset:3px}
.md-gallery-viewer{box-sizing:border-box;width:fit-content;max-width:90vw;max-height:calc(100vh - 24px);max-height:calc(100dvh - 24px);padding:14px;border:0;border-radius:18px;background:#fff;color:#224448;box-shadow:0 20px 70px rgba(0,0,0,.25);overflow:auto}
.md-gallery-viewer::backdrop{background:rgba(12,27,29,.8)}
.md-gallery-viewer .md-gallery-viewer-toolbar{display:flex;justify-content:flex-end;margin-bottom:10px}
.md-gallery-viewer .md-gallery-viewer-close{display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;flex:0 0 44px;padding:0;border:1px solid #c0d6ce;border-radius:50%;background:#fff;color:#166e70;font:inherit;font-size:28px;line-height:1;cursor:pointer}
.md-gallery-viewer .md-gallery-viewer-close:hover{background:#edf5f1}
.md-gallery-viewer figure{margin:0}
.md-gallery-viewer img{display:block;width:auto;height:auto;max-width:calc(90vw - 28px);max-height:80vh;max-height:min(80vh,calc(100dvh - 146px));object-fit:contain;margin:0 auto}
.md-gallery-viewer figcaption{max-width:100%;margin:12px 0 0;font-size:14px;line-height:1.5;overflow-wrap:anywhere;text-align:center}
body:has(.md-gallery-viewer[open]){overflow:hidden}
@media(max-width:700px){.md-clinic-gallery .md-gallery-heading{flex-wrap:wrap;gap:18px}.md-clinic-gallery .md-gallery-heading h2{flex-basis:100%}.md-clinic-gallery .md-gallery-heading .md-gallery-controls{margin-left:auto}.md-clinic-gallery .md-gallery-track{gap:16px}.md-clinic-gallery .md-gallery-item{flex-basis:100%;border-radius:14px}.md-clinic-gallery .md-gallery-item figcaption{padding:16px 18px}.md-clinic-gallery .md-gallery-controls{margin-bottom:14px}.md-clinic-gallery [data-gallery-status]{font-size:13px}}
@media(prefers-reduced-motion:reduce){.md-clinic-gallery button{transition:none}.md-clinic-gallery .md-gallery-track{scroll-behavior:auto}}
