﻿section.trending {
    display: grid;
    margin-bottom: 50px;
}
section.trending-8 {
    grid-template-columns: 24% 1fr 24% 1fr 24% 1fr 24%;
    grid-template-rows: 1fr 25px 1fr;
    grid-template-areas: "t1 . t2 . t3 . t4" ". . . . . . ." "t5 . t6 . t7 . t8";
}
section.trending-4 {
    grid-template-columns: 24% 1fr 24% 1fr 24% 1fr 24%;
    grid-template-rows: 1fr;
    grid-template-areas: "t1 . t2 . t3 . t4";
}

.trending-item {
}

.trending-item .preview-box {
    width: 100%;
    overflow: hidden;
    padding: 8px;
    margin-left: -5px;
    margin-bottom: 4px;
    box-sizing: border-box;
    background-color: #222;
    color: #ccc;
}
.trending-item .preview-text {
    box-sizing: border-box;
    width: 100%;
    height: 104px;
    overflow: hidden;
    text-align: justify;
    text-justify: inter-word;
    padding: 0px;
    line-height: 1.4em;
}

.trending-item .title {
    margin-bottom: 3px;
}

.trending-item .title a {
    font-size: 14px;
    line-height: 1.4em;
    color: #f90;
    text-decoration: none;
}
.trending-item .author {
    color: #cacaca;
    font-size: 12px;
    text-decoration: none;
    margin-bottom: 3px;
}
.trending-item .tags {
}
.trending-item .tags .tag {
    background-color: #444;
    color: #ddd;
    padding: 4px 7px;
    font-size: 10px;
    display: inline-block;
}

.trending-item:nth-child(1) { grid-area: t1; }
.trending-item:nth-child(2) { grid-area: t2; }
.trending-item:nth-child(3) { grid-area: t3; }
.trending-item:nth-child(4) { grid-area: t4; }
.trending-item:nth-child(5) { grid-area: t5; }
.trending-item:nth-child(6) { grid-area: t6; }
.trending-item:nth-child(7) { grid-area: t7; }
.trending-item:nth-child(8) { grid-area: t8; }