/* Shared navigation and the clinic photo gallery. */
.header .links{gap:12px;white-space:nowrap}
.header .mobileMenu.open{max-height:calc(100vh - var(--head));max-height:calc(100dvh - var(--head));overflow-y:auto;overscroll-behavior:contain}
@media(min-width:881px) and (max-width:1200px){
  .header .links{display:none}
  .header .menuBtn{display:block}
  .header .brand{gap:10px;max-width:calc(100% - 64px)}
  .header .brandmark{width:170px;flex-basis:170px}
}
.clinicGallery{background:var(--soft)}
.clinicGalleryGrid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:20px}
.clinicPhoto{grid-column:span 2;margin:0;min-width:0;background:#fff;border:1px solid var(--line);border-radius:24px;overflow:hidden;box-shadow:var(--shadow)}
.clinicPhoto:nth-child(-n+2){grid-column:span 3}
.clinicPhotoLink{display:block;position:relative;overflow:hidden;background:#dce8ec;aspect-ratio:4/3;cursor:zoom-in}
.clinicPhoto:nth-child(-n+2) .clinicPhotoLink{aspect-ratio:16/10}
.clinicPhotoLink img{width:100%;height:100%;object-fit:cover;transition:transform .3s ease}
.clinicPhotoLink:hover img{transform:scale(1.035)}
.clinicPhotoLink:focus-visible{outline:4px solid var(--pd);outline-offset:-4px}
.clinicPhotoZoom{position:absolute;right:14px;bottom:14px;display:grid;place-items:center;width:42px;height:42px;border-radius:50%;background:rgba(255,255,255,.95);color:var(--pd);box-shadow:0 3px 14px #0002;pointer-events:none}
.clinicPhotoZoom svg{width:22px;height:22px}
.clinicPhoto figcaption{padding:17px 20px;font-weight:700;color:var(--pd);line-height:1.4}
.clinicLightbox{width:min(1320px,calc(100% - 32px));max-width:none;max-height:calc(100vh - 24px);max-height:calc(100dvh - 24px);padding:0;border:0;background:transparent;color:#fff;overflow:visible}
.clinicLightbox:not([open]){display:none}
.clinicLightbox::backdrop{background:rgba(5,19,28,.94)}
.clinicLightboxTop{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:0 4px 12px}
.clinicLightboxTitle{margin:0;font-size:16px;letter-spacing:0;line-height:1.4;font-weight:700}
.clinicLightboxButton{display:grid;place-items:center;flex:none;width:46px;height:46px;padding:0;border:1px solid #ffffff55;border-radius:50%;background:#173648dd;color:#fff;cursor:pointer}
.clinicLightboxButton:hover{background:#24607d}
.clinicLightboxButton:focus-visible{outline:3px solid var(--p);outline-offset:4px}
.clinicLightboxButton svg{width:24px;height:24px;pointer-events:none}
.clinicLightboxStage{position:relative;display:grid;place-items:center;height:min(72vh,900px);height:min(72dvh,900px);padding:0 58px;touch-action:pan-y pinch-zoom}
.clinicLightboxImage{width:100%;height:100%;min-height:0;object-fit:contain;user-select:none}
.clinicLightboxPrevious,.clinicLightboxNext{position:absolute;top:50%;transform:translateY(-50%);z-index:1}
.clinicLightboxPrevious{left:0}.clinicLightboxNext{right:0}
.clinicLightboxBottom{display:flex;align-items:center;justify-content:space-between;gap:20px;margin:0;padding:16px 4px 0;font-size:15px;line-height:1.5}
.clinicLightboxCaption{margin:0;color:#fff}.clinicLightboxCount{color:#c4dce9;white-space:nowrap}
.clinicLightboxStatus{margin:8px 4px 0;font-size:14px;color:#fff;text-align:center}
.clinicLightboxStatus:empty{display:none}
@media(max-width:1000px){
  .clinicGalleryGrid{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
  .clinicPhoto,.clinicPhoto:nth-child(-n+2){grid-column:span 1}
  .clinicPhoto:last-child{grid-column:1/-1}
  .clinicPhoto:last-child .clinicPhotoLink{aspect-ratio:16/9}
}
@media(max-width:640px){
  .clinicGalleryGrid{grid-template-columns:minmax(0,1fr)}
  .clinicPhoto,.clinicPhoto:nth-child(-n+2),.clinicPhoto:last-child{grid-column:1}
  .clinicPhoto .clinicPhotoLink,.clinicPhoto:nth-child(-n+2) .clinicPhotoLink,.clinicPhoto:last-child .clinicPhotoLink{aspect-ratio:4/3}
  .clinicPhoto figcaption{padding:15px 18px}
  .clinicLightbox{width:calc(100% - 20px)}
  .clinicLightboxStage{padding:0;height:66vh;height:66dvh}
  .clinicLightboxPrevious{left:6px}.clinicLightboxNext{right:6px}
  .clinicLightboxBottom{gap:12px;font-size:14px}
}
@media(prefers-reduced-motion:reduce){.clinicPhotoLink img{transition:none}.clinicPhotoLink:hover img{transform:none}}

/* Text links use the same emphasis as the active navigation item. */
body a[href]:not(:where(.brand,.localBlogBrand,.clinicPhotoLink,.btn,.float,.postCard)){
  text-underline-offset:4px;
  transition:color .15s ease;
}
body a[href]:not(:where(.brand,.localBlogBrand,.clinicPhotoLink,.btn,.float,.postCard)):is(:hover,:focus-visible){
  color:var(--pd);
  text-decoration:underline;
  text-underline-offset:4px;
}
.header :is(.links,.mobileMenu) a:not(.btn):is(:hover,:focus-visible,[aria-current]:not([aria-current="false"])){
  color:var(--pd);
  text-decoration:underline;
  text-underline-offset:4px;
}
body .footer a[href]:not(:where(.btn,.brand,.localBlogBrand)):is(:hover,:focus-visible){
  color:#fff;
  text-decoration:underline;
  text-underline-offset:4px;
}
.footer .seoFooterNav a:is(:hover,:focus-visible,[aria-current]:not([aria-current="false"])){
  color:#fff;
  font-weight:800;
  text-decoration:underline;
  text-decoration-thickness:2px;
}
.postCard:is(:hover,:focus-visible) :is(h2,.postLink){
  color:var(--pd);
  text-decoration:underline;
  text-underline-offset:4px;
}
@media(prefers-reduced-motion:reduce){body a[href]{transition:none}}
