
div.gallery-container {
    margin: .5vw;
    font-size: 12;
    display: -ms-flexbox;
    -ms-flexbox-wrap: wrap;
    -ms-flexbox-direction: column;
    -webkit-flex-flow: row wrap;
    flex-flow: row wrap;
    display: -webkit-box;
    display: flex;
}

div.gallery-container div {
    -webkit-box-flex:auto;
    -ms-flex: auto;
    flex: auto;
    width: 400px;
    height: auto;
    margin: .5vw;
}

div.gallery-container div img {
    width: 100%;
    max-height: 400px;
    overflow: hidden;
    height: auto;
}

div.gallery-container div h3 {
    color:#0b0b0b;
    background-color:white;
    text-align: center;
    margin:0;
    padding: .5em;

}

.popup img:hover {

}

.show {
    z-index:999;
    display: none;
}

.show .overlay {
    width: 100%;
    height: 100%;
    /* background-color:rgba(255,255,255,0.66); */
    background:rgba(0,0,0,0.66);
    position: absolute;
    left: 0;
    top:0;
}

.show .img-show{
    width: 600px;
    height: 400px;
    background: #FFF;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    overflow: hidden;
    padding: 10em 20em;
    
}
.img-show span{
    color:white;
    font-size:32px;
    font-family: sans-serif;
    opacity: .7;
    text-transform: uppercase;
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 99;
    cursor: pointer;
}
.img-show span:hover {

}
.img-show img{
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

@media screen and (max-width: 400px) {
    
    div.gallery-container div {
        margin: 0;
    }
    
    div.gallery-container {
        padding: 0;
    }
    
    .show .img-show {
        padding:0;
    }
}