body.ts-image-popup-open{overflow:hidden}
.ts-image-popup{position:fixed;inset:0;margin:auto;padding:0;border:1px solid #dbe4d5;border-radius:0;width:min(1080px,calc(100vw - 64px));height:min(820px,calc(100vh - 64px));height:min(820px,calc(100dvh - 64px));max-width:none;max-height:none;overflow:hidden;background:#fff;color:#19271f;font:400 13px/1.6 Manrope,Arial,sans-serif;box-shadow:0 24px 90px #102c2740}
.ts-image-popup[open]{display:grid;grid-template-rows:64px minmax(0,1fr) 60px}
.ts-image-popup::backdrop{background:rgba(22,38,29,.54);backdrop-filter:blur(3px)}
.ts-image-popup-header{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:10px 16px 10px 24px;border-bottom:1px solid #e0e7dc}
.ts-image-popup-header h2{font:500 15px/1.5 Manrope,Arial,sans-serif;letter-spacing:-.02em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0;margin:0}
.ts-image-popup-tools{display:flex;align-items:center;gap:8px;flex-shrink:0}
.ts-image-popup button{display:grid;place-items:center;box-sizing:border-box;width:44px;height:44px;padding:0;border:1px solid #c4d1c0;border-radius:0;color:#0b4b26;background:#fff;cursor:pointer}
.ts-image-popup button:hover{background:#edf3e9;border-color:#0b4b26}
.ts-image-popup button:disabled{opacity:.4;cursor:wait}
.ts-image-popup button svg{display:block;width:20px;height:20px}
.ts-image-popup :is(button,.ts-image-popup-stage):focus-visible{outline:2px solid #0b4b26;outline-offset:3px}
.ts-image-popup-stage{display:flex;align-items:center;justify-content:center;overflow:auto;min-width:0;min-height:0;padding:20px;background:#f7f8f4;overscroll-behavior:contain;touch-action:pan-y}
.ts-image-popup-stage img{display:block;flex:none;width:100%;height:100%;max-width:100%;max-height:100%;object-fit:contain;user-select:none}
.ts-image-popup-stage img[hidden],.ts-image-popup-error[hidden]{display:none}
.ts-image-popup-error{margin:auto;padding:24px;max-width:360px;text-align:center;color:#536358}
.ts-image-popup.is-zoomed .ts-image-popup-stage{display:block;touch-action:none;cursor:grab}
.ts-image-popup.is-zoomed .ts-image-popup-stage:active{cursor:grabbing}
.ts-image-popup.is-zoomed .ts-image-popup-stage img{width:var(--tillitset-image-width);height:auto;max-width:none;max-height:none}
.ts-image-popup-footer{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:8px 16px;border-top:1px solid #e0e7dc}
.ts-image-popup-counter{font-size:11px;color:#5a6a5f}
@media(max-width:767px){.ts-image-popup{width:calc(100vw - 24px);height:min(680px,calc(100vh - 48px),calc(100vw + 96px));height:min(680px,calc(100dvh - 48px),calc(100vw + 96px))}.ts-image-popup[open]{grid-template-rows:60px minmax(0,1fr) 60px}.ts-image-popup-header{padding:8px 10px 8px 14px;gap:10px}.ts-image-popup-header h2{font-size:12px}.ts-image-popup-tools{gap:6px}.ts-image-popup-stage{padding:12px}.ts-image-popup-footer{padding:8px 10px}}
@media(max-height:480px){.ts-image-popup{height:calc(100vh - 24px);height:calc(100dvh - 24px)}.ts-image-popup[open]{grid-template-rows:52px minmax(0,1fr) 52px}.ts-image-popup-header,.ts-image-popup-footer{padding-block:4px}.ts-image-popup-stage{padding:8px}}
