/**
 * Gallery Section Styles
 *
 * @package Napule_Restaurant
 * @since 1.0.0
 */

/* Gallery Section */
.gallery-section {
    padding: var(--spacing-4xl) 0;
    background-color: #ffffff;
}

/* Gallery Carousel */
.gallery-carousel {
    position: relative;
    margin-bottom: var(--spacing-2xl);
    overflow: hidden;
}

.gallery-carousel-track-container {
    overflow: hidden;
}

.gallery-carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
    gap: var(--spacing-lg);
}

.gallery-slide {
    min-width: calc((100% - (2 * var(--spacing-lg))) / 3);
    position: relative;
    aspect-ratio: 4 / 3;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform var(--transition-base);
}

.gallery-slide:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.gallery-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Gallery Overlay */
.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(41, 59, 97, 0.9), transparent);
    padding: var(--spacing-xl);
    transition: opacity var(--transition-base);
}

.gallery-title {
    font-size: var(--font-size-xl);
    font-family: var(--font-heading);
    color: var(--color-white);
    font-weight: 700;
    display: block;
}

/* Carousel Buttons */
.carousel-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.9);
    border: none;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all var(--transition-base);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.carousel-button:hover {
    background-color: var(--color-primary);
    color: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.carousel-button svg {
    width: 24px;
    height: 24px;
}

.carousel-button.prev {
    left: 20px;
}

.carousel-button.next {
    right: 20px;
}

/* Gallery Dots */
.gallery-dots {
    display: flex;
    justify-content: center;
    gap: var(--spacing-sm);
    flex-wrap: wrap;
}

.gallery-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #cbd5e1;
    border: none;
    cursor: pointer;
    transition: all var(--transition-base);
    padding: 0;
}

.gallery-dot:hover,
.gallery-dot.active {
    background-color: var(--color-primary);
    transform: scale(1.2);
}

/* Responsive */
@media (max-width: 768px) {
    .gallery-section {
        padding: var(--spacing-3xl) 0;
    }
    
    .gallery-slide {
        min-width: calc((100% - var(--spacing-md)) / 2);
    }
    
    .gallery-carousel-track {
        gap: var(--spacing-md);
    }
    
    .carousel-button {
        width: 40px;
        height: 40px;
    }
    
    .carousel-button svg {
        width: 20px;
        height: 20px;
    }
    
    .carousel-button.prev {
        left: 10px;
    }
    
    .carousel-button.next {
        right: 10px;
    }
    
    .gallery-overlay {
        padding: var(--spacing-md);
    }
    
    .gallery-title {
        font-size: var(--font-size-lg);
    }
}

@media (max-width: 480px) {
    .gallery-section {
        padding: var(--spacing-2xl) 0;
    }
    
    .gallery-slide {
        min-width: 100%;
    }
    
    .gallery-carousel-track {
        gap: 0;
    }
    
    .gallery-dots {
        gap: var(--spacing-xs);
    }
    
    .gallery-dot {
        width: 10px;
        height: 10px;
    }
}
