/*
Theme Name: My Theme
Version: 1.0.0
*/

body {
    overflow-x: hidden;
}

body a {
    text-decoration: none;
}

.header-ads {
    max-height: 400px;
}

.search {
    width: 300px;
    background-color: #344a54;
}

@media screen and (max-width: 992px) {
    .search {
        width: 200px;
    }
}

body .search #ya-site-form0 .ya-site-form__input-text,
body .search #ya-site-form0 .ya-site-form__input-text:focus {
    vertical-align: top;
    border-color: transparent !important;
    background: transparent !important;
}

.search #ya-site-form0 .ya-site-form__submit {
    display: none;
}

#sidebar {
    box-sizing: content-box;
    width: 300px;
    z-index: 1;
}

@media screen and (max-width: 992px) {
    #sidebar {
        box-sizing: border-box;
        width: 100%;
    }
}

#sidebar .widget a:hover {
    background-color: #f8f9fa;
}

@media screen and (max-width: 768px) {
    .post-preview img {
        margin: 0 0 1rem 0;
        width: 100%;
        height: auto;
    }
}

.content img {
    margin-bottom: 1rem;
    max-width: 100%;
    height: auto;
}

.alignleft {
    float: left;
}

.alignright {
    float: right;
}

.alignnone,
.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

img.alignleft,
figure.alignleft {
    margin: 0.857142857rem 1.714285714rem 0.857142857rem 0;
    max-width: 50%;
}

img.alignright,
figure.alignright {
    margin: 0.857142857rem 0 0.857142857rem 1.714285714rem;
    max-width: 50%;
}

img.alignnone,
img.aligncenter,
figure.alignnone,
figure.aligncenter {
    clear: both;
    margin-top: 0.857142857rem;
    margin-bottom: 0.857142857rem;
}

.related-post-item img {
    object-fit: cover;
}

.content li {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.s-link {
    position: relative;
    margin: 30px 0 20px;
    padding: 20px;
    border: 2px solid #0073aa;
}

.s-link p {
    margin: 0 !important;
}

.s-link_title {
    position: absolute;
    top: -15px;
    padding: 0 10px;
    color: #fff;
    font-weight: bold;
    background: #0073aa;
}

.page-link {
    min-width: 40px;
    text-align: center;
}
