/*--------------------------*/
/*КАРТОЧКИ ПОСТОВ*/
/*--------------------------*/

/*настройка элементов карточки (изображение, заголовок, анонс, дата, рубрика и ссылка)*/
.post-card {
    background-color: rgb(255, 255, 255);
}

.post-card:hover {
    background-color: rgb(236, 236, 236);
}

.post-card:hover .post-thumb_img img {
    transform: scale(1.1);
    transition: all .5s;
}

.post-thumb {
    overflow: hidden;
    position: relative;
}

.post-thumb_img img {
    width: 100%;
    height: auto;
}

.post-thumb_grad {
    background-image: linear-gradient(to top, rgba(0, 0, 0, 0.8), rgba(51, 51, 51, 0), rgba(0, 0, 0, 0.8));
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
}

.post-card-title h3 {
    margin-bottom: 0;
}

.post-card-text p {
    font-size: 0.9rem;
    margin-bottom: 0;
}

.post-card-date {
    color: rgb(70, 70, 70);
}

.post-card-cat a {
    color: rgb(70, 70, 70);
    text-decoration: none;
}

.post-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 5px;
    color: rgb(255, 255, 255);
}

.post-card-tags a {
    color: rgb(255, 255, 255);
    text-decoration: none;
    background-color: rgb(190, 190, 190);
    letter-spacing: 2px;
    padding: .25rem .5rem;
    font-size: .8rem;
    text-transform: uppercase;
}

.post-card-label {
    width: 14px;
    height: 14px;
    border-radius: 7px;
    background-color: rgb(236, 113, 27);
}

.post-card-link img {
    width: 14px;
    height: 14px;
}

/*вспомогательные классы*/
.post-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.post-card-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/*карточка XS (заголовок, дата и рубрика)*/
.card-xs {
    border-bottom: 1px solid rgba(51, 51, 51, 0.1);
}

.card-xs .post-card-cat {
    margin-bottom: 8px;
}

.card-xs .post-card-title h3 {
    font-size: 1rem;
}

/*карточка SM (изображение - подложка, заголовок, дата и рубрика)*/
.card-sm {
    height: 100%;
    min-height: 320px;
}

.card-sm .post-card-top {
    position: absolute;
    width: 100%;
    top: 0;
    left: 0;
}

.card-sm .post-card-cat a {
    color: rgb(255, 255, 255);
}

.card-sm .post-card-label {
    width: 14px;
    height: 14px;
    border-radius: 7px;
    background-color: rgb(236, 113, 27);
}

.card-sm .post-thumb,
.card-sm .post-thumb_img {
    height: 100%;
}

.card-sm .post-thumb_img img {
    height: 100%;
    object-fit: cover;
}

.card-sm .post-card-body {
    position: absolute;
    width: 100%;
    bottom: 0;
    left: 0;
}

.card-sm .post-card-title h3 {
    font-size: 1rem;
    color: rgb(255, 255, 255);
    margin-bottom: .75rem;
}

.card-sm .post-card-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.4);
    padding-top: 8px;
}

.card-sm .post-card-date {
    color: rgb(255, 255, 255);
}

/*карточка MD (изображение - элемент, заголовок, дата и рубрика)*/
.card-md {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.card-md .post-card-top {
    position: absolute;
    width: 100%;
    top: 0;
    left: 0;
}

.card-md .post-card-cat a {
    color: rgb(255, 255, 255);
}

.card-md .post-card-label {
    width: 14px;
    height: 14px;
    border-radius: 7px;
    background-color: rgb(236, 113, 27);
}

.card-md .post-thumb {
    height: 240px;
    position: relative;
}

.card-md .post-thumb_img,
.card-md .post-thumb_img img {
    height: 100%;
}

.card-md .post-card-title h3 {
    font-size: 1rem;
    text-transform: uppercase;
}

.card-md .post-card-bottom {
    border-top: 1px solid rgba(0, 0, 0, 0.4);
    padding-top: 8px;
}

/*карточка LG (изображение - элемент, заголовок, анонс, дата и рубрика)*/
.card-lg {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.card-lg .post-card-top {
    position: absolute;
    width: 100%;
    top: 0;
    left: 0;
}

.card-lg .post-card-cat a {
    color: rgb(255, 255, 255);
}

.card-lg .post-card-label {
    width: 14px;
    height: 14px;
    border-radius: 7px;
    background-color: rgb(236, 113, 27);
}

.card-lg .post-thumb {
    min-height: 240px;
    position: relative;
}

.card-lg .post-card-title h3 {
    font-size: 1rem;
    text-transform: uppercase;
}

.card-lg .post-card-bottom {
    border-top: 1px solid rgba(0, 0, 0, 0.4);
    padding-top: 8px;
}

/*карточка XL (изображение - элемент, заголовок, анонс, дата и рубрика - в горизонтальной ориентации)*/
.card-xl {
    margin-top: 12px;
    margin-bottom: 12px;
}

.card-xl .post-thumb,
.card-xl .post-thumb_img {
    height: 100%;
}

.card-xl .post-thumb_img img {
    height: 100%;
    object-fit: cover;
}

.card-xl .post-thumb_grad {
    background-image: linear-gradient(to top, rgba(0, 0, 0, 0.3), rgba(51, 51, 51, 0), rgba(0, 0, 0, 0.3));
}

.card-xl .post-card-body {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.card-xl .post-card-title h3 {
    font-size: 1.5rem;
}

.card-xl .post-card-text p {
    font-size: 1.1rem;
    margin-bottom: 0;
}

.card-xl .post-card-bottom {
    border-top: 1px solid rgba(0, 0, 0, 0.4);
    padding-top: 8px;
}

.mh-con-1 {
    max-height: 500px;
}

.mh-con-2 {
    height: 250px;
}

.mh-con-2 .card-sm {
    min-height: auto;
}

@media (min-width: 0px) and (max-width: 992px) {
    .mh-con-2 {
        height: auto;
    }
}