/* A scroll-led portrait gallery. Static grouped cards are the default fallback. */
.physician-gallery{--gallery-card-width:224px;position:relative;margin:0 20px;background:#e8ecdf;border-radius:30px;scroll-margin-top:-90px}
.gallery-anchor{position:absolute;top:0;left:0;width:0;height:0;scroll-margin-top:-90px}
.gallery-sticky{padding:55px calc(var(--gutter) - 20px) 30px;position:relative}
.gallery-heading-row{display:flex;justify-content:space-between;align-items:end;gap:25px}
.gallery-heading-row .eyebrow{margin-bottom:17px}.gallery-heading-row h2{font-size:clamp(32px,3.15vw,49px);line-height:1.12}.gallery-heading-row h2 em{color:#6e7c60}.gallery-heading-row>.text-link{flex-shrink:0;font-size:11px}
.gallery-controls{display:none;justify-content:space-between;align-items:center;gap:25px;margin-top:30px}
.gallery-select{display:flex;gap:20px;align-items:center}.gallery-select>span{font-size:10px;color:#657159;line-height:1.6}
.gallery-select select{appearance:none;-webkit-appearance:none;border:1px solid #aab79d;background:linear-gradient(135deg,#ffffff94,#ffffff30);background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m4 6 4 4 4-4' fill='none' stroke='%23445237' stroke-width='1.3'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 16px center;background-size:16px;color:#35452c;border-radius:40px;font:500 12px var(--sans);padding:13px 42px 13px 19px;min-width:215px;cursor:pointer;outline-offset:4px}
.gallery-tools{display:flex;align-items:center;gap:27px}.gallery-tools button,.gallery-skip{font-size:10px;min-height:44px;display:inline-flex;align-items:center;gap:12px}.gallery-mode{border-bottom:1px solid #aab79d;padding:0;line-height:1.3}.gallery-mode[aria-pressed=true]{color:#3d512d;font-weight:650}.gallery-mode:before{content:'◈';font-size:15px}.gallery-skip span{font-size:18px}.gallery-skip:hover{text-decoration:underline;text-underline-offset:4px}
.gallery-stage{position:relative;margin-top:40px}.depth-group{margin-bottom:45px}.depth-group-heading{font:500 27px var(--sans);margin:20px 0}.depth-cards{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:25px}
.gallery-card{position:relative;margin:0;min-width:0;isolation:isolate;border:1px solid #fff9;border-radius:15px;background:#f8f8ef;box-shadow:0 14px 30px #293c2212;overflow:hidden}
.gallery-card>a{height:100%;width:100%;display:flex;flex-direction:column;position:relative;outline-offset:-4px}
.gallery-card-photo{height:245px;flex:1;min-height:0;position:relative;overflow:hidden;background:#cbd5bf}
.gallery-card-photo>img{width:100%;height:100%;object-fit:cover;object-position:center 30%;filter:saturate(.75);transition:filter .3s,transform .4s}
.gallery-card:hover .gallery-card-photo>img{filter:saturate(1);transform:scale(1.035)}
.gallery-card-photo .initials{height:100%;background:radial-gradient(ellipse at 20% 20%,#f2f4e7,transparent 65%),linear-gradient(135deg,#ced8c0,#9faf90);color:#556b44;font:64px var(--serif);letter-spacing:-.035em}
.gallery-card-photo .initials:after{content:'';position:absolute;width:135%;height:45%;left:-20%;bottom:8%;border:1px solid #f5f7e98a;border-radius:50%;transform:rotate(-30deg);box-shadow:0 12px 0 -11px #fff8,0 24px 0 -23px #fff8}
.profile-corner{position:absolute;right:11px;top:11px;width:31px;height:31px;display:grid;place-items:center;background:#fafbf0c2;border:1px solid #ffffffc9;border-radius:50%;font-size:18px;color:#405234;backdrop-filter:blur(8px)}
.gallery-card-copy{padding:13px 15px 16px;background:linear-gradient(130deg,#fffffff5,#f2f4e7ee);border-top:1px solid #fff;min-height:92px}
.gallery-card-copy>span{font-size:8px;text-transform:uppercase;letter-spacing:.09em;color:#6c795f;display:block;margin-bottom:6px}
.gallery-card-copy h4{font-size:12px;font-weight:600;line-height:1.4;letter-spacing:-.015em}
.gallery-service-card>a{background:radial-gradient(ellipse at 20% 25%,#f7f8eb,transparent 70%),linear-gradient(120deg,#d4dec8,#b4c39f)}
.gallery-service-art{position:relative;min-height:120px;flex:1;overflow:hidden}
.gallery-service-art span{position:absolute;width:105px;height:105px;border:1px solid #ffffffd1;border-radius:45%;background:linear-gradient(135deg,#ffffff50,#ffffff00);box-shadow:inset 1px 3px 7px #fff8,5px 15px 25px #3c512516;top:50%;left:50%;transform:translate(-50%,-50%) rotate(30deg)}
.gallery-service-art span:nth-child(2){transform:translate(-50%,-50%) rotate(60deg) scale(.74)}.gallery-service-art span:nth-child(3){transform:translate(-50%,-50%) rotate(90deg) scale(.48)}
.gallery-service-card .gallery-card-copy{min-height:135px}.gallery-service-card h4{font-size:18px}.gallery-service-card p{font-size:11px;line-height:1.6;color:#68775b;margin:9px 0}.gallery-service-card b{font-size:10px;font-weight:550}
.gallery-axis,.gallery-focus-mark{display:none}
.gallery-caption{display:none;justify-content:space-between;align-items:center;gap:24px;border-top:1px solid #bdc8b0;padding-top:20px;position:relative;z-index:3}
.gallery-current{display:flex;align-items:center;gap:25px;min-width:0}.gallery-number{font:10px var(--sans);color:#728063;letter-spacing:.06em;white-space:nowrap}.gallery-specialty{font-size:27px;line-height:1.2;letter-spacing:-.04em;font-weight:500}.gallery-count{font-size:10px;color:#6a795b;margin-top:5px}
.gallery-navigation{display:flex;align-items:center;gap:18px}.gallery-navigation>button{height:42px;width:42px;border:1px solid #a7b598;border-radius:50%;font-size:19px;display:grid;place-items:center;flex-shrink:0;background:#fbfcf345;transition:background .2s}.gallery-navigation>button:disabled{opacity:.35}.gallery-navigation>button:not(:disabled):hover{background:#f9faf0}.gallery-specialty-link{display:flex;align-items:center;gap:25px;font-size:10px;min-height:44px;white-space:nowrap}.gallery-specialty-link:hover{text-decoration:underline;text-underline-offset:4px}.gallery-specialty-link .arrow{font-size:18px}
.gallery-track{display:none;justify-content:space-between;gap:20px;align-items:center;padding-top:15px}.gallery-scroll-hint,.gallery-total{font-size:9px;color:#69785b;white-space:nowrap}.gallery-scroll-hint span{font-size:15px;margin-left:12px}.gallery-stops{display:flex;gap:1px;align-items:center}.gallery-stop{padding:0;width:24px;height:30px;display:grid;place-items:center;border-radius:5px}.gallery-stop>span{width:4px;height:4px;background:#8b9b7a;border-radius:50%;transition:width .2s,height .2s,background .2s}.gallery-stop[aria-pressed=true]>span{width:7px;height:7px;background:#344d25;box-shadow:0 0 0 4px #40562d12}.gallery-stop:hover>span{background:#344d25}
/* Enhance only after JS has measured the scene. Never hijack wheel or touch events. */
.gallery-enhanced .gallery-controls,.gallery-enhanced .gallery-caption,.gallery-enhanced .gallery-track{display:flex}
.gallery-enhanced .depth-group-heading{display:none}
.physician-gallery[data-mode=depth]{height:var(--gallery-height);border-radius:30px}
[data-mode=depth] .gallery-sticky{position:sticky;top:0;height:100svh;max-height:940px;min-height:620px;display:flex;flex-direction:column;padding-top:35px;padding-bottom:20px;overflow:hidden;background:radial-gradient(ellipse at 45% 50%,#f6f7ee 0,transparent 57%),#e8ecdf;border-radius:30px}
[data-mode=depth] .gallery-heading-row h2{font-size:clamp(30px,2.8vw,45px)}
[data-mode=depth] .gallery-heading-row .eyebrow{margin-bottom:12px}
[data-mode=depth] .gallery-controls{margin-top:22px;position:relative;z-index:5}
[data-mode=depth] .gallery-stage{flex:1;min-height:300px;margin-top:10px;perspective:1400px;isolation:isolate;overflow:clip;overflow-clip-margin:24px}
[data-mode=depth] .gallery-axis{display:block;position:absolute;left:0;right:0;top:50%;height:1px;background:#afbea140}
[data-mode=depth] .gallery-focus-mark{display:block;position:absolute;width:1px;top:20px;bottom:20px;left:var(--gallery-focus,43%);background:linear-gradient(transparent,#9cae8b45,transparent)}
[data-mode=depth] .depth-group{position:absolute;inset:0;margin:0;pointer-events:none;transform-style:preserve-3d}
[data-mode=depth] .depth-cards{display:contents}
[data-mode=depth] .gallery-card{position:absolute;left:0;top:50%;width:var(--gallery-card-width);height:calc(var(--gallery-card-width)*1.5);transform-origin:center;will-change:transform;pointer-events:none;box-shadow:0 18px 26px #2d422419,0 2px 4px #2d422410;backface-visibility:hidden}
[data-mode=depth] .depth-group.is-active .gallery-card{pointer-events:auto}
[data-mode=depth] .gallery-card-photo{height:auto}
[data-mode=depth] .gallery-card-copy{opacity:var(--name-opacity,0)}
[data-mode=depth] .depth-group.is-active .gallery-card:focus-within{outline:2px solid #506e39;outline-offset:3px}
[data-mode=depth] .gallery-caption{flex-shrink:0}
[data-mode=depth] .gallery-track{flex-shrink:0}
/* Compact or reduced-motion mode: the same groups, readable cards, direct navigation. */
[data-mode=simple] .gallery-stage{margin:30px 0}
[data-mode=simple] .depth-group{margin:0}
[data-mode=simple] .depth-group:not(.is-active){display:none}
[data-mode=simple] .depth-cards{display:flex;flex-wrap:wrap;gap:24px;justify-content:center}
[data-mode=simple] .gallery-card{width:min(224px,calc((100% - 72px)/4));height:335px}
[data-mode=simple] .gallery-card-photo{height:auto}
[data-mode=simple] .gallery-scroll-hint{visibility:hidden}
[data-mode=simple] .gallery-mode[disabled]{opacity:.65;cursor:default}
@media(max-width:1100px){.gallery-sticky{padding-left:30px;padding-right:30px}.gallery-select{gap:13px}.gallery-select>span{font-size:9px}.gallery-select select{font-size:11px;min-width:190px}.gallery-tools{gap:20px}.gallery-specialty{font-size:25px}.gallery-current{gap:18px}.gallery-card-copy{padding:12px;min-height:96px}.gallery-card-copy h4{font-size:11px}.gallery-card-copy>span{font-size:7px}.gallery-track{gap:10px}.gallery-total{font-size:8px}.gallery-stop{width:20px}.gallery-specialty-link{gap:14px}}
@media(max-width:850px){.physician-gallery{margin:0 12px}.gallery-sticky{padding:40px 24px 25px}.gallery-heading-row{align-items:start}.gallery-heading-row h2{font-size:34px;max-width:380px}.gallery-heading-row>.text-link{font-size:10px;white-space:nowrap}.gallery-heading-row .eyebrow{font-size:9px}.gallery-select{align-items:start;flex-direction:column;gap:6px}.gallery-select select{min-width:185px;padding-top:10px;padding-bottom:10px}.gallery-tools{gap:16px}.gallery-tools button,.gallery-skip{font-size:9px}.gallery-specialty{font-size:24px}.gallery-current{gap:13px}.gallery-specialty-link{font-size:9px;gap:10px}.gallery-navigation{gap:11px}.gallery-navigation>button{height:35px;width:35px}.gallery-total{display:none}.gallery-stops{gap:1px}.gallery-stop{width:23px}.gallery-track{justify-content:space-between}.gallery-card-copy h4{font-size:10px}.gallery-card-copy{min-height:88px}.profile-corner{height:25px;width:25px;font-size:15px;right:8px;top:8px}.gallery-service-card .gallery-card-copy{min-height:135px}.gallery-service-card h4{font-size:16px}.gallery-service-card p{font-size:10px}.gallery-service-card b{font-size:9px}.depth-cards{grid-template-columns:repeat(2,minmax(0,1fr))}.gallery-card-photo{height:250px}[data-mode=depth] .gallery-heading-row h2{font-size:32px;max-width:390px}[data-mode=depth] .gallery-heading-row .eyebrow{margin-bottom:10px}[data-mode=depth] .gallery-controls{margin-top:15px}[data-mode=depth] .gallery-sticky{padding-top:28px}[data-mode=simple] .gallery-card{width:calc((100% - 24px)/2);max-width:260px;height:350px}}
@media(max-width:699px){.physician-gallery{margin:0 10px;border-radius:24px}.gallery-sticky{padding:40px 20px 25px}.gallery-heading-row{display:block}.gallery-heading-row h2{font-size:36px;max-width:300px}.gallery-heading-row h2 em{display:block}.gallery-heading-row>.text-link{margin-top:15px;font-size:11px}.gallery-controls{margin-top:25px;align-items:stretch;flex-direction:column;gap:15px}.gallery-select{display:block}.gallery-select>span{display:block;font-size:10px;margin-bottom:8px}.gallery-select select{font-size:12px;width:100%;padding:13px 40px 13px 17px}.gallery-tools{justify-content:space-between}.gallery-tools button,.gallery-skip{font-size:10px;min-height:36px}.gallery-caption{flex-direction:column;align-items:stretch;gap:18px;padding-top:20px}.gallery-current{gap:17px}.gallery-specialty{font-size:27px}.gallery-number{font-size:10px}.gallery-count{font-size:11px}.gallery-navigation{justify-content:space-between;gap:12px}.gallery-navigation>button{width:42px;height:42px}.gallery-specialty-link{font-size:10px;gap:12px}.gallery-track{justify-content:center;padding-top:10px}.gallery-scroll-hint{display:none}.gallery-stop{width:19px;height:35px}.gallery-stops{gap:0;flex-wrap:wrap;justify-content:center}.depth-cards{gap:15px}.gallery-card-copy{padding:11px 10px 13px;min-height:94px}.gallery-card-copy>span{font-size:7px;letter-spacing:.06em}.gallery-card-copy h4{font-size:11px;line-height:1.45}.gallery-card{border-radius:12px}.gallery-card-photo{height:200px}.gallery-card-photo .initials{font-size:54px}[data-mode=simple] .depth-cards{gap:15px;justify-content:center}[data-mode=simple] .gallery-card{width:calc((100% - 15px)/2);height:275px;max-width:230px}[data-mode=simple] .depth-cards:has(>.gallery-card:only-child) .gallery-card{width:230px;height:325px}.gallery-service-art span{width:90px;height:90px}.gallery-service-card .gallery-card-copy{min-height:140px}.gallery-service-card h4{font-size:18px}}
@media(max-width:360px){.gallery-sticky{padding-left:16px;padding-right:16px}.gallery-heading-row h2{font-size:32px}.gallery-card-copy h4{font-size:10px}.gallery-card-copy>span{font-size:6px}.gallery-stop{width:16px}[data-mode=simple] .gallery-card{height:250px}.gallery-specialty-link{font-size:9px}}
@media(prefers-reduced-motion:reduce){.gallery-card,.gallery-card *,.gallery-stop>span{transition:none!important;animation:none!important}}
/* Larger portraits travel from the horizon into an open foreground composition. */
.gallery-chapter{display:none;align-items:baseline;gap:21px;margin-top:28px;position:relative;z-index:5;flex-shrink:0}
.gallery-enhanced .gallery-chapter{display:flex}
.gallery-chapter-titles{position:relative;min-width:0;flex:1}
.gallery-chapter .gallery-specialty,.gallery-specialty-outgoing{font:500 clamp(34px,3.7vw,58px)/1.12 var(--sans);letter-spacing:-.055em;color:#34482a;margin:0;display:block}
.gallery-specialty-outgoing{position:absolute;inset:0;opacity:0;pointer-events:none}
.gallery-chapter .gallery-number{font-size:10px;letter-spacing:.1em}
.gallery-count{margin-top:0}
[data-mode=depth] .gallery-sticky{max-height:none;padding-top:28px;padding-bottom:17px;overflow:clip}
[data-mode=depth] .gallery-heading-row h2{font-size:clamp(26px,2.35vw,36px)}
[data-mode=depth] .gallery-heading-row .eyebrow{margin-bottom:9px}
[data-mode=depth] .gallery-controls{margin-top:16px}
[data-mode=depth] .gallery-chapter{margin-top:22px}
[data-mode=depth] .gallery-stage{min-height:230px;margin-top:8px;perspective:1400px;perspective-origin:50% 50%;overflow:visible;overflow-clip-margin:0}
[data-mode=depth] .gallery-card{left:50%;height:calc(var(--gallery-card-width)*1.5);border-radius:17px;box-shadow:0 25px 45px #2d42241c,0 3px 7px #2d422414}
[data-mode=depth] .gallery-card-copy{padding:13px 16px;min-height:82px}
[data-mode=depth] .gallery-card-copy h4{font-size:13px;line-height:1.4}
[data-mode=depth] .gallery-card-copy>span{font-size:8px}
[data-mode=depth] .gallery-service-card .gallery-card-copy{min-height:135px}
[data-mode=depth] .gallery-caption{padding-top:13px}
[data-mode=depth] .gallery-track{padding-top:8px}
[data-mode=simple] .gallery-chapter{margin-top:28px}
[data-mode=simple] .gallery-stage{margin-top:24px}
@media(max-width:850px){[data-mode=depth] .gallery-sticky{padding-top:24px}[data-mode=depth] .gallery-heading-row h2{font-size:29px}[data-mode=depth] .gallery-chapter{margin-top:17px;gap:15px}.gallery-chapter .gallery-specialty,.gallery-specialty-outgoing{font-size:38px}[data-mode=depth] .gallery-card-copy{padding:11px;min-height:78px}[data-mode=depth] .gallery-card-copy h4{font-size:11px}[data-mode=depth] .gallery-card-copy>span{font-size:7px}}
@media(max-width:699px){.gallery-chapter{gap:12px}.gallery-chapter .gallery-specialty,.gallery-specialty-outgoing{font-size:32px}.gallery-chapter .gallery-number{font-size:9px}.gallery-caption{gap:13px}.gallery-count{font-size:11px}}
@media(max-width:360px){.gallery-chapter .gallery-specialty,.gallery-specialty-outgoing{font-size:28px}.gallery-chapter{gap:10px}}
@media(min-width:700px) and (max-height:730px){[data-mode=depth] .gallery-sticky{padding-top:18px;padding-bottom:12px}[data-mode=depth] .gallery-heading-row .eyebrow{display:none}[data-mode=depth] .gallery-heading-row h2{font-size:25px}[data-mode=depth] .gallery-controls{margin-top:8px}[data-mode=depth] .gallery-chapter{margin-top:10px}[data-mode=depth] .gallery-chapter .gallery-specialty,[data-mode=depth] .gallery-specialty-outgoing{font-size:34px}[data-mode=depth] .gallery-track{padding-top:3px}}
/* Touch-sized depth scene: one readable portrait at a time, within its specialty. */
@media(max-width:699px){
  [data-mode=depth] .gallery-sticky{height:100svh;min-height:500px;padding:18px 18px max(12px,env(safe-area-inset-bottom));border-radius:24px;touch-action:pan-y pinch-zoom}
  [data-mode=depth] .gallery-heading-row{display:flex;gap:15px;align-items:center}
  [data-mode=depth] .gallery-heading-row h2{font-size:23px;max-width:235px;line-height:1.12}
  [data-mode=depth] .gallery-heading-row h2 em{display:inline}
  [data-mode=depth] .gallery-heading-row .eyebrow{font-size:7px;margin-bottom:7px;letter-spacing:.1em}
  [data-mode=depth] .gallery-heading-row>.text-link{font-size:9px;margin-top:0;gap:5px;white-space:normal;min-width:60px}
  [data-mode=depth] .gallery-controls{margin-top:12px;gap:2px;flex-shrink:0}
  [data-mode=depth] .gallery-select>span{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
  [data-mode=depth] .gallery-select select{font-size:12px;padding:10px 35px 10px 15px;min-height:40px}
  [data-mode=depth] .gallery-tools{gap:10px}
  [data-mode=depth] .gallery-tools button,[data-mode=depth] .gallery-skip{font-size:9px;min-height:32px}
  [data-mode=depth] .gallery-chapter{margin-top:9px;gap:10px;align-items:center;min-height:40px}
  [data-mode=depth] .gallery-chapter .gallery-specialty,[data-mode=depth] .gallery-specialty-outgoing{font-size:30px;letter-spacing:-.045em}
  [data-mode=depth] .gallery-chapter .gallery-number{font-size:8px;flex-shrink:0}
  [data-mode=depth] .gallery-stage{min-height:200px;margin-top:4px;margin-bottom:8px}
  [data-mode=depth] .gallery-card{border-radius:16px;pointer-events:none!important}
  [data-mode=depth] .gallery-card.is-featured{pointer-events:auto!important}
  [data-mode=depth] .gallery-card-copy{min-height:84px;padding:12px 14px}
  [data-mode=depth] .gallery-card-copy h4{font-size:14px;line-height:1.4;letter-spacing:-.01em}
  [data-mode=depth] .gallery-card-copy>span{font-size:8px}
  [data-mode=depth] .gallery-caption{padding-top:8px;gap:6px}
  [data-mode=depth] .gallery-count{font-size:10px;text-align:center}
  [data-mode=depth] .gallery-navigation{gap:8px}
  [data-mode=depth] .gallery-navigation>button{width:38px;height:38px}
  [data-mode=depth] .gallery-specialty-link{font-size:10px;min-height:38px}
  [data-mode=depth] .gallery-track{padding-top:2px}
  [data-mode=depth] .gallery-stop{width:18px;height:25px}
  [data-mode=depth] .gallery-focus-mark{opacity:.5}
}
@media(max-width:360px){[data-mode=depth] .gallery-sticky{padding-left:13px;padding-right:13px}[data-mode=depth] .gallery-chapter .gallery-specialty,[data-mode=depth] .gallery-specialty-outgoing{font-size:25px}[data-mode=depth] .gallery-stop{width:16px}}
@media(max-width:699px) and (max-height:680px){[data-mode=depth] .gallery-sticky{padding-top:12px}[data-mode=depth] .gallery-heading-row .eyebrow{display:none}[data-mode=depth] .gallery-heading-row h2{font-size:20px}[data-mode=depth] .gallery-controls{margin-top:7px}[data-mode=depth] .gallery-chapter{margin-top:3px;min-height:32px}[data-mode=depth] .gallery-chapter .gallery-specialty,[data-mode=depth] .gallery-specialty-outgoing{font-size:25px}[data-mode=depth] .gallery-card-copy{padding:8px 10px;min-height:80px}[data-mode=depth] .gallery-card-copy h4{font-size:13px}[data-mode=depth] .gallery-card-copy>span{font-size:7px}}
