/* Central Hall Sliders — substituto do Slider Revolution 5
   --u = tamanho (px) de 1 unidade da grade do slider.
   fullwidth/auto: largura / grade ; fullscreen: min(largura/grade, altura/grade) — igual ao Revolution. */
.chs-wrap{container-type:inline-size;position:relative;width:100%;overflow:hidden;background:transparent;padding:0;margin:0;--u:calc(100cqw / var(--gw))}
.chs-fullscreen{--u:min(calc(100cqw / var(--gw)), calc(100vh / var(--gh)))}
@supports (height:100dvh){.chs-fullscreen{--u:min(calc(100cqw / var(--gw)), calc(100dvh / var(--gh)))}}
.chs{position:relative;width:100%;overflow:hidden}
.chs-fullwidth .chs,.chs-auto .chs{height:calc(var(--gh) * var(--u))}
.chs-fullscreen .chs{height:100vh}
@supports (height:100dvh){.chs-fullscreen .chs{height:100dvh}}

.chs-slide{position:absolute;inset:0;opacity:0;visibility:hidden;transition:opacity .45s ease,visibility 0s linear .45s;z-index:0}
.chs-slide.is-active{opacity:1;visibility:visible;transition:opacity .45s ease,visibility 0s;z-index:1}
.chs-bg{position:absolute;inset:0;background-size:cover;background-position:center center;background-repeat:no-repeat}

/* grade de camadas centralizada */
.chs-grid{position:absolute;left:50%;top:0;width:calc(var(--gw) * var(--u));height:calc(var(--gh) * var(--u));transform:translateX(-50%)}
.chs-fullscreen .chs-grid{top:50%;transform:translate(-50%,-50%)}

.chs-l{position:absolute;z-index:var(--z,5);margin:0}
.chs-ah-left{left:calc(var(--x) * var(--u))}
.chs-ah-right{right:calc(var(--x) * var(--u))}
.chs-ah-center{left:calc(50% + var(--x) * var(--u));transform:translateX(-50%)}
.chs-av-top{top:calc(var(--y) * var(--u))}
.chs-av-bottom{bottom:calc(var(--y) * var(--u))}
.chs-av-middle{top:calc(50% + var(--y) * var(--u));transform:translateY(-50%)}
.chs-ah-center.chs-av-middle{transform:translate(-50%,-50%)}
.chs-img img{display:block;width:calc(var(--w) * var(--u));height:auto;max-width:none}
.chs-nowrap{white-space:nowrap}
.chs-wrapw{white-space:normal;width:var(--pw);min-width:0}
.chs-wrapw[style*="--w:"]{width:calc(var(--w) * var(--u))}
.chs-l[data-act]{cursor:pointer}

/* entrada das camadas (fade) quando o slide fica ativo */
.chs-slide.is-active .chs-l{animation:chsFade .6s ease both}
@keyframes chsFade{from{opacity:0}to{opacity:1}}
@media (prefers-reduced-motion:reduce){.chs-slide,.chs-slide.is-active{transition:none}.chs-slide.is-active .chs-l{animation:none}}

/* bolinhas (usam as classes .hermes .tp-bullet já estilizadas no CSS do tema) */
.chs-bullets{position:absolute;z-index:100;display:flex;gap:var(--sp,5px)}
.chs-bullets.chs-vertical{flex-direction:column}
.chs-bullets.chs-horizontal{flex-direction:row}
.chs-bullets .tp-bullet{position:relative;display:block;box-sizing:border-box;width:20px;height:20px;border-radius:50%;cursor:pointer;transition:background .3s}
.chs-bullets .tp-bullet:after{content:"";position:absolute;inset:4px;border-radius:50%;background:#a06a51;opacity:0;transition:opacity .3s}
.chs-bullets .tp-bullet.selected:after{opacity:1}
.chs-bh-right{right:var(--ox,30px)}
.chs-bh-left{left:var(--ox,30px)}
.chs-bh-center{left:50%;margin-left:var(--ox,0)}
.chs-bh-center.chs-horizontal{transform:translateX(-50%)}
.chs-bv-center{top:50%;margin-top:var(--oy,0)}
.chs-bv-center.chs-vertical,.chs-bv-center.chs-bh-right,.chs-bv-center.chs-bh-left{transform:translateY(-50%)}
.chs-bv-bottom{bottom:calc(20px + var(--oy,0px))}
.chs-bv-top{top:calc(20px + var(--oy,0px))}
.chs-bh-center.chs-bv-bottom{transform:translateX(-50%)}
