.wt-gallery{min-width:0;--wt-gallery-line:#dce2e7;--wt-gallery-ink:#17232c;--wt-gallery-radius:14px}
.wt-gallery [hidden]{display:none!important}
.wt-gallery-stage{overflow:hidden;border:1px solid var(--wt-gallery-line);border-radius:18px;background:#fff}
.wt-gallery-photo,.wt-gallery-open,.wt-gallery-thumbnail,.wt-gallery-modal-photo{position:relative}
.wt-gallery-open{display:block;color:var(--wt-gallery-ink);background:#fff}
.wt-gallery-image{display:block;width:100%;height:auto;aspect-ratio:1;object-fit:contain;max-height:620px;padding:12px}
.wt-gallery-zoom-label{position:absolute;left:12px;bottom:12px;display:flex;align-items:center;gap:6px;padding:7px 10px;border:1px solid var(--wt-gallery-line);border-radius:999px;background:rgba(255,255,255,.94);color:#253341;font-size:12px;line-height:1.2}
.wt-gallery-controls{display:flex;align-items:center;justify-content:center;gap:18px;margin:12px 0;color:#4a5864;font-size:13px}
.wt-gallery-arrow,.wt-gallery-close{display:inline-flex;align-items:center;justify-content:center;min-width:44px;min-height:44px;padding:8px;border:1px solid var(--wt-gallery-line);border-radius:var(--wt-gallery-radius);color:var(--wt-gallery-ink);background:#fff;cursor:pointer}
.wt-gallery-arrow:hover,.wt-gallery-close:hover{background:#edf3f8;border-color:var(--wt-accent,#004b95)}
.wt-gallery-thumbnails{display:flex;gap:10px;overflow-x:auto;padding:3px 3px 10px;scrollbar-width:thin}
.wt-gallery-thumbnail{flex:0 0 76px;width:76px;height:76px;padding:4px;border:1px solid var(--wt-gallery-line);border-radius:12px;overflow:hidden;background:#fff;cursor:pointer}
.wt-gallery-thumbnail[aria-pressed=true]{border:2px solid var(--wt-accent,#004b95);padding:3px;box-shadow:0 0 0 1px var(--wt-accent,#004b95)}
.wt-gallery-thumbnail img{width:100%;height:100%;object-fit:contain;display:block}
.wt-gallery[data-wt-watermark=true] .wt-gallery-open::after,.wt-gallery[data-wt-watermark=true] .wt-gallery-thumbnail::after,.wt-gallery[data-wt-watermark=true] .wt-gallery-modal-photo::after{content:"";position:absolute;right:10px;bottom:10px;width:min(var(--ezt-watermark-size,90px),18%);aspect-ratio:1;background:var(--ezt-watermark-image) center/contain no-repeat;opacity:var(--ezt-watermark-opacity,.35);pointer-events:none;user-select:none;z-index:2}
.wt-gallery[data-wt-watermark=true] .wt-gallery-thumbnail::after{width:24%;right:3px;bottom:3px}
.wt-gallery-dialog{box-sizing:border-box;position:fixed;inset:0;width:min(1100px,calc(100vw - 32px));max-width:none;max-height:calc(100dvh - 32px);padding:18px;margin:auto;border:0;border-radius:18px;overflow:auto;background:#fff;color:var(--wt-gallery-ink);box-shadow:0 18px 80px #0006;overscroll-behavior:contain}
.wt-gallery-dialog::backdrop{background:rgba(13,20,28,.8)}
.wt-gallery-dialog-header{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:10px}
.wt-gallery-dialog-header h2{margin:0;font-size:18px;line-height:1.3;text-transform:none;font-style:normal}
.wt-gallery-modal-photo{width:100%;height:min(68dvh,760px);background:#fff;display:flex;align-items:center;justify-content:center}
.wt-gallery-modal-photo img{display:block;width:100%;height:100%;object-fit:contain}
.wt-gallery-dialog .wt-gallery-controls{margin-bottom:0}
.wt-gallery :focus-visible{outline:3px solid var(--wt-accent,#004b95);outline-offset:3px}
.wt-gallery-noscript-links{display:flex;flex-wrap:wrap;gap:12px}
@media(max-width:899px){.wt-gallery-image{max-height:430px}.wt-gallery-stage{border-radius:14px}.wt-gallery-dialog{width:calc(100vw - 16px);max-height:calc(100dvh - 16px);padding:12px;border-radius:14px}.wt-gallery-modal-photo{height:62dvh}.wt-gallery-thumbnails{gap:8px}}

