.wizart-gallery{--gallery-cols:3;--gallery-ratio:3 / 2}.wizart-gallery--cols-2{--gallery-cols:2}.wizart-gallery--cols-4{--gallery-cols:4}.wizart-gallery--r4-3{--gallery-ratio:4 / 3}.wizart-gallery--r1-1{--gallery-ratio:1}.wizart-gallery--r3-4{--gallery-ratio:3 / 4}.wizart-gallery__grid{grid-template-columns:repeat(var(--gallery-cols), minmax(0, 1fr));gap:var(--sec-gap);margin:0;padding:0;list-style:none;display:grid}.wizart-gallery__item,.wizart-gallery__figure{margin:0}.wizart-gallery__link{border-radius:var(--sec-radius);background:var(--sec-bg-soft);cursor:zoom-in;display:block;overflow:hidden}.wizart-gallery__link:focus-visible{outline:3px solid var(--sec-accent);outline-offset:3px}.wizart-gallery__img{width:100%;height:auto;aspect-ratio:var(--gallery-ratio);object-fit:cover;transition:transform .5s cubic-bezier(.2,.7,.2,1);display:block}.wizart-gallery__link:hover .wizart-gallery__img{transform:scale(1.03)}.wizart-gallery__caption{color:var(--sec-muted);margin:.6em 0 0;font-size:.9375rem;line-height:1.45}@media (width<1024px){.wizart-gallery--cols-4{--gallery-cols:3}}@media (width<=700px){.wizart-gallery--cols-3,.wizart-gallery--cols-4{--gallery-cols:2}.wizart-gallery--cols-2{--gallery-cols:1}.wizart-gallery__grid{gap:12px}.wizart-gallery__caption{font-size:.875rem}}.wizart-gallery__dialog{box-sizing:border-box;background:var(--sec-dark);width:100%;max-width:none;height:100%;max-height:none;color:var(--sec-on-dark);font-family:var(--sec-ui);border:0;margin:0;padding:0}.wizart-gallery__dialog::backdrop{background:var(--sec-dark)}.wizart-gallery__viewer{grid-template-rows:auto minmax(0,1fr);height:100%;display:grid;position:relative}.wizart-gallery__bar{grid-row:1;align-items:center;gap:16px;padding:12px clamp(12px,3vw,32px);display:flex}.wizart-gallery__count{font-variant-numeric:tabular-nums;opacity:.8;margin:0 auto 0 0;font-size:.9375rem}.wizart-gallery__download{border:1px solid color-mix(in srgb, var(--sec-on-dark) 40%, transparent);border-radius:var(--sec-radius-pill);min-height:44px;color:var(--sec-on-dark);align-items:center;padding:0 18px;font-size:.9375rem;font-weight:600;text-decoration:none;display:inline-flex}.wizart-gallery__download:hover{background:color-mix(in srgb, var(--sec-on-dark) 12%, transparent)}.wizart-gallery__stage{flex-direction:column;grid-row:2;justify-content:center;align-items:center;gap:14px;min-height:0;margin:0;padding:0 clamp(12px,8vw,112px) clamp(16px,3vw,32px);display:flex}.wizart-gallery__full{object-fit:contain;-webkit-user-select:none;user-select:none;flex:0 auto;width:auto;max-width:100%;height:auto;min-height:0;max-height:100%;display:block}.wizart-gallery__full-caption{max-width:var(--sec-measure);text-align:center;opacity:.85;font-size:.9375rem;line-height:1.45}.wizart-gallery__full-caption:empty{display:none}.wizart-gallery__btn{border:1px solid color-mix(in srgb, var(--sec-on-dark) 30%, transparent);border-radius:var(--sec-radius-pill);background:var(--sec-scrim);width:48px;height:48px;color:var(--sec-on-dark);cursor:pointer;place-items:center;padding:0;transition:background-color .2s,border-color .2s;display:inline-grid}.wizart-gallery__btn:hover{border-color:var(--sec-on-dark);background:color-mix(in srgb, var(--sec-on-dark) 14%, transparent)}.wizart-gallery__btn:focus-visible,.wizart-gallery__download:focus-visible{outline:3px solid var(--sec-on-dark);outline-offset:2px}.wizart-gallery__prev,.wizart-gallery__next{position:absolute;top:50%;transform:translateY(-50%)}.wizart-gallery__prev{left:clamp(8px,2vw,32px)}.wizart-gallery__next{right:clamp(8px,2vw,32px)}@media (width<=700px){.wizart-gallery__stage{padding:0 0 76px}.wizart-gallery__prev,.wizart-gallery__next{top:auto;bottom:16px;transform:none}.wizart-gallery__prev{left:calc(50% - 60px)}.wizart-gallery__next{right:calc(50% - 60px)}}html:has(.wizart-gallery__dialog[open]){overflow:hidden}@media (prefers-reduced-motion:reduce){.wizart-gallery__img,.wizart-gallery__btn{transition:none}.wizart-gallery__link:hover .wizart-gallery__img{transform:none}}.wizart-gallery__link:hover,.wizart-gallery__download:hover{opacity:1}
