/* Doctor galleries inherit the theme's local font and green/gold palette. */
.physician-gallery [hidden],.physician-media-dialog [hidden]{display:none!important}
.physician-gallery__heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:18px}
.physician-gallery .physician-gallery__heading h2{margin-bottom:0}
.physician-gallery .physician-gallery__count{flex-shrink:0;padding:7px 13px;color:#0b4d3f;background:#edf4f0;border:1px solid #dbe7df;border-radius:999px;font-size:14px;font-weight:700}
.physician-gallery p.physician-gallery__description{margin:-4px 0 20px;font-size:15px;line-height:2;color:#61756d;white-space:pre-line}
.physician-photo-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));grid-auto-rows:150px;gap:12px}
.physician-photo{min-width:0;margin:0;overflow:hidden;border-radius:16px;background:#e8efeb}
.physician-photo--featured{grid-column:span 2;grid-row:span 2}
.physician-photo a{position:relative;display:block;width:100%;height:100%;overflow:hidden;color:#fff;isolation:isolate}
.physician-photo a:after{position:absolute;inset:0;z-index:0;content:"";background:linear-gradient(180deg,transparent 40%,rgba(5,38,32,.72));transition:background .25s}
.physician-photo img{width:100%;height:100%;object-fit:cover;transition:transform .45s cubic-bezier(.2,.7,.2,1)}
.physician-photo a:hover img{transform:scale(1.06)}
.physician-photo__title{position:absolute;z-index:1;inset-inline:12px;bottom:12px;font-size:14px;line-height:1.8;font-weight:650;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.physician-photo--featured .physician-photo__title{inset-inline:20px;bottom:20px;font-size:15px}
.physician-photo__zoom{position:absolute;inset-inline-end:10px;top:10px;z-index:1;display:grid;place-items:center;width:30px;height:30px;border:1px solid rgba(255,255,255,.35);border-radius:50%;background:rgba(7,48,39,.3);backdrop-filter:blur(8px);transition:background .25s,transform .25s}
.physician-photo__zoom svg{width:16px;height:16px}
.physician-photo a:hover .physician-photo__zoom{background:#b2874b;transform:rotate(7deg)}
.physician-photo:only-child{grid-column:1/-1;grid-row:span 2}
.physician-photo-grid:has(>.physician-photo:nth-child(2):last-child){grid-template-columns:repeat(2,minmax(0,1fr));grid-auto-rows:260px}
.physician-photo-grid:has(>.physician-photo:nth-child(2):last-child) .physician-photo--featured{grid-column:auto;grid-row:auto}
.physician-photo-grid:has(>.physician-photo:nth-child(3):last-child){grid-template-columns:repeat(2,minmax(0,1fr))}
.physician-photo-grid:has(>.physician-photo:nth-child(3):last-child) .physician-photo--featured{grid-column:auto}
.physician-photo-grid:has(>.physician-photo:nth-child(4):last-child){grid-template-columns:repeat(3,minmax(0,1fr))}
.physician-photo-grid:has(>.physician-photo:nth-child(4):last-child) .physician-photo--featured{grid-column:1/-1;grid-row:auto}
.physician-gallery.is-enhanced:not(.is-expanded) [data-gallery-extra]{display:none}
.physician-gallery__more{display:flex;align-items:center;justify-content:center;gap:8px;min-height:44px;margin:18px auto 0;padding:10px 22px;color:#0b4d3f;background:#fff;border:1px solid #d6e2dc;border-radius:10px;font:inherit;font-size:14px;font-weight:650;cursor:pointer;transition:background .2s,border-color .2s,box-shadow .2s}
.physician-gallery__more:hover{background:#f3f7f4;border-color:#b2874b;box-shadow:0 4px 14px rgba(11,77,63,.05)}
.physician-video-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
.physician-video-card{min-width:0;border:1px solid #e2e9e3;border-radius:17px;overflow:hidden;background:#fff;box-shadow:0 8px 28px rgba(7,51,40,.035);transition:box-shadow .25s,transform .25s}
.physician-video-card:hover{transform:translateY(-3px);box-shadow:0 12px 30px rgba(7,51,40,.09)}
.physician-video-card__media{position:relative;display:block;aspect-ratio:16/9;overflow:hidden;background:#123f35;color:#fff;isolation:isolate}
.physician-video-card__media:after{position:absolute;inset:0;content:"";background:linear-gradient(0deg,rgba(4,30,25,.42),rgba(4,30,25,.06))}
.physician-video-card__media>img{width:100%;height:100%;object-fit:cover;transition:transform .4s}
.physician-video-card__media:hover>img{transform:scale(1.035)}
.physician-video-card__play{position:absolute;z-index:1;top:50%;left:50%;transform:translate(-50%,-50%);display:grid;place-items:center;width:55px;height:55px;border:1px solid rgba(255,255,255,.7);border-radius:50%;background:rgba(255,255,255,.15);backdrop-filter:blur(8px);box-shadow:0 0 0 8px rgba(255,255,255,.07);transition:background .25s,box-shadow .25s}
.physician-video-card__play svg{width:23px;height:23px;fill:currentColor}
.physician-video-card__media:hover .physician-video-card__play{background:#b2874b;box-shadow:0 0 0 10px rgba(255,255,255,.12)}
.physician-video-card__duration{position:absolute;bottom:12px;inset-inline-end:12px;z-index:1;padding:3px 9px;background:rgba(3,26,20,.74);border-radius:6px;font-size:14px;direction:ltr}
.physician-video-card__placeholder{display:grid;width:100%;height:100%;place-items:center;background:radial-gradient(ellipse at 20% 25%,#28694f,transparent 65%),linear-gradient(135deg,#153d33,#062b24)}
.physician-video-card__placeholder>svg{width:110px;height:110px;color:rgba(225,189,126,.2);transform:rotate(-8deg)}
.physician-video-card__body{padding:17px 19px 19px}
.physician-video-card__body>span{display:block;margin-bottom:6px;color:#a87936;font-size:14px;font-weight:650}
.physician-video-card__body h3{margin:0;color:#0b4d3f;font-size:16px;line-height:1.8;font-weight:750}
.physician-video-card__body p{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;margin:6px 0 0;color:#6b7e75;font-size:15px;line-height:1.9}
.physician-media-dialog{position:fixed;inset:0;box-sizing:border-box;width:min(1080px,calc(100vw - 40px));max-width:none;max-height:calc(100dvh - 40px);margin:auto;padding:0;color:#edf4f0;background:#0b201b;border:1px solid rgba(255,255,255,.14);border-radius:20px;box-shadow:0 24px 100px rgba(0,0,0,.5);overflow:auto;font-family:inherit;overscroll-behavior:contain}
.physician-media-dialog:not([open]){display:none}
.physician-media-dialog::backdrop{background:rgba(4,18,14,.86);backdrop-filter:blur(8px)}
.physician-media-dialog__toolbar{display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:54px;padding:10px 16px;box-sizing:border-box;color:#cad8d1;font-size:14px}
.physician-media-dialog__toolbar [data-media-counter]{direction:ltr;font-variant-numeric:tabular-nums}
.physician-media-dialog button{display:grid;place-items:center;width:36px;height:36px;padding:0;border:1px solid rgba(255,255,255,.2);border-radius:50%;background:rgba(255,255,255,.06);color:#fff;font:inherit;font-size:20px;cursor:pointer;transition:background .2s}
.physician-media-dialog button:hover{background:#8b682f}
.physician-media-dialog button svg{width:20px;height:20px}
.physician-media-dialog__stage{display:flex;align-items:center;justify-content:center;min-height:200px;background:#051511}
.physician-media-dialog__stage>img{display:block;max-width:100%;width:auto;max-height:calc(100dvh - 260px);min-height:0;object-fit:contain}
.physician-media-dialog.is-video .physician-media-dialog__stage{aspect-ratio:16/9;min-height:0}
.physician-media-dialog__stage>video,.physician-media-dialog__stage>iframe{display:block;width:100%;aspect-ratio:16/9;max-height:calc(100dvh - 240px);border:0;background:#000}
.physician-media-dialog__footer{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:17px 22px 20px}
.physician-media-dialog__footer>div:first-child{min-width:0}
.physician-media-dialog__footer h3{margin:0;font-size:16px;line-height:1.8;color:#fff}
.physician-media-dialog__footer p{margin:5px 0 0;color:#c2d2c9;font-size:15px;line-height:1.9;white-space:pre-line;overflow-wrap:anywhere}
.physician-media-dialog__footer a{display:inline-block;margin-top:7px;color:#e1bd7e;text-decoration:underline;text-underline-offset:3px;font-size:14px}
.physician-media-dialog .physician-media-dialog__error{color:#f1c8ae}
.physician-media-dialog__arrows{display:flex;flex-shrink:0;gap:8px}
.physician-gallery a:focus-visible,.physician-gallery button:focus-visible,.physician-media-dialog button:focus-visible,.physician-media-dialog a:focus-visible{outline:3px solid #bf914d;outline-offset:3px}
@media(max-width:767px){
  .physician-gallery__heading{gap:10px}.physician-gallery .physician-gallery__heading h2{font-size:22px}.physician-gallery .physician-gallery__count{font-size:14px;padding:5px 10px}
  .physician-photo-grid,.physician-photo-grid:has(>.physician-photo:last-child){grid-template-columns:repeat(2,minmax(0,1fr));grid-auto-rows:155px;gap:9px}
  .physician-photo--featured,.physician-photo-grid:has(>.physician-photo:last-child) .physician-photo--featured{grid-column:1/-1;grid-row:auto}
  .physician-photo--featured,.physician-photo:only-child{min-height:230px;grid-row:span 2!important}
  .physician-photo{border-radius:12px}.physician-photo--featured .physician-photo__title{font-size:14px}
  .physician-video-grid{grid-template-columns:minmax(0,1fr);gap:14px}.physician-video-card__body{padding:15px 17px}
  .physician-media-dialog{width:calc(100vw - 16px);max-height:calc(100dvh - 24px);border-radius:14px}
  .physician-media-dialog__footer{align-items:flex-start;padding:14px 16px;gap:10px}.physician-media-dialog__footer h3{font-size:16px}
  .physician-media-dialog__stage>img{max-height:calc(100dvh - 260px)}.physician-media-dialog__stage{min-height:160px}
}
@media(prefers-reduced-motion:reduce){.physician-gallery *{transition:none!important;transform:none!important}.physician-video-card__play{transform:translate(-50%,-50%)!important}}
@media print{.physician-gallery__more,.physician-media-dialog{display:none!important}.physician-gallery [data-gallery-extra]{display:block!important}}
