/* Font Imports */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600&family=Source+Sans+Pro:wght@400;600&display=swap');

/* Variables */
:root {
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Source Sans Pro', sans-serif;
    --header-height: 110px;
    --nav-height: 50px;
    --total-header-height: 160px;
    --shadow-default: 0 2px 5px rgba(0,0,0,0.05);
    --border-light: 1px solid #eee;
}

/* Typography */
h1, h2, h3, h4, h5, h6,
.wp-block-heading,
.has-alegreya-font-family,
.has-ibarra-real-nova-font-family,
.wp-block-heading.has-medium-font-size {
    font-family: var(--font-heading) !important;
    font-weight: 500;
}

/* post carousel adjustments*/
.swiper-wrapper {
   align-items: stretch !important;
}

.swiper-slide {
   height: auto !important;
}

.wpcp-single-item {
   height: 100%;
   display: flex;
   flex-direction: column;
   background: #fff;
   border: 1px solid #eee;
}

.wpcp-slide-image {
   width: 100%;
   padding-top: 225px;
   position: relative;
}

.wpcp-slide-image img {
   position: absolute;
   top: 0;
   left: 0;
   width: 100%;
   height: 100%;
   object-fit: cover;
}

.wpcp-all-captions {
   padding: 15px 10px;
   text-align: center;
   flex: 1;
   display: flex;
   align-items: center;
   justify-content: center;
}

.wpcp-post-title {
   width: 100%;
}

/* post carousel adjustments above*/


body,
p,
.wp-block-paragraph,
.has-inter-font-family,
.has-tertiary-background-color,
.recipe-content,
.ingredient-list,
.instruction-steps {
    font-family: var(--font-body) !important;
    font-weight: 400;
}

.wp-block-button__link,
.nav-links,
.menu-item,
button,
.button {
    font-family: var(--font-body) !important;
    font-weight: 600;
}

/* Link Styles */
.wp-block-image figcaption a,
.wp-element-caption a {
    text-decoration: none !important;
}

/* Navigation Styles */
.primary-navigation ul ul {
    z-index: 999;
    overflow: visible;
    position: absolute;
    background: white;
    box-shadow: var(--shadow-default);
    min-width: 200px;
    padding: 10px 0;
    display: none;
}

.primary-navigation li {
    position: relative;
}

.primary-navigation ul li:hover > ul {
    display: block;
}

.primary-navigation ul ul li {
    padding: 8px 20px;
}

.primary-navigation ul ul li a {
    display: block;
    width: 100%;
}

/* green background */





/* Layout - Desktop */
@media screen and (min-width: 782px) {
    .wp-site-blocks > header {
        position: fixed !important;
        top: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 100%;
        max-width: 100%;
        background: white;
        z-index: 999;
        margin: 0;
        box-sizing: border-box;
        overflow: visible;
    }

    .site-header {
        background: white;
        padding: 15px 0;
        margin: 0;
        box-shadow: var(--shadow-default);
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .primary-navigation {
        position: fixed !important;
        top: var(--header-height);
        left: 50%;
        transform: translateX(-50%);
        width: 100%;
        max-width: 100%;
        background: white;
        z-index: 998;
        border-top: var(--border-light);
        border-bottom: var(--border-light);
        margin: 0;
        box-sizing: border-box;
    }

    .wp-site-blocks > main {
        margin-top: calc(var(--total-header-height) - 40px);
    }

    .admin-bar .wp-site-blocks > header {
        top: 32px;
    }

    .admin-bar .primary-navigation {
        top: 142px;
    }
}

/* Layout - Mobile */
@media screen and (max-width: 781px) {
    .wp-site-blocks > header {
        position: fixed !important;
        top: 0;
        left: 0;
        right: 0;
        width: 100%;
        background: white;
        z-index: 999;
        margin: 0;
        padding: 0;
    }

    .site-header {
        background: white;
        box-shadow: var(--shadow-default);
        height: auto;
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin: 0;
        padding: 0 15px;
    }
    
    /* Menu and Search Button Spacing */
    .site-header button {
        padding: 8px;
        margin: 0;
    }
    
    /* Logo container */
    .site-header > div {
        flex: 1;
        text-align: center;
    }

    .primary-navigation {
        width: 100%;
        background: white;
        z-index: 998;
        margin: 0;
        padding: 10px 0;
    }

    .primary-navigation ul ul {
        position: static;
        box-shadow: none;
        border-top: var(--border-light);
        border-bottom: var(--border-light);
        padding: 5px 0;
    }

    .wp-site-blocks > main {
        margin-top: 80px;
    }

    .admin-bar .wp-site-blocks > header {
        top: 46px;
    }
}


/* MV CSS */
@media only screen and (max-width: 359px) {
	.wp-site-blocks {
    padding-left: 10px !important;
    padding-right: 10px !important;
}
.wprm-recipe {
    border-left: 0 !important;
    border-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}
.wprm-recipe-jupiter-shop-ingredients-button-container {
    flex-direction: column !important;
}

footer div.wp-block-group.alignfull {
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

footer h2.wp-block-heading.alignfull {
    margin-left: 0 !important;
    margin-right: 0 !important;
}
}
/* END OF CSS */