.sv-gallery-dialog{box-sizing:border-box;width:min(1180px,94vw);max-width:94vw;height:min(850px,92dvh);max-height:92dvh;margin:auto;padding:0;border:1px solid #494b46;border-radius:14px;background:#202320;color:#fff;box-shadow:0 24px 90px #0008;overflow:hidden}
.sv-gallery-dialog::backdrop{background:rgba(12,16,13,.88);backdrop-filter:blur(8px)}
.sv-viewer{height:100%;display:grid;grid-template-rows:auto minmax(0,1fr) auto}
.sv-viewer header{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:22px 28px}
.sv-viewer header p{margin:0 0 5px;font-size:11px;letter-spacing:.16em;color:#e8c88d}
.sv-viewer h2{margin:0;color:#fff;font-size:clamp(18px,2vw,25px);line-height:1.3}
.sv-viewer-stage{min-height:0;display:flex;align-items:center;justify-content:center;background:#171a17;padding:12px 24px}
.sv-viewer-stage img{display:block;width:100%;height:100%;object-fit:contain;touch-action:pan-y}
.sv-viewer footer{display:flex;align-items:center;justify-content:center;gap:28px;padding:16px}
.sv-gallery-dialog button{display:grid;place-items:center;width:46px;height:46px;padding:0;border:1px solid #6e746e;border-radius:50%;background:transparent;color:#fff;font-size:26px;line-height:1;flex-shrink:0;cursor:pointer}
.sv-gallery-dialog button:hover{background:#e8c88d;color:#202320;border-color:#e8c88d}
.sv-gallery-dialog button:disabled{opacity:.35;cursor:default}
.sv-counter{min-width:74px;text-align:center;font-size:15px;font-variant-numeric:tabular-nums}
.sv-card .sv-gallery-open{padding:10px 0;background:transparent;border:0;border-radius:0;color:#70501d;font:inherit;font-weight:600;text-align:left;min-height:44px;cursor:pointer}
.sv-card .sv-gallery-open:hover{color:#202320;text-decoration:underline}
.sv-card .sv-gallery-cover{display:block;width:100%;padding:0;border:0;border-radius:0;background:transparent;cursor:zoom-in;overflow:hidden}
.sv-card .sv-gallery-cover img{display:block;width:100%;transition:transform .25s}
.sv-card .sv-gallery-cover:hover img{transform:scale(1.025)}
.sv-gallery-dialog button:focus-visible,.sv-gallery-open:focus-visible,.sv-gallery-cover:focus-visible{outline:3px solid #bd8c36;outline-offset:3px}
@media(max-width:600px){.sv-gallery-dialog{width:96vw;max-width:96vw;height:88dvh;border-radius:10px}.sv-viewer header{padding:16px;gap:12px}.sv-viewer-stage{padding:8px}.sv-viewer footer{padding:14px}.sv-viewer header p{font-size:10px}}
@media(prefers-reduced-motion:reduce){.sv-card .sv-gallery-cover img{transition:none}}
