/* Gallery styles */
.gite-gallery {
    padding: 2rem;
    max-width: 1400px;
    margin: 0 auto;
    background-color: #faf6f1; /* Fond beige très clair */
}

.gallery-section {
    margin-bottom: 4rem;
    background: #fff5e6; /* Fond beige chaleureux */
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 2px 15px rgba(160, 120, 85, 0.1);
}

.gallery-section h2 {
    color: #8B4513; /* Marron chaleureux */
    font-size: 2.2rem;
    margin-bottom: 2rem;
    padding: 0.5rem 1rem;
    border-left: 5px solid #D2691E; /* Marron plus clair */
    background: linear-gradient(to right, #fff5e6, #faf6f1);
}

.gallery-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    padding: 1rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 3px 10px rgba(139, 69, 19, 0.15);
    transition: all 0.3s ease;
    background: #fff5e6; /* Changement du blanc pur vers un beige chaleureux */
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(139, 69, 19, 0.25);
}

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

/* Section specific styles */
.gallery-section:nth-child(1) { /* Salon */
    border-top: 4px solid #CD853F;
}

.gallery-section:nth-child(2) { /* Cuisine */
    border-top: 4px solid #DEB887;
}

.gallery-section:nth-child(3) { /* Chambres */
    border-top: 4px solid #D2691E;
}

.gallery-section:nth-child(4) { /* Salle de bain */
    border-top: 4px solid #B8860B;
}

.gallery-section:nth-child(5) { /* Espaces de circulation */
    border-top: 4px solid #DAA520;
}

.gallery-section:nth-child(6) { /* Extérieur */
    border-top: 4px solid #8B4513;
}

.gallery-section:nth-child(7) { /* Plans */
    border-top: 4px solid #A0522D;
}

/* Lightbox customization */
.lb-data .lb-caption {
    font-size: 1.2rem;
    font-weight: 600;
    color: #fff;
    padding: 10px 0;
}

.lb-data .lb-details {
    width: 100%;
    text-align: center;
    padding: 15px 0;
    background: rgba(0,0,0,0.8);
}

.lb-nav a.lb-prev,
.lb-nav a.lb-next {
    opacity: 0.8;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .gite-gallery {
        padding: 1rem;
    }

    .gallery-section {
        padding: 1rem;
        margin-bottom: 2rem;
    }

    .gallery-section h2 {
        font-size: 1.8rem;
        margin-bottom: 1.5rem;
    }

    .gallery-container {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 1rem;
    }

    .gallery-item img {
        height: 220px;
    }
}

@media (max-width: 480px) {
    .gallery-container {
        grid-template-columns: 1fr;
    }

    .gallery-section {
        margin-bottom: 1.5rem;
    }

    .gallery-item img {
        height: 200px;
    }
}
