/* its Galerie Slide – Frontend */

.its-slide {
    width: 100%;
}

.its-slide__track {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 100%;
    gap: 12px;

    overflow-x: auto;
    overflow-y: hidden;

    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;

    /*padding: 0 4px 8px;
*/
    scrollbar-width: thin;
}

.its-slide__slide {
    scroll-snap-align: center;
    margin: 0;
    position: relative; /* arrow overlay */
}

.its-slide__img {
    width: 100%;
    height: auto;
    display: block;
}

/* Accessibility: Fokus nur für Tastatur */
.its-slide__track:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 4px;
}

/* Arrow overlay: links/rechts absolut, funktioniert auch wenn ein Pfeil fehlt */
.its-slide__arrows {
    position: absolute;
    inset: 0;

    opacity: 0;
    transition: opacity 0.15s ease;

    pointer-events: none;
}

.its-slide__arrow {
    pointer-events: auto;

    position: absolute;
    top: 50%;
    transform: translateY(-50%);

    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 44px;
    height: 44px;
    border-radius: 999px;

    text-decoration: none;
    font-size: 28px;
    line-height: 1;

    background: rgba(0, 0, 0, 0.45);
    color: #fff;

    -webkit-tap-highlight-color: transparent;
}

.its-slide__arrow--prev {
    left: 10px;
}

.its-slide__arrow--next {
    right: 10px;
}

.its-slide__arrow:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

/* Pfeile zeigen bei Interaction */
.its-slide__slide:hover .its-slide__arrows,
.its-slide__slide:focus-within .its-slide__arrows {
    opacity: 1;
}

/* Dots */
.its-slide__dots {
    display: flex;
    gap: 8px;
    justify-content: center;
    align-items: center;
    padding: 6px 0 0;
}

.its-slide__dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    display: inline-block;
    text-decoration: none;

    background: currentColor;
    opacity: 0.35;
}

.its-slide__dot.is-active,
.its-slide__dot[aria-current="true"] {
    opacity: 0.95;
}

.its-slide__dot:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 3px;
}
