.tqt-gallery-open{overflow:hidden}
.tqt-gallery-modal{position:fixed;inset:0;z-index:999999;background:rgba(1,16,29,.96);color:#fff;display:grid;grid-template-rows:auto minmax(0,1fr) auto;gap:8px;padding:clamp(10px,2vw,24px)}
.tqt-gallery-top,.tqt-gallery-bottom{display:flex;align-items:center;gap:18px;justify-content:space-between;min-height:44px}
.tqt-gallery-title{font-size:clamp(15px,1.7vw,21px);max-width:65vw;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.tqt-gallery-counter{margin-left:auto;color:#bacddd;font-size:13px}
.tqt-gallery-close,.tqt-gallery-nav,.tqt-gallery-zoom{border:1px solid rgba(255,255,255,.25);background:rgba(21,57,79,.87);color:#fff;cursor:pointer;border-radius:12px;min-width:44px;min-height:44px;font-size:17px}
.tqt-gallery-close{font-size:28px}.tqt-gallery-nav{font-size:40px;width:56px;align-self:center;z-index:1}
.tqt-gallery-nav:disabled{opacity:.25;cursor:default}
.tqt-gallery-stage{min-height:0;display:flex;align-items:center;justify-content:space-between;gap:12px}
.tqt-gallery-image{max-width:min(85vw,850px);max-height:100%;width:auto;height:auto;object-fit:contain;cursor:zoom-in;border-radius:8px;box-shadow:0 12px 35px rgba(0,0,0,.2)}
.tqt-gallery-image.is-zoomed{max-width:none;max-height:none;width:auto;height:auto;transform:scale(1.65);cursor:zoom-out;z-index:2}
.tqt-gallery-stage{overflow:auto;overscroll-behavior:contain}
.tqt-gallery-bottom{font-size:13px;color:#c8d6df}
.tqt-gallery-zoom{min-width:100px;padding:0 12px}
@media(max-width:640px){.tqt-gallery-modal{padding:10px}.tqt-gallery-nav{width:38px;min-width:38px;font-size:28px}.tqt-gallery-image{max-width:calc(100vw - 100px)}.tqt-gallery-title{max-width:53vw}.tqt-gallery-bottom span{max-width:55%}}
