.gallery-wrapper {
    max-width: 800px;
    margin: 0 auto;
    margin-bottom: 48px;
}

/* Hauptbild-Slider */
.gallery {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    border-radius: 8px;
}

    .gallery::-webkit-scrollbar {
        display: none;
    }

    .gallery img {
        flex: 0 0 100%;
        width: 100%;
        aspect-ratio: 16 / 10;
        object-fit: cover;
        scroll-snap-align: center;
    }

/* Thumbnails */
.thumbs {
    display: flex;
    gap: 8px;
    margin-top: 8px;
    overflow-x: auto;
    scrollbar-width: none;
}

    .thumbs::-webkit-scrollbar {
        display: none;
    }

    .thumbs button {
        flex: 0 0 auto;
        width: 15%;
        padding: 0;
        border: 2px solid transparent;
        border-radius: 6px;
        background: none;
        opacity: .6;
        cursor: pointer;
        overflow: hidden;
    }

        .thumbs button.active {
            border-color: #333;
            opacity: 1;
        }

    .thumbs img {
        display: block;
        width: 100%;
        aspect-ratio: 4 / 3;
        object-fit: cover;
    }

@media (max-width: 768px) {
    .thumbs button {
        width: 18%;
    }
}

@media (max-width: 480px) {
    .thumbs button {
        width: 25%;
    }
}