.gallery{margin-bottom:26px}.gallery-frame{position:relative}.gallery-strip{display:flex;overflow-x:auto;overflow-y:hidden;scroll-snap-type:x mandatory;overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch;border-radius:18px;background:var(--wash);scrollbar-width:none}.gallery-strip::-webkit-scrollbar{display:none}.gallery-slide{flex:0 0 100%;width:100%;aspect-ratio:var(--gallery-shape,16/9);max-height:min(66vh,680px);scroll-snap-align:start;scroll-snap-stop:always;display:block;margin:0;padding:0;border:0;background:var(--wash);cursor:zoom-in;-webkit-tap-highlight-color:transparent}.gallery-slide img{width:100%;height:100%;object-fit:contain;display:block}.gallery-slide:focus-visible{outline:3px solid var(--violet);outline-offset:-3px}.gallery-count{position:absolute;top:10px;right:10px;margin:0;padding:4px 10px;border-radius:999px;background:rgba(12,22,24,.62);color:#fff;font-size:12px;font-weight:800;letter-spacing:.02em;pointer-events:none;-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px)}.gallery-thumbs{display:flex;gap:8px;margin-top:8px;overflow-x:auto;padding-bottom:4px}.gallery-thumbs button{flex:0 0 84px;aspect-ratio:4/3;border:2px solid transparent;border-radius:10px;overflow:hidden;padding:0;background:var(--wash);cursor:pointer}.gallery-thumbs button.active{border-color:var(--violet)}.gallery-thumbs img{width:100%;height:100%;object-fit:cover;display:block}.gallery-expand{position:absolute;right:10px;bottom:10px;z-index:4;pointer-events:auto;touch-action:manipulation;display:grid;place-items:center;width:36px;height:36px;border:1px solid rgba(255,255,255,.5);border-radius:999px;background:rgba(255,255,255,.62);-webkit-backdrop-filter:blur(7px);backdrop-filter:blur(7px);color:var(--ink);box-shadow:0 3px 10px rgba(23,50,52,.18);cursor:pointer}.gallery-expand:after{content:"";position:absolute;inset:-4px}@media (max-width:720px){.gallery-thumbs{gap:6px;margin-top:6px;padding-bottom:0;overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch;scrollbar-width:none}.gallery-thumbs::-webkit-scrollbar{display:none}.gallery-thumbs button{flex:0 0 56px;aspect-ratio:1;border-radius:8px}.gallery{margin-bottom:18px}}.gallery-viewer{position:fixed;inset:0;z-index:95;display:flex;flex-direction:column;background:rgba(8,16,18,.97);height:100vh;height:100dvh;touch-action:pan-x pinch-zoom;overscroll-behavior:contain}.gallery-viewer:focus{outline:none}.gallery-viewer-bar{flex:0 0 auto;display:flex;align-items:center;gap:12px;padding:calc(10px + env(safe-area-inset-top, 0px)) calc(12px + env(safe-area-inset-right, 0px)) 10px calc(12px + env(safe-area-inset-left, 0px));color:#fff}.gallery-viewer-count{margin:0;font-size:13px;font-weight:800;letter-spacing:.02em;opacity:.92}.gallery-viewer-close{margin-left:auto;width:40px;height:40px;border:0;border-radius:999px;display:flex;align-items:center;justify-content:center;background:rgba(255,255,255,.14);color:#fff;cursor:pointer}.gallery-viewer-strip{flex:1 1 auto;min-height:0;display:flex;overflow-x:auto;overflow-y:hidden;scroll-snap-type:x mandatory;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;scrollbar-width:none}.gallery-viewer-strip::-webkit-scrollbar{display:none}.gallery-viewer-slide{flex:0 0 100%;scroll-snap-align:start;scroll-snap-stop:always;display:flex;align-items:center;justify-content:center;padding:0 calc(8px + env(safe-area-inset-right, 0px)) calc(8px + env(safe-area-inset-bottom, 0px)) calc(8px + env(safe-area-inset-left, 0px))}.gallery-viewer-slide img{max-width:100%;max-height:100%;width:auto;height:auto;object-fit:contain;display:block}.gallery-viewer-nav{position:absolute;top:50%;transform:translateY(-50%);width:40px;height:40px;border:0;border-radius:999px;display:flex;align-items:center;justify-content:center;background:rgba(12,22,24,.55);color:#fff;cursor:pointer}.gallery-viewer-nav.prev{left:calc(6px + env(safe-area-inset-left, 0px))}.gallery-viewer-nav.next{right:calc(6px + env(safe-area-inset-right, 0px))}.gallery-viewer-close:focus-visible,.gallery-viewer-nav:focus-visible{outline:3px solid #fff;outline-offset:2px}@media (max-height:480px){.gallery-viewer-bar{padding-top:calc(6px + env(safe-area-inset-top, 0px));padding-bottom:6px}.gallery-viewer-count{font-size:12px}}body.gallery-locked{overflow:hidden}