/* gallery.css – responsive, zentriert, touch-ready */

.slideshow {
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 12px 0 22px;
}

.slideshowelement {
    width: min(1100px, 100%);
    aspect-ratio: 16 / 9;
    max-height: 78vh;
    position: relative;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, .2);
    background: #fff;
    overflow: hidden;
}

/* Seiten übereinander, via .active sichtbar */
.slideshowpage {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    opacity: 0;
    transition: opacity 400ms ease;
    pointer-events: none;
}

.slideshowpage.active {
    opacity: 1;
    pointer-events: auto;
}

.slideshowpage img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    object-fit: contain;
}

/* Pfeile */
.arrows {
    position: absolute;
    inset-block: 0;
    width: 13%;
    display: grid;
    place-items: center;
    font-size: clamp(28px, 5vw, 48px);
    color: rgba(226, 226, 226, .6);
    cursor: pointer;
    user-select: none;
    transition: color 180ms ease, background 180ms ease;
    -webkit-tap-highlight-color: transparent;
}

.arrows:hover {
    color: rgba(255, 255, 255, .95);
    background: rgba(0, 0, 0, .08);
}

.arrows-left {
    left: 0;
}

.arrows-right {
    right: 0;
}

.points-list {
    flex-direction: row;
    direction: ltr;
}

/* Punkte */
.points-list {
    position: absolute;
    bottom: 8px;
    left: 0;
    right: 0;
    display: flex;
    gap: 6px;
    justify-content: center;
    list-style: none;
    margin: 0;
    padding: 0 10px;
}

.point {
    width: clamp(8px, 1.2vw, 12px);
    height: clamp(8px, 1.2vw, 12px);
    border-radius: 999px;
    background: rgba(0, 0, 0, .25);
    cursor: pointer;
    transition: transform 120ms ease, background 120ms ease;
}

.point:hover {
    transform: scale(1.15);
}

.point.aktiv {
    background: rgba(0, 0, 0, .6);
}

/* Kleinere Bildschirme */
@media (max-width: 640px) {
    .slideshowelement {
        aspect-ratio: 4 / 3;
        max-height: 65vh;
        border-radius: 8px;
    }

    .arrow {
        width: 18%;
    }
}