/*! ---Category --- */

.wrap_category {
    display: block;
    width: 100%;
}

.wrap_popular {
    width: 100%;
}


.gallery_item {
    display: block;
    width: 100%;
    /* padding: 0 15px 30px 15px; */
}

.grid-item:hover .glr_news a {
    color: #1D8CDC;
}

.grid-item:hover .grl_zm_link::after {
    visibility: visible;
    opacity: 1;
}

.grid-item.no_bg:hover .grl_zm_link::after {
    visibility: hidden;
    opacity: 1;
}

.glr_zoom {
    display: block;
    width: 100%;
    overflow: hidden;
    border-radius: 16px;
    -webkit-border-radius: 16px;
    -moz-border-radius: 16px;
    -ms-border-radius: 16px;
    -o-border-radius: 16px;
}

.grl_zm_link {
    display: block;
    position: relative;
    width: 100%;
    overflow: hidden;
    z-index: 1;
    border-radius: 16px;
    -webkit-border-radius: 16px;
    -moz-border-radius: 16px;
    -ms-border-radius: 16px;
    -o-border-radius: 16px;
}

.grl_zm_link::after {
    content: "";
    display: block;
    position: absolute;
    visibility: hidden;
    opacity: 0;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background-color: #00000080;
    background-position: center;
    background-repeat: no-repeat;
    background-image: url("../img/icons/zoom.png");
    z-index: 2;
    transition: all 0.3s ease;
    -webkit-transition: all 0.3s ease;
    -moz-transition: all 0.3s ease;
    -ms-transition: all 0.3s ease;
    -o-transition: all 0.3s ease;
}

/* .grl_zm_link::before {
    content: "";
    display: block;
    position: relative;
    width: 100%;
    padding-top: 67%;
} */

.grl_zm_link img {
    display: block;
    width: 100%;
}

.glr_news {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin: 12px 0 0 0;
}

.glr_news a {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    text-align: left;
    font-size: 16px;
    font-weight: normal;
    line-height: normal;
    letter-spacing: 1.5px;
    color: #222;
    overflow: hidden;
    text-overflow: ellipsis;
    -webkit-box-orient: vertical;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    word-wrap: break-word;
    z-index: 5;
    transition: all 0.3s ease;
    -webkit-transition: all 0.3s ease;
    -moz-transition: all 0.3s ease;
    -ms-transition: all 0.3s ease;
    -o-transition: all 0.3s ease;
}

.grid_content {
    display: block;
    width: 100%;
    min-height: 300px;
    margin: 0 -20px;
    overflow: hidden;
}

.grid-item {
    width: 20%;
    float: left;
}

.gr_padding {
    display: block;
    padding: 0 20px 40px 20px;
    transition: all 0.3s;
    -webkit-transition: all 0.3s;
    -moz-transition: all 0.3s;
    -ms-transition: all 0.3s;
    -o-transition: all 0.3s;
}


.fancybox-is-open .fancybox-bg {
    opacity: 1;
}

/*! ---Category --- */

@media only screen and (min-width: 1025px) and (max-width: 1232px) {

    .grid_content {
        margin: 0 -10px;
    }

    .grid-item {
        width: 20%;
    }

    .gr_padding {
        display: block;
        padding: 0 10px 20px 10px;
    }
}

@media only screen and (min-width: 768px) and (max-width: 1024px) {

    .grid_content {
        margin: 0 -8px;
    }

    .grid-item {
        width: 25%;
    }

    .gr_padding {
        display: block;
        padding: 0 8px 20px 8px;
    }
}

@media only screen and (min-width: 561px) and (max-width: 767px) {

    .grid_content {
        margin: 0 -8px;
    }

    .grid-item {
        width: 33.33%;
    }

    .gr_padding {
        display: block;
        padding: 0 8px 20px 8px;
    }
}

@media only screen and (min-width: 0px) and (max-width: 560px) {

    .grid_content {
        margin: 0 -8px;
    }

    .grid-item {
        width: 50%;
    }

    .gr_padding {
        display: block;
        padding: 0 8px 20px 8px;
    }

}