/* Facility gallery only. The original linked photos remain the no-script fallback. */
.san-card-v2 .gallery.san-gallery-ready{display:block!important;min-width:0;min-height:0;height:auto!important;overflow:hidden}
.san-card-v2 .gallery.san-gallery-ready>a.ff{display:none!important}
.san-card-v2 .san-gallery-stage{position:relative;min-width:0;border-radius:6px;overflow:hidden;background:#eee9dd}
.san-card-v2 .gallery.san-gallery-ready .san-gallery-main{display:flex;width:100%;height:auto;aspect-ratio:3/2;align-items:center;justify-content:center;border-radius:6px;overflow:hidden;touch-action:pan-y pinch-zoom}
.san-card-v2 .gallery.san-gallery-ready .san-gallery-main img{display:block;width:100%;height:100%;object-fit:cover;transform:none;transition:none}
.san-card-v2 .san-gallery-step,.san-gallery-modal .san-gallery-step{position:absolute;top:50%;transform:translateY(-50%);display:flex;align-items:center;justify-content:center;width:46px;min-width:46px;height:46px;padding:0;border:1px solid #c8b47b;border-radius:50%;background:#fffdf5;color:#3b2d16;font:30px/1 Arial,sans-serif;box-shadow:0 2px 8px #0003;cursor:pointer;z-index:2}
.san-gallery-prev{left:10px}.san-gallery-next{right:10px}
.san-card-v2 .san-gallery-summary{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:6px 12px;margin:8px 0;color:#654d2f;font-size:14px;line-height:1.4}
.san-card-v2 .san-gallery-open{min-height:44px;padding:7px 12px;border:1px solid #c8b47b;border-radius:4px;background:#fff9de;color:#3b2d16;font:600 14px/1.4 'Segoe UI',Arial,sans-serif;cursor:pointer}
.san-card-v2 .san-gallery-thumbs{position:relative;display:flex;gap:8px;overflow-x:auto;overflow-y:hidden;padding:4px 3px 10px;scroll-snap-type:x proximity;overscroll-behavior-x:contain}
.san-card-v2 .san-gallery-thumb{flex:0 0 84px;display:block;width:84px;height:64px;padding:2px;border:2px solid transparent;border-radius:4px;background:#eee9dd;cursor:pointer;scroll-snap-align:start}
.san-card-v2 .san-gallery-thumb[aria-pressed=true]{border-color:#9c5700;background:#ffcf31}
.san-card-v2 .gallery.san-gallery-ready .san-gallery-thumb img{display:block;width:100%;height:100%;object-fit:cover;border-radius:1px;transform:none;transition:none}
.san-card-v2 .san-gallery-main:focus-visible,.san-card-v2 .san-gallery-open:focus-visible,.san-card-v2 .san-gallery-thumb:focus-visible,.san-card-v2 .san-gallery-step:focus-visible{outline:3px solid #855000;outline-offset:3px}
.san-gallery-modal{position:fixed;inset:0;box-sizing:border-box;width:100%;max-width:none;height:100vh;height:100dvh;max-height:none;margin:0;padding:12px;padding:max(12px,env(safe-area-inset-top)) max(12px,env(safe-area-inset-right)) max(12px,env(safe-area-inset-bottom)) max(12px,env(safe-area-inset-left));border:0;background:#161713;color:#fff;font:16px/1.45 'Segoe UI',Arial,sans-serif;z-index:2147483000;overflow:hidden}
.san-gallery-modal:not([open]){display:none!important}
.san-gallery-modal[open]{display:grid;grid-template-rows:auto minmax(0,1fr) auto;gap:10px}
.san-gallery-modal::backdrop{background:#161713}
.san-gallery-modal .san-gallery-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:44px}
.san-gallery-modal .san-gallery-counter{margin:0;color:#fff;font-size:16px;font-weight:600}
.san-gallery-modal .san-gallery-close{display:block;flex:none;min-width:96px;min-height:44px;padding:8px 14px;border:1px solid #e0d3ad;border-radius:4px;background:#ffcf31;color:#2d210b;font:600 16px/1.4 'Segoe UI',Arial,sans-serif;cursor:pointer}
.san-gallery-modal .san-gallery-view{display:flex;align-items:center;justify-content:center;position:relative;min-height:0;min-width:0;overflow:hidden;touch-action:pan-y pinch-zoom}
.san-gallery-modal .san-gallery-photo{display:block;width:auto;height:auto;max-width:100%;max-height:100%;object-fit:contain;border:0}
.san-gallery-modal .san-gallery-footer{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;min-height:24px;max-height:5.5em;overflow:auto;font-size:14px}
.san-gallery-modal .san-gallery-caption{margin:0;overflow-wrap:anywhere}
.san-gallery-modal .san-gallery-original{flex:none;color:#ffdf75;min-height:24px;text-decoration:underline}
.san-gallery-modal button:focus-visible,.san-gallery-modal a:focus-visible{outline:3px solid #ffdf75;outline-offset:3px}
.san-gallery-modal .san-gallery-error{position:absolute;max-width:28em;padding:16px;background:#161713;color:#fff;text-align:center}
.san-gallery-modal [hidden],.san-card-v2 .san-gallery-ready [hidden]{display:none!important}
@media(max-width:760px){
 .san-card-v2 .gallery.san-gallery-ready .san-gallery-main{aspect-ratio:4/3}
 .san-card-v2 .san-gallery-thumb{flex-basis:76px;width:76px;height:58px}
 .san-gallery-modal .san-gallery-footer{display:block;font-size:13px;max-height:5em}
 .san-gallery-modal .san-gallery-original{display:inline-block;margin-top:4px}
 .san-gallery-modal .san-gallery-step{width:44px;min-width:44px;height:44px}
 .san-gallery-modal .san-gallery-prev{left:2px}.san-gallery-modal .san-gallery-next{right:2px}
}
@media(max-height:480px) and (orientation:landscape){
 .san-gallery-modal[open]{gap:4px;padding-top:max(4px,env(safe-area-inset-top));padding-bottom:max(4px,env(safe-area-inset-bottom))}
 .san-gallery-modal .san-gallery-footer{max-height:2.8em}
}
