
/* --------------- Arrow icons - used in body copy */

@font-face {
  font-family: 'arrow-icons';
  src:  url('../icons/arrow-icons.eot?5tb00p');
  src:  url('../icons/arrow-icons.eot?5tb00p#iefix') format('embedded-opentype'),
    url('../icons/arrow-icons.ttf?5tb00p') format('truetype'),
    url('../icons/arrow-icons.woff?5tb00p') format('woff'),
    url('../icons/arrow-icons.svg?5tb00p#arrow-icons') format('svg');
  font-weight: normal;
  font-style: normal;
  font-display: block;
}

[class^="arrow-icon-"], [class*=" arrow-icon-"] {
  /* use !important to prevent issues with browser extensions that change fonts */
  font-family: 'arrow-icons' !important;
  speak: never;
  font-style: normal;
  font-weight: normal;
  font-variant: normal;
  text-transform: none;
  line-height: 1;

  /* Better Font Rendering =========== */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.arrow-icon-circle-o-down:before {
  content: "\f01a";
}
.arrow-icon-circle-o-up:before {
  content: "\f01b";
}
.arrow-icon-circle-o-right:before {
  content: "\f18e";
}
.arrow-icon-circle-o-left:before {
  content: "\f190";
}
.arrow-icon-circle-up:before {
  content: "\ea41";
}
.arrow-icon-circle-right:before {
  content: "\ea42";
}
.arrow-icon-circle-down:before {
  content: "\ea43";
}
.arrow-icon-circle-left:before {
  content: "\ea44";
}

/* "Read this story in Spanish" links */

.no-underline,
.translation {
  text-decoration: none !important;
}

.translation .arrow {
/* use !important to prevent issues with browser extensions that change fonts */
  font-family: 'arrow-icons' !important;
  speak: never;
  font-style: normal;
  font-weight: normal;
  font-variant: normal;
  text-transform: none;
  line-height: 1;

  /* Better Font Rendering =========== */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.translation .arrow:before {
  content: "\f18e";
}

.translation [class^="arrow-icon-"], 
.translation [class*=" arrow-icon-"],
.translation .arrow {
  font-size: 1.5em;
  position: relative;
  top: 0.2em;
}

/* --------------- General WordPress body improvements */

/* apply clearfix to images */
.alignleft:before,
.alignleft:after,
.alignright:before,
.alignright:after {
  content: "";
  display: table;
}

.alignleft:after,
.alignright:after {
  clear: both;
}

.alignleft,
.alignright {
  zoom: 1;
}

@media screen and (max-width:  500px) {
  .elementor .alignright,
  .elementor .alignleft {
    max-width:  50%;
  }
}


li {
    margin-bottom: 0.9rem;
}

.elementor .elementor-widget-container hr {
  background-color: #D7D7D7;
  border-width: 0;
  height: 1px;
}


/* --------------- Sidebars */

.elementor-widget-theme-post-content .sidebar, 
.elementor-widget-theme-post-content aside,
.elementor-widget-theme-post-content .bio {
  padding:  25px 30px 30px 25px;
  margin-bottom: 1em;
  border: 1px solid var( --e-global-color-49f24ec );
}

/*.elementor-widget-theme-post-content aside.summary {
  background-color: #e4ecef;
  border-width: 0;
}
*/

aside.summary .summary-link {
  font-weight: bold;
  text-decoration: none !important;
}

.elementor-widget-theme-post-content .sidebar p:last-of-type {
  margin-bottom: 0;
}

@media screen and (min-width: 769px) {
  .elementor-widget-theme-post-content .sidebar {
    width: 400px;
    float: right;
    margin: 0 0 20px 20px;
    text-align: left;
  }

  .elementor-widget-theme-post-content .sidebar.left {
    float: left;
    margin: 0 20px 20px 0;
  }

  .elementor-widget-theme-post-content .sidebar.skinny {
    width: 250px;
  }

  .elementor-widget-theme-post-content .sidebar.full {
    width: 100%;
    float: none;
    margin-left: 0;
    box-sizing: border-box;
  }
}

/* --------------- Fix Elementor tinyMCE button issues */

.mce-toolbar .mce-btn button {
  background-color:  transparent;
}

.mce-toolbar .mce-btn button:hover {
  color:  inherit !important;
  background-color: transparent !important;
}

/* Fix Post Grid/Fancybox caption layout issues */

.fancybox-container .wp-caption {
  margin: 0;
}

/** --------------- Fix Elementor Column Alignment issues 
 *  https://github.com/elementor/elementor/issues/452
 * */

@media screen and (min-width: 768px) {

  .elementor-section .elementor-section  .elementor-container.elementor-column-gap-narrow {
    margin-left: -5px;
    margin-right: -5px;
    max-width: none;
  }

  .elementor-section .elementor-section  .elementor-container.elementor-column-gap-default {
    margin-left: -10px;
    margin-right: -10px;
    max-width: none;
  }

  .elementor-section .elementor-section  .elementor-container.elementor-column-gap-extended {
    margin-left: -15px;
    margin-right: -15px;
    max-width: none;
  }

  .elementor-section .elementor-section  .elementor-container.elementor-column-gap-wide {
    margin-left: -20px;
    margin-right: -20px;
    max-width: none;

  }

  .elementor-section .elementor-section  .elementor-container.elementor-column-gap-wider {
    margin-left: -30px;
    margin-right: -30px;
    max-width: none;
  }
  
/*

  .elementor > .elementor-section > .elementor-column-gap-default > .elementor-column:first-of-type > .elementor-element-populated,
  .elementor > .elementor-section > .elementor-column-gap-narrow > .elementor-column:first-of-type > .elementor-element-populated,
  .elementor > .elementor-section > .elementor-column-gap-extended > .elementor-column:first-of-type > .elementor-element-populated,
  .elementor > .elementor-section > .elementor-column-gap-wide > .elementor-column:first-of-type > .elementor-element-populated,
  .elementor > .elementor-section > .elementor-column-gap-wider > .elementor-column:first-of-type > .elementor-element-populated {
    padding-left: 0px;
  }


  .elementor > .elementor-section > .elementor-column-gap-default > .elementor-column:last-of-type > .elementor-element-populated,
  .elementor > .elementor-section > .elementor-column-gap-narrow > .elementor-column:last-of-type > .elementor-element-populated,
  .elementor > .elementor-section > .elementor-column-gap-extended > .elementor-column:last-of-type > .elementor-element-populated,
  .elementor > .elementor-section > .elementor-column-gap-wide > .elementor-column:last-of-type > .elementor-element-populated,
  .elementor > .elementor-section > .elementor-column-gap-wider > .elementor-column:last-of-type > .elementor-element-populated {
    padding-right: 0px;
  }

*/

  /* Reset top/bottom padding to default for all column gaps */
  .elementor .elementor-column-gap-default>.elementor-column>.elementor-element-populated,
  .elementor .elementor-column-gap-narrow>.elementor-column>.elementor-element-populated,
  .elementor .elementor-column-gap-extended>.elementor-column>.elementor-element-populated,
  .elementor .elementor-column-gap-wide>.elementor-column>.elementor-element-populated,
  .elementor .elementor-column-gap-wider>.elementor-column>.elementor-element-populated {
    padding-top: 10px;
    padding-bottom: 10px;
  }

}

@media screen and (max-width: 767px) {
  /* Reset padding to default for all column gaps on small screens */
  .elementor .elementor-column-gap-default>.elementor-column>.elementor-element-populated,
  .elementor .elementor-column-gap-narrow>.elementor-column>.elementor-element-populated,
  .elementor .elementor-column-gap-extended>.elementor-column>.elementor-element-populated,
  .elementor .elementor-column-gap-wide>.elementor-column>.elementor-element-populated,
  .elementor .elementor-column-gap-wider>.elementor-column>.elementor-element-populated {
    padding-left: 15px;
    padding-right: 15px;
  }
}

@media screen and (max-width: 480px) {
  /* reset nested columns to zero padding on small screens */
  .elementor .elementor-element-populated .elementor-element-populated {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
}


/* --------------- Default spacing for <hr>s */


.elementor .elementor-widget-theme-post-content hr,
.elementor .elementor-widget-text-editor hr {
  margin-top: 1.5em;
  margin-bottom: 1.5em;
}

/* --------------- Fix Media Element issues */

td .mejs-container {
  width:  100% !important;
}

/* --------------- Fix Perfect Pullquote issues */

.perfect-pullquote,
.perfect-pullquote blockquote p {
  color:  #bd3625;
  font-weight:  bold;
}

/* --------------- Add overall body padding */

/*@media screen and (max-width: 767px) {
  #content,
  .elementor.page {
    padding-left:  25px;
    padding-right:  25px;
  } 
}

@media screen and (max-width: 480px) {
  #content,
  .elementor.page {
    padding-left:  15px;
    padding-right:  15px;
  } 
}
*/

/* --------------- Remove bottom margin from the last paragraph in a section */

p:last-child {
  margin-bottom: 0;
}

/* --------------- Media Credit/caption fixes */

figcaption,
figcaption.wp-caption-text {
  font-style: normal;
  font-weight: bold;
  color: var( --e-global-color-text );
  font-size: 14px;
  margin-top: 2px;
}

.media-credit {
  font-weight: normal;
  display: inline;
  margin: 0;
  color: #767676;
  font-size: 14px;
}

.wp-caption-text {
  margin-top: 2px;
}

.caption-text + .media-credit:before {
  content: "| ";
}


/* --------------- Form fields */

select,
textarea,
input:not([type="button"]):not([type="submit"]) {
  border-color: var( --e-global-color-49f24ec );
}

.elementor-search-form .elementor-search-form__input {
  border-width: 0 !important;
}


body.post-type-archive-pitch .facetwp-facet,
body.post-type-archive-pitch .facetwp-input-wrap {
  width: 100%;
}

body.post-type-archive-pitch .facetwp-facet {
  margin-bottom: 0;
}

/* --------------- Don't underline titles of stories */

h1 a, h2 a, h3 a, h4 a, h5 a, h6 a, a.button, a.elementor-button {
  text-decoration: none !important;
}

/* --------------- Link hover colors */
.elementor-post__title a {
  transition: color 0.2s;
}

.elementor-post__title a:hover {
  color: var( --e-global-color-secondary ) !important;
}


/* --------------- List item styles */

div.list-item,
a.list-item,
.list-item a,
.menu-item ul li a,
.elementor-nav-menu .menu-item ul li a {
  border-bottom: 1px solid #e4ecef;
  display: flex;
  padding-bottom: 1.2em !important;
  padding-top: 1.2em !important;
}

.elementor-nav-menu .menu-item ul li a:focus, 
.elementor-nav-menu .menu-item ul li a:hover
.elementor-nav-menu .menu-item ul li a.highlighted {
  border-bottom-color: #55595c !important;
}

.elementor-nav-menu .elementor-nav-menu--dropdown a.elementor-item-active {
  font-weight:  bold !important;
}

div.list-item:last-of-type,
a.list-item:last-of-type,
.list-item li:last-of-type a,
.multicol li:last-of-type a,
.menu-item ul li:last-of-type a {
  border-bottom-width: 0;
}


ul.list-item {
  margin-left: 0;
  padding-left: 0;
}

.list-item li,
.multicol ul li {
  list-style-type: none;
  margin-left: 0;
  padding-left: 0;
  break-inside: avoid;
}

.list-item a,
a.list-item {
  text-decoration: none;
  color: inherit;
}

.list-item ul {
    transform: translateZ(0);
}

/* --------------- When hovering a thumbnail in a list of posts, highlight the post title */
a.elementor-post__thumbnail__link:hover + .elementor-post__text a {
    color: var( --e-global-color-secondary ) !important;
}

/* --------------- Inline text buttons */

a.button {
  background-color: var( --e-global-color-secondary );
  color: white;
  display: inline-block;
  text-transform: uppercase;
  padding: 12px 14px;
  text-align: center;
  transition: all .3s;
  text-decoration: none !important;
  font-weight: bold;
}

a.button:hover {
  background-color: var( --e-global-color-secondary );
  color: white;
}

/* --------------- Mega menu */

/*
@media screen and (min-width: 361px) {
  .menu-item.multicol > ul {
    width: 100%;
    columns: 2 auto;
    width: 100vw !important;
    max-width: 1200px !important;
  }
  .menu-item.multicol > ul > li > a {
    white-space: normal !important;
    margin-bottom: 0;
  }

}
*/

@media screen and (min-width: 769px) {
  .menu-item.multicol > ul {
    width: 100%;
    columns: 4 auto;
    width: 100vw !important;
    max-width: 1200px !important;
  }
  .menu-item.multicol > ul > li > a {
    white-space: normal !important;
    margin-bottom: 0;
  }
}


/* Background colors of nav menus when expanded */ 

.elementor-nav-menu li li ul {
  background-color:  #f5f5f5;
}

.elementor-nav-menu li li li {
  border-left-width:  0 !important;
}


@media screen and (max-width: 768px) {
  .elementor-nav-menu li ul {
    background-color:  #f5f5f5;
  }
  .elementor-nav-menu li li ul {
    background-color:  #eee;
  }

}

/* Let menus get huge on mobile */

@media screen and (max-width: 769px) {
  .elementor-nav-menu--toggle .elementor-menu-toggle.elementor-active+.elementor-nav-menu__container {
    max-height: none !important;
  }
}



/* [gallery] shortcode */
.gallery .gallery-item {
  max-width: 150px;
  display: -moz-inline-stack;
  display: inline-block;
  vertical-align: top;
  zoom: 1;
  *display: inline;
  margin: 10px;
}

.gallery {
  clear: both;
  margin: auto;
  text-align: center;
}

.gallery img {
  width: 150px;
  height: auto;
}

.gform_confirmation_message {
  border: 1px solid #e4ecef;
  background-color: #f5f5f5;
  padding: 15px;
  font-weight:  bold;
}

/* Limit all the images in a story to 630p wide, no matter what */

.elementor-widget-theme-post-content figure.wp-caption {
  max-width: 100% !important;
}

@media screen and (min-width: 769px) {
  .elementor-widget-theme-post-content figure.wp-caption {
    max-width: 630px !important;
  }
}

.elementor-widget-theme-post-content ul,
.elementor-widget-theme-post-content ol,
.elementor-widget-theme-post-content p {
  margin-bottom:  0.9rem;
}
