/* MODALE */
.gallery-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
}

.gallery-modal.active {
    display: block;
}

/* OVERLAY CLIQUABLE */
.gallery-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    cursor: zoom-out;
}

/* CONTENU AU-DESSUS */
.gallery-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    pointer-events: none; 
}

/* IMAGE */
.gallery-image {
    width: 60vw;
    max-height: 80vh;
    border-radius: 12px;
    object-fit: cover;
    pointer-events: auto;
}

/* FLÈCHES */
.gallery-arrow {
    pointer-events: auto;
}


/* Reuse nav-btn style */
.gallery-arrow.nav-btn {
    width: 60px;
    height: 60px;
    padding: 0;
    background: var(--accent);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: transform 0.2s, background 0.2s;
}

.gallery-arrow.nav-btn:hover {
    transform: scale(1.08);
}

.gallery-arrow svg {
    width: 30px;
    height: 30px;
}

/* Mobile */
@media (max-width: 768px) {
    .gallery-content {
        padding: 20px;
    }

    .gallery-image {
        width: 100%;
    }

    .gallery-arrow.nav-btn {
        position: absolute;
        /* bottom: 2rem; */
        width: 35px;
        height: 35px;
    }

    .gallery-arrow.nav-btn.prev {
        left: 2rem;
    }
    .gallery-arrow.nav-btn.next {
        right: 2rem;
    }
}
