.modal {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background-color: rgba(69, 69, 69, 0.5);
    z-index: -999;
    opacity: 0;
    transition: opacity 0.2s;
    -moz-transition: opacity 0.2s;
    -webkit-transition: opacity 0.2s;
    -o-transition: opacity 0.2s;
}

.modal > .modalContainer {
    position: relative;
    width: 900px;
    margin: 6% auto;
    z-index: 999;
}

.modal  img#closeBtn {
    position: absolute;
    right: -12px;
    top: -12px;
    max-width: 24px;
    z-index: 99999;
}

.modal img#closeBtn:hover {
    cursor: pointer;
}

.modal img#detailImg {
    max-width: 100%;
}

.modal-show {
    z-index: 999;
    opacity: 1;
}

.show {
    animation: open 0.8s;
    display: block;
}

.fade {
    animation: close 0.8s;
    display: none;
}

.modalContainer > .title {
    position: relative;
    height: 5px;
    width: 90%;
    padding: 0 5%;
    line-height: 60px;
    font-size: 24px;
    border-bottom: 1px solid black;
}

.modalContainer > .content {
    position: relative;
    width: 900px;
    height: 655px;
    padding: 12px;
    background-color: white;
}

.overlay {
    overflow: hidden;
}

@keyframes open {
    0% {
        opacity: 0;
        -webkit-transform: scale(0.2);
        -mos-transform: scale(0.2);
        -o-transform: scale(0.2);
        -ms-transform: scale(0.2);
        transform: scale(0.2);
    }
    100% {
        opacity: 1;
        -webkit-transform: scale(1);
        -mos-transform: scale(1);
        -o-transform: scale(1);
        -ms-transform: scale(1);
        transform: scale(1);
    }
}

@keyframes close {
    0% {
        opacity: 1;
        -webkit-transform: scale(1);
        -mos-transform: scale(1);
        -o-transform: scale(1);
        -ms-transform: scale(1);
        transform: scale(1);
    }
    100% {
        opacity: 0;
        -webkit-transform: scale(0.2);
        -mos-transform: scale(0.2);
        -o-transform: scale(0.2);
        -ms-transform: scale(0.2);
        transform: scale(0.2);
    }
}