#wrapper > div {
    margin: 10px 0;
}
div.content{
    width: 990px;
    top: 0px;
}
div.content::after{
    clear: both;
}
.content div{
}
.content div.item{
    width: 310px;
    height: 241px;
    float: left;
    margin: 0 20px 20px 0;
    overflow: hidden;
}
.content div.item.R_ad{
    width: 300px;
    height: 360px;
    float: left;
    margin: 0 0 20px 10px;
    overflow: hidden;
}
.content div.item_large{
    width: 640px;
    height: 360px;
    background-size: cover;
    position: relative;
}
.content div.item_large.item_video a:after{
    position: absolute;
    top: 42%;
    left: 45%;
    content: url('//img.appledaily.com.tw/appledaily/images/rlanplay.png');
}

@media screen and (max-width: 659px) {
    .content div.item_large.item_video a:after {
        position: absolute;
        top: 34%;
        left: 42%;
        content: url(//img.appledaily.com.tw/appledaily/images/rlanplay.png);
    }
}

@media screen and (max-width: 375px) {
    .content div.item_large.item_video a:after {
        position: absolute;
        top: 34%;
        left: 38%;
        content: url(//img.appledaily.com.tw/appledaily/images/rlanplay.png);
    }      
}    

@media only screen and (max-width : 320px) {
    .content div.item_large.item_video a:after {
        position: absolute;
        top: 30%;
        left: 38%;
        content: url(//img.appledaily.com.tw/appledaily/images/rlanplay.png);
    }    
}
.content div.item_large div.text{
    font-size: 26px;
    color: #FFFFFF;
    position: absolute;
    bottom: 0;
    padding: 15px 20px;
    background: -moz-linear-gradient(top, rgba(0,0,0,0) 0%, rgba(0,0,0,0.65) 100%);
    background: -webkit-linear-gradient(top, rgba(0,0,0,0) 0%,rgba(0,0,0,0.65) 100%);
    background: linear-gradient(to bottom, rgba(0,0,0,0) 0%,rgba(0,0,0,0.65) 100%);
    filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#00000000', endColorstr='#a6000000',GradientType=0 );
    width: 100%;
}
.content .nm-main-articles{
    max-width: 640px;
    width: 100%;
    max-height: 360px;
    float: left;
    overflow: hidden;
    margin: 0 20px 10px 0;
}
.content .nm-main-articles .iframePlayer{
    margin: 0px auto;
    position: relative;
    height: 0px;
    padding-bottom: 60%;
    overflow: hidden;
}
.content .nm-main-articles .iframePlayer iframe{
    position: absolute;
    top: 0px;
    left: 0px;
    width: 100%;
    height: 100%;
}
.content div.item_article{
    position: relative;
    border-radius: 0px;
}
.content div.item_article.item_video_article{
    position: relative;
    border-radius: 0px;
}
.content div.item_article.item_video_article a:after {
    position: absolute;
    top: 22%;
    left: 37%;
    content: url('//img.appledaily.com.tw/appledaily/images/rlanplay.png');
}
.content div.row{
    width: 100%;
    margin: 20px 0 30px;
    height: auto;
}
@media only screen and (max-width: 970px) {
    div.content{
        width: 100%;
    }
    .content div.item{
        max-width: 590px;
        min-width: 288px;
        max-height: 455px;
        width: 90vw;
        height: 69.5vw;
        margin: 2% 5%;
    }
    .content div.item_article{
        min-height: 224px;
    }
    .content div.item_large{
        margin: 0;
        max-width: none;
        max-height: none;
        width: 640px;
        height: 360px;
    }
}
@media only screen and (max-width: 640px) {
    .content div.item_large{
        margin: 0;
        max-width: 640px;
        max-height: 360px;
        min-width: 320px;
        min-height: calc(320px * 9/16);
        width: 100vw;
        height: calc(100vw * 9/16);
    }
    .content div.item_large div.text{
        font-size: 20px;
    }
}

/* countdown section */
div.content div.countdown{
    display: block;
    width: auto;
    height: auto;
    float: right;
    width: 299px;
    min-height: 360px;
    margin: 0 25px 20px 0;
}
/* countdown section end */

/* AD section */
div.content div.R_ad {
    display: block;
    width: auto;
    height: auto;
    float: right;
    width: 300px;
    min-height: 360px;
    margin: 0 25px 20px 0;
}

div.content div.R_ad .R2_ad{
    display: block;
    width: auto;
    height: auto;
    margin: 10px 0 0 0;
}

.content div.item_article img{
    width: 100%;
}
.content div.item_article img:after{
    width: 100%;
}
.content div.item_article div{
    height: 70px;
    width: 100%;
    position: absolute;
    bottom: 0;
    background-color:#FFFFFF;
    font-weight:600;
    overflow: hidden;
    padding: 5px 0;
}
.content div.item_article div h3{
    font-size: 17px;
    line-height: 21px;
    height: 65px;
    width: 100%;
    bottom: 0;
    padding: 5px 18px;
    font-weight:600;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}
@media only screen and (max-width: 970px) {
    .content div.item_article div{
        height: 125px;
        padding: 10px 0;
    }
    .content div.item_article div h3{
        font-size: 30px;
        line-height: 52.5px;
        height: 105px;
        padding: 0 5%;
    }
}
@media only screen and (max-width: 640px) {
    .content div.item_article div{
        height: calc(69.5vw * 125/455);
        min-height: calc(224px * 125/455);
        padding: 2vw 0;
    }
    .content div.item_article div h3{
        font-size: 20px;
        line-height: calc(((69.5vw * 125/455 ) - 4vw )/2);
        height: calc((69.5vw * 125/455 ) - 4vw );
        min-height: calc((224px * 125/455) - (320px * 0.04));
        padding: 0 5%;
    }
}
@media only screen and (max-width: 320px) {

    .content div.item_article div h3{
        font-size: 15px;
    }
}