/*!*****************************************************************!*\
  !*** css ./node_modules/css-loader/dist/cjs.js!./src/style.css ***!
  \*****************************************************************/
/* Styles pour le frontend */
.swiper {
    overflow: visible!important;
}


/* Styles pour les formats d'image */
.wp-block-gallery.gallery-format-portrait figure img,
.wp-block-gallery.gallery-format-landscape figure img,
.wp-block-gallery.gallery-format-square figure img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.wp-block-gallery.gallery-format-portrait figure {
    aspect-ratio: 2/3;  /* Ratio portrait standard */
    overflow: hidden;
}

.wp-block-gallery.gallery-format-landscape figure {
    aspect-ratio: 16/9;  /* Ratio paysage standard */
    overflow: hidden;
}

.wp-block-gallery.gallery-format-square figure {
    aspect-ratio: 1/1;  /* Ratio carré */
    overflow: hidden;
}

/* Support pour la hauteur personnalisée */
.wp-block-gallery[data-image-height] figure {
    height: attr(data-image-height px);
}

/* Styles de base pour le mode Swiper */
.wp-block-gallery.gallery-display-swiper {
    position: relative;
    margin-bottom: 40px; /* Espace pour la navigation/pagination */
}

.wp-block-gallery.gallery-display-swiper .swiper {
    width: 100%;
    height: 100%;
}

.wp-block-gallery.gallery-display-swiper .swiper-slide {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.wp-block-gallery.gallery-display-swiper .swiper-slide img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* Support des formats dans le carousel */
.wp-block-gallery.gallery-display-swiper.gallery-format-portrait .swiper-slide figure,
.wp-block-gallery.gallery-display-swiper.gallery-format-portrait .swiper-slide img {
    aspect-ratio: 2/3;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.wp-block-gallery.gallery-display-swiper.gallery-format-landscape .swiper-slide figure,
.wp-block-gallery.gallery-display-swiper.gallery-format-landscape .swiper-slide img {
    aspect-ratio: 16/9;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.wp-block-gallery.gallery-display-swiper.gallery-format-square .swiper-slide figure,
.wp-block-gallery.gallery-display-swiper.gallery-format-square .swiper-slide img {
    aspect-ratio: 1/1;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Assurer que les figures et figcaptions s'affichent correctement */
.wp-block-gallery.gallery-display-swiper .swiper-slide figure {
    width: 100%;
    margin: 0;
}

.wp-block-gallery.gallery-display-swiper .swiper-slide figcaption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 10px;
    text-align: center;
}

/* Personnalisation des boutons de navigation */
.wp-block-gallery.gallery-display-swiper .swiper-button-next,
.wp-block-gallery.gallery-display-swiper .swiper-button-prev {
    color: #fff;
    background-color: rgba(0, 0, 0, 0.5);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.wp-block-gallery.gallery-display-swiper .swiper-button-next:after,
.wp-block-gallery.gallery-display-swiper .swiper-button-prev:after {
    font-size: 18px;
}

.wp-block-gallery.gallery-display-swiper .swiper-button-next:hover,
.wp-block-gallery.gallery-display-swiper .swiper-button-prev:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

/* Personnalisation de la pagination */
.wp-block-gallery.gallery-display-swiper .swiper-pagination {
    position: absolute;
    bottom: -30px;
    width: 100%;
}

.wp-block-gallery.gallery-display-swiper .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background: #888;
    opacity: 0.5;
}

.wp-block-gallery.gallery-display-swiper .swiper-pagination-bullet-active {
    background: #000;
    opacity: 1;
}

/* Styles pour les effets spéciaux */
.wp-block-gallery.gallery-display-swiper .swiper-cube-shadow {
    background: rgba(0, 0, 0, 0.2);
}

/* Responsive pour les petits écrans */
@media (max-width: 768px) {
    .wp-block-gallery.gallery-display-swiper .swiper-button-next,
    .wp-block-gallery.gallery-display-swiper .swiper-button-prev {
        width: 30px;
        height: 30px;
    }
    
    .wp-block-gallery.gallery-display-swiper .swiper-button-next:after,
    .wp-block-gallery.gallery-display-swiper .swiper-button-prev:after {
        font-size: 14px;
    }
}
