:root {
    --sds-max-width: 320px;
    --sds-max-height: 380px;
    --sds-gutter: 32px;
    --sds-border-radius: 32px;
}

.sds-wrapper {
    width: 100%;
    position: relative;
    padding: 0;
}

/* Der Track */
.sds-track {
    display: flex;
    align-items: center; /* FIX: Verhindert, dass Bilder auf 100% Höhe gestreckt werden! */
    gap: var(--sds-gutter);
    overflow-x: auto;
    scroll-behavior: auto;
    scrollbar-width: none; 
    -ms-overflow-style: none;
    /* cursor: grab; */
    padding: 0 24px;
}

.sds-track::-webkit-scrollbar {
    display: none;
}

.sds-track.grabbing {
    cursor: grabbing;
}

/* Das Slide-Element nutzt das perfekte Aspect-Ratio-Verhalten */
.sds-slide {
    flex-shrink: 0;
    overflow: hidden;
    border-radius: var(--sds-border-radius);
    
    max-width: var(--sds-max-width);
    max-height: var(--sds-max-height);
    
    display: flex;
    justify-content: center;
    align-items: center;
}

.sds-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    pointer-events: none; /* Wichtig für flüssiges Draggen */
}

/* Mobile Anpassungen */
@media (max-width: 768px) {
    .sds-slide {
        max-width: 210px;
        max-height: 250px;
    }
    :root { 
        --sds-gutter: 16px; 
    }
}