/* Blog single post – related products mobile overflow fix */
#ybc-blog-related-products,
.ybc-blog-related-products-mobile-fix {
    overflow-x: hidden;
    max-width: 100%;
}

.ybc-blog-related-products-mobile-fix .blog-product-list {
    margin-left: 0;
    margin-right: 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.ybc-blog-related-products-mobile-fix .blog-product-list>.ajax_block_product {
    box-sizing: border-box;
    max-width: 100%;
}

.ybc-blog-related-products-mobile-fix .product-container,
.ybc-blog-related-products-mobile-fix .left-block,
.ybc-blog-related-products-mobile-fix .right-block {
    max-width: 100%;
}

.ybc-blog-related-products-mobile-fix .left-block img,
.ybc-blog-related-products-mobile-fix .ybc_item_img img {
    max-width: 100%;
    height: auto;
}

.ybc-blog-related-products-mobile-fix .blog-product-list.ybc_related_products_type_carousel {
    margin-left: 0;
    width: 100%;
    max-width: 100%;
}

.ybc-blog-related-products-mobile-fix .ybc_related_products_type_carousel.slick-slider {
    width: 100%;
    max-width: 100%;
}

.ybc-blog-related-products-mobile-fix .ybc_related_products_type_carousel .slick-list {
    overflow: hidden;
    margin: 0;
}

.ybc-blog-related-products-mobile-fix .ybc_related_products_type_carousel .slick-slide {
    box-sizing: border-box;
}

@media (max-width: 767px) {
    .ybc-blog-related-products-mobile-fix .blog-product-list {
        display: flex;
        flex-wrap: wrap;
        padding-left: 0;
        padding-right: 0;
    }

    .ybc-blog-related-products-mobile-fix .blog-product-list>.ajax_block_product {
        width: 100% !important;
        flex: 0 0 100%;
        max-width: 100%;
        float: none;
        padding-left: 0;
        padding-right: 0;
    }

    .ybc-blog-related-products-mobile-fix .ybc_related_products_type_carousel .slick-slide>.ajax_block_product {
        width: 100% !important;
        flex: none;
        max-width: 100%;
        padding-left: 10px;
        padding-right: 10px;
    }
}

@media (min-width: 480px) and (max-width: 767px) {
    .ybc-blog-related-products-mobile-fix .blog-product-list:not(.ybc_related_products_type_carousel)>.ajax_block_product {
        width: 50% !important;
        flex: 0 0 50%;
        max-width: 50%;
        padding-left: 8px;
        padding-right: 8px;
    }
}


#ybc_blog_page #left-column .ybc_blog_sidebar .block.ybc_block_gallery,
#ybc_blog_page #left-column .ybc_blog_sidebar .block.ybc_block_author,
#ybc_blog_page .ybc-blog-wrapper-comment,
#ybc_blog_page .ybc-blog-latest-toolbar,
.ybc_blog_sidebar .ybc_block_latest .prev_button_div,
.ybc_blog_sidebar .ybc_block_latest .next_button_div{
    display: none !important;
}

/* Blog search – remove hover arrows */
.ybc_blog_sidebar .ybc-navigation-blog-content .slick-arrow,
.ybc_blog_sidebar .ybc-navigation-blog-content .slick-slider:hover .slick-arrow {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

.ybc_blog_sidebar .ybc_block_search .icon_search::before,
.ybc_blog_sidebar .ybc_block_search .button:hover + span::before,
.ybc_blog_sidebar .ybc_block_search h4::after,
.ybc_blog_sidebar .ybc_block_search .title_block::after {
    display: none !important;
    content: none !important;
}