/*-------------------------------------------------------*/
/* Hero SLider
/*-------------------------------------------------------*/
.hero {

  &__slide__entry {
    height: 72vh;

    @include bp-xs-down {
      height: 50vh !important;
    }
  }
  
  &__img-holder {
    height: 100%;
    position: relative;
    background-size: cover;
    background-position: center;

    .container {
      height: 100%;
      position: relative;
    }
  }

  &__entry__header {
    position: absolute;
    bottom: 45px;
    left: 15px;
    right: 15px;

    @include bp-xs-down {
      bottom: 10px;
    }
  }

  &__entry__title {
    color: #fff;
    margin-top: 11px;

    a:hover {
      color: #fff;
    }

    @include bp-xs-down {
      font-size: 24px;
    }
  }

  &__entry__category {
    background-color: $main-color;
    display: inline-block;    
    border-radius: 3px;
    color: #fff;

    a {
      color: #fff;
      font-size: 10px;
      display: inline-block;
      line-height: 26px;
      font-family: $heading-font;
      text-transform: uppercase;
    }

    a:first-child {
      padding-left: 10px;
    }

    a:last-child {
      padding-right: 10px;
    }
  }

  .flex-direction-nav .flex-prev {
    left: 10px;
    opacity: 1;
  }

  .flex-direction-nav .flex-next {
    right: 10px;
    opacity: 1;
  }

}

/*-------------------------------------------------------*/
/* Page Title
/*-------------------------------------------------------*/
.page-title {
  padding: 60px 0;
  position: relative;
  width: 100%;
  overflow: hidden;  
  display: block;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  background-color: $bg-light;

  .archive &,
  .search-results &,
  .search-no-results &,
  .error404 & {
    background-color: #fff;
  }

  &.bg-img {
    height: 600px;
    background-color: $bg-dark;
  }

  @include bp-sm-down {
    &,
    &.bg-img {
      height: auto;
      padding: 50px 0;
    }
  }
  
  .container {
    height: 100%;
  }

  &-holder {
    width: 100%;
    height: 100%;
    display: table;
    position: relative;
  }

  &-inner {
    display: table-cell;
    vertical-align: middle;
  }

  &-title {
    font-size: 36px;
    margin-bottom: 0;
  }

  .bg-img &-title {
    font-size: 46px;
    margin-top: 15px;
    margin-bottom: 30px;

    @include bp-sm-down {
      font-size: 28px;
      margin-bottom: 0;
    }
  }
}

.breadcrumbs {

  &-list-item {
    display: inline-block;

    &:after {
      content: '/';
      display: inline-block;
      margin: 0 6px;
    }

    &:last-child:after {
      display: none;
    }
  }

  &-link {
    color: $text-color;
  }
}


/*-------------------------------------------------------*/
/* About me (page)
/*-------------------------------------------------------*/

h5 + .social-icons {
  margin-top: 20px;
}

.about-page {
  background-color: #fff;

  h1 {
    font-size: 30px;
    line-height: 1.3;

    @include bp-sm-down {
      font-size: 24px;
    }
  }

  p {
    margin-bottom: 30px;
  }

  p:first-of-type {
    font-size: 18px;
    line-height: 30px;
    margin-top: 15px;
  }
}


/*-------------------------------------------------------*/
/* Contact (page)
/*-------------------------------------------------------*/

.contact-page {
  background-color: #fff;

  p {
    font-size: 18px;
    line-height: 30px;
    margin-bottom: 20px;
    margin-top: 15px;
  }
}


/*-------------------------------------------------------*/
/* Default Page Template
/*-------------------------------------------------------*/

.section-page {
  background-color: #fff;
}


/*-------------------------------------------------------*/
/* 404 (page)
/*-------------------------------------------------------*/

.page-404 {
  h2 {
    font-size: 18px;
    text-align: center;
    margin-bottom: 20px;
  }

  .blog-content .search-form {
    max-width: 320px;
    margin: 0 auto;
  }

  .blog-content .widget-search-input {
    background-color: #fff;
  }
}


/*-------------------------------------------------------*/
/* Flexbox
/*-------------------------------------------------------*/

.flex-parent {
  display: -webkit-flex;
  display: -ms-flex;
  display: flex;
  -webkit-flex-flow: row nowrap;
  -ms-flex-flow: row nowrap;
  flex-flow: row nowrap;
  -webkit-justify-content: space-between;
  -ms-flex-pack: justify;
  justify-content: space-between;
  align-items: center;
  justify-content: center;
}

.flex-child {
  flex-grow: 1;
}


/*-------------------------------------------------------*/
/* Gallery Post
/*-------------------------------------------------------*/
.entry-article .gallery {
  display: flex;
  margin-bottom: 30px;

  .gallery-item {
    margin-right: 5px;
    margin-bottom: 5px;

    &:last-child {
      margin-right: 0;
    }
  }

  @include bp-sm-down {
    display: block;
    
    .gallery-item {
      margin-right: 0;
    }

    img {
      width: 100%;
    }

  }
}