.stilecht-ig-scroller {
    position: relative;
    --ig-gap: 12px;
}

.stilecht-ig-track {
    display: flex;
    gap: var(--ig-gap);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.stilecht-ig-track::-webkit-scrollbar {
    display: none;
}

.stilecht-ig-slide {
    flex: 0 0 calc((100% - (var(--ig-per-view) - 1) * var(--ig-gap)) / var(--ig-per-view));
    scroll-snap-align: start;
}

@media (max-width: 768px) {
    .stilecht-ig-scroller {
        --ig-per-view: 2 !important;
    }
}

@media (max-width: 480px) {
    .stilecht-ig-scroller {
        --ig-per-view: 1 !important;
    }
}

.stilecht-ig-card {
    position: relative;
    height: var(--ig-slider-height, 400px);
    overflow: hidden;
    border-radius: 4px;
    background-color: #e9ecef;
}

.stilecht-ig-img-link {
    display: block;
    height: 100%;
    line-height: 0;
}

.stilecht-ig-slide-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.stilecht-ig-caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.70) 0%, rgba(0, 0, 0, 0) 100%);
    padding: 2rem 1.1rem 1rem;
    text-align: left;
    pointer-events: none;
}

.stilecht-ig-caption-text {
    font-size: 0.85rem;
    color: #fff;
    margin-bottom: 0;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Video / carousel type badges */
.stilecht-ig-video-badge,
.stilecht-ig-carousel-badge {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    border-radius: 4px;
    padding: 0.2rem 0.45rem;
    font-size: 1rem;
    line-height: 1;
    pointer-events: none;
}

/* Arrows */
.stilecht-ig-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    width: 2.5rem;
    height: 2.5rem;
    border: none;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s ease;
}

.stilecht-ig-arrow:hover {
    background: rgba(0, 0, 0, 0.75);
}

.stilecht-ig-arrow-prev {
    left: 0.5rem;
}

.stilecht-ig-arrow-next {
    right: 0.5rem;
}

/* Indicators */
.stilecht-ig-dots {
    display: flex;
    justify-content: center;
    gap: 0.4rem;
    margin-top: 0.75rem;
}

.stilecht-ig-dot {
    width: 0.6rem;
    height: 0.6rem;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: #c4c4c4;
    cursor: pointer;
    transition: background 0.15s ease;
}

.stilecht-ig-dot.active {
    background: #555;
}

.stilecht-ig-empty-preview {
    border: 2px dashed #ccc;
    border-radius: 4px;
    padding: 2rem;
    text-align: center;
    color: #6c757d;
    background: #f8f9fa;
    min-height: 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
}

.stilecht-ig-empty-preview svg {
    margin-bottom: 0.5rem;
    opacity: 0.45;
}

.stilecht-ig-empty-preview p {
    margin: 0;
}

.stilecht-ig-hint {
    font-size: 0.78rem;
    margin-top: 0.5rem !important;
    opacity: 0.75;
}
