/*
 Theme Name:   White Fern GenPress Child
 Theme URI:    https://whitefern.co
 Description:  White Fern GeneratePress child theme
 Author:       Teague Nelson
 Author URI:   https://whitefern.co
 Template:     generatepress
 Version:      1.0
*/

/* ================ Notes ================== */
/* ----------------------------------------- */
/* Note: Default Breakpoints https://docs.generatepress.com/article/responsive-display/ */
/* Note: The Order of CSS Cascading ----- */
/* 1. Theme File Editor Style.CSS File -- */
/* 2. GenerateBlocks Global Styles ------ */
/* 3. GeneratePress Block On-page Local Styling --------- */
/* 4. WP Code Snippets Plugin ----------- */
/* 5. Customizations Pannel CSS --------- */


/* ================ Defaults =============== */
/* ----------------------------------------- */
/* Set the main content area to a minimum vh & body color */
#main {
	min-height: 75vh;
}

body {
	background-color: var(--base-3);
}

/* ----------------------------------------- */
/* Default sticky scroll up nav background color & logo padding */

.sticky-nav-scrolling-up {
  background-color: #fff;
}

.sticky-navigation-logo .is-logo-image {
	padding: 0;
}

/* ----------------------------------------- */
/* remove bottom margin on last paragraph or list in container */
.gb-container p:last-child:last-of-type,
.gb-container ul:last-child:last-of-type {
  margin-bottom: 0px;
}

/* ----------------------------------------- */
/* GB button line height override */
/* .gb-button {
	line-height: 1.5em;
} */

/* ----------------------------------------- */
/* drop sidebar below content on tablet */
@media (max-width: 1024px) {
  .site-content {
    flex-direction: column;
  }

  .site-content .content-area,
  .site-content .is-right-sidebar {
    width: 100%;
  }
}

.single-post :is(p, ul, ol) + :is(h2, h3, h4) {
  margin-top: 40px;
}

/* ----------------------------------------- */
/* wp search block style */
.wp-block-search__button.has-icon {
  background-color: var(--accent);
  border-radius: 2px;
	transition: all 0.5s ease 0s;
}

.wp-block-search__button.has-icon:hover {
  background-color: var(--accent-2);
  background-color: green;
}

.wp-block-search__button svg {
  min-height: 1.6em;
  min-width: 1.6em;
  vertical-align: text-bottom;
}

/* ----------------------------------------- */
/* Site Wrapper to set overall site max width (class not used) */
/* .site-wrapper {
	width: 100%;
	max-width: 1920px;
	background-color: var(--body);
} */

/* ----------------------------------------- */
/* Removing visible outline on Focus */
a:active,
a:focus {
  outline: 0;
  border: none;
  -moz-outline-style: none;
}

textarea:focus,
input:focus {
  outline: none;
}

*:focus {
  outline: none;
}


/* ----------------------------------------- */
/* 'Media & Text' gutenberg block mobile padding */
/* Note: The block by default reformats at 601px wide */
@media (max-width: 600px) {
.wp-block-media-text__content {
  padding-top: 40px !important;
  padding-left: 0px !important;
  padding-right: 0px !important;
}
}


/* ============ Helper Classes ============= */
/* ----------------------------------------- */
/* Position, Display, and Desktop or Mobile only Classes */
.pos-relative{
	position: relative;
}
.pos-absolute{
	position:absolute;
	top: 0px;
	left: 0px;
}
.display-none {
  display: none !important;
}

@media only screen and (min-width: 769px) {
  .mobile-only {
    display: none !important;
  }
}

@media only screen and (max-width: 768px) {
  .dt-only {
    display: none !important;
  }
}

/* ----------------------------------------- */
/* --- Mobile Column Flip and 'Media & Text' block mobile padding --- */
@media only screen and (max-width: 768px) {
 .mobile-flip {
   flex-direction: column-reverse;
 }
}

/* ----------------------------------------- */
/* Can use to set spacer elements smaller on mobile. */
@media only screen and (max-width: 768px) {
  .mobile-xsmall {
    height: 5px !important;
  }
  .mobile-small {
    height: 20px !important;
  }
  .mobile-medium {
    height: 40px !important;
  }
}

/* ----------------------------------------- */
/* Can use to set spacer elements smaller on tablet. */
/* 
@media only screen and (min-width: 769px) and (max-width: 1024px) {
   .med-xsmall {
     height: 5px !important;
   }
   .med-small {
     height: 20px !important;
   }
   .med-medium {
     height: 65px !important;
   }
} 
*/


/* ============ Alignwide & Allow Width Classes ============= */
/* ---------------------------------------------------------- */
/* -- Alignwide & Allow Width Classes ----------------------  */
/* -- Unset or default width containers will inherit from parent -------- */
/* -- Set width containers will function as exptected within other set containers, but not exceed the parent container's width -------- */

/* ----- Resetting alignwide interitance from parent generatepress theme ----- */
.entry-content .alignwide, 
body:not(.no-sidebar) .entry-content .alignfull {
/*     margin-left: -32px; */
/*     width: calc(100% + 64px); */
/*     max-width: calc(100% + 64px); */
    margin-left: unset;
    width: unset;
    max-width: unset;
}
@media (max-width: 768px) {
  .entry-content .alignwide, 
  body:not(.no-sidebar) .entry-content .alignfull {
/*     margin-left:-20px; */
/*     width:calc(100% + 40px); */
/*     max-width:calc(100% + 40px); */
    margin-left: unset;
    width: unset;
    max-width: unset;
  }
}

/* -- .allow-default Class -- */
/* -- forces element with 'default width' to not inherit from parent, but be site default of 800px wide -- */
/* -- all other set widths will override .allow-default -- */
@media only screen and (min-width: 800px) {
  .site-content .allow-default,
  .entry-content .allow-default {
    width: 100%;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
  }
}

/* -- alignwide -- */
@media only screen and (min-width: 800px) {
  .site-content .alignwide, 
  .site-content .allow-default.alignwide,
  .entry-content .alignwide, 
  .entry-content .allow-default.alignwide {
    width: 100% !important;
    max-width: 1000px !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
}

/* -- alignfull -- */
@media only screen and (min-width: 800px) {
  .site-content .allow-default.alignfull,
  .entry-content .allow-default.alignfull {
    margin-left: calc(-100vw / 2 + 100% / 2);
    margin-right: calc(-100vw / 2 + 100% / 2);
    max-width: 100vw;
    width: auto;
  }
}

/* -- allow-twelve class -- */
@media only screen and (min-width: 800px) {
  .site-content .allow-twelve.alignwide,
  .entry-content .allow-twelve.alignwide {
    width: 100% !important;
    max-width: 1200px !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
}

/* -- allow-thriteen class -- */
@media only screen and (min-width: 800px) {
  .site-content .allow-thirteen.alignwide,
  .entry-content .allow-thirteen.alignwide {
    width: 100% !important;
    max-width: 1300px !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
}

/* -- allow-fourteen class -- */
@media only screen and (min-width: 800px) {
  .site-content .allow-fourteen.alignwide,
  .entry-content .allow-fourteen.alignwide {
    width: 100% !important;
    max-width: 1400px !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
}


/* ================= Outter Container Padding =============== */
/* ---------------------------------------------------------- */
/* Setting outter container padding for: */
/* .gbp-section */
/* .top-bar */
/* .site-header */
/* .sticky-nav-scrolling-up  */
/* .page-hero-banner */
/* .prefooter */
/* .site-footer-wrapper ** Note .site-footer is a class taken when setting the Generatepress element */
/* all outter blocks under .site-content .entry-content  */
/* .four-o-four-page-content */

.top-bar,
.site-header,
.sticky-nav-scrolling-up,
.prefooter,
.site-footer-wrapper,
.page-hero-banner,
.site-content .entry-content > *,
.gbp-section,
.four-o-four-page-content {
    padding: 0rem 40px !important;
}

@media (max-width: 1024px) {
.top-bar,
.site-header,
.sticky-nav-scrolling-up,
.prefooter,
.site-footer-wrapper,
.page-hero-banner,
.site-content .entry-content > *,
.gbp-section,
.four-o-four-page-content {
        padding: 0rem 30px !important;
    }
}

@media (max-width: 767px) {
.top-bar,
.site-header,
.sticky-nav-scrolling-up,
.prefooter,
.site-footer-wrapper,
.page-hero-banner,
.site-content .entry-content > *,
.gbp-section,
.four-o-four-page-content {
        padding: 0px 20px !important;
    }
}

/* ----------------------------------------------- */
/* === .gbp-section ========== */
/* .gbp-section */
/* Is just horisontal padding on the outer container and is overridden in the section on outter padding above */
