.container{
  height: 700px;
}
#sub-section{
  position: relative;
  width: 1350px;
  margin: 0 auto;
  text-align: center;
}
.wrapper-photos{
  background-size: cover;
  background-repeat: no-repeat;
  position: absolute;
  height: 200px;
  width: 350px;
}
.wrapper-photos:hover{
  cursor: pointer;
}
.overlay p{
  position:absolute;
  bottom:-25px;
  left: 40%;
  color: #FFF;
  transition: all 0.5s ease;
}
.overlay{
  height: 100%;
  transition: all 0.5s ease;
}
.overlay:hover{
  background-color: rgba(0, 0, 0, 0.6);
}
.overlay:hover .text-overlay{
  bottom: 10px;
}
#photo1{
  background-image: url(../images/photos/1.jpg);
  background-position: bottom;
  height: 234px;
  width: 450px;
  top: 0;

}
#photo2{
  background-image: url(../images/photos/2.jpg);
  background-position: bottom;
  height: 555px;
  width: 450px;
  top: 0;
  margin-left: 450px;
}
#photo3{
  background-image: url(../images/photos/3.jpg);
  background-position: left;
  height: 321px;
  width: 450px;
  top: 234px;
  margin-left: 0;
}
#photo4{
  background-image: url(../images/photos/4.jpg);
  background-position: bottom;
  height: 205px;
  width: 450px;
  top: 0;
  margin-left: 900px;
}
#photo5{
  background-image: url(../images/photos/5.jpg);
  background-position: bottom;
  height: 350px;
  width: 450px;
  top: 205px;
  margin-left: 900px;
}
.diapo{
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, 20%);
  width: 60%;
  /*border: 1px solid #FFF;*/
  transition: all 1s ease;

}
#diapo1{
  /*width: 48%;*/
  width: 750px;
}
#diapo2{
  /*width: 30%;*/
 width: 450px;
}
#diapo3{
  /*width: 55%;*/
  width: 850px;
}
#diapo4{
  /*width: 50%;*/
  width: 800px;
}
#diapo5{
  top: 50px;
  /*width: 60%;*/
  width: 850px;
}
#masque-diapos{
  position: absolute;
  background-color: rgba(0, 0, 0, 1);
  height: 100%;
  width: 100%;
  z-index: 102;
  transition: all 0.7s ease;
}
.smoothOut{
  height: 0px;
  width: 0px;
  visibility: hidden;
  opacity: 0;
  transition: all 0.7s ease;
}
.smoothIn{
  opacity: 1;
  visibility: visible;
  transition: all 0.7s ease;
}
/*------croix de fermeture des diapo-----*/

#close {
    position: absolute;
    background-color: transparent;
    top: 40px;
    right: 50px;
    height: 50px;
    width: 50px;
    border-radius: 50px;
    transition: all 0.3s ease;
}
.bars {
    position: absolute;
}
#close:hover {
    cursor: pointer;
}
.bars {
    background-color: #FFF;
    height: 3px;
    width: 30px;
    border-radius: 3px;
}
#bars1 {
    margin-top: 0px;
    -webkit-transform: translateY(10px) rotate(405deg);
    -moz-transform: translateY(10px) rotate(405deg);
    -o-transform: translateY(10px) rotate(405deg);
    -ms-transform: translateY(10px) rotate(405deg);
    transform: translateY(10px) rotate(405deg);
}

#bars2 {
  -webkit-transform: translateY(-6px) rotate(315deg);
  -moz-transform: translateY(-6px) rotate(315deg);
  -o-transform: translateY(-6px) rotate(315deg);
  -ms-transform: translateY(-6px) rotate(315deg);
  transform: translateY(-6px) rotate(315deg);
}
#bars2 {
    margin-top: 16px;
    transition: all .5s ease;
}
/*------Flèches droite et gauche-----*/
.arrow{
  position: absolute;
  background-color: transparent;
  top: 380px;
  height: 50px;
  width: 40px;
  border-radius: 50px;
    z-index: 100;
}
#left {
    left: 5%;
}
#right {
    right: 5%;
}
.bars {
    position: absolute;
}
#left:hover, #right:hover {
    cursor: pointer;
}
.bars {
    background-color: #FFF;
    top: 20px;
    height: 3px;
    width: 30px;
    border-radius: 3px;
}
#left #bars1 {
    margin-top: 3px;
    -webkit-transform: translateY(10px) rotate(405deg);
    -moz-transform: translateY(10px) rotate(405deg);
    -o-transform: translateY(10px) rotate(405deg);
    -ms-transform: translateY(10px) rotate(405deg);
    transform: translateY(10px) rotate(45deg);
}

#left #bars2 {
  margin-left: 6px;
  -webkit-transform: translateY(-6px) rotate(315deg);
  -moz-transform: translateY(-6px) rotate(315deg);
  -o-transform: translateY(-6px) rotate(315deg);
  -ms-transform: translateY(-6px) rotate(315deg);
  transform: translateY(-6px) rotate(-45deg);
}
#left #bars2 {
    /*margin-top: 0px;*/
    margin-top: -1px;
    margin-left: -1px;
}

#right #bars1 {
    margin-top: 3px;
    -webkit-transform: translateY(10px) rotate(405deg);
    -moz-transform: translateY(10px) rotate(405deg);
    -o-transform: translateY(10px) rotate(405deg);
    -ms-transform: translateY(10px) rotate(405deg);
    transform: translateY(10px) rotate(-45deg);
}

#right #bars2 {
  margin-top: 0px;
  -webkit-transform: translateY(-6px) rotate(315deg);
  -moz-transform: translateY(-6px) rotate(315deg);
  -o-transform: translateY(-6px) rotate(315deg);
  -ms-transform: translateY(-6px) rotate(315deg);
  transform: translateY(-6px) rotate(45deg);
}

@media only screen and (max-width:1490px){

    .container{
        width: 1100px;
    }
    #sub-section{
        width: 5%;
        margin-left: 15%;
    }
    #photo1,#photo2,#photo3,
    #photo4,#photo5{
        width: 250px;
    }
    #photo2{
        margin-left: 250px;
    }
    #photo4,#photo5{
        margin-left: 500px;
    }
}
@media only screen and (max-width:1130px){

    .container{
        width: 800px;
    }
    #sub-section{
        margin-left: 2%;
    }
}
@media only screen and (max-width:850px){

    #diapo1,#diapo2,#diapo3,#diapo4,#diapo5{
        width: 100%;
    }
    #masque-diapos{
        height: 450px;
    }
    .arrow{
        margin-top: -200px;
    }
    #close{
        right: 1%;
        top: 5%;
    }
}
@media only screen and (max-width:820px){

    .container{
        width: 400px;
        height: 1660px;
    }
    #sub-section{
        width: 100%;
        margin: 0 auto;
        height: auto;
    }
    #photo1,#photo2,#photo3,
    #photo4,#photo5{
        display: block;
        position: relative;
        width: 100%;
        top: 0;
        margin-left: 0;
    }
}
@media only screen and (max-width:420px){
    .container{
        width: 100%;
    }
}

