.hero {
  position: relative;
  background-color: var(--parent-color-dark);
  overflow: hidden;
  display: flex;
  align-items: center;
  margin-top: -2.5rem;
  padding-top: 5rem;
  @include media-breakpoint-up(sm) {
    padding-top: 2.5rem;
    height: calc(25vh + #{$font-size-base * 3});
    min-height: 20vw;
  }

  &.is-condensed {
    @include media-breakpoint-up(lg) {
      height: calc(25vh + #{$font-size-base * 3});
      min-height: inherit;
    }
  }

  &.is-expanded {
    @include media-breakpoint-up(lg) {
      height: calc(46vh + #{$font-size-base * 3});
      min-height: 25vw;
    }

    .hero-text {
      margin-bottom: 5vh;
    }
  }

  &.is-fullsize {
    @include media-breakpoint-up(lg) {
      height: calc(67vh + #{$font-size-base * 3});
      min-height: 33vw;
    }

    .hero-text {
      margin-bottom: 15vh;
    }
  }
}


.hero-text {
  z-index: 1;
  position: relative;
  @extend .container;

}


.hero-header {
  text-shadow: 0 0 .5em rgba(0, 0, 0, .3);
  //font-size: $h1-font-size * 0.5;
  //@include media-breakpoint-up(sm) {
  //  font-size: $h1-font-size;
  //}
  @include font-size(5rem);
  line-height: 1;
  color: $white;
  font-weight: $font-weight-bold;
  animation: .5s ease-out .5s backwards slideIn;

}


.hero-subheader {
  @extend .hero-header;
  font-weight: $font-weight-light;
  animation-duration: .45s;
  animation-delay: .75s;
}


.hero-bg {
  position: absolute;
  overflow: hidden;
  height: 100%;
  width: 100%;
  top: 0;
  left: 0;

  &:after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top:0;
    background-color: var(--parent-color);
    opacity: .2;
  }

  picture {
    width: 100%;
    height: 100%;
    display: flex;
  }

  picture img {
    object-fit: cover;
    width: 100%;
  }
}


/* Animation */

@keyframes slideIn {
  0% {
    opacity: 0;
    transform: translateY(20px)
  }
  100% {
    opacity: 1;
    transform: translateY(0px)
  }
}
