.gallery img:hover {
    cursor: pointer;
}

.gallery img {
    max-width: 300px;
    max-height: 200px;
}

.modal, .modal2 {
    display: none;
    z-index: 99999999;
}

#overlay, #overlay2 {
    background-color: rgba(0, 0, 0, 0.9);
    min-height: 100%;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 99999999;
}
#image{
    background-color: transparent;
    width: 80%;
    height: 80%;
    text-align: center;
    margin: 50px auto;
}
#test{
    background-color: transparent;
    width:100%;
    height:80%;
    text-align: center;
    margin: 50px auto;
}
#modalImg, #test2{
    vertical-align: middle;
    max-width: 100%;
    max-height: 100%;
}