@charset "utf-8";
/**
 * @author https://www.cosmosfarm.com/
 */

.latest-gallery-style-two {
    overflow: hidden;
    margin-right: -8px;
}

.latest-gallery-style-two .list {
    position: relative;
    float: left;
    padding: 0 8px 16px !important;
    margin: 0 !important;
    overflow: hidden;
}

.latest-gallery-style-two .list a {
    position: relative;
    display: block;
    border-radius: 10px;
overflow: hidden;
}

.latest-gallery-style-two .list a .over span {
    display: block;
}

.latest-gallery-style-two .list .thum-img {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
}

.latest-gallery-style-two .list .thum-img img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    min-height: 100%;
    transition: all 0.3s;
}

.latest-gallery-style-two .list a:hover .thum-img img {
    transform: scale(1.06) rotate(0.02deg);
}

.latest-gallery-style-two .line1 {
    overflow: hidden;
    margin-left: -10px;
}

.latest-gallery-style-two .line1 > div:first-child {
    width: 50%;
    overflow: hidden;
    margin-bottom: 0;
}

.latest-gallery-style-two .line1 > div {
    width: 25%;
    overflow: hidden;
}

.latest-gallery-style-two .list a .thum-box {
    padding-top: 100%;
}

.latest-gallery-style-two .line1 > div:first-child .over {
    padding-top: 45%;
}

.latest-gallery-style-two .over {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    padding: 35% 12px;
    text-align: center;
    background: rgba(0, 0, 0, .5);
    color: #fff;
    font-size: 17px;
    z-index: 1;
    opacity: 0;
    transition: all 0.4s;
}

.latest-gallery-style-two .over:after {
    content: '\e907';
    font-family: 'xeicon';
    color: #fff;
    font-size: 28px;
    display: inline-block;
    padding-top: 8px;
    margin-left: 0;
    transition: all 0.3s;
}

.latest-gallery-style-two .over:hover {
    opacity: 1;
}

/*
.latest-gallery-style-two .over:hover:after {
    margin-left: 0;
}
*/
