/* LIGHTBOX */
#lightbox {
    height: 100%;
    position: fixed;
    top: -100%;
    transition: top .85s, height .85s;
    width: 100%;
    z-index: 100000;
    height: 0;
}

#lightbox>span {
    background-color: rgba(35, 35, 35, .8);
    cursor: pointer;
    height: 100%;
    position: absolute;
    top: 0;
    width: 100%;
}

#lightbox>span span {
    color: #fff;
    font-size: 3.6em;
    line-height: .4em;
    padding: 15px;
    position: absolute;
    right: 0;
    top: 0;
    z-index: 5;
}

#lightbox div {
    box-shadow: 0 8px 15px 0 #000;
    margin: -120px auto 0;
    max-height: 80%;
    overflow: auto;
    position: relative;
    transform: rotateX(90deg) translateY(-160px);
    transition: .24s;
    width: 88%;
}

#lightbox img {
    display: block;
    width: 250%;
}

#lightbox.on {
    height: 100%;
    top: 0;
}

#lightbox.on div {
    margin-top: 50px;
    transition: .8s ease-out .32s;
    transform: rotateX(0deg) translateY(0px);
}

.lightbox {
    cursor: pointer;
}


@media (min-width: 992px) {
    #lightbox img { width: 100%; }
}