/*
Theme Name:         Allons-y
Theme URI:          https://brentstromberg.com/allons-y
Github Theme URI:   https://github.com/uptownstudios/allonsy
Description:        Allons-y is a WordPress theme based on Foundation 6 by Zurb
Version:            1.6
Author:             Brent Stromberg
Author URI:         https://brentstromberg.com

License:            MIT License
License URI:        http://www.opensource.org/licenses/mit-license.php
*/

/* ----------------------------------------------------------------------------

  Unfortunately WordPress will require a style.css file
  located in the theme's root folder for stuff to work.

  However, we will not be using vanilla CSS. We're using Sass.

  Sass is a superset of CSS that adds in amazing features
  such as variables, nested selectors and loops. It's also
  the easiest way to customize Foundation.

  All Sass files are located in the /assets/scss folder.
  Please note that none of your scss files will be compiled to /stylesheets/foundation.css before you run
  'npm run watch' or 'npm run build'.

  Please read the README.md file before getting started. More info on how
  to use Sass with Foundation can be found here:
  http://foundation.zurb.com/docs/sass.html

  If you for some reason would like to write plain css instead of using Sass,
  you could just enqueue this file (style.css) to the header and add your styles in this file

---------------------------------------------------------------------------- */

/* Single Posts */
body:not(.home).single .entry-content a, 
body:not(.home).single .entry-content li, 
body:not(.home).single .entry-content p, 
body:not(.home).single .entry-content span {
  font-size: 1.125rem!important;
}
.post-template-single-full-width-image .photo-header-background {
  display: flex;
  /* justify-content: center; */
  align-items: flex-end;
  padding: 3rem;
  min-height: 675px;
  height: max-content;
  margin-left: calc(50% - 50vw) !important;
  max-width: 100vw;
  width: 100vw;
  background-repeat: no-repeat;
  background-size: cover;
  margin-top: 0!important;
  position: relative;
}
.post-template-single-full-width-image .photo-header-background h1.entry-title {
  color: #fff;
  font-size: 2rem;
  max-width: 80%;
}
.post-template-single-full-width-image .photo-header-background h2.subtitle {
  color: #fff;
  max-width: 80%;
  position: relative;
  font-size: 1.75rem!important;
}
.post-template-single-full-width-image .photo-header-background .featured-image-container-content .featured-image-container-mobile-image {
  margin-bottom: 30px;
}
.post-template-single-full-width-image .bottom-header-content figcaption {
  margin-bottom: 2rem;
}
.post-template-single-full-width-image #single-post {
  margin-top: 1rem;
}
@media (max-width: 768px) {
  .post-template-single-full-width-image .photo-header-background {
    display: block;
    background-image: none!important;
    min-height: auto;
    padding: 0;
  }
  .post-template-single-full-width-image .photo-header-background h1.entry-title,
  .post-template-single-full-width-image .photo-header-background h2.subtitle {
    color: #000;
    padding: 0 1rem;
    max-width: inherit;
  }
  .post-template-single-full-width-image .bottom-header-content figcaption {
    display: none;
  }
  .post-template-single-full-width-image .photo-header-background figcaption {
    padding: 0 1rem;
    max-width: inherit;
    margin-bottom: 2rem;
  }
}
@media (min-width: 768px) {
  .post-template-single-full-width-image .photo-header-background .featured-image-bg-layer {
    background-color: rgba(0, 0, 0, 0.45);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
  }
  .post-template-single-full-width-image .featured-image-container-content .featured-image-container-mobile-image {
    display: none;
  }
  .post-template-single-full-width-image .photo-header-background.no-photo {
    background-color: rgba(0, 0, 0, 0.62);
  }
  .post-template-single-full-width-image .photo-header-background figcaption {
    display: none;
  }
  .post-template-single-full-width-image .no-sidebar .bottom-header-content figcaption {
    margin-left: calc(50% - 48vw) !important;
    max-width: 98vw;
    width: 50vw;
    margin-bottom: 3rem;
  }
}

/* https://github.com/INN/theme-calhealthreport/issues/25 */
#single-post.no-sidebar .main-content {
  max-width: 40rem;
}

/* https://github.com/INN/theme-calhealthreport/issues/13 */
.wp-caption,
.wp-caption > figcaption.wp-caption-text,
figcaption {
  font-style: italic;
}

/*
 * footer widget area styles
 *
 * This copies a lot of styles from .bs-related-widgets
 */
body:not(.home) .pre-footer-widgets {
  background: #eee;
}
.pre-footer-inner {
  background: transparent;
}
.pre-footer-widgets .widget + .widget {
  margin-top: 1.875rem;
}
.pre-footer-widgets .widget > h6 {
  font-size: 1.875rem !important; /* ugh */
}
.pre-footer-widgets .related_posts_by_taxonomy div.gallery,
.pre-footer-widgets .related_posts_by_taxonomy ul { 
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  align-content: flex-start;
  margin: 0;
  padding: 0;
}
.pre-footer-widgets .related_posts_by_taxonomy figure.gallery-item img {
  max-width: 15rem;
}
.pre-footer-widgets .related_posts_by_taxonomy figure.gallery-item,
.pre-footer-widgets .related_posts_by_taxonomy li { 
  flex: 1 0 15rem;
  display: block;
  margin: 0 0 1em 0;
  padding: 0;
}
@media ( max-width: 60rem ) and ( min-width: 30rem ) {
  .pre-footer-widgets .related_posts_by_taxonomy figure.gallery-item,
  .pre-footer-widgets .related_posts_by_taxonomy li { 
    flex: 1 0 50%;
  }
}
@media ( max-width: calc( 30rem - 1px ) ) {
  .pre-footer-widgets .related_posts_by_taxonomy figure.gallery-item img {
    max-width: 25%;
    float: left;
    margin-right: 1em;
  }
}
.pre-footer-widgets .related_posts_by_taxonomy figcaption a,
.pre-footer-widgets .related_posts_by_taxonomy li a {
  font-size: 1.25rem;
  color: #000;
  font-family: acumin-pro-condensed,"Arial Narrow",Arial,Helvetica,sans-serif !important;
  font-weight: 700;
  line-height: 1.1;
}
