﻿.tcxn-post {
    position: relative;
}

.tcxn-post .tcxn-post__image {
    background-size: cover;
    background-position: 50% 50%;
}

.tcxn-post_grid {
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    align-items: flex-start;
}

.tcxn-post_badge {
    margin-top: 22px;
}

.tcxn-post.text-light .tcxn-post__title h2,
.tcxn-post.text-light .tcxn-post__text {
    color: #fff;
}

.tcxn-post_grid .tcxn-post__image {
    width: 100%;
    padding-bottom: 60%;
}

.tcxn-post__image img {
    width: 100%;
}

.tcxn-post__content {
    padding: 30px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    position: relative;
    max-width: 100%;
}

.tcxn-post__link {
    padding-top: 20px;
    margin-top: auto;
}

.tcxn-post_hero {
    padding-top: 100px;
    padding-bottom: 100px;
}

.tcxn-post_hero:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: block;
    z-index: 40;
}


.tcxn-post_hero .tcxn-post__content {
    position: relative;
    z-index: 50;
    margin: 0 auto;
}

.tcxn-post_hero.tcxn-post_post-image-bg {
    background-position: 50% 50%;
    background-size: cover;
}

.tcxn-post_hero .tcxn-post__button {
    margin-top: 20px;
}

.tcxn-post_list {
    flex-direction: row;
    flex-wrap: wrap;
    display: flex;
}

.tcxn-post_list.tcxn-post_image-right .tcxn-post__image {
    order: 15;
}

.tcxn-post_list .tcxn-post__image {
    background-position: 50% 50%;
    background-size: cover;
}

.tcxn-post_list .tcxn-post__content {
    order: 10;
    justify-content: center;
}

.tcxn-post_list .tcxn-post__link {
    margin-top: 0;
}

.tcxn-post_list.tcxn-post_image-right .tcxn-post__image {
    order: 15;
}


@media (max-width: 768px) {
    .tcxn-posts [class*=col-md-]:not(:last-child) {
        margin-bottom: 20px;
    }
}

@media (min-width: 768px) {
    .tcxn-post_list .tcxn-post__image,
    .tcxn-post_list .tcxn-post__content {
        -ms-flex: 0 0 50%;
        flex: 0 0 50%;
        max-width: 50%;
        width: 100%;
    }

    .tcxn-post_list.tcxn-post_no-image .tcxn-post__content {
        -ms-flex: 0 0 100%;
        flex: 0 0 100%;
        max-width: 100%;
        width: 100%;
    }

    .tcxn-post_image-chess:nth-child(2n + 1) .tcxn-post__image {
        order: 15;
    }

    .tcxn-latest-posts .tcxn-post {
        margin-bottom: 20px;
    }
}



@media (max-width: 768px) {
    .tcxn-post_list {
        height: auto !important;
    }
    .tcxn-post_list .tcxn-post__image {
        min-height: 250px;
        width: 100%;
    }

    .tcxn-post_list.tcxn-post_image-right .tcxn-post__image {
        order: 5;
    }

    .tcxn-post_list .tcxn-post__content {
        position: static;
    }
}
