/* Gallery Section Styles (Nested) */
.galeria-section-nested {
    padding: 40px 0 20px 0;
    text-align: center;
}

.galeria-container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

.galeria-header {
    margin-bottom: 40px;
}

.galeria-header h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 10px;
}

.galeria-header p {
    font-family: 'Open Sans', sans-serif;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

/* Scroll Snap Carousel */
.galeria-carousel {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 20px;
    padding: 20px 0;
    scrollbar-width: thin;
    /* Firefox */
    scrollbar-color: #c9a48b transparent;
    /* Custom scrollbar color */
    -webkit-overflow-scrolling: touch;
}

/* Hide scrollbar for Chrome, Safari and Opera */
.galeria-carousel::-webkit-scrollbar {
    height: 6px;
}

.galeria-carousel::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.galeria-carousel::-webkit-scrollbar-thumb {
    background: #c9a48b;
    border-radius: 10px;
}

.galeria-item {
    flex: 0 0 300px;
    /* Base width for each item */
    scroll-snap-align: center;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.galeria-item:hover {
    transform: scale(1.03);
}

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

/* Responsiveness */
@media (max-width: 768px) {
    .galeria-item {
        flex: 0 0 85%;
        /* Almost full width on mobile */
    }

    .galeria-header h2 {
        font-size: 2rem;
    }
}

@media (min-width: 1024px) {
    .galeria-item {
        flex: 0 0 calc(33.333% - 15px);
        /* 3 items visible on desktop */
    }
}