.elementor-6899 .elementor-element.elementor-element-c27a506{--display:flex;--margin-top:0px;--margin-bottom:0px;--margin-left:0px;--margin-right:0px;--padding-top:0px;--padding-bottom:0px;--padding-left:0px;--padding-right:0px;}.elementor-6899 .elementor-element.elementor-element-a2655de{margin:0px 0px calc(var(--kit-widget-spacing, 0px) + 0px) 0px;padding:0px 0px 0px 0px;}/* Start custom CSS for shortcode, class: .elementor-element-a2655de *//* =========================================================================
   1. TRANSFORMER LE CARROUSEL EN GRILLE
   ========================================================================= */
.ma-galerie-grille .swiper-wrapper {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 30px !important;
    transform: none !important;
    width: 100% !important;
}

/* =========================================================================
   2. RÉINITIALISER LES SLIDES
   ========================================================================= */
.ma-galerie-grille .swiper-slide {
    width: 100% !important;
    margin: 0 !important;
    height: auto !important; 
}

/* =========================================================================
   3. STYLISER L'IMAGE (UNIFORME, CENTRÉ, COVER)
   ========================================================================= */
.ma-galerie-grille .swiper-slide img {
    width: 100% !important;
    height: 100% !important;
    display: block;
    aspect-ratio: 1 / 1 !important; 
    object-fit: cover !important; 
    object-position: center !important;
    border-radius: 7px !important;
}

/* =========================================================================
   4. GÉRER LE RESPONSIVE
   ========================================================================= */
@media (max-width: 1024px) {
    .ma-galerie-grille .swiper-wrapper {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 20px !important;
    }
}

@media (max-width: 767px) {
    .ma-galerie-grille .swiper-wrapper {
        grid-template-columns: 1fr !important;
    }
}

/* =========================================================================
   STYLE DE LA LIGHTBOX
   ========================================================================= */
#custom-lightbox-grille {
    display: none;
    position: fixed;
    z-index: 999999;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.85);
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}

#custom-lightbox-grille img {
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.5);
}

.cl-btn {
    position: absolute;
    color: white;
    font-size: 50px;
    cursor: pointer;
    user-select: none;
    transition: 0.3s;
    opacity: 0.7;
}

.cl-btn:hover {
    opacity: 1;
}

#cl-close-grille { top: 20px; right: 40px; font-size: 60px; }
#cl-prev-grille { left: 40px; }
#cl-next-grille { right: 40px; }

@media (max-width: 767px) {
    #cl-prev-grille { left: 10px; }
    #cl-next-grille { right: 10px; }
    #cl-close-grille { top: 10px; right: 20px; }
}/* End custom CSS */