#modal {
    display: none;
    position: fixed;
    z-index: 1;
    padding-top: 100px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: none;
    background-color: rgba(0,0,0,0.9);
}

#modal-preloader {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 320px;
    margin-left: -160px;
    z-index: 2;
    color: #f1f1f1;
    text-align: center;
}

#modal-drag-and-drop {
    width: 100%;
    height: 100%;
}

#modal-img {
    margin: auto;
    display: block;
    max-height: 80%;
    cursor: move;
}

#modal-caption {
    color: #f1f1f1;
    padding: 10px 100px 25px 100px;
    cursor: default;
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    text-align: center;
}

#modal-close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 50px;
    font-weight: bold;
    cursor: pointer;
}

#modal-img, #modal-caption, #modal-close {    
    -webkit-animation-name: modal-zoom;
    -webkit-animation-duration: 0.6s;
    animation-name: modal-zoom;
    animation-duration: 0.6s;
}

@-webkit-keyframes modal-zoom {
    from {-webkit-transform:scale(0)} 
    to {-webkit-transform:scale(1)}
}

@keyframes modal-zoom {
    from {transform:scale(0)} 
    to {transform:scale(1)}
}
