.gallery {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.8);
    padding: 40px 10px;
    display: none;
    box-sizing: border-box;
    z-index: 1000;
}

.gallery > img {
    position: absolute;
    min-height: auto;
    width: auto;
    margin: auto;
    top: 0; left: 0; bottom: 0; right: 0;
    border-radius: 10px;
    z-index: 1000;
}

.close i {
    position: fixed;
    top: 15px;
    right: 10px;
    height: 30px;
    width: 30px;
}

.bar {
    display: block;
    position: absolute;
    top: 13px;
    float: left;
    width: 30px;
    border-bottom: 4px solid #fff;
    transform: rotate(45deg);
}

.bar:first-child {
    transform: rotate(-45deg);
}
