/**
  * styles for article grid
  */

.article-grid-row {
    height: 450px;
}

.grid-row {}

.grid-cell {
    margin-bottom: 25px;
}

.grid-cell:first-of-type {
    margin-left: 0;
}

.grid-thumb {
    font-size: 20px;
    position: relative;
    z-index: 0;
    cursor: pointer;
}

.grid-thumb img {
    -o-transition: opacity 0.4s ease;
    -webkit-transition: opacity 0.4s ease;
    transition: opacity 0.4s ease;
}

.grid-thumb:hover img {}

.grid-cell.col-1 {
    float: left;
}

.grid-cell.col-2 {
    float: right;
}

.grid-title {
    z-index: 999999;
    color: black;
    font-weight: bold;
    line-height: 100%;
    margin-top: 10px;
    min-height: 66px;
}

.grid-title-15px {
    font-size: 15px;
}

.grid-title a {
    color: #317eac;
}

.grid-title a:hover {
    text-decoration: none;
}

.grid-image {}

.grid-banner {
    display: block;
    position: absolute;
    bottom: 0;
    left: 0;
    z-index: 10;
}

.grid-total-count {}

.grid-total-count::before {
    content: '';
    background-image: url(/themes/lifenews/images/eye.png);
    background-repeat: no-repeat;
    width: 20px;
}

.article-type {
    display: block;
    position: absolute;
    bottom: 0;
    left: 0;
}

.term-name,
.square {
    margin: 0;
    height: 30px;
    float: left;
}

.term-name {
    padding: 0 5px;
    color: white;
    min-width: 170px;
    line-height: 30px;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 14px;
}

.grid-cell:hover .square::after {
    border-top-width: 25px;
    border-left-width: 25px;
}

.grid-cell:hover img {
    filter: alpha(opacity=50);
    opacity: 0.5;
}

.square {
    border-bottom-width: 30px;
    border-right-width: 30px;
    border-bottom-style: solid;
    border-right-style: solid;
    font-size: 0px;
    line-height: 0%;
    transition: border-width 1s ease;
}

.square::after {
    content: ' ';
    border-top-width: 18px;
    border-left-width: 18px;
    border-top-style: solid;
    border-left-style: solid;
    font-size: 0px;
    line-height: 0%;
    transition: border-width 0.3s linear;
    position: absolute;
    right: 0px;
}

.grid-top {
    border-bottom: 0px solid rgba(255, 255, 255, 0.59);
    border-right: 0px solid red;
    z-index: 100;
}

.grid-top2 {
    border-bottom: 60px solid rgba(255, 255, 255, 0);
    border-right: 60px solid red;
}

.grid-top2,
.grid-top {
    position: absolute;
    right: 0;
    top: 0;
    transition: all 0.8s ease;
}

.grid-cell:hover .grid-top {
    transition-duration: 0.8s;
    transition-delay: 0.5s;
    border-width: 60px;
}

.grid-cell:hover .grid-top2 {
    transition-duration: 0.4s;
    transition-timing-function: ease;
    border-right: 60px solid rgb(255, 171, 171);
}

.grid-date {
    color: rgb(122, 122, 122);
    font-size: 14px;
    float: left;
}

.grid-social {
    float: right;
}

.grid-social > div {
    display: inline-block;
    font-size: 11px;
    margin-left: 10px;
}

.fb-comments-count::before {
    content: '';
    background-image: url('/themes/lifenews/images/comment-icon.png');
    width: 17px;
}

.fb-comments-count::before,
.grid-total-count::before {
    height: 15px;
    display: inline-block;
    background-repeat: no-repeat;
    background-size: auto 15px;
    vertical-align: middle;
    margin-right: 5px;
}

.kauza {
    transition: all 0.5s linear;
    padding: 5px 5px 0 0;
    width: 20px;
    height: 90px;
    position: absolute;
    top: 0;
    text-align: center;
    color: black;
    right: 0px;
    background-color: yellow;
    border-bottom-right-radius: 15px;
    border-top-right-radius: 15px;
    box-shadow: 1px 1px 3px 0 black;
    z-index: -100;
    transform: translate(100%, 0);
}

.kauza:hover {
    //height:100%;
}

.kauza div::after {
    content: 'KAUZA';
    transform: rotate(90deg) translate(30px, -4px);
    display: block;
    margin-top: -15px;
    text-align: center;
    font-weight: bold;
    white-space: nowrap;
    font-size: 14px;
}

.toptext::after {
    content: 'TOP';
    z-index: 200;
    position: absolute;
    right: 0;
    transform: rotate(45deg);
    color: white;
    transition: opacity 0.9s ease;
    transition-delay: 0s;
    top: 9px;
    font-weight: bold;
    font-size: 20px;
}

.article-teaser .article-image-wrapper img {
    transition: filter 0.2s linear;
    transition: opacity 0.2s linear;
}

.article-teaser:hover .article-image-wrapper img {
    filter: Alpha(opacity=70);
    opacity: 0.7;
}

@media all and (min-width: 992px) {
    .grid-cell {
        width: 48%;
    }

}

@media all and (max-width: 991px) {
    .grid-cell {
        width: 100%;
    }

}

@media all and (max-width: 767px) {
    .grid-cell {
        width: 48%;
    }

}

@media all and (max-width: 693px) {
    .grid-cell {
        width: 100%;
    }

}

