#TB_window{
    background: none !important;
    -webkit-box-shadow: none !important;
    -moz-box-shadow: none !important;
    box-shadow: none !important;
    height: 100vh !important;
    left: 0 !important;
    margin-left: 0 !important;
    margin-top: 0 !important;
    top: 0 !important;
    width: 100vw !important;
}

#TB_title{
    background: none !important;
    border-bottom: none !important;
}

#TB_ajaxContent{
    background: none !important;
    height: 100% !important;
    width: 100% !important;
}

@media only screen and (max-width: 767px){
    #TB_ajaxContent{
        margin-top: 50%;
    }
}

@media only screen and (min-width: 768px) and (max-width: 991px){
    #TB_ajaxContent{
        margin-top: 20%;
    }
}

@media only screen and (min-width: 992px) and (max-width: 1199px){
    #TB_ajaxContent{
        margin-top: 10%;
    }
}

#TB_ajaxContent img{
    margin-top: 20%;
    margin-left: 50%;
    max-width: 80%;
    -webkit-transform: translate(-50%,-50%);
    -moz-transform: translate(-50%,-50%);
    -ms-transform: translate(-50%,-50%);
    -o-transform: translate(-50%,-50%);
    transform: translate(-50%,-50%);
}

.tb-close-icon{
    color: #2E9B2F !important;
    height: 50px !important;
    line-height: 50px !important;
    outline: none !important;
    padding-right: 100%;
    right: 30% !important;
    width: 50px !important;
}

.tb-close-icon:before{
    font: normal 40px dashicons !important;
}

/**Gallery**/

#TB_closeWindowButton{
    top: 0;
}

#TB_window img#TB_Image{
    margin-left: 50% !important;
    margin-top: 20% !important;
    -webkit-transform: translate(-50%,-50%);
    -moz-transform: translate(-50%,-50%);
    -ms-transform: translate(-50%,-50%);
    -o-transform: translate(-50%,-50%);
    transform: translate(-50%,-50%);
}

@media only screen and (max-width: 767px){
    #TB_window img#TB_Image {
        margin-top: 80% !important;
    }
}

@media only screen and (min-width: 768px) and (max-width: 991px){
    #TB_window img#TB_Image {
        margin-top: 50% !important;
    }
}

@media only screen and (min-width: 992px) and (max-width: 1200px){
    #TB_window img#TB_Image {
        margin-top: 30% !important;
    }
}

#TB_window div#TB_caption{
    background: #2E9B2F;
    bottom: 0;
    color: white;
    font-size: 1.3em;
    height: auto;
    position: fixed;
    text-align: center;
    width: 100%;
}

#TB_caption span#TB_prev a,  #TB_caption span#TB_next a{
    color: white;
    text-decoration: none;
}

#TB_caption span#TB_prev,  #TB_caption span#TB_next{
    position: absolute;
    top: 50%;
    -webkit-transform: translateY(-50%);
    -moz-transform: translateY(-50%);
    -ms-transform: translateY(-50%);
    -o-transform: translateY(-50%);
    transform: translateY(-50%);
}

#TB_caption span#TB_prev{
    left: 15px;
}

#TB_caption span#TB_next{
    right: 15px;
}