/*
 * Teaser slider (O4CMS frontend), see teaser-slider.js. The slides lie over the element's own
 * picture (its first image), so it looks the same before the script runs. Sites may restyle the
 * dots and arrows; the custom properties below are the easy way.
 */
.ts { position:relative; overflow:hidden; }
.ts > .ts-track { position:absolute; inset:0; z-index:1; }
.ts > .ts-track > .ts-slide { position:absolute; inset:0; background-size:cover; background-position:center; background-repeat:no-repeat; }

/* slide: the slides side by side, the track moves */
.ts-fx-slide > .ts-track { display:flex; transition:transform var(--ts-speed, 600ms) ease; }
.ts-fx-slide > .ts-track > .ts-slide { position:relative; inset:auto; flex:0 0 100%; height:100%; }

/* fade: the slides on top of each other, the active one fades in */
.ts-fx-fade > .ts-track > .ts-slide { opacity:0; transition:opacity var(--ts-speed, 600ms) ease; }
.ts-fx-fade > .ts-track > .ts-slide.is-active { opacity:1; }

/* none: the active one only */
.ts-fx-none > .ts-track > .ts-slide { visibility:hidden; }
.ts-fx-none > .ts-track > .ts-slide.is-active { visibility:visible; }

/* dots and arrows */
.ts .ts-dots { position:absolute; left:0; right:0; bottom:0.6rem; z-index:2; display:flex; justify-content:center; gap:0.4rem; }
.ts .ts-dot { width:var(--ts-dot-size, 0.55rem); height:var(--ts-dot-size, 0.55rem); border-radius:50%; cursor:pointer;
    background:var(--ts-dot, rgba(255,255,255,0.55)); box-shadow:0 0 0 1px rgba(0,0,0,0.25); transition:background .2s, transform .2s; }
.ts .ts-dot.is-active { background:var(--ts-dot-active, #fff); transform:scale(1.25); }
.ts .ts-arrow { position:absolute; top:50%; z-index:2; width:2rem; height:2rem; margin-top:-1rem; border-radius:50%; cursor:pointer;
    display:flex; align-items:center; justify-content:center; font-size:1.5rem; line-height:1; color:#fff;
    background:var(--ts-arrow-bg, rgba(0,0,0,0.4)); opacity:0; transition:opacity .2s; }
.ts .ts-prev { left:0.5rem; }
.ts .ts-next { right:0.5rem; }
.ts:hover .ts-arrow, .ts .ts-arrow:focus-visible { opacity:1; }
.ts .ts-dot:focus-visible, .ts .ts-arrow:focus-visible { outline:2px solid #fff; outline-offset:2px; }
.ts .ts-src { display:none; }
/* when the controls show (data-controls): auto = dots always, arrows on hover (above) */
.ts .ts-dots { transition:opacity .2s; }
.ts.ts-ctl-always .ts-arrow { opacity:1; }
.ts.ts-ctl-hover .ts-dots { opacity:0; }
.ts.ts-ctl-hover:hover .ts-dots, .ts.ts-ctl-hover:focus-within .ts-dots { opacity:1; }
.ts.ts-ctl-never .ts-dots, .ts.ts-ctl-never .ts-arrow { display:none; }
/* touch screens have no hover: controls that wait for it show anyway */
@media (hover:none) { .ts .ts-arrow { opacity:0.8; } .ts.ts-ctl-hover .ts-dots { opacity:1; } }
