

/*  Portfolio and Gallery */
.portfolio-sorting, .portfolio-sorting2 {
  text-transform: uppercase;
  padding: 20px 0;
  font-size: 12px;
}
.portfolio-sorting li a, .portfolio-sorting2 li a {
  padding: 5px 15px;
  color: #777;
}
.portfolio-sorting a:hover, .portfolio-sorting a.active, .portfolio-sorting2 a:hover, .portfolio-sorting2 a.active {
  color: #fff;
  background: #999;
  border-radius: 20px;
}

#portfolio .list-inline li {
  display: inline-block;
  padding: 10px 5px 0;
}

.portfolio-item {
  font-size: 14px;
  position: relative;
  overflow: hidden;
  display: block;
  -webkit-transition: all 0.9s ease;
  -moz-transition: all 0.9s ease;
  transition: all 0.9s ease;
}

.portfolio-items {
  margin-bottom: 0;
}

.portfolio-item a {
  display: inline-block;
  color: #fff !important;
}
.portfolio-item a:hover .portfolio-overlay {
  opacity: 1;
  visibility: visible;
}
.portfolio-item img {
  max-width: none;
  position: relative;
  left: 0;
  width: 100%;
}
.portfolio-item:hover img {
  transform: scale(1.2, 1.2) translate(15px, 15px);
  -ms-transform: scale(1.2, 1.2) translate(15px, 15px);
  -webkit-transform: scale(1.2, 1.2) translate(15px, 15px);
}

.portfolio-overlay {
  // background: none repeat scroll 0 0 rgba(0, 0, 0, 0.6);
  height: 100%;
  position: absolute;
  width: 100%;
  top: 0;
  left: 0;
  transition: all 0.4s ease;
  -moz-transition: all 0.4s ease;
  -webkit-transition: all 0.4s ease;
  opacity: 1;
  visibility: hidden;
  overflow: hidden;
}

.portfolio-overlay .caption {
  position: absolute;
  bottom: 100px;
  left: 0;
  padding: 0 30px;
  text-align: left;
  transition: all 0.4s ease;
  -moz-transition: all 0.4s ease;
  -webkit-transition: all 0.4s ease;
  opacity: 1;
}

.portfolio-item a:hover .portfolio-overlay .caption {
  bottom: 10%;
  opacity: 1;
}
.portfolio-item a h5 {
  margin-bottom: 5px;
  color: #fff;
}

.portfolio-wide .portfolio-item {
  margin-bottom: 20px;
}

#portfolio .no-pad {
  padding: 30px !important;
}

#news-wide .portfolio-overlay {
  background: none repeat scroll 0 0 rgba(0, 0, 0, 0.4);
  opacity: 1;
  visibility: visible;
  overflow: hidden;
}
#news-wide .portfolio-overlay:hover {
  background: none repeat scroll 0 0 rgba(0, 0, 0, 0.6);
}
#news-wide .portfolio-overlay .caption {
  position: absolute;
  bottom: 20px;
  opacity: 1;
  max-width: 400px;
}
#news-wide .portfolio-overlay .caption:hover {
  background: none;
}

#news-wide .portfolio-item a:hover .portfolio-overlay .caption {
  bottom: 30px;
}

#gallery .portfolio-item {
  border: 2.5px solid transparent;
}
