/* Стили для архивов постов и прочего */
body.single.no-sidebar #primary{
    padding: 30px;
}

body.archive.category #content.site-content{
    margin: 0 25px !important;
}

.meta-categories a{
	opacity: 1 !important;
}

/* Отступ у архивов постов */
@media(min-width: 1153px){
    body.archive.category{
        padding-top: 50px;
    }
}
@media(max-width: 1152px){
    body.archive.category #content.site-content{
        margin-top: 30px !important;
    }
}

/* Размеры карточек новостей и их адаптив */
body .site .masonry-blocks.masonry-col article{
    width: 24.8% !important;
    height: auto !important;
}
@media(max-width: 1501px){
    body .site .masonry-blocks.masonry-col article{
        width: 33% !important;
    }
}
@media(max-width: 1366px){
    body .site .masonry-blocks.masonry-col article{
        width: 50% !important;
    }
}
@media(max-width: 767px){
    body .site .masonry-blocks.masonry-col article{
        width: 100% !important;
    }
}
body .site .masonry-blocks.masonry-col article .tm-archive-wrapper{
    width: 100% !important;
}

/* Стили карточки новости в архиве */
body .site .masonry-blocks.masonry-col article .tm-archive-wrapper{
    border: 1px solid rgb(240, 240, 240);
    transition: border-color 0.2s ease;
}
body .site .masonry-blocks.masonry-col article .tm-archive-wrapper:hover{
    border-color: rgb(245, 131, 25);   
}
body .site .masonry-blocks.masonry-col article .tm-archive-wrapper .entry-meta.meta-categories{
    display: flex;
    flex-direction: column;
}
body .site .masonry-blocks.masonry-col article a:not(.read-more):hover{
    color: #e85222 !important;
}

/* Стили для сингла новости */
.navigation.post-navigation .nav-previous,
.navigation.post-navigation .nav-next{
    background-color: #333;
    background-image: none !important;
}
.nav-links{
    display: flex;
    flex-direction: row;
}

.navigation.post-navigation .nav-previous{
    margin-right: 1%;
}
.navigation.post-navigation .nav-next{
    margin-left: 1%;
}
.categories-single{
    padding: 0 30px;
}
.categories-single span{
    padding: 0;
    margin: 0;
}
.categories-single a{
    color: white;
    opacity: 1;
    position: relative;
    padding: 0px 6px;
    background-color: #000;
}
.categories-single a:not(:first-child){
    margin-left: 0.5%;
}
.categories-single a:hover{
    color: #e85222
}
.featured-img.post-thumb {
    margin-bottom: 20px;
    float: left;
    margin-right: 30px;
    width: 50%;
}
.categories-single a:after {
    content: '';
    opacity: 1;
    position: absolute;
    left: 0;
    bottom: -5px;
    border-left: 5px solid;
    border-bottom: 5px solid transparent;
    border-left-color: #000;
    width: 0;
}

/* Галерея в отдельной строке в сингле новости */
.single.single-post .post .entry-content figure,
.single.single-post .post .entry-content iframe{
    float: inline-start !important;
}

/* Скрываем дату публикации поста на странице "Статьи" */
body.category-142 .post-content{
    display: none;
}

body.archive.category.category-news .masonry-blocks.masonry-col{
    position: relative !important;
}