* {
  -moz-box-sizing: border-box;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
}

img {
  width: 100%;
  height: 240px;
  display: block;
  -moz-transition: all 0.4s ease-in-out;
  -o-transition: all 0.4s ease-in-out;
  -webkit-transition: all 0.4s ease-in-out;
  transition: all 0.4s ease-in-out;
}

.wrap {
  max-width: 1000px;
  margin: 0 auto;
  padding-left: 20px;
}

.portfolio {
  margin: 0;
  overflow: hidden;
  padding: 0;
}
.portfolio li {
  float: left;
  width: 100%;
  list-style: none;
  -moz-transition: all 0.4s ease-in-out;
  -o-transition: all 0.4s ease-in-out;
  -webkit-transition: all 0.4s ease-in-out;
  transition: all 0.4s ease-in-out;
  -webkit-backface-visibility: hidden;
  -webkit-perspective: 1000;
}
.portfolio figure {
  margin: 0 20px 20px 0;
  position: relative;
  text-align: center;
  border: 3px solid #000;
  -moz-border-radius: 8px;
  -webkit-border-radius: 8px;
  border-radius: 8px;
  overflow: hidden;
  background: url("http://www.seanmichael.me/bathtubgin/wp-content/themes/sean-michael-design/images/fancybox_overlay.png") repeat transparent;
  -moz-transition: all 0.4s ease-in-out;
  -o-transition: all 0.4s ease-in-out;
  -webkit-transition: all 0.4s ease-in-out;
  transition: all 0.4s ease-in-out;
}
.portfolio figure:hover {
  border: 3px solid #D29990;
}
.portfolio figure:hover img {
  opacity: .3;
  -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=50)";
  -moz-transform: scale(5);
  -ms-transform: scale(5);
  -webkit-transform: scale(5);
  transform: scale(5);
}
.portfolio figure:hover figcaption {
  top: 50%;
  margin-top: -20px;
}
.portfolio figure:hover h3 {
  bottom: 70%;
}
.portfolio figcaption {
  position: absolute;
  width: 100%;
  top: 100%;
  left: 0;
  -moz-transition: all 0.2s ease-in-out 0.2s;
  -o-transition: all 0.2s ease-in-out 0.2s;
  -webkit-transition: all 0.2s ease-in-out;
  -webkit-transition-delay: 0.2s;
  transition: all 0.2s ease-in-out 0.2s;
}

.tabs {
  margin: 0 0 20px 0;
  padding: 0;
  overflow: hidden;
}
.tabs li {
  list-style: none;
  float: left;
  margin: 20px 20px 0 0;
}

[data-filter*="group"] {
  -moz-border-radius: 8px;
  -webkit-border-radius: 8px;
  border-radius: 8px;
  width: auto;
  height: auto;
  padding: 0 1em;
  border-bottom: 4px solid #c3786c;
  position: relative;
  -moz-transition: none;
  -o-transition: none;
  -webkit-transition: none;
  transition: none;
}
[data-filter*="group"]:active {
  top: 3px;
  border-bottom: none;
}
[data-filter*="group"].active {
  background-color: #e28e80;
}

@media (min-width: 460px) {
  .portfolio li {
    width: 50%;
  }
}
@media (min-width: 740px) {
  .portfolio li {
    width: 33%;
  }
}