/*
Theme Name:   Zeen Child
Theme URI:    https://example.com/
Description:  Zeen Child Theme for HeyEpiphora.com
Author:       Alexis Watson
Author URI:   https://alexiswatson.dev
Template:     zeen
Version:      2.3.4
License:      As specified contractually.
Tags:         light, dark, two-columns, right-sidebar, responsive-layout
Text Domain:  zeen-child
*/

/**
 * Preload hover images to avoid flicker.
 */
body::after{
  position: absolute; 
  width: 0;
  height: 0;
  overflow: hidden;
  z-index:-1;
  content: url('/wp-content/themes/zeen-child/images/hey-epiphora-cta-all-time-faves-default.svg')
    url('/wp-content/themes/zeen-child/images/hey-epiphora-cta-all-time-faves-hover.svg')
    url('/wp-content/themes/zeen-child/images/hey-epiphora-cta-new-here-default.svg')
    url('/wp-content/themes/zeen-child/images/hey-epiphora-cta-new-here-hover.svg')
    url('/wp-content/themes/zeen-child/images/hey-epiphora-cta-sales-deals-default.svg')
    url('/wp-content/themes/zeen-child/images/hey-epiphora-cta-sales-deals-hover.svg')
    url('/wp-content/themes/zeen-child/images/hey-epiphora-cta-toybox-default.svg')
    url('/wp-content/themes/zeen-child/images/hey-epiphora-cta-toybox-hover.svg')
    url('/wp-content/themes/zeen-child/images/epiphora-avatar-header-orange.png')
    url('/wp-content/themes/zeen-child/images/epiphora-avatar-sidebar-orange.png');
}


/**
 * End of post divider
 */
.post-end-subscribe::before {
  content: url('/wp-content/themes/zeen-child/images/divider-brace-wide-bottom.svg');
  display: block;
  margin: 2rem 0;
}


/**
 * Hero image paper border and captions
 */
.hero-wrap .splitter svg {
  display: none;
}

.hero-wrap .splitter {
  background: url('/wp-content/themes/zeen-child/images/paper-edge-white.svg');
  background-size: cover;
  background-repeat: no-repeat;
  background-position: left;
  height: 50px;
}

.hero-wrap .splitter--bottom {
  width: calc( 100% + 10px );
  bottom: -14px;
  left: -4px;
}

.hero-has-splitter + .caption {
  padding-bottom: 25px;
}

.hero-wrap .caption {
  padding-left: 25px;
  font-size: 0.9rem;
  font-family: 'interstate';
  line-height: 1.5;
  background: rgba(255,255,255,0.8);
}

.hero-wrap .caption a {
  font-weight: bold;
  border-bottom: 1px solid #006b6b;
}

.hero-wrap .caption a:hover {
  border-bottom: 0px;
}


/**
 * Custom header styling
 */

.menu-item:hover > a {
  color: #006b6b;
}

.menu-wrap .block-subtitle {
  color: #282828;
}

.mm-skin-4 .mm-art .menu-wrap .block-wrap:not(.tile-design-4) .block-subtitle a {
  color: #006b6b;
  font-weight: bold;
}

.drop-it .block-wrap:not(.tile-design-4) .preview-classic .title-wrap .title {
  font-size: 1.125rem;
}

.menu-item-has-children > a::after {
  content: unset;
}

.menu-bg-area .menu-content-wrap {
  max-width: none;
  padding: 0 30px;
}


/* Remove masthead from category and tag pages, because Zeen doesn't provide an easy way to do this in markup. */
body:not(.home) #masthead {
  display: none;
}

.menu-main-menu .menu-item-has-children.mm-sb-left .menu-wrap>.sub-menu {
  padding-top: 60px;
}

.menu-main-menu .menu-item-has-children.mm-sb-top .menu-wrap>.sub-menu {
  padding: 0 30px 0 188px;
}

.menu-main-menu .menu-item.mm-sb-top .menu-wrap>.sub-menu, 
.menu-main-menu .menu-item.mm-sb-left .menu-wrap>.sub-menu {
  margin-bottom: -65px;
}

.menu-main-menu .menu-item.mm-sb-top .menu-wrap>.block-wrap, 
.menu-main-menu .menu-item.mm-sb-left .menu-wrap>.block-wrap{
  margin-top: 65px;
}


/* Fix progress bar drifting below */
#progress {
  bottom: 77px;  
}

@media only screen and (min-width: 1020px) {
  body:not(.home) .custom-header .secondary-wrap {
    background: url('/wp-content/themes/zeen-child/images/vulva-bg.jpg') no-repeat;
    background-size: cover;
    background-position: center;
    padding: 0 0 140px 0;
    z-index: auto;
  }

  body:not(.home) .custom-header .main-navigation {
    margin-top: -140px;
    z-index: 10;
    padding-bottom: 80px;
  }

  body:not(.home) .custom-header .secondary-wrap .menu-bg-area {
    background: none;
    z-index: 20;
  }

  .main-menu-logo-2 .custom-header-wrapper .logo-menu-wrap .logo {
    top: -40px;
  }

  .menu-secondary .menu-item a {
    color: #282828;
  }

  .menu-secondary .menu-item > a {
    background: #f4f2ef;
  }

  .menu-secondary .menu-item:hover,
  .menu-secondary .menu-item:hover a {
    color: #fff;
    background: #282828;
  }

  .menu-secondary .sub-menu a:not(.tipi-button):hover {
    color: #47c9c2;
    opacity: 1;
  }

  .secondary-wrap .menu-padding, .secondary-wrap .ul-padding > li > a {
    padding: 2px 8px;
    margin: 13px 7px;
  }

  .secondary-wrap a {
    color: #000;
  }

  .secondary-wrap .menu-padding, .secondary-wrap ul.ul-padding > li.menu-icon > a {
    border-radius: 40px;
    background: #f4f2ef;
    padding: 6px;
    width: 1.75rem;
  }

  .secondary-wrap .menu-padding, .secondary-wrap ul.ul-padding > li.menu-icon.menu-icon-subscribe > a {
    width: auto;
    background: #282828;
    color: #fff;
    border-radius: 0;
    padding: 2px 8px;
    margin: 13px 7px;
  }

  a.tipi-i-instagram::before {
    position: relative;
    left: -1px;
  }

  a.tipi-i-facebook::before,
  a.tipi-i-tumblr::before {
    position: relative;
    left: -3px;
  }


  /**
   * Undo/Set changes for home
   */

  .home .custom-header-wrapper {
    background: none;
    padding: 0;
  }

  .home .custom-header-wrapper .secondary-wrap .menu-bg-area {
    background-image: linear-gradient(130deg, #282828 0%, #282828 80%)
  }

  .home.main-menu-logo-2 .custom-header-wrapper  .logo-menu-wrap .logo {
    top: 10px;
  }

  .home .secondary-wrap .menu-padding, 
  .home .secondary-wrap ul.ul-padding > li.menu-icon.menu-icon-subscribe > a,
  .home .secondary-wrap ul.ul-padding > li.menu-icon > a {
    background: #47c9c2;
    color: #000;
  }

  .home .menu-secondary .menu-item > a {
    background: #282828;
    color: #fff;
  }


  /**
   * Force uppercase in menus.
   */
  .sub-menu a:not(.tipi-button) {
    text-transform: uppercase !important;
    font-size: 0.9rem;
    font-weight: bold;
  }
}

@media only screen and (min-width: 1240px) {
  .menu-bg-area .menu-content-wrap {
    max-width: none;
    padding: 0 40px;
  }
}

/**
 * Menu styling
 */

.menu-bg-area .menu-content-wrap {
  justify-content: right;
}


/* Workaround for Chrome bug: https://github.com/rachelandrew/gridbugs/issues/41 */
#secondary-navigation {
  margin-left: auto;
}


/* Remove grey bar from hover state */
@media only screen and (min-width: 768px) { 
  .sub-menu a:not(.tipi-button):hover {
    transform: none;
    -webkit-transform: none;
  }
}

.menu-content-wrap .secondary-navigation,
.menu-content-wrap .secondary-icons {
  flex: none;
}

.secondary-wrap .menu-content-wrap  .menu-icons {
  margin-left: initial;
  padding: 0;
}

.secondary-icons {
  display: flex;
  align-items: center;
}

.menu-icon-subscribe {
  order: 6;
}

.menu-icon-tw {
  order: 1;
}

.menu-icon-insta {
  order: 2;
}

.menu-icon-fb {
  order: 3;
}

.menu-icon-yt {
  order: 4;
}

.menu-icon-tumblr {
  order: 5;
}

/*
.home .secondary-wrap .menu-icon-subscribe .modal-tr {
  background: #47c9c2;
  color: #000;
}
*/

.logo img {
  width: 115px;
}


/**
 * Footer
 */

.footer-area .logo img {
  width: 300px;
}

.footer-area ul li.menu-icon.menu-icon-subscribe > a {
  width: auto;
  background: #282828;
  color: #fff;
  border-radius: 0;
  padding: 2px 8px;
  margin: 13px 7px;
}


/**
 * Apply the torn paper effect to the CTA block, footer, and sidebar.
 */

 .block-css-62221::before, .footer-area::before {
  content: '';
  width: 100%;
  background: url('/wp-content/themes/zeen-child/images/paper-edge.svg') top center no-repeat;
  background-size: cover;
  height: 60px;
  display: block;
  position: absolute;
  top: -50px;
  left: 0;
}

.block-wrap-cols-2 .zeen-col-1,
.content-area .single-content .tipi-cols > .sidebar-wrap > .sidebar.widget-area {
  position: relative;
}

.block-wrap-cols-2 .zeen-col-1::after,
.content-area .single-content .tipi-cols > .sidebar-wrap > .sidebar.widget-area::after {
  content: '';
  width: 100%;
  background: url('/wp-content/themes/zeen-child/images/paper-edge-white.svg') top center no-repeat;
  background-size: cover;
  height: 60px;
  display: block;
  position: absolute;
  bottom: 0px;
  left: 0;
  z-index: 2;
}

.content-area .single-content .tipi-cols > .sidebar-wrap > .sidebar.widget-area::after {
  bottom: -20px;
}


/**
 * Homepage & Sidebar
 */


/* Homepage intro */
.home-intro {
  display: block;
  flex-direction: column;
  align-items: center;
  margin: 2rem 0;
}

.home-intro .piph-avatar {
  width: 26%;
  margin-top: 1rem;
/*  margin-bottom: 2rem; */
  margin-right: 2rem;
  float: left;
}

.home-intro .home-intro-copy {
  flex: 1;
}

@media only screen and (min-width: 490px) {
  .home-intro .piph-avatar { 
    width: 28%;
    margin-top: 0.5rem;
  }
}

@media only screen and (min-width: 520px) {
  .home-intro .piph-avatar { 
    width: 26%;
  }
}

@media only screen and (min-width: 550px) {
  .home-intro .piph-avatar { 
    width: 18%;
    margin-top: 0;
  }
}


@media only screen and (min-width: 600px) {
  .home-intro .piph-avatar { 
    width: 16%;
  }
}

@media only screen and (min-width: 640px) {
  .home-intro .piph-avatar { 
    width: 15%;
  }
}

@media only screen and (min-width: 720px) {
  .home-intro {
    display:flex;
    flex-direction: row;
  }
  .home-intro .piph-avatar {
    width: 30%;
    margin: 0;
    float: none;
  }
  .home-intro .home-intro-copy {
    margin-left: 2rem;
  }
}

@media only screen and (min-width: 990px) {
  .home-intro .piph-avatar {
    width: 20%;
  }
}
 
 
/* Force the homepage CTA block background to extend the entire width */
.block-css-62221 {
  position: relative;
  max-width: 100%;
  background: #f4f2ef;
}


/* Bring the block contents into alignment with the rest of the page. */
.block-css-62221  .custom-cta-home {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 15px;
}

.cta-header {
  margin: 0 auto;
  max-width: 815px;
  text-align: center;
}
.cta-header h3 {
  font-size: 1.875rem;
}
.cta-header h3, .cta-header p {
  margin: 1rem 0;
}

.link-color-wrap .cta-header a,
.link-color-wrap .home-intro a,
.link-color-wrap .block-title a {
  display: inline-block;
  line-height: 1rem;
  text-decoration: none;
  color: #282828;
  font-weight: 600;
  border-bottom: 3px #47c9c2 solid;
}

.home-intro h1 {
  margin: 0 0 1.5rem 0;
}

.home-intro h1 a {
  line-height: 3rem !important;
}

.block-title a {
  line-height: 1.5rem;
}

.link-color-wrap .cta-header a:hover,
.link-color-wrap .home-intro a:hover, 
.link-color-wrap .block-title a:hover {
  text-decoration: none;
  border-bottom: 3px #ffffff solid;
}

.link-color-wrap .home-intro a.piph-avatar:hover {
  border-bottom: none;
}

.home-intro a.piph-avatar {
  border-bottom: none;
  position: relative;
}

.home-intro .piph-avatar:hover::after {
  content: '';
  background: url('/wp-content/themes/zeen-child/images/epiphora-avatar-header-orange.png');
  background-size: 100%;
  background-repeat: no-repeat;
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.sidebar-avatar {
  position: relative;
  display: block;
}

.sidebar-avatar:hover::after {
  content: '';
  background: url('/wp-content/themes/zeen-child/images/epiphora-avatar-sidebar-orange.png');
  background-size: 100%;
  background-repeat: no-repeat;
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}


.custom-cta-home ul, 
.custom-cta-sidebar ul {
  display: flex;
  flex-wrap: wrap;
  flex-direction: row;
  justify-content: space-evenly;
  align-items: center;
  list-style-type: none;
  margin: 0;
  padding: 0;
  font-family: "interstate-condensed", sans-serif;
  font-weight: bold;
  text-transform: uppercase;
  font-size: 1.5rem;
}

.custom-cta-sidebar ul {
  align-items: start;
}

.custom-cta-home ul .cta-item,
.custom-cta-sidebar ul .cta-item {
  width: 100%;
  text-align: center;
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  margin: 1rem;
}

.custom-cta-home ul .cta-item li::before,
.custom-cta-sidebar ul .cta-item li::before {
  content: '';
  width: 100%;
  height: 180px;
  display: block;
  margin: 0 auto -15px;
  background-repeat: no-repeat;
  background-position: center center;
}


.custom-cta-home ul .cta-item,
.custom-cta-sidebar ul .cta-item {
  width: 40%;
}

.custom-cta-home ul .cta-item li::before,
.custom-cta-sidebar ul .cta-item li::before {
  width: 75%;
}

.custom-cta-home .cta-list {
  margin-left: auto;
  margin-right: auto;
}

.custom-cta-sidebar ul .cta-item {
  width: 40%;
}

.custom-cta-sidebar ul .cta-item li::before {
  width: 100%;
}

/* CTA Media Queries */
@media only screen and (min-width: 530px) {
  .custom-cta-home ul .cta-item {
    width: 40%;
  }
  
  .custom-cta-home ul .cta-item li::before {
    width: 75%;
  }
}

@media only screen and (min-width: 768px) {
  .custom-cta-sidebar ul .cta-item li::before {
    width: 100%;
    height: 140px;
  }

  .custom-cta-sidebar ul .cta-item {
    width: 100%;
    font-size: 1rem;
  }
}

@media only screen and (min-width: 900px) {
  .custom-cta-home ul .cta-item {
    width: 21%;
  }
  
  .custom-cta-home ul .cta-item li::before {
    width: 100%;
  }

  .custom-cta-sidebar ul .cta-item {
    width: 33%;
    font-size: 1.125rem;
  }
}

@media only screen and (min-width: 1370px) {
  .custom-cta-sidebar ul .cta-item li::before {
    width: 90%;
    height: 130px;
  }

  .custom-cta-sidebar ul .cta-item {
    width: 40%;
    font-size: 1.25rem;
  }
}


.cta-item:hover,
.sidebar-wrap .bg-area .custom-cta-sidebar .cta-item:hover {
  color: #006b6b;
}

.cta-item.cta-faves li::before {
  background-image: url('/wp-content/themes/zeen-child/images/hey-epiphora-cta-all-time-faves-default.svg');
}

.cta-item.cta-faves:hover li::before {
  background-image: url('/wp-content/themes/zeen-child/images/hey-epiphora-cta-all-time-faves-hover.svg');
}

.cta-item.cta-new li::before {
  background-image: url('/wp-content/themes/zeen-child/images/hey-epiphora-cta-new-here-default.svg');
}

.cta-item.cta-new:hover li::before {
  background-image: url('/wp-content/themes/zeen-child/images/hey-epiphora-cta-new-here-hover.svg');
}

.cta-item.cta-sales li::before {
  background-image: url('/wp-content/themes/zeen-child/images/hey-epiphora-cta-sales-deals-default.svg');
}

.cta-item.cta-sales:hover li::before {
  background-image: url('/wp-content/themes/zeen-child/images/hey-epiphora-cta-sales-deals-hover.svg');
}

.cta-item.cta-toybox li::before {
  background-image: url('/wp-content/themes/zeen-child/images/hey-epiphora-cta-toybox-default.svg');
}

.cta-item.cta-toybox:hover li::before {
  background-image: url('/wp-content/themes/zeen-child/images/hey-epiphora-cta-toybox-hover.svg');
}


/**
 * Mobile Header
 */

 #page .menu-left, #page .menu-right {
  border: 1px #006b6b solid;
  background: #006b6b;
  border-radius: 100%;
  padding: 0;
  width: 30px;
  height: 30px;
  position: relative;
  top: 24px;
}

#page .menu-right .mob-tr-open i {
  margin-right: 10px;
  top: calc(50% - 1px);
}

#page .menu-left .tipi-i-search::before {
  position: relative;
  top: 3px;
  margin-left: 5px;
}

.site-mob-header .header-padding {
  padding: 70px 20px;
}

@media only screen and (min-width: 465px) {
  .site-mob-header .header-padding {
    padding-top: 130px;
    padding-bottom: 130px;
  }
  
  #page .menu-left, #page .menu-right {
    top: 32px;
  }
}

body .site-mob-header .menu-left,
body .site-mob-header .menu-right {
  flex: initial;
}

.site-mob-header .icons-wrap .menu-icon a {
  padding: 0;
}


/**
 * Image hover effect
 */

.mask, .pk-overlay-background, .sp-mask {
  position: relative;
}

.mask-img::before, .pk-overlay-link::before, .sp-image-wrap::before {
  display: block;
  content:"";
  width: calc(10% - 10px);
  height: calc(10% - 10px);
  position: absolute;
  top: 5px;
  left: 5px;
  border-top: 1px white solid;
  border-left: 1px white solid;
  z-index: 2;
}

.mask-img::after, .pk-overlay-link::after, .sp-image-wrap::after {
  display: block;
  content:"";
  width: calc(10% - 10px);
  height: calc(10% - 10px);
  position: absolute;
  bottom: 5px;
  right: 5px;
  border-bottom: 1px white solid;
  border-right: 1px white solid;
  z-index: 2;
}

.mask-img:hover::before, .mask-img:hover::after,
.pk-overlay-link:hover::before, .pk-overlay-link:hover::after,
.sp-image-wrap:hover::before, .sp-image-wrap:hover::after {
  width: calc(100% - 11px);
  height: calc(100% - 11px);
}

.mask-img::before, .mask-img::after,
.pk-overlay-link::before, .pk-overlay-link::after,
.sp-image-wrap::before, .sp-image-wrap::after {
  transition: all 0.5s ease-in;
}


/* Fix mask-overlay trapping pointer events */
.mask-img + .mask-overlay {
  pointer-events: none;
}


/* POWERKIT INLINE RELATED POSTS STYLING  */

/* Replicate styling from PK */
  .pk-template-wrapper-piph .pk-inline-posts-title,
  .pk-inline-posts-template-piph .pk-title {
    text-align: center;
  }

  .pk-inline-posts-template-grid .pk-post-outer, 
  .pk-inline-posts-template-piph .pk-post-outer,
  .pk-inline-posts-template-list .pk-post-outer {
    /* display: -webkit-box; */
    /* display: -ms-flexbox; */
    display: flex;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    margin-right: -15px;
    margin-left: -15px;
    flex-direction: column;
    align-items: center;
  }
  .pk-inline-posts-template-grid .pk-post-inner,
  .pk-inline-posts-template-piph .pk-post-inner,
  .pk-inline-posts-template-list .pk-post-inner {
		position: relative;
		width: 100%;
		padding-right: 15px;
		padding-left: 15px;
		-webkit-box-flex: 0;
		-ms-flex: 0 0 50%;
		flex: 0 0 50%;
		max-width: 50%;
	}
	.pk-inline-posts-template-piph .pk-post-inner:not(:last-child) {
		margin-bottom: 0;
	}
	.pk-inline-posts-template-piph .pk-post-inner:first-child:last-child {
		-webkit-box-flex: 0;
		-ms-flex: 0 0 100%;
		flex: 0 0 100%;
		max-width: 100%;
	}
	.pk-inline-posts-template-piph .pk-post-inner + .pk-post-inner {
		margin-top: 0;
		display: -webkit-box;
		display: -ms-flexbox;
		display: flex;
		-webkit-box-orient: vertical;
		-webkit-box-direction: normal;
		-ms-flex-direction: column;
		flex-direction: column;
	}


.site-main .pk-template-wrapper .pk-inline-posts-title {
	font-size: 1.375rem;
	font-family: 'Interstate-Condensed';
	text-transform: uppercase;
}

.site-main .pk-inline-posts-template-list .pk-post-inner:not(:last-child),
.site-main .pk-inline-posts-template-piph .pk-post-inner:not(:last-child) {
  margin-bottom: 1rem;
}

.pk-template-wrapper-piph,
.pk-template-wrapper-list  {
  width: 100%;
  /* Remove left- and right-floated inline related posts at lower resolutions, until a better layout solution can be found. */
  /* display: none; */
}

.pk-template-wrapper-piph .pk-inline-posts,
.pk-template-wrapper-list .pk-inline-posts {
  padding-bottom: 30px;
}

/* When there's enough room, float the floatable types */

.pk-template-wrapper-grid-3 .pk-inline-posts,
.pk-template-wrapper-grid-4 .pk-inline-posts,
.pk-template-wrapper-piph .pk-inline-posts,
.pk-template-wrapper-list .pk-inline-posts {
	/* Ensure the inline-block title is centered across the grey border. */
	text-align: center;
}

.pk-template-wrapper-grid-3 .pk-inline-posts-title,
.pk-template-wrapper-grid-4 .pk-inline-posts-title,
.pk-template-wrapper-piph .pk-inline-posts-title,
.pk-template-wrapper-list .pk-inline-posts-title {
	display: inline-block;
	position: relative;
	z-index: 10;
	width: auto;
	text-align: center;
	background: #fff;
	padding: 0 2em;
}

.pk-inline-posts-container .entry-thumbnail .pk-overlay-link {
  /* Prevent the image from stuttering due to the containing size changing */
  border: 3px solid transparent;
}

.pk-inline-posts-container .pk-title a {
	background: none;
  color: #575754;
}

.pk-inline-posts-container .pk-title a:hover {
	background: none;
  color: #47c9c2;
}

.pk-post-outer .pk-post-inner .pk-title {
  font-size: 1rem;
  margin-bottom: 0;
  margin-top: 0;
  /* !important should be avoided like the plague, but we need it to override a base style that uses it. */
  line-height: 155% !important;
}

.pk-template-wrapper .pk-title {
	font-family:'Interstate';
}

.pk-inline-posts-template-grid,
.pk-inline-posts-template-piph,
.pk-inline-posts-template-list {
	display: flex;
	justify-content: center;
	border-top: 7px #f4f2ef solid;
	border-bottom: 7px #f4f2ef solid;
	margin: -3rem 0 3rem;
  padding: 3rem 0;
  flex-direction: column;
}

.pk-inline-posts-container .pk-post-meta {
	display: none;
}

@media only screen and (min-width: 576px) {
  .pk-inline-posts-template-grid .pk-post-inner {
    max-width: 100%;
  }

  div.pk-inline-posts-template-grid {
    flex-direction: row;
  }

  .pk-inline-posts-template-grid[data-columns="3"] article {
    max-width: 25%;
  }

  .pk-template-wrapper-grid-3 .pk-inline-posts-container article:not(:first-child) {
    margin-top: 0;
  }
}

@media only screen and (min-width: 720px) {
  .site-main .pk-inline-posts-container.pk-inline-posts-template-grid article:not(:first-child) {
    margin-top: 0;
  }
}

@media only screen and (min-width: 1200px) {
  .pk-template-wrapper-grid-4 .pk-inline-posts-template-grid {
    justify-content: space-between;
  }
  .pk-template-wrapper-grid-4 .pk-inline-posts-template-grid[data-columns="4"] article {
    max-width: 22%;
  }
  .pk-template-wrapper-grid-3 .pk-inline-posts-template-grid[data-columns="3"] article {
    padding: 0 30px;
  }
}

@media only screen and (min-width: 1020px) {
  .pk-template-wrapper-piph,
  .pk-template-wrapper-list  {
    display: flex;
  }

  .pk-inline-posts-template-piph,
  .pk-inline-posts-template-list {
    border-top: 0;
    border-bottom: 0;
    margin: 0;
    padding: 0;
  }

  .pk-inline-posts-template-list .pk-post-outer {
    flex-direction: column;
  }

  .pk-template-wrapper-piph {
    float: right;
    width: 20%;
    margin-left: 50px;	
    border-left: 7px #f4f2ef solid;
    padding-left:30px;
  }

  .pk-template-wrapper-list {
    float: left;
    width: 20%;
    margin-right: 50px;	
    border-right: 7px #f4f2ef solid;
    padding-right:30px;
  }

  .pk-inline-posts-template-piph .pk-post-inner,
  .pk-inline-posts-template-list .pk-post-inner {
    position: static;
    max-width: 100%;
    flex: unset;
  }

  .pk-template-wrapper-piph .pk-inline-posts-title,
  .pk-template-wrapper-list .pk-inline-posts-title {
    padding: 0;
  }
}


/* HIGHLIGHT BEHIND BLOCK TITLES */
div.block-title,
body.tag .page-title,
body.category .page-title,
.sp-heading {
	background-image: url('/wp-content/themes/zeen-child/images/highlight-2.svg');
	background-repeat:repeat-x;
	background-position:left;
	display: inline-block;
	background-size: auto 100%;
}

.sp-heading-wrap {
  text-align: center;
}

.block-title-wrap-style div.block-title {
	/* We don't want or need how Zeen manages margins using display: flex in this case. */
  display: inline-block;
  min-width: 50%;
}

.block-title-wrap-style div.block-title::before,
.block-title-wrap-style div.block-title::after {
  content: unset;
}

.block-title h1,
.block-title h2,
.block-title h3,
.block-title h4,
.block-title h5,
.block-title h6,
.block-title p,
.sp-heading {
	padding: 0 1em;
}

.block-title-wrap .block-subtitle {
  font-family:'Interstate';
}


/**
 * Pull/Block Quotes
 */

.site-main blockquote::before, 
.site-main q::before {
	content: '';
	font-family: unset;
	position: unset;
	left: unset;;
	transform: unset;
}

/*
.site-main  blockquote {
  margin-top: 90px;
}
*/

.site-main blockquote,
.site-main q {
  width: 70%;
  margin-left: 15%;
  font-weight: 500 !important;
}

.site-main .wp-block-pullquote blockquote {
  width: 100%;
  margin-left: 0;
  padding: 0;
}

.site-main .wp-block-quote {
  position: relative;
  text-align: center;
  font-weight: 500;
  letter-spacing: 0em;
  background: url('/wp-content/themes/zeen-child/images/quotation-mark.svg') transparent;
  background-position: top center;
  background-size: 120px;
  margin-top: 0px;
  margin-bottom: 65px;
  padding-top: 50px;
  padding-bottom: 10px;
  background-repeat: no-repeat;
}

.site-main .wp-block-quote::before,
.site-main .wp-block-quote::after {
	content: '';
	display: block;
	position: absolute;
	border: 7px #47c9c2 solid;
	width: 10px;
  height: calc( 100% - 45px );
  top: 25px;
}

.site-main .wp-block-quote::before {
  left: calc( -5% - 15px);
  border-right: none;  
}

.site-main .wp-block-quote::after {
  right: calc( -5% - 15px);
  border-left: none;  
}

.site-main .wp-block-pullquote {
  margin: 3em 0;
  padding: 0;
	text-align: center;
}

.wp-block-pullquote.alignleft,
.wp-block-pullquote.alignright {
    max-width: 100%;
    float: none;
}

.site-main .wp-block-pullquote blockquote p {
	font-style: italic;
	font-size: 2rem;
	font-family: 'skolar-latin';
	text-align: center;
	color: #000000;
	font-weight: 800;
  letter-spacing: 0em;
  margin: 0;
}

.site-main .wp-block-pullquote blockquote p:not(:last-child) {
  margin-bottom: 20px;
}

.site-main .wp-block-pullquote blockquote::before,
.site-main .wp-block-pullquote blockquote::after {
  display: inline-block;
  position: unset;
  left: unset;
  transform: unset;
  width: 50%;
}

.site-main .wp-block-pullquote.alignleft blockquote::before, 
.site-main .wp-block-pullquote.alignleft blockquote::after {
  width: 70%;
}

.site-main .wp-block-pullquote blockquote::before {
  content: url('/wp-content/themes/zeen-child/images/pullquote-top.svg');
  margin-bottom: 40px;
}

.site-main .wp-block-pullquote blockquote::after {
  content: url('/wp-content/themes/zeen-child/images/pullquote-bottom.svg');
  margin-top: 50px;
}

@media only screen and (min-width: 900px) {
  .wp-block-pullquote.alignleft,
  .wp-block-pullquote.alignright {
    max-width: 40%;
  }

  .wp-block-pullquote.alignleft {
    float: left;
	  margin-right: 50px;
  }

  .wp-block-pullquote.alignright {
    float: right;
	  margin-left: 50px;
  }

}


/**
 * Featured Posts - Similar Posts
 */
.similar-posts {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-bottom: 30px;
}

.similar-posts .sp-link,
.sp-image {
  display: block;
}

.sp-image {
  display: block;
  margin: 0 0 1.5rem 0;
}

.sp-title {
  font-family:'Interstate';
  font-size: 1rem;
  color: #545456;
  line-height: 155%;
  margin: 0 0 1.5rem 0;
  text-align: center;
}

.sp-link:hover .sp-title {
  text-decoration: underline;
  color: #47c9c2;
}

.sp-image {
  /* Prevent the image from stuttering due to the containing size changing */
  border: 3px solid transparent;
}

.similar-posts {
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: start;
}

.sp-link {
  width: 100%;
  max-width: unset;
}

.similar-posts li {
  width: 48%;
}


@media only screen and (min-width: 960px) {
  .similar-posts {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
  }

  .sp-link {
    width: 100%;
    max-width: unset;
  }
}

@media only screen and (min-width: 1020px) {
  .similar-posts {
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: flex-start;
  }

  .similar-posts li {
    width: 22%;
  }

  .similar-posts img {
    max-width: 100%;
  }
}


/**
 * Sidebar heading titles
 */
.sidebar-widget .widget-title {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.widget-title::before,
.widget-title::after {
  content: '';
  border-top: 1px #242426 solid;
  margin: 0 20px 0 0;
  flex: 1 0 20px;
}

.widget-title::after {
  margin: 0 0 0 20px;
}


/**
 * Screen-reader only
 */
.sro {
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  width: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
}


/**
 * Subscription form
 */

.sub-form {
  text-align: center;
}

.sub-form .status {
  transition: all 0.5s ease-in;
  margin: 0 1.5rem;
  font-family: 'interstate-condensed',sans-serif;
}

.sub-form .status:not(:empty) {
  border: 1px #fff solid;
  margin-bottom: 1rem;
}


.sub-form .form-email input {
  color: #006b6b;
  background: #fff;
  line-height: 1;
  padding: 1rem;
  margin-top: 1rem; 
  margin-bottom: 0.75rem;
  border: none;
  width: 75%;
  font-family: 'interstate-condensed',sans-serif;
}

.sub-form .form-checkbox input {
  position: relative;
  top: -0.125em;
}

.sub-form h2,
.site-skin-3.content-subscribe .sub-form h2 {
  display: inline-block;
  font-size: 2.5rem;
  background: #d0ff2c;
  color: #000 !important;
  font-family: 'classico-urw', sans-serif;
  margin: 1.25rem 0 1rem;
  padding: 0.25rem 0.5rem;
}

.sub-form h3 {
  font-size: 1.375rem;
  color: #fff;
  font-family: 'interstate-condensed',sans-serif;
  font-weight: bold;
  margin: 0 0 1.5rem;
}

.sub-form label {
  padding-left: 0.5rem;
  font-family: 'interstate-condensed',sans-serif;
  color: #000;
  font-size: 1.15rem;
}

.content-subscribe-block .bg-area .sub-form label a,
.content-subscribe-block .bg-area .sub-form .privacy-notice a,
.content-subscribe .bg-area .sub-form label a,
.content-subscribe .bg-area .sub-form .privacy-notice a {
  color: #000;
}

.form-wrapper.form-checkbox {
	width: 75%;
	margin: 0 auto;
	text-align: left;
}

.sub-form .button-arrow {
  margin: 1rem 0;
  text-transform: uppercase;
  font-family: 'interstate-condensed',sans-serif;
  font-size: 1.5rem;
  background: #000;
}

.sub-form a {
  text-decoration: underline;
}

body .content-subscribe-2 .tipi-modal-bg,
body .post-end-subscribe .bg-area,
#block-wrap-53690 .tipi-row-inner-style {
  display: flex;
  justify-content: flex-end;
  padding: 0;
}

body .content-subscribe-2 .tipi-modal-bg .content-subscribe-inner,
body .post-end-subscribe .bg-area .content-subscribe-inner,
#block-wrap-53690 .tipi-row-inner-style .tipi-row-inner-box {
  width: 100%;
  background: #00cac5;
  color: #fff;
  margin: 0;
}

@media only screen and (min-width: 960px) {
  .form-wrapper.form-checkbox {
    width: 60%;
  }
  body .content-subscribe-2 .tipi-modal-bg .content-subscribe-inner,
  body .post-end-subscribe .bg-area .content-subscribe-inner,
  #block-wrap-53690 .tipi-row-inner-style .tipi-row-inner-box {
    width: 50%;
  }
}

.sub-form a {
  text-decoration: underline;
}

.sub-form .privacy-notice {
  font-size: 0.75rem;
  font-style: italic;
  color: #000;
  margin-top: 1rem;
}

.sub-form .diff-sub {
  margin-top: 1rem;
  font-size: 1rem;
  color: #fff;
  background: #006b6b;
  padding: 1rem 0;
  text-align: center;
  font-family: 'interstate-condensed',sans-serif;
  font-weight: bold;
}

.mailing-wrap .small-print {
  margin: 0;
}

/**
 * Links
 */

div.link-color-wrap a:hover {
  color: #282828;
}

div.link-color-wrap .cta-list a {
  color: #282828;
}

div.link-color-wrap .cta-list a:hover {
  color: #006b6b;
}

#disqus_thread a {
  color: #008282;
}


/**
 * Menu font size, removing "Popular" at low res.
 */

body .horizontal-menu .trending-inline {
  display: none;
}

.main-navigation .menu-main-menu {
  font-size:0.9375rem;
}

.main-navigation .horizontal-menu > li > a {
	padding-left: 14px;
	padding-right: 14px;
}

@media only screen and (min-width: 1100px) {
  .main-navigation .menu-main-menu {
    font-size: 1.0625rem;
  }
}

@media only screen and (min-width: 1300px) {
  body .horizontal-menu .trending-inline {
    display: flex;
  }

  .main-navigation .horizontal-menu > li > a {
    padding-left: 18px;
    padding-right: 18px;
  }
}


/**
 * Override row padding
 */
body .tipi-row {
  padding-left: 15px;
  padding-right: 15px;
}


/**
 * Sidebar ad styling
 */
.sidebar-sponsors-squares {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  max-width: 310px;
  margin-left: auto;
  margin-right: auto;
}

.sidebar-sponsors-squares a {
  box-sizing: border-box;
  display: inline-block;
  width: 50%;
  margin-bottom: 0px;
  padding: 0px;
}

.sidebar-sponsors-squares a:nth-child(odd) {
  padding-right: 5px;
}

.sidebar-sponsors-squares a:nth-child(even) {
  padding-left: 5px;
}

.sidebar-sponsors-banners {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.sidebar-sponsors-banners a {
  display: inline-block;
}