.main-title{
  color: #2d2d2d;
  text-align: center;
  text-transform: capitalize;
  padding: 0.7em 0;
}

.galerie{
  padding: 1em 0;
  float: left;
  width: 50%;
}
@media screen and (max-width: 640px){
  .galerie{
    display: block;
    width: 100%;
  }
}

@media screen and (min-width: 900px){
  .galerie{
    width: 33.33333%;
  }
}

.galerie .title{
  color: #1a1a1a;
  text-align: center;
  margin-bottom: 10px;
}

.content {
  position: relative;
  width: 90%;
  max-width: 300px;
  max-height: 300px;
  margin: auto;
  overflow: hidden;
}

.content .content-overlay {
  background: rgba(0,0,0,0.7);
  position: absolute;
  height: 99%;
  width: 100%;
  left: 0;
  top: 0;
  bottom: 0;
  right: 0;
  opacity: 0;
  -webkit-transition: all 0.4s ease-in-out 0s;
  -moz-transition: all 0.4s ease-in-out 0s;
  transition: all 0.4s ease-in-out 0s;
}

.content:hover .content-overlay{
  opacity: 1;
}

.content-image{
  width: 100%;
}

.content-details {
  position: absolute;
  text-align: center;
  padding-left: 1em;
  padding-right: 1em;
  width: 100%;
  top: 50%;
  left: 50%;
  opacity: 0;
  -webkit-transform: translate(-50%, -50%);
  -moz-transform: translate(-50%, -50%);
  transform: translate(-50%, -50%);
  -webkit-transition: all 0.3s ease-in-out 0s;
  -moz-transition: all 0.3s ease-in-out 0s;
  transition: all 0.3s ease-in-out 0s;
}

.content:hover .content-details{
  top: 50%;
  left: 50%;
  opacity: 1;
}

.content-details h3{
  color: #fff;
  font-weight: 900;
  letter-spacing: 0.15em;
  margin-bottom: 0.5em;
  text-transform: uppercase;
}

.content-details p{
  color: #fff;
  font-size: 1.2em;
}

.fadeIn-bottom{
  top: 80%;
}

.fadeIn-top{
  top: 20%;
}

.fadeIn-left{
  left: 20%;
}

.fadeIn-right{
  left: 80%;
}

/**nouvelle galerie**/
.work {
  font-family: sans-serif;
  font-size: 20px;
  text-align: center;

padding-left:120px;
  text-align: center;
  /* width:1800px;*/
}


.work-item {
  background-size: cover;
  background-position: center;
  transition: all 0.3s;
  display: block;
  text-decoration: none;
text-align: center;
}

a.work-item {
margin:5px;

 
}

.work-item-desc {
  width: 100%;
  font-size: 0.8em;
  background-color: rgba(0, 0, 0, 0.6);
  transition: background-color 0.3s;
  color: #fff;
  padding: 1.7em 0;
  line-height: 1.2;
  text-align: center;
}


/*desktop*/

@media screen and (min-width: 775px) {
  .work {
    display: flex;
    flex-wrap: wrap;
  }
  .work-item {
    width: 20%;
    position: relative;
    overflow: hidden;
  }
  .work-item:hover {
    transform: scale(1.1);
    z-index: 1000;
    box-shadow: 0 5px 30px #000;
  }
  .work-item:after {
    content: "";
    display: block;
    padding-bottom: 100%;
  }
  .work-item-desc {
    position: absolute;
    bottom: 0;
    max-height: 0;
    padding: 0;
    background-color: rgba(0, 0, 0, 0.7);
    transition: max-height 0.5s;
    box-sizing: border-box;
    opacity: 0;
  }
  .work-item-desc:hover {
    background-color: rgba(0, 0, 0, 0.7);
  }
  .work-item:hover .work-item-desc {
    max-height: 1000px;
    padding: 1.5em 1.2em;
    opacity: 1;
  }
}