/*
Theme Name: UnPress - JAJ child
Theme URI: http://www.favethemes.com/
Author: Favethemes
Author URI: http://www.favethemes.com/
Description: unPress is a responsive, minimalist, flexible and modern WordPress theme suitable for magazines, newspapers or blogs.
Version: 1.0.1
Tags: white, right-sidebar, fluid-layout, custom-colors, custom-menu, featured-images, post-formats, theme-options, translation-ready
License: GNU General Public License version 3.0
License URI: http://www.gnu.org/licenses/gpl-3.0.html
Text Domain: favethemes
Template: unpress
*/

@import url("../unpress/style.css");

/* Your CSS code goes here
-------------------------------------- */
body{
	font-family: 'Open Sans';
	font-weight: 400;
}

.category-box.sticky-box h2{
	/*font-size: 12px;*/
}

/* ============================================================
 * Fix for archive pages: post grid invisible
 * The theme uses a "fadeIn → inview" scroll observer that only
 * fires on the homepage template. On archive pages (category,
 * tag, author, search) the observer never runs, so posts stay
 * at opacity:0 forever. Force them visible.
 * ============================================================ */
.archive .post-holder.fadeIn,
.category .post-holder.fadeIn,
.tag .post-holder.fadeIn,
.author .post-holder.fadeIn,
.search .post-holder.fadeIn,
.date .post-holder.fadeIn {
    opacity: 1 !important;
    animation: none !important;
    -webkit-animation: none !important;
}


/* Fix for unPress masonry archive layout
   The Isotope JS that handled positioning + sizing isn't running.
   Force the parent container to full width and posts to col-lg-4 (3 per row). */
.archive .container.module.masonry .col-lg-6.col-md-6.col-sm-4 {
    width: 75% !important;
    flex: 0 0 75% !important;
    max-width: 75% !important;
}
.archive .masonry .post-row {
    display: flex !important;
    flex-wrap: wrap !important;
    position: static !important;
    height: auto !important;
    margin: 0 -15px !important;
}
.archive .masonry .post-holder {
    position: static !important;
    left: auto !important;
    top: auto !important;
    transform: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    width: 33.3333% !important;
    flex: 0 0 33.3333% !important;
    max-width: 33.3333% !important;
    padding: 0 15px !important;
    box-sizing: border-box !important;
    margin-bottom: 30px !important;
}
/* Hide the empty sidebar that was reserved for masonry */
.archive .masonry > .row > .col-md-3.col-sm-4:last-child {
    display: none !important;
}
@media (max-width: 991px) {
    .archive .container.module.masonry .col-lg-6.col-md-6.col-sm-4 {
        width: 100% !important;
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }
    .archive .masonry .post-holder {
        width: 50% !important;
        flex: 0 0 50% !important;
        max-width: 50% !important;
    }
}
@media (max-width: 767px) {
    .archive .masonry .post-holder {
        width: 100% !important;
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }
}

/* ============================================================
 * Fix for homepage post grids: .csstransitions .post-holder
 * defaults to opacity:0 and is made visible by unpress_inview()
 * in themes/unpress/js/custom.js. That function is skipped
 * because init() calls unpress_masonry() first, which uses the
 * jQuery .load() shorthand that was removed in jQuery 3+.
 * Force visibility on the homepage (same pattern as the archive
 * fixes above).
 * ============================================================ */
body.home .post-holder { opacity: 1 !important; }

/* ============================================================
 * Fix for archive pages where post-holders have no .fadeIn
 * subclass but are still hidden by parent theme rule:
 *     .csstransitions .post-holder { opacity: 0; }
 * Affects subcategories that render blocks2 with sidebar enabled
 * (post-holder col-lg-6) like /category/istories-parapliroforisis/
 * eikona-kai-hiragogisi/. Same root cause as the homepage fix:
 * unpress_inview() never runs because init() chain breaks earlier
 * on jQuery 3+ incompatible .load() shorthand.
 * ============================================================ */
body.archive .post-holder,
body.search .post-holder,
body.author .post-holder,
body.date .post-holder { opacity: 1 !important; }
