/*

  POST FEATURED

*/

/* -----------------------------------------------------
    post--featured
    featured posts list
----------------------------------------------------- */
.post--featured {
  position: relative;
  margin: 0 0 40px 0;

  font-size: .9em;

  nav {
    overflow: hidden;
    overflow-x: auto;
    white-space: nowrap;

    > i.icon-arrow-left {
      display: none;
    }
  }

  h2 {
    position: absolute;
    top: 10px;
    left: 0;
    z-index: 10;
  }

  @include bp-medium {
    margin: 0 0 60px 0;
    font-size: 1em;
  }

  @include bp-large {
    font-size: 1.1em;
    margin: 0 0 80px 0;
  }

  .nav--share {
    float: right;

    h3 {
      margin: 0;
      float: left;
      line-height: 40px;
      padding-right: 1em;
      font-size: .8em;
    }

    a {
      width: 40px;
      text-align: center;
      padding: 0;

      i {
        padding: 0;
        font-size: 1.1em;

        &:before {
          margin: 0;
        }
      }
    }

    @include bp-micro {
      h3 {
        display: none;
      }
    }
  }

  i[class^='icon-arrow'] {
    display: none;
    position: absolute;
    height: 100%;
    width: 40px;

    color: #fff;
    top: 0;
    z-index: 9;
    text-align: center;

    pointer-events: none;

    @include bp-medium {
      font-size: 1.2em;
      width: 80px;
    }

    &:before {
      position: absolute;
      top: 50%;
      margin-top: -11.5px;
    }
  }

  i.icon-arrow-left {
    background: linear-gradient(90deg, rgba(34,34,34,1) 0%, rgba(34,34,34,0) 100%);
    left: 0;

    &:before {
      right: 20%;
    }
  }

  i.icon-arrow-right {
    background: linear-gradient(90deg, rgba(34,34,34,0) 0%, rgba(34,34,34,1) 100%);    
    right: 0;

    &:before {
      left: 20%;
    }

    &:after {
      display: none;
      content: 'Swipe to see more';
      position: absolute;
      width: 60px;
      font-size: .75em;
      line-height: 1em;
      font-style: normal;
      top: 50%;
      left: -55px;
      white-space: normal;
      text-align: right;
      margin-top: -1.4em;
      opacity: .8;

      @include bp-medium {
        content: 'Scroll to see more';
        left: -45px;
        font-size: .5em;
        margin-top: -1.1em;
      }
    }
  }

  nav.__notscrolled i.icon-arrow-right:after {
    display: block;
  }

  nav.__right {
    i.icon-arrow-right {
      display: block;
    }
  }

  nav.__left {
    i.icon-arrow-left {
      display: block;
    }
  }
}


.post--featured_item {
  display: inline-block;

  position: relative;

  width: 75%;

  height: 0;
  padding-top: 53.379%;
  overflow: hidden;

  vertical-align: bottom;

  white-space: normal;
  z-index: 1;

  picture, img {
    display: block;
    z-index: 1;
  }

  picture {
    background: url(/images/loading.gif) no-repeat 50% 50%;
    background-size: 64px 64px;
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
  }

  img {
    position: absolute;
    width: 100%;
    top: 0;
  }

  header {
    position: absolute;
    bottom: 15px;
    left: 20px;
    z-index: 5;
    max-width: 75%;
    
    h3 {
      position: relative;
      margin: 0;  
      font-size: .95em;
  
      span {
        background: #fff;
        color: $sch-black;
        padding: 5px 0;
        line-height: 1.1em;
        box-shadow: 10px 0 0 #fff, -10px 0 0 #fff;
        color: #fff;
  
        &:after {
          content: attr(title);
          color: $sch-black;
          position: absolute;
          left: 0;
          top: 0;
        }
      }
    }

    @include bp-large {
      span {
        font-size: 1.2em;
      }

      max-width: 65%;
    }

    .post--meta-category {
      position: absolute;
      display: block;

      background: $sch-blue;
      color: #fff;

      height: 26px;
      top: -33px;
      left: -10px;
      padding: 0 7px;

      text-transform: uppercase;
      line-height: 26px;      
      font-size: .7em;
      font-style: normal;
    }
      
  }
}
