/* =========================================================================
   STYLE-GALERIES.CSS — ALEXANDRE SIMON ART
   Grille 2 colonnes pleine largeur + lightbox
   ========================================================================= */

/* --- INTRO SECTION GALERIE --- */
.medium-intro {
    max-width: 780px;
    margin: 20px auto 0 auto;
    font-size: 0.97rem;
    line-height: 1.7;
    color: #444;
    text-align: justify;
}

.galerie-nav-links {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 25px;
    flex-wrap: wrap;
}

.btn-back-gallery {
    display: inline-block;
    padding: 7px 16px;
    border: 1px solid #1a1a1a;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    transition: background 0.25s, color 0.25s;
}
.btn-back-gallery:hover { background: #1a1a1a; color: #fff; }

.btn-demarche {
    display: inline-block;
    padding: 7px 16px;
    background: #1a1a1a;
    color: #fff;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    transition: background 0.25s;
}
.btn-demarche:hover { background: #444; }


/* --- GRILLE 2 COLONNES PLEINE LARGEUR --- */
.galerie-grille {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 50px 40px;
    padding: 50px 40px 80px 40px;
}

.galerie-item {
    cursor: pointer;
}

.galerie-item-img {
    width: 100%;
    height: auto;
    display: block;
    transition: opacity 0.3s ease;
}

.galerie-item:hover .galerie-item-img { opacity: 0.88; }

.galerie-item-meta {
    margin-top: 14px;
    padding-bottom: 4px;
}

.galerie-item-titre {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 4px;
}

.galerie-item-texte {
    font-size: 0.82rem;
    color: #888;
    font-style: italic;
    line-height: 1.5;
}

.galerie-item-technique {
    font-size: 0.78rem;
    color: #aaa;
    margin-top: 3px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}


/* =========================================================================
   LIGHTBOX
   ========================================================================= */
.lightbox-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(10, 10, 10, 0.92);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    cursor: zoom-out;
}

.lightbox-overlay.actif {
    display: flex;
}

.lightbox-img {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    display: block;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
    cursor: default;
}

.lightbox-fermer {
    position: fixed;
    top: 20px;
    right: 28px;
    color: #fff;
    font-size: 2rem;
    font-weight: 300;
    cursor: pointer;
    line-height: 1;
    opacity: 0.7;
    transition: opacity 0.2s;
    z-index: 2001;
}
.lightbox-fermer:hover { opacity: 1; }

.lightbox-prev,
.lightbox-next {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    color: #fff;
    font-size: 2.5rem;
    font-weight: 300;
    cursor: pointer;
    opacity: 0.5;
    transition: opacity 0.2s;
    z-index: 2001;
    padding: 20px;
    user-select: none;
}
.lightbox-prev { left: 10px; }
.lightbox-next { right: 10px; }
.lightbox-prev:hover,
.lightbox-next:hover { opacity: 1; }


/* --- RESPONSIVE --- */
@media (max-width: 768px) {
    .galerie-grille {
        grid-template-columns: 1fr;
        padding: 30px 20px 60px 20px;
        gap: 40px;
    }
    .lightbox-prev { left: 0; }
    .lightbox-next { right: 0; }
}
