/* General Tweaks */

/* Hero Component of Events Page */
.hero-events h4 {
  color: var(--white);
  font-family: var(--font-meta-labels);
  font-size: 1rem;
  letter-spacing: 0.5px;
}

.hero-events .top-spacing {
  margin-top: 150px;
}

.hero-events br {
  display: none;
}

.hero-events .av-special-heading {
  margin-top: 0;
}

.hero-events h1 {
  font-family: var(--font-averia);
  color: var(--white);
  font-size: 3.375rem;
  width: 500px;
}

.hero-events p {
  color: var(--white);
  font-size: 1rem;
  font-family: var(--font-body);
  max-width: 27.5em;
}

.hero-events .bottom-spacing {
  margin-bottom: 45px;
}

body .hero {
  min-height: 300px;
  display: flex;
  align-items: flex-start;
  padding: var(--hero-top-padding) 0 2rem 0;
}

body .hero main {
  padding-top: 0 !important;
}

body .hero .eyebrow p{
  font-size: 1.5rem;
  line-height: 1em;
  letter-spacing: 0.5px;
  font-family: var(--font-small-heading);
  margin-bottom: 0px;
}

.page-sizer.hero h4 {
  color: var(--white);
  font-family: var(--font-meta-labels);
  font-size: 1rem;
}

.page-sizer.hero h1 {
  font-family: var(--font-averia);
  color: var(--white);
  font-size: 3.375rem;
}

.page-sizer.hero p {
  color: var(--white);
  font-size: 1rem;
  font-family: var(--font-body);
  max-width: 440px;
}

body .hero .eyebrow p{
  font-size: 1.5rem;
  line-height: 1em;
  letter-spacing: 0.5px;
  font-family: var(--font-small-heading);
  margin-bottom: 0px;
}

body .hero p{
  font-size: 1rem;
  margin-bottom: 1rem;
}

#top #wrap_all .hero .av-special-heading-tag {
  font-size: 3rem;
  line-height: 1em;
  font-family: var(--font-averia);
  text-transform: initial;
  margin: 0;
  padding: 0;
}
#top #wrap_all .hero .av-special-heading {
  margin-top: 0px;
  margin-bottom: 0;
  text-transform: initial;
}

@media (min-width: 40rem) {
  #top #wrap_all .hero .av-special-heading-tag {
    font-size: 3.125rem;
    line-height: 1em;
  }
  .responsive #top #wrap_all .hero .container {
    margin-top: 0px;
  }
  body .hero p{
    font-size: 1rem;
  }
  body .hero .container {
    position: relative;
    padding: 0px 60px;
  }
}
@media (min-width: 45rem) {
  #top #wrap_all .hero .av-special-heading-tag {
    font-size: 54px;
    line-height: 58px;
  }
}
@media (min-width: 60rem) {
  #top #wrap_all .hero .av-special-heading-tag {
    font-size: 4rem;
    line-height: 1.125em;
    max-width: 7.5em;
    margin-bottom: 2rem;
  }
  body .hero p{
    max-width: 440px;
    font-family: var(--font-body);
    font-size: 16px;
  }
}
@media (min-width: 67.5rem) {
  #top #wrap_all .hero .av-special-heading-tag {
    font-size: 64px;
    line-height: 72px;
  }
}

/* 
Hero General Styles
*/

.section__hero {
  position: relative;
  display: flex;
  min-height: 468px;
  margin: 0;
}

.hero-background-image {
  display: flex;
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
}

.hero-background-image img,
.hero-background-image picture {
  object-fit: cover;
  width: 100%;
  height: 100%;
}

.hero-content {
  display: flex;
  width: 100%;
  padding-top: var(--hero-top-padding);
  padding-bottom: 4rem;
}

  .bg-overlay {
    position:absolute;
    background-image:radial-gradient(circle at 68% 59%,rgba(0,0,0,0),rgba(0,0,0,0.28) 39%,rgba(0,0,0,0.56) 90%);
    width: 100%;
    height: 100%;
  }


  
  .hero-content .hero-container {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    position: relative;
    width: 100%;
    max-width:  1440px;
    margin: 0 auto;
    padding-left: 2rem;
    padding-right: 2rem;
  }

  @media (min-width: 50rem) {
    .section__hero {
      position: relative;
      display: flex;
      min-height: 550px;
    }

    .hero-content .hero-container {
      flex-direction: row;
      justify-content: space-between;
    }
  }
  
  .hero-copy {
    color: var(--white);
    max-width: 100%;
    text-align: left;
    word-break: break-word;
    width: 100%;
    z-index: 2;
  }
  /* Styles for copy on small devices */
  @media (max-width: 50rem) {
    .hero-copy {
      padding-top: 5rem;
    }
  }

  @media (min-width: 50rem) {
    .hero-copy {
      max-width: 30rem;
      text-align: left;
      width: 100%;
      position: relative;
      padding: 0 var(--space);
      word-break: break-word;
    }
  }
  
  @media (min-width: 67.5rem) {
    .hero-copy {
      max-width: 42rem;
      position: relative;
      word-break: break-word;
    }
    .section__hero {
      position: relative;
      display: flex;
      min-height: var(--standard-hero-height);
    }
  }
  
  .hero-eyebrow {
    font-family: var(--font-small-heading);
    font-size: 1rem;
    display: inline-block;
    margin-bottom: 1rem;
    text-transform: uppercase;
  }
  
  .hero-container .hero-headline,
  .entry-content-wrapper .hero-container h2.hero-headline {
    color: var(--white);
    font-family: var(--font-averia);
    font-size: 47px;
    line-height: 50px;
    margin-bottom: 1.75rem;
  }

  .hero-content .hero-container .hero-copy  .hero-headline {
    text-transform: initial;
  }
  
  @media (min-width: 50rem) {
    .hero-container .hero-headline {
      font-size: 3rem;
      padding-left: 0;
      padding-right: 0;
    }
    .hero-eyebrow{
      font-size: 20px;
    }
  }
  
  @media (min-width: 67.5rem) {
    .hero-container .hero-headline {
      font-size: 64px;
      line-height: 68px;
      letter-spacing: 1px;
    }
    .hero-eyebrow{
      font-size: 24px;
    }
  }
  
  .hero-description {
    max-width: 100%;
    margin-bottom: 2rem;
    margin-top: 1rem;
    font-size: 1rem;
    line-height: 1.2rem;
    font-family: var(--font-body);
  }
  
  @media (min-width: 67.5rem) {
    .hero-description {
      max-width: 32rem;
      margin-top: 2rem;
      font-size: 1.1rem;
      line-height: 1.5rem;
    }
  }
  
  .hero-description p {
    color: var(--white);
    margin-bottom: var(--half-space);
    font-size: 1rem;
  }

  .hero-meta {
    display: block;
    font-size: 1rem;
    font-family: var(--font-meta-labels);
    letter-spacing: 0.5px;
    text-transform: uppercase;
  }
  
  .hero-find-cta {
    background-color: var(--very-light-pink);
    border-radius: 3px;
    color: var(--brick-red);
    font-family: var(--font-averia);
    padding: var(--half-space) var(--space);
    text-transform: uppercase;
    margin-top: 1rem;
    font-size: 1rem;
    display: inline-block;
  }
  
  .hero-find-cta:hover {
    cursor: pointer;
  }


  @media screen and (max-width: 600px) and (orientation: portrait) {
    .section__hero {
      flex-direction: column;
    }

    .section__hero .hero-background-image {
      position: relative;
      height: 400px;
    }

    .hero-content {
      padding: 1rem 0 !important;
    }

    .section__hero .bg-overlay {
      height: 400px;
    }

    .section__hero .hero-copy {
      padding-top: 2rem;
    }
    
    .section__hero .hero-copy .hero-eyebrow,
    .section__hero .hero-copy .hero-description {
      color: black !important;
    }
  
    .section__hero .hero-copy .hero-headline {
      color: var(--brick-red) !important;
    }
    
  }
  
  /* Adjustments for 404 page 
  */
  
  .page-404 .hero-background-image {
    display: block;
    width: 100%;
    max-height: 800px;
    min-height: 400px;
  }
  .page-404 .hero-foreground-image {
    padding: 4rem;
  }
  
  
  .hero-foreground-image {
    display: flex;
    justify-content: center;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    z-index: 1;
    padding: 2rem;
  }
  
  @media (min-width: 50rem) {
    .hero-foreground-image {
      filter: none;
      max-width: 32rem;
      padding: var(--space);
      position: relative;
      transform: none;
      z-index: 0;
    }
    .page-404 .hero-foreground-image {
      padding: 1rem;
      top: 6rem;
    }
  }
  
  @media (min-width: 67.5rem) {
    .hero-foreground-image {
      max-width: 52%;
      padding: 1rem;
    }
    .page-404 .hero-foreground-image {
      position: relative;
      top: 8rem;
      padding: 0px;
      padding-right: 1rem;
    }
  }


/* Slideshow hero overrides */

.container_wrap_first.fullsize > .container,
.home #main .container_wrap_first.fullsize > .container {
  max-width: none;
  padding-left: 0;
  padding-right: 0;
}

.container_wrap_first.fullsize > .container > main {
  padding: 0;
}

@media only screen and (max-width: 767px) {
  .responsive #top #wrap_all .container_wrap_first.fullsize > .container {
    width: 100%;
    max-width: 100%;
  }
}

.avia_hero {
  margin: 0;
}

.avia_hero .hero-background-image {
  display: flex;
  width: 100%;
  height: 100%;
  position: relative;
}

.avia_hero .hero-background-image img,
.avia_hero .hero-background-image picture {
  object-fit: cover;
  object-position: center;
  width: 100%;
  height: 100%;
}

.avia_hero .hero-content {
  position: absolute;
  top: 0;
  z-index: 4;
}

.avia_hero .avia-slideshow-inner > li:not(.av-video-slide),
.avia_hero .hero-slide-bg {
  height: 100% !important; /* height is set inline automatically, so to override we need !important here */
}

.avia_hero[data-size="hero_standard"],
.avia_hero.avia-slideshow-hero_standard .avia-slideshow-inner {
  height: var(--standard-hero-height);
}

.avia_hero[data-size="hero_large"],
.avia_hero.avia-slideshow-hero_large .avia-slideshow-inner {
  max-height: var(--large-hero-height);
  overflow: hidden;
}

.avia-slideshow-arrows a:before {
  padding-top: 0;
}

.avia_hero .avia-slideshow-dots .goto-slide {
  margin: 0.25rem;
}


.responsive #top .avia-slideshow-controls a {
  display: block !important;
}


.responsive #top .avia-slideshow-dots {
  display: flex;
  justify-content: center;
  align-items: center;
}

.avia_hero .hero-buttons .avia-button {
  margin: 0 1rem 1rem 0;
}

#top .avia_hero .av-video-slide .avia-slide-wrap {
  position: relative;
}

.avia_hero .av-video-slide .mejs-mediaelement {
  padding-bottom: 56.25%;
}

.avia_hero .hero-copy {
  padding-top: 4rem;
}

@media screen and (orientation: landscape) and (max-device-width: 812px) {
  .avia_hero .hero-content {
    position: relative;
    top: auto;
    z-index: 4;
  }

  .avia_hero[data-size="hero_standard"],
  .avia_hero.avia-slideshow-hero_standard .avia-slideshow-inner {
    height: 100%;
  }

  .avia_hero[data-size="hero_large"],
  .avia_hero.avia-slideshow-hero_large .avia-slideshow-inner {
    height: auto !important;
  }

  .avia_hero .hero-background-image {
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    position: absolute;
  }

  .avia_hero .av-video-slide .mejs-mediaelement {
    height: 100%;
    position: absolute;
    width: 200%;
    top: 0;
    left: 50%;
    transform: translateX(-50%) !important;
  }

}

@media screen and (max-width: 600px) and (orientation: portrait) {

  .avia_hero[data-size="hero_large"],
  .avia_hero.avia-slideshow-hero_large .avia-slideshow-inner {
    /* height: auto !important; */
    max-height: none;
  }

  .avia_hero .avia-slideshow-inner > li:not(.av-video-slide), .avia_hero .hero-slide-bg {
    height: auto !important;
  }


  .avia_hero .hero-buttons .avia-button {
    display: block;
    width: 100%;
    margin: 1rem auto 4rem;
  }

  .avia_hero .hero-content {
    position: relative;
    top: auto;
    z-index: 4;
    padding: 1rem 0 4rem 0;
  }

  .avia_hero .hero-copy {
    padding-top: 2rem;
  }

  .avia_hero .hero-copy .hero-eyebrow {
    color: black !important;
  }

  .avia_hero .hero-copy h2 {
    color: var(--brick-red) !important;
  }

  .avia_hero .avia-slideshow-inner > li .hero-slide-bg  {
    display: flex;
    flex-direction: column-reverse;
  }

  .avia_hero .hero-background-image {
    flex: 0 0 auto;
    max-height: 400px;
    overflow: hidden;
  }

  .avia_hero .hero-background-image img,
  .avia_hero .hero-background-image picture {
    height: 100%;
  }

  /* Arrows and dots */

  #top .avia-slideshow-arrows a {
    top: 250px;
  }

  .responsive #top .avia-slideshow-controls a {
    display: block !important;
  }

  .avia-slideshow-dots a.goto-slide.active {
    background: var(--brick-red);
  }

  /* Override heights */
  .avia_hero[data-size="hero_standard"],
  .avia_hero.avia-slideshow-hero_standard .avia-slideshow-inner {
    height: auto;
  }

  .avia_hero[data-size="hero_large"],
  .avia_hero.avia-slideshow-hero_large .avia-slideshow-inner {
    max-height: none;
  }

}