/*
Theme Name: Ascend Child
Template: ascend
Version: 1.0
Description: Child theme for Ascend
*/

/* =========================
   HEADER / MENU
========================= */

.site-header {
    position: relative;
    z-index: 9999;
}

/* wymuszenie widoczności headera */
header,
.site-header,
.main-header {
    display: block;
    visibility: visible;
    opacity: 1;
}

/* menu tylko na pojedynczych postach */
.single-post .site-header {
    background: rgba(0,0,0,0.8);
}

.single-post .main-navigation a {
    color: #fff;
}

.single-post .main-navigation a:hover {
    color: #ccc;
}

/* =========================
   HERO / SLIDER FIX (KLUCZOWE)
========================= */

/* usuwa odstęp między headerem a treścią */
#inner-wrap {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* usuwa spacing motywu */
#kad-header-menu {
    margin-bottom: 0 !important;
}

/* HOME – reset layoutu */
.home #content,
.home .contentclass,
.home .homepagecontent {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* MetaSlider jako HERO */
.home .metaslider {
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
}

/* obrazki slidera full width */
.home .metaslider img {
    width: 100% !important;
    height: auto !important;
    display: block;
}

/* sticky wrapper (Ascend bugfix) */
.sticky-wrapper {
    height: auto !important;
}

/* =========================
   FEATURED IMAGE
========================= */

.child-featured-wrapper {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    height: 400px;
    overflow: hidden;
    position: relative;
    z-index: 1;
}

/* =========================
   KATEGORIE
========================= */

.entry-categories {
    text-align: right;
    font-size: 2em;
}

/* =========================
   QUOTE STYLE FIX
========================= */

.wp-block-pullquote::before,
.wp-block-pullquote::after,
.wp-block-pullquote blockquote::before,
.wp-block-pullquote blockquote::after,
.wp-block-pullquote p::before,
.wp-block-pullquote p::after {
    content: none;
}

.wp-block-quote {
    border-left: 4px solid #ccc;
    padding: 15px 20px;
    margin: 20px 0;
    font-style: italic;
    background: #f9f9f9;
}

.wp-block-quote::before,
.wp-block-quote::after,
.wp-block-quote p::before,
.wp-block-quote p::after {
    content: none;
}

/* =========================
   DROP CAP FIX
========================= */

.entry-content p.has-drop-cap:first-letter,
.wp-block-post-content p.has-drop-cap:first-letter {
    font-size: 5em !important;
    line-height: 1 !important;
    float: left !important;
    margin-right: 0.3em !important;
}