.alignright {
  margin: 0.5em -130px 0.5em 1.5em !important;
  max-width: 60%;
}
.alignleft {
  margin: 0.5em 1.5em 0.5em -130px !important;
  max-width: 60%;
}
@media (max-width: 991px) {
  .alignright {
    margin: 0.5em 0em 0.5em 1.5em !important;
  }
  .alignleft {
    margin: 0.5em 1.5em 0.5em 0em !important;
  }
}
@media (max-width: 500px) {
  .alignright {
    margin: 0.5em 0em 0.5em 1.5em !important;
    max-width: 100%;
  }
  .alignleft {
    margin: 0.5em 1.5em 0.5em 0em !important;
    max-width: 100%;
  }
}

figure {
  border: none !important;
  border-radius: 2px 2px 5px 5px;
  background-color: var(--main-bg-color) !important;
  margin-bottom: 25px !important;
}
figure.thumbnail {
  padding: 0px !important;
}
figure img {
  /*width: 100% !important;*/
  padding: 2px !important;
}  
figcaption {
/*  background-color: var(--main-bg-color) !important; */
  margin: 0px !important;
  padding: 5px 10px !important;
  font-size: 0.8em !important;
  font-style: italic !important;
  text-align:center !important;
}


/* Galeries d'images, comme sur le qui-sommes-nous */
/***************************************************/

/*.columns-3 figure,
.columns-3 figcaption{
  max-width: 206px;
}
.columns-4 li figure,
.columns-4 li figure figcaption{
  max-width: 150px;
}
*/
.columns-3 figure,
.columns-4 figure,
.columns-5 figure{
  flex-grow: 0 !important;
}
.wp-block-gallery {
  background-color: unset !important;
}
.blocks-gallery-item figure figcaption{
  opacity: 0;
  position: absolute;
  bottom: 0;
  width: 100%;
  max-height: 100%;
  overflow: auto;
  padding: 40px 10px 9px;
  color: #fff;
  text-align: center;
  font-size: 13px;
  background: linear-gradient(0deg,rgba(0,0,0,.7),rgba(0,0,0,.3) 70%,transparent);
  background-color: transparent !important;
}
.blocks-gallery-item figure:hover figcaption{
  opacity: 1;
}

