/***************************************************************************************/
/************************************Gallery********************************************/
/***************************************************************************************/

*{
  margin: 0;
  padding: 0;
  font-family: "montserrat",sans-serif;
  box-sizing: border-box;
}

.gallery-section{
  width:100%;
  padding:60px 0;
  /*couleur du background gallery*/
  background:#333333;
}

.inner-width{
  width: 100%;
  max-width: 1200px;
  margin: auto;
  padding: 0 20px;
}

.gallery-section h1{
  text-align: center;
  text-transform: uppercase;
  color: #fff;
}

.border{
  width: 180px;
  height: 4px;
  background: #333;
  margin: 60px auto;
}

.gallery-section .gallery-js-css{
  display: flex;
  flex-wrap: wrap-reverse;
  justify-content: center;
}

.gallery-section .image-gallery-js{
  flex: 25%; /*taille des vignette*/
  overflow: hidden;
  cursor: pointer;
}

.gallery-section .image-gallery-js img{
  width: 100%;
  height: 100%;
  transition: 0.4s;
}

.gallery-section .image-gallery-js:hover img{
  transform: scale(1.4) rotate(15deg);
}

.image-gallery-js{
    margin:2px;
    opacity: 0.8;
}

.image-gallery-js:hover{
    opacity: 1;
}

.gallery-js-css{
    box-shadow:-4px 4px 7px 1px rgba(0, 0, 0, .6);
}

/*****960px*****/
@media screen and (max-width:960px) {
  .gallery-section .image-gallery-js{
    flex: 33.33%;
  }
}

/*****768px*****/
@media screen and (max-width:768px) {
  .gallery-section .image-gallery-js{
    flex: 50%;
  }
}

/*****480px*****/
@media screen and (max-width:480px) {
  .gallery-section .image-gallery-js{
    flex: 100%;
  }
}