.gallery-block{min-width:0}.gallery-categories{display:flex;gap:4px;overflow-x:auto;scrollbar-width:thin;min-width:0;padding:0 0 8px}.gallery-categories button{display:inline-flex;align-items:center;justify-content:center;gap:7px;flex-shrink:0;min-height:40px;padding:7px 11px;background:transparent;color:var(--muted);border:1px solid transparent;border-radius:4px;font-size:14px;font-weight:600;white-space:nowrap}.gallery-categories button span{font-size:12px;font-weight:500;opacity:.85}.gallery-categories button[aria-pressed=true]{color:var(--text);background:var(--surface);border-color:var(--line);box-shadow:inset 0 -2px var(--red)}.gallery-categories button:hover{color:var(--text);background:var(--surface)}.gallery-stage{position:relative;background:#090a0b;overflow:hidden;isolation:isolate}.gallery-inline .gallery-stage{aspect-ratio:1.6}.gallery-open,.gallery-viewport{display:block;position:absolute;inset:0;width:100%;height:100%;margin:0;padding:0;background:transparent;border:0;overflow:hidden;touch-action:pan-y pinch-zoom}.gallery-open{cursor:zoom-in}.gallery-photo{display:block;width:100%;height:100%;object-fit:contain;user-select:none}.gallery-photo[hidden]{display:none}.gallery-expand{position:absolute;top:12px;right:12px;display:grid;place-items:center;width:36px;height:36px;border-radius:4px;background:#090a0bc4;color:#fff}.gallery-arrow{position:absolute;inset-block:30%;display:grid;place-items:center;width:44px;background:#090a0b85;color:#fff;border-radius:0;z-index:2;padding:0;transition:background .15s}.gallery-arrow:hover{background:#090a0bdb}.gallery-arrow .icon{width:25px;height:25px}.gallery-prev{left:0}.gallery-prev .icon{transform:rotate(180deg)}.gallery-next{right:0}.gallery-caption{position:absolute;bottom:0;inset-inline:0;display:flex;align-items:end;justify-content:space-between;gap:16px;padding:25px 14px 10px;background:linear-gradient(transparent,#000c);color:#fff;font-size:14px;pointer-events:none}.gallery-caption>span:first-child{min-width:0;overflow-wrap:anywhere}.gallery-counter{flex-shrink:0;font-variant-numeric:tabular-nums}.gallery-error,.gallery-loading{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:calc(100% - 110px);text-align:center;color:#ddd;font-size:15px;pointer-events:none}.gallery-thumbs{display:flex;align-items:center;gap:8px;padding:10px 0 6px;overflow-x:auto;scrollbar-width:thin;overscroll-behavior-x:contain}.gallery-thumb{flex:0 0 88px;width:88px;height:62px;padding:2px;background:#090a0b;border:2px solid transparent;border-radius:2px}.gallery-thumb img{width:100%;height:100%;object-fit:contain}.gallery-thumb[aria-pressed=true]{border-color:var(--red)}.gallery-thumb:hover{border-color:var(--muted)}.gallery-footnote{display:flex;justify-content:space-between;gap:8px;padding-top:5px;color:var(--muted);font-size:12px}.gallery-block button:focus-visible,.gallery-viewport:focus-visible{outline:2px solid var(--red);outline-offset:-2px}dialog.gallery-dialog{width:100vw;height:100dvh;max-width:none;max-height:none;margin:0;border:0;border-radius:0;overflow:hidden}.gallery-dialog .dialog-inner{height:100%;padding:0}.gallery-viewer{height:100%;display:flex;flex-direction:column;min-height:0}.gallery-viewer-header{flex-shrink:0;min-height:64px;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:10px 18px;border-bottom:1px solid var(--line)}.gallery-dialog .gallery-viewer-header h2{display:flex;flex-wrap:wrap;align-items:baseline;gap:10px;padding:0;margin:0;font-family:var(--body);font-size:18px;line-height:1.3;font-weight:600;text-shadow:none}.gallery-viewer-header h2 small{font-family:var(--body);font-size:13px;font-weight:400;color:var(--muted)}.gallery-window-controls{display:flex;gap:8px;flex-shrink:0}.gallery-window-controls button,.gallery-zoom button{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-width:40px;min-height:40px;padding:8px;border:1px solid var(--line);border-radius:4px;background:transparent;color:var(--text);font-size:13px;white-space:nowrap}.gallery-window-controls button:hover,.gallery-zoom button:hover{background:var(--hover)}.gallery-viewer .gallery-stage{flex:1 1 auto;min-height:0}.gallery-viewer .gallery-arrow{width:56px}.gallery-viewport{cursor:zoom-in;touch-action:pan-y}.gallery-viewport.is-zoomed{cursor:grab;touch-action:none}.gallery-viewport.is-zoomed:active{cursor:grabbing}.gallery-viewer-tools{display:flex;flex-shrink:0;align-items:center;justify-content:space-between;gap:14px;padding:8px 18px 0}.gallery-viewer-tools .gallery-categories{padding:0}.gallery-zoom{display:flex;align-items:center;gap:5px;flex-shrink:0}.gallery-zoom output{min-width:45px;text-align:center;font-size:13px;font-variant-numeric:tabular-nums}.gallery-zoom button:disabled{opacity:.35;cursor:default}.gallery-viewer .gallery-thumbs{flex-shrink:0;margin-inline:18px}.gallery-viewer .gallery-footnote{flex-shrink:0;padding:2px 18px 10px}dialog.gallery-windowed{width:min(1200px,calc(100vw - 48px));height:min(900px,calc(100dvh - 48px));margin:auto;border:1px solid var(--line);border-radius:8px}@media(max-width:900px){.gallery-viewer-tools{flex-wrap:wrap;gap:5px}.gallery-viewer-tools .gallery-categories{flex:1 1 100%}.gallery-zoom{margin-left:auto}}@media(max-width:600px){.gallery-categories button{padding:7px 9px;gap:5px;font-size:13px}.gallery-arrow{width:38px;inset-block:25%}.gallery-thumb{flex-basis:72px;width:72px;height:52px}.gallery-caption{font-size:12px;padding:22px 9px 7px}.gallery-viewer-header{padding:8px 10px;gap:8px}.gallery-dialog .gallery-viewer-header h2{font-size:15px}.gallery-window-controls span,.gallery-viewer-header h2 small,.gallery-footnote>span{display:none}.gallery-viewer .gallery-arrow{width:40px}.gallery-viewer-tools{padding:6px 10px 0}.gallery-viewer .gallery-thumbs{margin-inline:10px}.gallery-viewer .gallery-footnote{padding:2px 10px 8px}dialog.gallery-windowed{width:calc(100vw - 16px);height:calc(100dvh - 32px)}}@media(max-height:500px)and (orientation:landscape){.gallery-viewer-header{min-height:44px;padding-block:2px}.gallery-viewer-tools{flex-wrap:nowrap;padding-top:2px}.gallery-viewer-tools .gallery-categories{flex:1 1 auto}.gallery-viewer .gallery-thumbs{padding-top:3px}.gallery-viewer .gallery-thumb{height:42px;flex-basis:62px}.gallery-viewer .gallery-footnote{display:none}}
