﻿/*
Theme Name: Journalx Child
Theme URI: https://docs.wpshop.ru/themes/journalx
Author: WPShop.biz
Author URI: http://wpshop.biz/
Template: journalx
Version: 1.0.0
*/

/* Below you can add your CSS styles */
/* Ниже Вы можете добавить свои CSS стили */
.site-footer .site-footer-inner, .site-footer .site-footer-inner a {
    color: #ffffff;
}

.archive-description .content-wide, .entry-content .content-wide, .home-text .content-wide {
    font-size: 1em;
}

.entry-content {
    margin-bottom: 0px;
}

#secondary .widget-header {
    font-size: 1rem;
    margin-bottom: 0rem;
}

#secondary .widget {
    margin-bottom: 0.5rem;
}

.footer-navigation ul li.current-menu-item span {
    background: #83836c;
}

.expert-review {
    margin: 30px 0;
}

.entry-meta.inner {
    margin-top: 1.5em;
}

.entry-footer {
    margin-bottom: 1rem;
}

.entry-content a[target~='_blank'] {
    color: #222;
}

.videos-cat {
    display: block;
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    margin-bottom: 10px;
}

.videos:after,.videos-cat:after, div.start-btn {
    content: "";
    position: absolute;
    top: 0;
    width: 100%;
    height: 100%;
    background-image: url(/wp-content/uploads/global-news/youtube.png);
    background-repeat: no-repeat;
    background-position: center center;
    background-color: rgba(0,0,0,0.2);
    -webkit-filter: brightness(90%);
    background-size: 12%;
}

.videos:after,.videos-cat:after {
    pointer-events: none;
}

.video_image {
    bottom: 0;
    display: block;
    left: 0;
    margin: auto;
    max-width: 100%;
    width: 100%;
    position: absolute;
    right: 0;
    top: 0;
    height: auto;
    -webkit-filter: brightness(90%);
    filter: brightness(90%);
}

.videos:hover:after,.videos-cat:hover:after {
    -webkit-filter: brightness(100%);
}

.likes-bottom .expert-review-likes {
    margin: 0px;
}

.likes-bottom .expert-review-likes .expert-review-likes__button {
    margin-bottom: 5px;
    margin-left: 0px;
}

.likes-bottom, .soc-but {
    display: inline-block;
    vertical-align: top;
}

.social-buttons-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

.soc-but .social-button {
    border-radius: 0.2em;
}

.subscribe-box-inner {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    -webkit-box-align: center;
    -ms-flex-align: center;
    gap: 15px;
    align-items: center;
    max-width: 1059px;
    margin: 0px auto;
    min-width: 250px;
}

.post-boxes + .subscribe-box-inner {
    margin: -20px auto 70px auto;
}

.subscribe-box-inner .social-buttons--small .social-button {
    width: 3em;
    height: 3em;
    border-radius: 5px;
    vertical-align: middle;
}

.subscribe-box-inner .social-button:before {
    width: 2.5em;
}

.subscribe-box__header {
    -webkit-box-flex: 1;
    -ms-flex: 1;
    flex: 1;
    font-size: 1em;
    margin-bottom: 0px;
    max-width: 380px;
}

.subscribe-box-text {
    font-size: 0.7em;
}

.subscribe-box-inner .social-links {
    margin-top: 0px;
}

.expert-review-expert-bio {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

.videos, .embed-player {
    display: block;
    padding-bottom: 56.25%;
    overflow: hidden;
    position: relative;
    width: 100%;
    height: 100%;
    cursor: pointer;
    margin-bottom: 20px;
}

.video-container, .embed-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
    display: block;

}
.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.video-container .video_image.home {
    display: block;
    width: 100%;
    height: auto;
}

.post-box__body.home {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5); /* полупрозрачный черный фон */
    color: white;
    padding: 10px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center; /* или другие параметры для центровки содержимого */
    align-items: center;
    overflow: hidden;
    pointer-events: none;
}

img.video-thumbnail {
    bottom: 0;
    display: block;
    left: 0;
    margin: auto;
    max-width: 100%;
    width: 100%;
    position: absolute;
    right: 0;
    top: 0;
    height: auto;
    -webkit-filter: brightness(90%);
    filter: brightness(90%);
}

.post-box__category.home, .post-box__title.home {
    margin-bottom: .5em;
    font-size: 14px;
}

.post-box__meta.home {
    margin-bottom: 0;
}

/*div.start-btn {
    height: 100px;
    width: 100px;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    position: absolute;
    background: url('youtube.png') no-repeat center center;
    background-size: 85px 85px;
    z-index: 1;
}*/

.home-container {
    display: flex;
    padding-top: 30px;
    flex-direction: column;
}

.home-left {
    flex: 1;
    padding: 0 25px 0 25px;
    box-sizing: border-box;
}

.home-right {
    flex: 2;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;

}

.post-boxes.home {
    margin-bottom: 0px;
}

.subscribe-container {
    position: relative;
    display: flex;
    justify-content: flex-end;
}

.subscribe-container button, .subscribe-container button:focus, .subscribe-container button:active {
     outline: none;
}

.subscribe-button, .bookmark-button {
    padding: 8px 16px;
    font-size: 14px;
    cursor: pointer;
}

.bookmark-button {
    background-color: #ffffff;
    border: 0.5px solid;
    border-radius: 0 4px 0 0;
}

.bookmark-button:hover {
    color: #CC0000;
}

.subscribe-button {
    border: none;
    border-radius: 4px 0 0 0;
    background-color: #FF0000;
    color: white;
}

.subscribe-button:hover {
    background-color: #CC0000;
}

.bell-icon {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
}

.bell-icon:hover {
    color: #CC0000;
}

.expert-review-likes__button--like {
    background: #1d8200;
    color: #fff;
}

p:has(> span.timecode) {
    margin-bottom: 1rem;
}

.timecode {
    font-weight: bold;
    margin-right: 8px;
    font-weight: bold;
    white-space: nowrap;
}

@media (min-width: 768px) {
    .archive-description .content-wide, .entry-content .content-wide, .home-text .content-wide {
        font-size: 1em;
    }
    .expert-review-expert-bio__body {
        line-height: 2;
    }
    .post-box__title.home {
        font-size: 17px;
    }

}

@media (min-width: 992px) {
    .site-header .site-header-inner {
        padding: 20px 25px;
    }
    .home-container {
        flex-direction: row;
    }
    .post-boxes.home {
        margin-bottom: 30px;
    }
    .home-right-top .widget-header {
        margin: .8rem 0 .8rem -.4rem;
    }
}

@supports (display:grid) {
    @media (min-width: 992px) {
        .post-boxes.home {
            grid-template-columns: repeat(2, 1fr);
        }
    }
}

@supports (display:grid) {
    @media (min-width: 1200px) {
        .post-boxes.home {
            grid-template-columns: repeat(3, 1fr);
        }
    }
}

@media (min-width: 1200px) {
    .entry-content .content-wide {
        margin: 50px -360px 50px 50px;
    }
    .yarpp-block.entry-content {
        left: 0;
    }
    .home-header {
        margin: 50px -410px 50px 50px;
    }

}

@supports (display:grid) {
    @media (min-width: 1400px) {
        .post-boxes.home {
            grid-template-columns: repeat(4, 1fr);
        }
    }
}

@media (min-width: 1400px) {
    .home-container {
        max-width: 1900px;
        margin: 0 auto 10px;
    }
}


@media (max-width: 465px) {
    .videos:after,.videos-cat:after, div.start-btn {
        background-size: 15%;
    }
    .post-box {
        margin-bottom: 20px;
    }
    .post-box h2.widget-header {
        margin-top: 0px
    }
    .expert-review-likes--size-l {
        font-size: 16px;
    }
    .subscribe-box-inner {
        display: block;
    }
    .subscribe-box__header {
        margin-top: 20px;
    }
}