/*-------------------------------------------------------*/
/* Portfolio
/*-------------------------------------------------------*/

.works-grid.grid-5-col .work-item { width: 20%; }
.works-grid.grid-4-col .work-item { width: 25%; }
.works-grid.grid-3-col .work-item { width: 33.333%; }
.works-grid.grid-2-col .work-item { width: 50%; }
.works-grid.small-gutter { margin-left: -4px; margin-right: -4px; }
.works-grid.small-gutter .work-item { padding: 0 4px; }
.works-grid.gutter .work-item { padding: 0 20px; }
.works-grid.no-gutter .work-item { padding: 0; }
.works-grid.small-gutter .work-container { margin-bottom: 8px; }
.works-grid.small-gutter.with-title .work-container { margin-bottom: 30px; }
.works-grid.no-gutter .work-img { border-radius: 0; }


.flickity-slider-wrap .work-container,
.collage .work-container {
  margin-bottom: 0;
}

.flickity-slider-wrap.items-4 .carousel-cell {
  width: 25%;
}

.flickity-slider-wrap.items-3 .carousel-cell {
  width: 33.333%;
}

.flickity-slider-wrap.with-spacing {
  margin: 0 -4px;

  .carousel-cell {
    padding: 0 4px;
  }
}

#slider-3-items .work-item {
  width: 33.333%;
  padding: 0 15px;
}

#photography-slider img {
  padding: 0 4px;
  height: 100%;
  max-width: none;

  @media (max-width: 991px) {
    height: 400px;
  }
}

@media (max-width: 1280px) {
  #photography-slider .work-description {
    text-align: center;
  }
}


#slider-single .work-item {
  width: 100%;
  margin: 0;
  padding: 0;
}

.owl-carousel .work-container,
.gallery-cell .work-container,
.works-grid.no-gutter .work-container {
  margin-bottom: 0;
}

.portfolio-filter {
  margin-bottom: 50px;
  font-size: 12px;

  a {
    display: inline-block;
    font-family: $heading-font;
    font-weight: 700;
    padding: 0 10px;
    color: lighten($text-color, 30%);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.1em;

    &.active,
    &:hover {
      color: $heading-color;
    }
  } 
}

.work-container {
  margin-bottom: 30px;
  overflow: hidden;
}

.hover-trigger:hover img {
  @include transform(scale(1.3,1.3));
} 

.work-item {
  position: relative;
  float: left;

  &.hover-1 {
    .work-description {
      top: 55%;
      bottom: auto;
      text-align: center;
      @include transform (translateY(-50%));
    }

    &:hover .work-description {
      top: 50%;
    }
  }

  &.hover-2 {
    .work-description {
      top: auto;
      bottom: -50px;
    }

    &:hover .work-description {
      bottom: 0;
    }
  }
}

.work-img {
  position: relative;
  overflow: hidden;  
  z-index: 1;

  img {
    width: 100%;
    height: auto;
    overflow: hidden;
    @include transition ( transform 3s ease-in-out, filter .7s ease-in-out);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
  }

  & > a {
    display: block;
    position: relative;
    width: 100%;
    height: 100%;
  }
}

.hover-overlay .work-description {
  color: #fff;

  h3,
  span {
    color: inherit;
  }
}

.work-description {
  padding: 20px 30px;
  position: absolute;
  display: block;
  width: 100%;
  left: 0;
  bottom: 0;
  z-index: 3;
  @include transition ( .3s cubic-bezier(0.43, 0.07, 0.61, 0.95));

  h3 {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 2px;
    color: #fff;
  }

  & > span {
    color: #fff;
    font-size: 13px;
  }
}


/* With Title
/*-------------------------------------------------------*/
.works-grid.with-title {

  .work-container {
    position: relative;
    overflow: visible;
    box-shadow: 0px 1px 4px 0px rgba( 0, 0, 0, .13 );
    @include transition($all);
  }

  &.small-gutter .work-container {
    margin-bottom: 8px;
  }

  .work-description {
    position: relative;
    bottom: auto;
    padding: 26px 10px 20px;
    text-align: center;
    background-color: #fff;    

    h3 {
      color: $heading-color;
    }

    span {
      color: $text-color;
    }
  }
}

.hover-up:hover .work-container {
  box-shadow: 0px 4px 20px 0px rgba( 0, 0, 0, .13 );
}



/* Black and White
/*-------------------------------------------------------*/
.grayscale img {
   filter: url("data:image/svg+xml;utf8,<svg xmlns=\'http://www.w3.org/2000/svg\'><filter id=\'grayscale\'><feColorMatrix type=\'matrix\' values=\'0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0 1 0\'/></filter></svg>#grayscale");    
  -webkit-filter: grayscale(100%);
  -moz-filter: grayscale(100%);
  -ms-filter: grayscale(100%);
  filter: grayscale(100%);
  filter: gray;
}

.grayscale .work-item:hover img {
  -webkit-filter: none;
  -moz-filter: none;
  -ms-filter: none;
  filter: none;
}


/*-------------------------------------------------------*/
/* Masonry
/*-------------------------------------------------------*/

#masonry-grid {
  .work-item.quarter {
    width: 25%;
    float: left;
  }

  .work-item.half {
    width: 50%;
  }
}



/*-------------------------------------------------------*/
/* Single Gallery
/*-------------------------------------------------------*/

.project-description {
  
  h1 {
    font-size: 26px;
    margin-bottom: 5px;
  }

  .project-category {
    font-size: 13px;
  }
}

.figure {
  margin: 40px 0;
  
  figcaption {
    margin-top: 10px;
  }
}

figcaption {
  font-size: 14px;
}

.product_meta {

  .detail-wrap {
    display: table;
    table-layout: fixed;
  }

  .detail-label,
  .detail-value {
    display: table-cell;
    line-height: 28px;
    font-size: 14px;
  }

  .detail-label {
    min-width: 110px;
    color: $heading-color;
  }
}


/*-------------------------------------------------------*/
/* Project Nav
/*-------------------------------------------------------*/

.project-nav {
  padding: 47px 0;
  border-top: 1px solid $border-color;

  li {
    position: relative;
  }

  li a {
    font-family: $heading-font;
    color: $heading-color;
    font-size: 14px;
    font-weight: 600;

    &:hover {
      color: $text-color;
    }
  }

  .page-prev a,
  .page-next a {
    position: relative;
    @include transition ($all);
  }

  .page-prev i,
  .page-next i {
    font-size: 13px;
    position: absolute;
    top: 3px;
  }

  .page-prev {
    i {
      left: 0;
    }

    a {
      padding-left: 24px;
    }

    a:hover {
      padding-left: 20px;
    }
  }

  .page-next {
    text-align: right;
    i {
      right: 0;
    }

    a {
      padding-right: 24px;
    }

    a:hover {
      padding-right: 20px;
    }
  }
  
  .back-to-projects {
    text-align: center;
  }
}