/*--------------------------------------------------------------
# Main Masonry Page
--------------------------------------------------------------*/
.container-mas {
    display: -ms-grid;
    display: grid;
    grid-gap: 12px;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    grid-auto-rows: 260px;
    grid-auto-flow: dense;
    width: 100%;
    max-width: 1200px;
    margin: 20px auto 25px;
    padding: 0 4px;
    box-sizing: border-box;
}
.item-mas {
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    background-color: #fff;
    box-sizing: border-box;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
 }

.item-mas:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
    border-color: #d0d0d0;
}
.inBox-mas {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
 }
.inBox-mas .img-mas {
    width: 100%;
    height: 50%;
    overflow: hidden;
    background: linear-gradient(-27deg, #f2f2f2 50%, #eaeaea 50%);
 }
.inBox-mas .img-mas img {
    width: 100%; 
    height: auto;
    min-height: 100%; 
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
 .inBox-mas .img-mas:hover img {
    transform: scale(1.08);
}
 .inBox-mas .desc-mas {
    height: 50%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.inBox-mas .title-mas {
    font-size: 1.13em;
    font-weight: 600;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-height: 1.4em;
    max-height: 2.8em;
    overflow: hidden;    
    padding: 0 9px;
    box-sizing: border-box;
 }

.inBox-mas .title-mas > a {
    color: #2c3e50;
    transition: color 0.2s ease;
}

.inBox-mas .title-mas > a:hover {
    color: #3498db;
} 
.desc-mas .cate-mas, .info-mas .aut-mas {
    font-size: 0.95em;
    color: #888;
    display: block;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;    
 }
.desc-mas .cate-mas {
    padding: 8px 9px 4px;
    box-sizing: border-box;
    overflow: hidden;
 }
.desc-mas .gap-mas {flex: 1;}
.desc-mas .info-mas {
    width: 100%;
    display: flex;
    align-items: center;
    padding: 6.5px 9px;
    border-top: 1px solid #eee;
    box-sizing: border-box;
    overflow: hidden;
 }
.info-mas .aut-mas {flex: 1;}
.info-mas .ico2-mas {
    display: block;
    width: 25px; height: 25px;
    border-radius: 25px;
    background: #ededed url(../images//bookmark-wgs.svg) no-repeat center / 60%;    
 }

 /* --- sz20 --- */
 .item-mas.sz20, .item-mas.sz30 {grid-column: span 2;}
 .item-mas.sz20 .inBox-mas {
    flex-direction: row;
 }
 .item-mas.sz20 .img-mas {
    width: 100%;
    height: 100%;
    padding: 15px;
    background: #f7f7f7;
    box-sizing: border-box;
 }
 .item-mas.sz20 .img-mas img {
    border-radius: 10px;
    overflow: hidden;
 }
 .item-mas.sz20 .desc-mas {
    width: 100%;
    height: 100%;
    padding: 10px 0 0;
    box-sizing: border-box;
}
.item-mas.sz20 .title-mas {
    -webkit-line-clamp: 3;
    max-height: 4.2em;
 } 
  /* --- sz30 --- */
.item-mas.sz30 .inBox-mas {
    position: relative;
    color: #fff;
 }
.item-mas.sz30 .img-mas {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    width: 100%; height: 100%;
 }
.item-mas.sz30 .img-mas::after {
    content: '';
    display: block;
    position: absolute;
    left: 0; right: 0; top: 0; bottom: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.2) 30%, rgba(0,0,0,0.95) 60%);
 }
.item-mas.sz30 .desc-mas {
    position: absolute;
    left: 0; right: 0; bottom: 0;
 }
 .item-mas.sz30 .desc-mas .cate-mas, .item-mas.sz30 .info-mas .aut-mas {color: #cdcdcd;}
 .item-mas.sz30 .desc-mas .info-mas {border-top: 1px solid #444;}
 .item-mas.sz30 .inBox-mas .desc-mas {height: auto;}
 .item-mas.sz30 .desc-mas .gap-mas {flex: none; height: 10px;}
 
 .item-mas.sz30 .title-mas {
    -webkit-line-clamp: 2;
    max-height: 2.8em;
 } 

@media screen and (max-width:768px) {
    .container-mas {
        grid-gap: 18px;
        grid-template-columns: repeat(auto-fit, minmax(100%, 1fr));
        grid-auto-rows: auto;
        padding: 0 9px;
        background-color: #f5f5f5;
        margin: 20px auto 0;
    }    
    .inBox-mas {
        flex-direction: row;
        align-items: center;
        padding: 10px 10px 10px 3px;
        box-sizing: border-box;
     }
    .inBox-mas .img-mas {
        order: 2;
        width: 110px;
        height: 110px;
        border-radius: 5px;
        box-sizing: border-box;
        overflow: hidden;
     }
    .inBox-mas .desc-mas {
        order: 1;
        flex: 1;
    }
    .inBox-mas .title-mas {font-size: 1.06em;} 
     .desc-mas .cate-mas { padding: 6px 9px 1px; }
    .inBox-mas .desc-mas {height: auto;}     
    .desc-mas .cate-mas, .info-mas .aut-mas {font-size: 0.86em;}
    .inBox-mas .title-mas {margin: 4px 0 6px;} 

    .item-mas.sz20 .inBox-mas .img-mas, .ieweb2 .item-mas.sz20 .inBox-mas .img-mas {
        width: 110px; height: 110px; overflow: hidden; padding: 0;
    }   
    .item-mas.sz20 .desc-mas {padding: 0;} 
    .item-mas.sz20 .title-mas {
        -webkit-line-clamp: 2;
        max-height: 2.8em;
     } 

    .item-mas.sz20, .item-mas.sz30 {grid-column: span 1;}    
    .item-mas.sz30 .inBox-mas {height: 240px;}
    .item-mas.sz30 .inBox-mas .desc-mas {height: auto;}
    .item-mas.sz30 .desc-mas .gap-mas {flex: none; height: 3px;}

}
/* == MS Internet Explore 11 supported == */
.ieweb2 {}
.container-mas.ieweb2 {
    display: flex;
    flex-wrap: wrap;
}
.ieweb2 .item-mas {
    width: calc(25% - 10px);
    height: 300px;
    margin: 5px;
 }

.ieweb2 .item-mas.sz20 .inBox-mas {flex-direction: column;}
.ieweb2 .item-mas.sz20 .img-mas {
    width: 100%;
    height: 50%;
    padding: 0;
    box-sizing: border-box;
 }
 .ieweb2 .item-mas.sz20 .title-mas {
    -webkit-line-clamp: 2;
    height: 2.8em;
 } 
 .ieweb2 .item-mas.sz20 .desc-mas {height: 50%;}
 @media screen and (max-width:940px) {
    .ieweb2 .item-mas {width: calc(33.3% - 10px);}    
 }
@media screen and (max-width:768px) {
    .ieweb2 .item-mas {
        width: calc(100% - 10px);
        height: auto;
        margin: 15px 5px 0;
     }
    .ieweb2 .item-mas.sz20 .inBox-mas {flex-direction: row;}
    .ieweb2 .item-mas.sz20 .desc-mas {padding: 0; height: auto;} 

}
 /* == End MS Internet Explore 11 supported == */


 .moreBtnvvm {
    text-align: center;
    padding: 25px 5px 35px;
    box-sizing: border-box;
 }
.mrbtn_vvm {
    font-size: 0.95em;
    padding: 10px 40px;
    background: linear-gradient(135deg, #4A90E2 0%, #357ABD 100%);
    color: #fff;
    border: none;
    border-radius: 30px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(74, 144, 226, 0.3);
}
.mrbtn_vvm:hover {
    background: linear-gradient(135deg, #357ABD 0%, #4A90E2 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(74, 144, 226, 0.4);
}

/* -- Add Gallery Grid 1025 -- */
.container-ivmas {
    display: -ms-grid;
    display: grid;
    grid-gap: 12px;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    grid-auto-rows: 210px;
    grid-auto-flow: dense;
    width: 100%;
    max-width: 1200px;
    margin: 20px auto 25px;
    padding: 0 4px;
    box-sizing: border-box;     
}
.ive-mas {
    border: 1px solid #ddd;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 1px 4px 0 rgba(32, 33, 36, 0.18);
    background-color: #fff;
    box-sizing: border-box;
}
.iveBx-mas {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;    
}
.iveBx-mas .img-mas {
    width: 100%;
    height: 72%;
    overflow: hidden;
    background: linear-gradient(-27deg, #f2f2f2 50%, #eaeaea 50%);
 }
 .iveBx-mas .img-mas img {
    width: 100%; 
    height: auto;
    min-height: 100%; 
    transition: transform 0.4s;
}
.iveBx-mas .img-mas:hover img {transform: scale(1.13);}
.iveBx-mas .desc-mas {
    height: 28%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    justify-content: center;
}
.iveBx-mas .title-mas {
    font-size: 1.12em;
    font-weight: 600;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-height: 1.3em;
    max-height: 2.8em;
    overflow: hidden;    
    padding: 0 9px;
    box-sizing: border-box;
 } 
 @media screen and (max-width:768px) {
    .container-ivmas {
        grid-gap: 10px;
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 180px;
        /* grid-template-columns: repeat(auto-fit, minmax(100%, 1fr));
        grid-auto-rows: auto; */
        padding: 0 11px 15px;
        background-color: #f5f5f5;
        margin: 20px auto 0;
    }    
    .iveBx-mas .img-mas {height: 69%;}
    .iveBx-mas .desc-mas {height: 31%;}    
    .iveBx-mas .title-mas {font-size: 1.03em;} 
 
    }

