/* A single, compact photo row; all rules are scoped to the implantation gallery. */
main>#clinic-gallery{padding-block:28px}
#clinic-gallery .clinic-gallery-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:18px}
#clinic-gallery h2{font-size:36px;line-height:1.15;letter-spacing:-.04em}
#clinic-gallery .clinic-gallery-controls{display:flex;align-items:center;gap:8px;flex-shrink:0}
#clinic-gallery .clinic-gallery-count{font-size:13px;color:#666;margin-right:8px;white-space:nowrap}
#clinic-gallery .clinic-gallery-arrow,#clinic-photo-dialog .clinic-photo-arrow{display:grid;place-items:center;width:44px;height:44px;min-height:44px;padding:0;border:1px solid #e8e8e8;border-radius:50%;background:#fff;color:#000;cursor:pointer;transition:color 150ms ease,border-color 150ms ease}
#clinic-gallery .clinic-gallery-arrow:hover,#clinic-photo-dialog .clinic-photo-arrow:hover{color:#d90000;border-color:#d90000}
#clinic-gallery .clinic-gallery-arrow:disabled{opacity:.35;cursor:default;color:#666;border-color:#e8e8e8}
#clinic-gallery .clinic-gallery-arrow .icon,#clinic-photo-dialog .clinic-photo-arrow .icon{width:18px;height:18px}
#clinic-gallery .clinic-gallery-back .icon,#clinic-photo-dialog .clinic-photo-back .icon{transform:rotate(180deg)}
#clinic-gallery .clinic-gallery-track{display:flex;gap:12px;overflow-x:auto;overscroll-behavior-x:contain;scroll-snap-type:x mandatory;scrollbar-width:none;-ms-overflow-style:none;padding-bottom:8px}
#clinic-gallery .clinic-gallery-track::-webkit-scrollbar{display:none;width:0;height:0}
#clinic-gallery .clinic-gallery-photo{position:relative;display:block;flex:0 0 auto;height:220px;aspect-ratio:var(--photo-ratio);border-radius:18px;overflow:hidden;scroll-snap-align:start;background:#f5f5f5}
#clinic-gallery .clinic-gallery-photo img{display:block;width:100%;height:100%;object-fit:contain;transition:filter 150ms ease}
#clinic-gallery .clinic-gallery-photo:hover img{filter:brightness(.95)}
#clinic-gallery .clinic-gallery-zoom{position:absolute;bottom:8px;right:8px;display:grid;place-items:center;width:26px;height:26px;border-radius:50%;background:rgb(255 255 255 / .9);color:#000;pointer-events:none}
#clinic-gallery .clinic-gallery-zoom svg{width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
#clinic-gallery a:focus-visible,#clinic-gallery button:focus-visible,#clinic-gallery .clinic-gallery-track:focus-visible,#clinic-photo-dialog button:focus-visible{outline:2px solid #000;outline-offset:3px}
#clinic-photo-dialog{width:960px;max-width:calc(100% - 32px);padding:16px;border-radius:24px}
#clinic-photo-dialog .clinic-photo-toolbar{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:12px}
#clinic-photo-dialog .dialog-close{margin:0;min-width:44px;min-height:44px}
#clinic-photo-dialog .clinic-photo-counter{font-size:14px;color:#666}
#clinic-photo-dialog figure{margin:0}
#clinic-photo-dialog .clinic-photo-full{display:block;width:100%;height:min(62dvh,680px);object-fit:contain;background:#f5f5f5;border-radius:12px}
#clinic-photo-dialog figcaption{text-align:center;font-size:16px;line-height:1.5;margin-top:12px}
#clinic-photo-dialog .clinic-photo-navigation{display:flex;justify-content:center;gap:12px;margin-top:12px}
@media(max-width:767px){
 main>#clinic-gallery{padding-block:32px}
 #clinic-gallery h2{font-size:28px}
 #clinic-gallery .clinic-gallery-heading{gap:8px;margin-bottom:18px}
 #clinic-gallery .clinic-gallery-controls{gap:4px}
 #clinic-gallery .clinic-gallery-count{font-size:12px;margin-right:2px}
 #clinic-gallery .clinic-gallery-track{gap:10px}
 #clinic-gallery .clinic-gallery-photo{height:220px;border-radius:14px}
 #clinic-photo-dialog{padding:12px;max-width:calc(100% - 20px);border-radius:20px}
 #clinic-photo-dialog .clinic-photo-full{height:56dvh}
}
@media(prefers-reduced-motion:reduce){#clinic-gallery .clinic-gallery-arrow,#clinic-gallery img,#clinic-photo-dialog .clinic-photo-arrow{transition:none}}


/* Branch names are informational labels above the gallery. */
#clinic-gallery .clinic-gallery-branches {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
}
#clinic-gallery .clinic-gallery-branches li {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 12px 24px;
  border: 1px solid #666;
  border-radius: 999px;
  background: #fff;
  color: #000;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
}
@media (max-width: 767px) {
  #clinic-gallery .clinic-gallery-branches {
    gap: 8px;
    margin-bottom: 18px;
  }
  #clinic-gallery .clinic-gallery-branches li {
    min-height: 44px;
    padding: 10px 16px;
    font-size: 12px;
  }
}
