/* Scoped gallery styles: no inherited fixed-height/overflow from the old gallery. */
.oc-gallery{--gallery-green:#194c3d;--gallery-ink:#203e34;margin:26px 0 34px;min-width:0}
.oc-gallery *{box-sizing:border-box}
.oc-gallery svg{width:20px;height:20px;flex-shrink:0}
.oc-gallery button,.oc-gallery a{-webkit-tap-highlight-color:transparent}
.oc-gallery button{font:inherit;cursor:pointer}
.oc-gallery [hidden]{display:none!important}
.oc-gallery-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px;color:var(--gallery-ink);font-size:13px}
.oc-gallery-heading>span:first-child{display:flex;align-items:center;gap:9px;font-weight:600}
.oc-gallery-heading>span:last-child{color:#66756c;font-size:12px}
.oc-gallery-mosaic{display:grid;grid-template-columns:minmax(0,1.8fr) minmax(0,1fr);gap:8px;height:clamp(300px,32vw,480px);overflow:hidden;border-radius:18px;background:#e9ede7;isolation:isolate}
.oc-gallery-mosaic[data-preview-count="0"]{grid-template-columns:1fr}
.oc-gallery-main{position:relative;min-width:0;min-height:0;overflow:hidden;touch-action:pan-y pinch-zoom}
.oc-gallery-photo,.oc-gallery-preview{position:relative;display:block;width:100%;height:100%;overflow:hidden;background:#e9ede7}
.oc-gallery-photo>img,.oc-gallery-preview>img{display:block;width:100%;height:100%;object-fit:cover;transition:transform .5s cubic-bezier(.2,.65,.3,1);margin:0}
.oc-gallery-photo:hover>img,.oc-gallery-preview:hover>img{transform:scale(1.035)}
.oc-gallery-expand{position:absolute;top:16px;right:16px;display:flex;align-items:center;gap:7px;padding:8px 12px;border:1px solid #ffffff50;border-radius:8px;background:#12251c8c;color:white;font-size:12px;backdrop-filter:blur(8px)}
.oc-gallery-counter{position:absolute;left:18px;bottom:16px;padding:6px 12px;border-radius:30px;color:#fff;background:#11241bd9;font-size:12px;font-variant-numeric:tabular-nums;pointer-events:none}
.oc-gallery-previews{display:grid;grid-template-columns:1fr 1fr;grid-template-rows:1fr 1fr;gap:8px;min-height:0;min-width:0}
[data-preview-count="1"] .oc-gallery-previews{grid-template-columns:1fr;grid-template-rows:1fr}
[data-preview-count="2"] .oc-gallery-previews{grid-template-columns:1fr}
[data-preview-count="3"] .oc-gallery-preview:last-child{grid-column:span 2}
.oc-gallery-preview{min-height:0}
.oc-gallery-all{position:absolute;inset:auto 12px 12px;display:flex;align-items:center;justify-content:center;gap:8px;padding:11px 8px;background:#fffffff2;color:#203e34;border-radius:8px;font-size:12px;font-weight:600;box-shadow:0 2px 12px #0002}
.oc-gallery-arrow{position:absolute;top:50%;transform:translateY(-50%);display:grid;place-items:center;width:42px;height:42px;border:1px solid #ffffff70;border-radius:50%;background:#fffffff2;color:#203e34;box-shadow:0 3px 15px #0002;z-index:2;transition:background .2s,scale .2s}
.oc-gallery-arrow:hover{background:#fff;scale:1.07}
.oc-gallery-prev{left:16px}.oc-gallery-next{right:16px}.oc-gallery-next svg{transform:rotate(180deg)}
.oc-gallery-bottom{display:flex;align-items:center;gap:20px;justify-content:space-between;margin-top:14px;min-width:0}
.oc-gallery-thumbs{display:flex;gap:9px;overflow-x:auto;overscroll-behavior-x:contain;scrollbar-width:thin;padding:3px 2px 6px;min-width:0}
.oc-gallery-thumb{position:relative;display:block;flex:0 0 92px;width:92px;height:66px;padding:0;border:2px solid transparent;background:#e9ede7;border-radius:9px;overflow:hidden;opacity:.62;transition:opacity .2s,border-color .2s,transform .2s}
.oc-gallery-thumb img{display:block;width:100%;height:100%;object-fit:cover}
.oc-gallery-thumb span{position:absolute;bottom:3px;right:4px;padding:1px 5px;background:#11241bbd;color:#fff;border-radius:4px;font-size:10px;line-height:1.5}
.oc-gallery-thumb:hover{opacity:1;transform:translateY(-2px)}
.oc-gallery-thumb[aria-current="true"]{border-color:var(--gallery-green);opacity:1;box-shadow:0 0 0 1px #fff inset}
.oc-gallery-browse{display:flex;align-items:center;justify-content:center;gap:8px;flex-shrink:0;border:1px solid #ccd8cd;border-radius:9px;background:transparent;padding:11px 15px;color:var(--gallery-ink);font-size:12px!important;transition:background .2s}
.oc-gallery-browse:hover{background:#edf2ea}
.oc-gallery :is(a,button):focus-visible{outline:3px solid #68a68c;outline-offset:3px}
.oc-gallery-sr{position:absolute!important;width:1px;height:1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.oc-gallery-viewer{position:fixed;inset:0;width:100%;max-width:none;height:100%;height:100dvh;max-height:none;margin:0;padding:0;border:0;background:#101c19;color:#fff;overflow:hidden;overscroll-behavior:contain}
.oc-gallery-viewer[open]{display:grid;grid-template-rows:auto minmax(0,1fr) auto;animation:oc-gallery-enter .28s cubic-bezier(.2,.65,.3,1)}
.oc-gallery-viewer::backdrop{background:#101c19ed}
.oc-gallery-viewer-header{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:20px 30px;border-bottom:1px solid #ffffff14}
.oc-gallery-kicker{font-size:10px;letter-spacing:2px;color:#a9c4b6}
.oc-gallery-viewer-header h2{font-size:16px!important;line-height:1.5;color:#fff;margin:4px 0 0;max-width:75vw;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.oc-gallery-viewer-actions{display:flex;align-items:center;gap:22px;flex-shrink:0;font-size:13px;font-variant-numeric:tabular-nums}
.oc-gallery-viewer-actions button{display:grid;place-items:center;width:42px;height:42px;background:#ffffff0f;color:white;border:1px solid #ffffff30;border-radius:50%;transition:background .2s}
.oc-gallery-viewer-actions button:hover{background:#ffffff25}
.oc-gallery-stage{position:relative;display:grid;place-items:center;min-height:0;overflow:hidden;padding:24px 85px;touch-action:pan-y pinch-zoom}
.oc-gallery-stage>img{display:block;width:100%;height:100%;min-height:0;object-fit:contain;user-select:none;-webkit-user-drag:none}
.oc-gallery-stage>img.is-unavailable{visibility:hidden}
.oc-gallery-stage .oc-gallery-arrow{background:#ffffff12;border-color:#ffffff30;color:white;width:46px;height:46px}
.oc-gallery-stage .oc-gallery-arrow:hover{background:#ffffff25}
.oc-gallery-stage .oc-gallery-prev{left:24px}.oc-gallery-stage .oc-gallery-next{right:24px}
.oc-gallery-error{position:absolute;left:20%;right:20%;text-align:center;font-size:14px;color:#d0dcd5}
.oc-gallery-viewer-footer{padding:0 30px 16px}
.oc-gallery-viewer-footer .oc-gallery-thumbs{justify-content:safe center;max-width:100%;margin:auto}
.oc-gallery-viewer-footer .oc-gallery-thumb{background:#243d32;opacity:.5}
.oc-gallery-viewer-footer .oc-gallery-thumb[aria-current="true"]{opacity:1;border-color:#b8d9b1}
.oc-gallery-viewer-footer>p{display:flex;justify-content:space-between;gap:15px;color:#b4c7bd;font-size:11px;margin:9px 0 0}
.oc-gallery-hint{color:#93a99d}
.oc-gallery-empty{display:grid;place-items:center;align-content:center;gap:16px;min-height:280px;border-radius:18px;background:#edf1e9;color:#627565}
.oc-gallery-empty svg{width:32px;height:32px}.oc-gallery-empty p{margin:0;font-size:14px}
@keyframes oc-gallery-enter{from{opacity:0;transform:translateY(12px) scale(.985)}to{opacity:1;transform:none}}
@media(max-width:767px){
 .oc-gallery{margin:20px 0 25px}.oc-gallery-mosaic{grid-template-columns:1fr;height:clamp(240px,67vw,410px);border-radius:14px}.oc-gallery-previews{display:none}
 .oc-gallery-heading{font-size:12px}.oc-gallery-expand{top:12px;right:12px;font-size:11px}.oc-gallery-arrow{width:36px;height:36px}.oc-gallery-prev{left:12px}.oc-gallery-next{right:12px}.oc-gallery-counter{left:12px;bottom:12px}
 .oc-gallery-bottom{gap:10px;align-items:stretch;margin-top:10px}.oc-gallery-thumb{flex-basis:72px;width:72px;height:54px}.oc-gallery-browse{padding:8px 10px;flex-direction:column;gap:4px;max-width:92px;line-height:1.4;font-size:10px!important}
 .oc-gallery-viewer-header{padding:14px 16px;gap:12px}.oc-gallery-kicker{font-size:9px}.oc-gallery-viewer-header h2{max-width:57vw;font-size:12px!important}.oc-gallery-viewer-actions{gap:10px;font-size:11px}.oc-gallery-viewer-actions button{width:34px;height:34px}
 .oc-gallery-stage{padding:12px 0}.oc-gallery-stage .oc-gallery-arrow{width:36px;height:36px;background:#12251c9c}.oc-gallery-stage .oc-gallery-prev{left:10px}.oc-gallery-stage .oc-gallery-next{right:10px}
 .oc-gallery-viewer-footer{padding:0 14px max(16px,env(safe-area-inset-bottom))}.oc-gallery-viewer-footer>p{justify-content:center}.oc-gallery-hint{display:none}
}
@media(prefers-reduced-motion:reduce){.oc-gallery *{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
