/* Gallery Slider Styles */
body{
	--wp--style--block-gap:40px
}
/* Überschreibe WordPress Gallery Grid-Layout */
.wp-block-gallery.gallery-slider-enabled {
    position: relative;
    overflow: hidden;
    display: block !important;
    grid-template-columns: none !important;
}

/* Slider Container */
.gallery-slider-enabled .gallery-slider-container {
    position: relative;
    width: 100%;
    overflow: hidden;
}

/* Slides Wrapper - Flex Container für horizontales Scrollen */
.gallery-slider-enabled .gallery-slider-slides {
    display: flex !important;
    flex-wrap: nowrap !important;
    transition: transform 0.5s ease-in-out;
    width: 100%;
    gap: var(--wp--style--block-gap, 0.5em);
}

/* Bilder im Slider - nebeneinander in einer Reihe */
.gallery-slider-enabled .gallery-slider-slides .wp-block-image {
    margin: 0 !important;
    flex-shrink: 0;
    display: block;
}

/* Überschreibe Figure-Element Styles */
.gallery-slider-enabled .gallery-slider-slides .wp-block-image figure {
    margin: 0 !important;
}

/* Bilder responsive machen */
.gallery-slider-enabled .gallery-slider-slides .wp-block-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Navigation Buttons */
.gallery-slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 15px 20px;
    font-size: 24px;
    cursor: pointer;
    z-index: 10;
    transition: background 0.3s ease;
    border-radius: 4px;
}

.gallery-slider-nav:hover {
    background: rgba(0, 0, 0, 0.8);
}

.gallery-slider-nav:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.gallery-slider-prev {
    left: 10px;
}

.gallery-slider-next {
    right: 10px;
}

/* Slider Indikator Punkte */
.gallery-slider-dots {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
    max-width: 90%;
    overflow-x: auto;
    padding: 5px 10px;
}

/* Scrollbar für viele Dots ausblenden */
.gallery-slider-dots::-webkit-scrollbar {
    height: 0;
}

.gallery-slider-dot {
    width: 12px;
    height: 12px;
    min-width: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: background 0.3s ease;
}

.gallery-slider-dot.active {
    background: rgba(255, 255, 255, 1);
}

.gallery-slider-dot:hover {
    background: rgba(255, 255, 255, 0.8);
}

/* Responsive Design */
@media (max-width: 768px) {
    .gallery-slider-nav {
        padding: 10px 15px;
        font-size: 20px;
    }
    
    .gallery-slider-prev {
        left: 5px;
    }
    
    .gallery-slider-next {
        right: 5px;
    }
    
    .gallery-slider-dots {
        bottom: 10px;
    }
    
    .gallery-slider-dot {
        width: 10px;
        height: 10px;
        min-width: 10px;
    }
}

/* Drag Cursor */
.gallery-slider-enabled .gallery-slider-container {
    cursor: grab;
}

.gallery-slider-enabled .gallery-slider-container.dragging {
    cursor: grabbing;
}

/* Verhindere Bild-Selection während Drag */
.gallery-slider-enabled .gallery-slider-container.dragging img {
    user-select: none;
    pointer-events: none;
}

