#galerie {
padding: 100px 0 30px;
width: 1330px;
}
#galerie h1 {
text-align: center;
font-size: 30px;
}
#galerie .item {
float: left;
margin: 30px 30px 0 30px;
width: 272px;
border-top-left-radius: 6px;
border-top-right-radius: 6px;
overflow: hidden;

}
#galerie .item.g {
cursor:pointer;
}
#galerie .item .img {
width: 100%;
height: 160px;
display: block;
transition-duration: .2s;
}
#galerie .item.g:hover .img {
transform: scale(1.1);
transition-duration: .2s;
}
#galerie .item .img1 {
background: url(/public/img/galerie/mitch/hero.jpg) center center;
background-size: cover;
}
#galerie .item .img2 {
background: url(/public/img/galerie/grey-og/hero.jpg) center center;
background-size: cover;
}
#galerie .item .img3 {
background: url(/public/img/galerie/b-and-w/hero.jpg) center center;
background-size: cover;
}
#galerie .item .img4 {
background: url(/public/img/galerie/aj1-italia/hero.jpg) center center;
background-size: cover;
}
#galerie .item .img5 {
background: url(/public/img/galerie/croco-kamel/hero.jpg) center center;
background-size: cover;
}
#galerie .items .item:nth-child(4n+1) {
        clear:both;
  }


#galerie .item .text {
background: #F5F5F5;
padding: 10px;
border-bottom-left-radius: 6px;
border-bottom-right-radius: 6px;
line-height: 1.3;
position:relative;
}
#galerie .item .text strong {
font-size: 15px;
}
#galerie .item .text p {
font-size:14px;
}


#diaporama {
    display:none;
    position: fixed;
    background: rgba(0,0,0,.85);
    width: 100%;
    height: 100%;
    top: 0;
    overflow: hidden;
    z-index: 9999999;
}
#diaporama #diapo-prev, #diaporama #diapo-next {
    position: absolute;
    width: 60px;
    top: 50%;
    transform: translateY(-50%);
    left: 40px;
    cursor:pointer;
}
#diaporama #diapo-next {
    right: 40px;
    left: inherit;
    transform: translateY(-50%) rotate(180deg);
}
#diaporama #diapo-img-wrapper {
    height: calc(100% - 100px);
    position: absolute;
    width: calc(100% - 300px);
    transform: translateX(-50%) translateY(-50%);
    left: 50%;
    top: 50%;
}
#diaporama #diapo-img-wrapper img {
    position: absolute;
    max-width: 100%;
    max-height: 100%;
    top: 50%;
    left: 50%;
    transform: translateX(-50%) translateY(-50%);
}
#diapo-close {
    width: 25px;
    height: 25px;
    position: absolute;
    right: 50px;
    top: 30px;
    cursor: pointer;
    transition-duration: .5s;
    transform: scale(1.8);
    transform-origin: top right;
}
#diapo-close div {
    background: #FFF;
    position: absolute;
    top: 50%;
    border-radius: 3px;
    left: 50%;
    transform: translate(-50%,-50%) rotate(45deg);
}
#diapo-close div:nth-child(1) {
    height: 4px;
    width: 100%;
}
#diapo-close div:nth-child(2) {
    width: 4px;
    height: 100%;
}






@media screen and (max-width: 1330px) {
    #galerie .items .item:nth-child(4n+1) {
        clear:none;
    }
    #galerie {
        width:1000px;
    }
    #galerie .items .item:nth-child(3n+1) {
        clear:both;
    }
}


@media screen and (max-width: 1000px) {
#galerie {
padding: 65px 0 30px;
    width: 100%;
}
#galerie h1 {
font-size: 24px;
}
#galerie .item {
float: none;
width: calc(100% - 40px);
margin: 30px auto;
max-width: 450px;
}

#diapo-close {
    transform: scale(1.5);
    right: 20px;
    top: 20px;
}
#diaporama #diapo-img-wrapper {
    height: 45%;
    top: 70px;
    transform: translateX(-50%);
    width: calc(100% - 40px);
}
#diaporama #diapo-prev, #diaporama #diapo-next {
    transform: none;
    top: calc(45% + 95px);
}
#diaporama #diapo-next {
    transform: rotate(180deg);
}
}