
.boxgall {
    overflow: hidden;
    position: relative;
    z-index: 1;
    transition: all 0.3s ease 0s;
    height: auto;
    width: 100%;
    margin: 0px 0px 15px 0px;
    padding: 0px 0px 0px 0px;
    float: left;
    border: 1px solid #e9e7e7;
    border-radius: 5px;
}

    .boxgall:hover {
        box-shadow: 0 0 20px rgba(0,0,0,0.5);
    }

.boxgall img {
    width: 100%;
    height: 220px;
    transition: all 0.3s ease 0s;
}

.boxgall:hover img {
    filter: hue-rotate(100deg);
}

.boxgall .boxgall-content {
    color: #fff;
    text-align: center;
    width: 100%;
    height: 100%;
    padding: 27% 0 0;
    position: absolute;
    left: 0;
    top: 0;
    z-index: 2;
}

    .boxgall:before,
    .boxgall:after,
    .boxgall .boxgall-content:before,
    .boxgall .boxgall-content:after {
        content: '';
        height: 50%;
        width: 50%;
        background-color: rgba(0,0,0,0.5);
        position: absolute;
        left: 0;
        top: 100%;
        transition: all 0.5s;
        z-index: 1;
    }

.boxgall:before {
    transition-delay: 0.1s;
}

.boxgall:after {
    left: 50%;
    transition-delay: 0.2s;
}

.boxgall .boxgall-content:before,
.boxgall .boxgall-content:after {
    z-index: -1;
    top: 100%;
    transition-delay: 0.3s;
}

.boxgall .boxgall-content:after {
    left: 50%;
    transition-delay: 0.35s;
}

.boxgall:hover:before,
.boxgall:hover:after {
    top: 0;
}

.boxgall:hover .boxgall-content:before,
.boxgall:hover .boxgall-content:after {
    top: 50%;
}

.boxgall .title {
    font-size: 17px;
    font-weight: 600;
    text-transform: uppercase;
    margin: 0;
    opacity: 0;
    transform: translateX(-200px);
    transition: all 0.3s ease 0.3s;
    margin: 0px 0px 0px 0px;
    padding: 0px 10px 0px 10px;
    float: left;
    text-align: center;
    width: 100%;
}

.boxgall .post {
    font-size: 16px;
    font-style: italic;
    letter-spacing: 1px;
    text-transform: capitalize;
    margin-bottom: 10px;
    opacity: 0;
    display: block;
    transform: translateX(-200px);
    transition: all 0.3s ease 0.3s;
}

.boxgall .icon {
    list-style: none;
    text-align: center;
    padding: 0;
    margin: 0;
    opacity: 0;
    z-index: 2;
    transform: translateX(200px);
    transition: all 0.3s ease 0.3s;
}

.boxgall:hover .title,
.boxgall:hover .post,
.boxgall:hover .icon {
    opacity: 1;
    transform: translateX(0);
}


/*--  Demo8 --*/
.agileits-img {
    background-color: #f5f5f5;
    display: block;
    overflow: hidden;
    position: relative;
    box-shadow: 0 0 0 0 #555;
    -webkit-transition: all 0.5s;
    -moz-transition: all 0.5s;
    -ms-transition: all 0.5s;
    -o-transition: all 0.5s;
    transition: all 0.5s;
    opacity: 1;
    .logof-h3 filter: alpha(opacity=100);
    margin: 0px 0px 30px 0px;
    border: 1px solid #ececec;
    padding: 5px;
}

    .agileits-img:before {
        content: '';
        background-color: rgba(0, 0, 0, 0);
        left: 0;
        top: 0;
        right: 0;
        bottom: 0;
        position: absolute;
        -webkit-transition: all 0.5s;
        -moz-transition: all 0.5s;
        -ms-transition: all 0.5s;
        -o-transition: all 0.5s;
        transition: all 0.5s;
    }

    .agileits-img:hover {
        cursor: pointer;
    }

        .agileits-img:hover:before {
            background-color: rgba(0, 0, 0, 0.8);
        }

        .agileits-img:hover .wthree-pcatn {
            -moz-transform: translateY(0%) scale(1);
            -o-transform: translateY(0%) scale(1);
            -ms-transform: translateY(0%) scale(1);
            -webkit-transform: translateY(0%) scale(1);
            transform: translateY(0%) scale(1);
        }

    .agileits-img .wthree-pcatn {
        background-color: rgba(0, 0, 0, 0.54);
        bottom: 0;
        height: 100%;
        /*top:50%;*/
        left: 0;
        padding: 74px 15px 0px 0px;
        position: absolute;
        right: 0;
        text-align: left;
        z-index: 99;
        -webkit-transition: all 0.5s;
        -moz-transition: all 0.5s;
        -ms-transition: all 0.5s;
        -o-transition: all 0.5s;
        transition: all 0.5s;
        -moz-transform: translateY(150%) scale(1.5);
        -o-transform: translateY(150%) scale(1.5);
        -ms-transform: translateY(150%) scale(1.5);
        -webkit-transform: translateY(150%) scale(1.5);
        transform: translateY(150%) scale(1.5);
    }

        .agileits-img .wthree-pcatn h4 {
            font-size: 18px;
            color: #ffffff;
            text-align: center;
            font-weight: 400;
            /* letter-spacing: 2px; */
            text-transform: uppercase;
        }

        .agileits-img .wthree-pcatn h5 {
            font-size: 50px;
            color: #ffffff;
            text-align: center;
            font-weight: 400;
            /* letter-spacing: 2px; */
            text-transform: uppercase;
        }

.item-desc {
    background-color: rgba(0,0,0,0.5);
    color: white;
    position: absolute;
    text-transform: uppercase;
    text-align: center;
    padding: 1em;
    z-index: 1;
    bottom: 1em;
    left: 1em;
    right: 1em;
}
/* Filter controls */
ul.simplefilter {
    text-align: center;
    margin: 0px 0px 30px 0px;
    padding: 0px;
}

.simplefilter li {
    cursor: pointer;
    display: inline-block;
    text-transform: capitalize;
    padding: 0;
    margin: 0 0.3em;
    border: 1px solid #204066;
    font-size: 1em;
    background: #204066;
    border-radius: 4px;
}

    .simplefilter li a {
        padding: 6px 8px;
        min-width: 100px;
        float: left;
        color: #fff;
        text-decoration: none;
        font-size: 15px;
    }

    .simplefilter li:hover {
        border-color: #02b875;
        background: #02b875;
        color: #ffffff !important;
    }


    .simplefilter li a:hover {
        color: #fff;
    }

    .simplefilter li.active {
        border-color: #0245f1;
        background-color: #02b875;
        color: #fff;
    }

.agileits-img a {
    display: block;
    overflow: hidden;
}

    .agileits-img a img {
        width: 100%;
        -webkit-transition: .5s all;
        -moz-transition: .5s all;
        transition: .5s all;
    }

.agileits-img:hover img {
    -webkit-transform: scale(1.2);
    -moz-transform: scale(1.2);
    -o-transform: scale(1.2);
    -ms-transform: scale(1.2);
    transform: scale(1.2);
}


@media only screen and (max-width:800px) {

    .agileits-img .wthree-pcatn {
        height: 100%;
    }

    .agileits-img {
        margin: 0px 0px 10px 0px;
    }
}
