/* ===== BILDKARUSSELL ===== */

.carousel {
    position: relative;
    width: 100%;
    max-width: 800px;
    margin: 0 auto 1rem;
    border-radius: 12px;
    overflow: hidden;
    background: #f5f5f5;
}

.carousel-track {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;  /* Firefox */
    -ms-overflow-style: none;  /* IE/Edge */
}

.carousel-track::-webkit-scrollbar {
    display: none;  /* Chrome/Safari */
}

.carousel-slide {
    flex: 0 0 100%;
    scroll-snap-align: start;
    position: relative;
}

.carousel-slide img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    display: block;
}

.slide-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 12px 16px;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    color: white;
    font-size: 0.95rem;
    margin: 0;
}

/* Navigation Buttons */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 50%;
    background: rgba(255,255,255,0.9);
    color: #333;
    font-size: 18px;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    transition: all 0.2s;
    z-index: 10;
}

.carousel-btn:hover {
    background: white;
    transform: translateY(-50%) scale(1.1);
}

.carousel-prev { left: 12px; }
.carousel-next { right: 12px; }

/* Dots */
.carousel-dots {
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    padding: 0;
}

.carousel-dot:hover,
.carousel-dot.active {
    background: white;
    transform: scale(1.2);
}

/* Responsive */
@media (max-width: 768px) {
    .carousel-slide img {
        height: 280px;
    }
    
    .carousel-btn {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }
    
    .carousel-prev { left: 8px; }
    .carousel-next { right: 8px; }
    
    .slide-caption {
        font-size: 0.85rem;
        padding: 10px 12px;
    }
}

/* Carousel in Section */
.carousel-section .carousel {
    margin-top: 1rem;
}

.carousel-section .section-text {
    max-width: 800px;
    margin: 0 auto;
}