  /*
Theme Name: TheGem Child
Description: Multi-Purpose Wordpress Theme
Author: Codex Themes.
Theme URI: http://codex-themes.com/thegem/
Author URI: http://codex-themes.com/thegem/
Template: thegem
Version: 1.0
Tags: one-column, two-columns, left-sidebar, right-sidebar, responsive-layout, custom-background, custom-colors, custom-header, custom-menu, featured-images, flexible-header, full-width-template, theme-options, translation-ready, dark, light
License: GNU General Public License
License URI: license.txt
*/
/* Grid post home */
.home #explore  .portfolio .portfolio-item .image .image-inner img {
    width: 100%;
    left: 0 !important;
    height: 100%;
    object-fit: cover;
    position: relative;
    max-width: 100%;
}
.home .block-content:last-of-type {
    padding-bottom: 0 !important;
}
.ancla:before {
    display: block;
    content: " ";
    height: 120px;
    margin-top: -120px;
    visibility: hidden;
}
.home #explore .portfolio-item .image .links .caption .slide-content {
    padding: 15px;
}
#explore .news-grid.portfolio .portfolio-item .image .overlay .links .caption .info{
    display: none !important;
}
#cat-intern .news-grid.portfolio .portfolio-item .image .overlay .links .caption .info{
    display: none !important;
}

@media only screen and  (min-width: 1101px){
    .home #explore  .portfolio-item:first-child {
        width: 50% !important;
        top: 0px !important;
        float: left !important;
    }
    .home #explore  .portfolio-item {
        text-align: center;
        margin-top: 0;
        position: relative !important;
        left: 0px !important;
        top: 0 !important;
        width: 25% !important;
    }
    
    .home #explore  .portfolio-set.clearfix {
        height: auto !important;
    }
    .home #explore  .portfolio-set {
        display: block;
    }
    .home #explore  .portfolio-item:nth-child(5n+1){
        width: 50% !important;
        float: right;
    }

    .home #explore  .portfolio-item:nth-child(10n +1 ){
        width: 50% !important;
        float: left;
    } 
    .home #explore    .portfolio-item .wrap .image .overlay .links .caption .slide-content .title-h5{
        font-size: 1.6em;
        line-height: 1.2em;
        text-align: center;
    }
}



/* Grid post 2 home */
.home #home-part2 {
    padding: 30px 0px;
}
/* .home #home-part2  .portfolio-item {
    text-align: center;
    margin-top: 0;
    position: relative !important;
    left: 0px !important;
    top: 0px !important;
} */
/* .home #home-part2  .portfolio-item:nth-child(3n) {
    width: 50%;
} */

/* Grid post bottom */
.home #post-bottom{
    margin-top: 30px;
    margin-bottom: 0;
}
.home #post-bottom  .portfolio-set {
    display: block;
}
.home #post-bottom .portfolio-item {
    width: 50%;
    position: relative !important;
    left: 0 !important;
    top: 0 !important;
}
.home #post-bottom .portfolio-item .wrap {
    display: flex;
    flex-wrap: wrap;
    border-bottom: none;
}
.home #post-bottom .portfolio-item .wrap .image {
    width: 50%;
}
.home #post-bottom .portfolio-item .wrap .image img{
    left: 0px !important;
    max-width: 100% !important;
}
.home #post-bottom .portfolio-item .wrap .image .image-inner .post-featured-content{
    position: relative;
}
.home #post-bottom .portfolio-item .wrap .image .image-inner > picture {
    display: none;
}
.home #post-bottom .portfolio-item .wrap .caption.post {
    width: 50%;
    background: #ff0000;
    padding: 50px;
    display: flex;
    align-items: center;
    justify-content: center 
}
.home #post-bottom .portfolio-item .wrap .caption .grid-post-meta {
    display: none;
}
.home #post-bottom .portfolio-item:hover .wrap .caption.post .title .title-h4 a, .home #post-bottom .portfolio-item .wrap .caption.post .title .title-h4 a:hover {
    text-decoration: underline;
    color: white;
}
.home #post-bottom .portfolio-item .wrap .caption.post .title .title-h4 a {
    color: white;
}
.home #post-bottom .portfolio-item .image .links .caption .slide-content {
    padding: 15px;
}
@media only screen and (min-width: 831px) and (max-width: 1100px){
    /* .home #explore .portfolio .portfolio-item:first-child {
        width: 33.3%;
        float: left;
    }
    .home #explore  .portfolio-item:nth-child(5n+1), .home #explore  .portfolio-item:nth-child(10n +1 ){
        width: 33.3%;
        float: left; */
    /* } */
    .home #post-bottom .portfolio .portfolio-item .image .image-inner img {
        width: 100%;
        left: 0 !important;
        height: 100%;
        object-fit: cover;
        position: relative;
        max-width: 100%;
    }
    .home #post-bottom .portfolio-item .wrap .image .image-inner .post-featured-content{
        position: absolute;
    }
    .home #post-bottom .portfolio-item .wrap .image .image-inner {
        height: 100%;
    }
    

}
@media only screen and (min-width: 551px) and (max-width: 830px){
    .home #post-bottom .portfolio-item {
        width: 100%;
    }
    .home #post-bottom .portfolio-item:nth-child(2n) .wrap .image{
        order: 2;
    }
    .home #post-bottom .portfolio .portfolio-item .image {
        min-height: 300px;
    }
    .home #post-bottom .portfolio .portfolio-item .image .image-inner img {
        width: 100%;
        left: 0 !important;
        height: 100%;
        object-fit: cover;
        position: relative;
        max-width: 100%;
    }
    .home #post-bottom .portfolio-item .wrap .image .image-inner .post-featured-content{
        position: absolute;
    }
    .home #post-bottom .portfolio-item .wrap .image .image-inner {
        height: 100%;
    }
}
@media only screen and (max-width: 550px){
    /* .home #explore .portfolio .portfolio-item:first-child,.home #explore  .portfolio-item:nth-child(5n+1), .home #explore  .portfolio-item:nth-child(10n +1 ) {
        width: 100%;
        float: left;
    } */
    .home #post-bottom .portfolio-item {
        width: 100%;
    }
    .home #post-bottom .portfolio-item .wrap .image, .home #post-bottom .portfolio-item .wrap .caption.post  {
        width: 100%;
    }
}

.home #post-bottom {
    display: none;
}


/* Category page */
#cat-intern .portfolio .portfolio-item .image .image-inner img {
    width: 100%;
    left: 0 !important;
    height: 100%;
    object-fit: cover;
    position: relative;
    max-width: 100%;
}
#cat-intern .portfolio-set {
    display: block;
}
#cat-intern  .portfolio-item .image .links .caption .slide-content {
    padding: 15px;
}

/* author */
.author_avatar {
    padding-right: 10px;

}
.post-meta-author {
    display: flex;
    /* //padding: 15px 10px;
    //background-color: var(--styled-bg-color);
    //border: 1px solid transparent; */
}
.author_avatar img{
    border-radius: 50%;
    -webkit-border-radius: 50%;
    width: 50px;
    height: 50px;
}
.post-author-section {
    margin-top: 30px;
}
.author_name {
    padding-top: 11px;
}
.author_name p{
    margin-bottom: 0;
    font-size: 16px;
    color: #000000;
    font-weight: bold;
}
.circle-image img{
    border-radius: 50%;
    -webkit-border-radius: 50%;
}
.author-name .post-title {
    line-height: 1.2em;
    margin-top: -13px;
}

@media only screen and  (min-width: 1101px){
    #cat-intern  .portfolio-item:nth-child(even){
        width: 50% !important;
    }
    #cat-intern  .portfolio-item:nth-child(even) .wrap .image{
        display: flex;
    }
    #cat-intern  .portfolio-item:nth-child(even) .wrap .image .image-inner{
       width: 50% !important;
    }
    #cat-intern  .portfolio-item:nth-child(even) .wrap .image .overlay{
        position: relative;
        width: 50% !important;
        display: flex;
        align-items: center;
        justify-content: center;
        background: #ff0000;
    }
    #cat-intern  .portfolio-item:nth-child(even) .image .overlay:after{
        background: none !important;
    }
    #cat-intern  .portfolio-item .wrap .image .overlay .links .caption .slide-content {
        text-align: center;
    }
    #cat-intern  .portfolio-item:nth-child(even) .wrap .image .overlay .links .caption .slide-content {
        width: auto;
        height: auto;
        position: relative;
        display: block;
        text-align: center;
    }
    #cat-intern  .portfolio-item .wrap .image .overlay .links .caption .slide-content .post-date{
        font-weight: 700;
        text-align: center;
    }
    #cat-intern  .portfolio-item .wrap .image .overlay .links .caption .slide-content .title-h5{
        font-size: 1.6em;
        line-height: 1.2em;
        text-align: center;
    }
    #cat-intern .portfolio.hover-title .portfolio-item .caption {
        padding: 0px 40px 0;
    }
    #cat-intern  .portfolio-item:first-child {
        width: 50% !important;
        top: 0px !important;
        float: left !important;
    }
    #cat-intern  .portfolio-item {
        text-align: center;
        margin-top: 0;
        position: relative !important;
        left: 0px !important;
        top: 0 !important;
    }
    
    #cat-intern  .portfolio-set.clearfix {
        height: auto !important;
    }
    #cat-intern  .portfolio-item:nth-child(odd){
        width: 50% !important;
        float: right;
    }

    /* #cat-intern  .portfolio-item:nth-child(5n):nth-child(odd){
        width: 50%;
        float: left;
    }  */
    #cat-intern  .portfolio-item:nth-child(4n+5){
        width: 50% !important;
        float: left;
    }
}

