.stys-show{position:relative;max-width:100%;margin:auto;overflow:hidden}.stys-stage{display:grid;overflow:hidden;height:var(--stys-height)}.stys-frame{grid-area:1/1;min-width:0;min-height:0;opacity:0;visibility:hidden;transition:opacity .6s,transform .6s,visibility .6s}.stys-frame.active{opacity:1;visibility:visible;z-index:1}.stys-frame img{display:block;width:100%;height:100%;object-fit:var(--stys-fit)}.stys-show[data-effect=slide] .stys-frame{transform:translateX(100%)}.stys-show[data-effect=zoom] .stys-frame{transform:scale(1.12)}.stys-show .stys-frame.active{transform:none}.stys-controls{position:absolute;inset:0;pointer-events:none;z-index:2;display:flex;align-items:center;justify-content:space-between}.stys-controls button,.stys-dots button{pointer-events:auto;background:#0009;color:white;border:0;cursor:pointer;padding:8px 14px}.stys-controls [data-pause]{position:absolute;right:8px;top:8px}.stys-dots{position:absolute;bottom:10px;left:0;right:0;display:flex;justify-content:center;gap:8px;z-index:3}.stys-dots button{padding:0;width:12px;height:12px;border-radius:50%;background:#888}.stys-dots button[aria-current=true]{background:white}.stys-show button:focus-visible{outline:2px solid #fff;outline-offset:2px}@media(prefers-reduced-motion:reduce){.stys-frame{transition:none}}

.stys-show.stys-fullwidth{width:var(--stys-viewport,100vw)!important;max-width:none!important;margin-left:calc(50% - var(--stys-viewport,100vw)/2)!important;margin-right:0!important}.stys-frame{position:relative;overflow:hidden}.stys-frame .stys-photo{position:relative;z-index:1;max-width:none}.stys-frame .stys-back{position:absolute;inset:0;width:100%;height:100%;max-width:none;object-fit:cover;filter:blur(var(--stys-blur,25px));transform:scale(1.15);pointer-events:none}.stys-blur .stys-frame{background:#222}.stys-stage{max-width:none}

/* Keep the foreground image centered even when the theme sets image height or alignment. */
.stys-show .stys-stage .stys-frame{display:flex;align-items:center;justify-content:center;min-width:0;min-height:0}
.stys-show .stys-stage .stys-frame .stys-photo{display:block;position:relative;flex:0 0 auto;width:100%;height:100%;max-width:none;max-height:none;margin:0;padding:0;object-fit:var(--stys-fit);object-position:50% 50%;align-self:center}
.stys-show .stys-stage .stys-frame .stys-back{object-position:50% 50%}

/* Definite stage dimensions: intrinsic image sizes must never expand a grid track. */
.stys-show .stys-stage{position:relative;display:block;width:100%;height:var(--stys-height,450px);min-height:0;overflow:hidden}
.stys-show .stys-stage .stys-frame{position:absolute;inset:0;width:100%;height:100%;min-width:0;min-height:0;overflow:hidden;box-sizing:border-box}
.stys-show .stys-stage .stys-frame img.stys-photo{position:absolute!important;inset:0!important;display:block!important;width:100%!important;height:100%!important;max-width:100%!important;max-height:100%!important;min-width:0!important;min-height:0!important;margin:0!important;padding:0!important;box-sizing:border-box!important;object-fit:var(--stys-fit,contain)!important;object-position:center center!important;z-index:1}
.stys-show .stys-stage .stys-frame img.stys-back{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;max-width:none!important;max-height:none!important;object-fit:cover!important;object-position:center!important;margin:0!important}
.stys-show .stys-stage{aspect-ratio:16/9}

/* Explicit foreground geometry, independent of theme image rules. */
.stys-show.stys-fit-contain .stys-stage .stys-frame img.stys-photo{inset:auto!important;left:50%!important;top:50%!important;transform:translate(-50%,-50%)!important;width:auto!important;height:auto!important;max-width:100%!important;max-height:100%!important;object-fit:contain!important;object-position:center!important;aspect-ratio:auto!important}
.stys-show.stys-fit-cover .stys-stage .stys-frame img.stys-photo{object-fit:cover!important}
.stys-show.stys-fit-contain[data-effect=zoom] .stys-frame{transform:none}

/* Responsive overrides inherit the original gallery dimensions when blank. */
.stys-show{width:var(--stys-width,100%);min-width:0;box-sizing:border-box}
.stys-show .stys-stage{height:var(--stys-height,450px)}
@media(max-width:1024px){.stys-show{width:var(--stys-tablet-width,var(--stys-width,100%))}.stys-show .stys-stage{height:var(--stys-tablet-height,var(--stys-height,450px))}}
@media(max-width:767px){.stys-show{width:var(--stys-mobile-width,var(--stys-tablet-width,var(--stys-width,100%)))}.stys-show .stys-stage{height:var(--stys-mobile-height,var(--stys-tablet-height,var(--stys-height,450px)))}}
.stys-indicators{position:absolute;bottom:10px;left:8px;right:8px;z-index:3;display:flex;justify-content:center;min-width:0}
.stys-indicators .stys-dots{position:relative;inset:auto;max-width:100%;overflow-x:auto;justify-content:safe center;scrollbar-width:thin;padding:4px;box-sizing:border-box}
.stys-indicators .stys-dots button{flex:0 0 12px;min-width:12px;min-height:12px;box-sizing:border-box}
.stys-counter,.stys-progress{display:none}
.stys-mode-counter .stys-counter,.stys-many .stys-mode-adaptive .stys-counter{display:block;background:#000b;color:#fff;border-radius:20px;padding:4px 12px;font-size:13px;line-height:1.5}
.stys-mode-progress .stys-progress{display:block;width:100%;max-width:240px;height:5px;border-radius:5px;background:#0009;overflow:hidden}
.stys-progress span{display:block;height:100%;background:#fff;width:0;transition:width .2s}
.stys-mode-counter .stys-dots,.stys-mode-progress .stys-dots,.stys-many .stys-mode-adaptive .stys-dots{display:none}
