/* Findus Carousel Gallery Styles */

/* Override gallery grid for carousel layout */
.gallery-container .gallery-grid {
    display: block;
    position: relative;
    overflow: hidden;
    border-radius: 8px;
}

/* Desktop: Video below gallery */
.gallery-container {
    display: flex;
    flex-direction: column;
}

.video-container {
    order: 2; /* Video comes after gallery on desktop */
    margin-top: 3rem !important;
    margin-bottom: 0 !important;
}

/* Carousel wrapper */
.carousel-wrapper {
    position: relative;
    width: 100%;
    height: 70vh;
    background: var(--secondary-color);
    border-radius: 8px;
    overflow: hidden;
}

/* Carousel container */
.carousel-container {
    display: flex;
    transition: transform 0.3s ease;
    height: 100%;
}

/* Individual slides */
.gallery-item {
    min-width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 0;
}

.gallery-item img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 0;
}

/* Navigation arrows */
.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--primary-color);
    color: var(--secondary-text-color);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.5rem;
    z-index: 10;
    transition: all 0.3s ease;
}

.carousel-nav:hover {
    background: var(--primary-color);
    color: var(--text-color);
    transform: translateY(-50%) scale(1.1);
}

.carousel-nav.prev {
    left: 20px;
}

.carousel-nav.next {
    right: 20px;
}

/* Dots indicator */
.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
    padding: 20px 0;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--primary-color);
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-dot.active {
    background: var(--secondary-text-color);
    transform: scale(1.2);
}

.carousel-dot:hover {
    background: var(--text-color);
}

/* Image counter */
.carousel-counter {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    z-index: 10;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    /* Mobile: Video above gallery */
    .video-container {
        order: 1; /* Video comes first on mobile */
        margin-top: 0 !important;
        margin-bottom: 2rem !important;
    }
    
    .gallery-grid {
        order: 2; /* Gallery comes after video on mobile */
    }
    
    /* Switch to normal gallery layout on mobile */
    .gallery-container .gallery-grid {
        display: flex;
        flex-direction: column;
        gap: 2rem;
    }
    
    .carousel-wrapper {
        position: static;
        height: auto;
        background: transparent;
        border-radius: 0;
        overflow: visible;
    }
    
    .carousel-container {
        display: flex;
        flex-direction: column;
        gap: 2rem;
        transform: none !important;
        transition: none;
        height: auto;
    }
    
    .gallery-item {
        min-width: auto;
        height: auto;
        margin-bottom: 0;
    }
    
    .gallery-item img {
        width: 100%;
        height: auto;
        border-radius: 8px;
    }
    
    /* Hide carousel controls on mobile */
    .carousel-nav,
    .carousel-dots {
        display: none;
    }
}

@media (max-width: 500px) {
    .gallery-container .gallery-grid {
        gap: 1.5rem;
    }
    
    .carousel-container {
        gap: 1.5rem;
    }
}
