
* {
  margin: 0;
  padding: 0;
  outline: 0;
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
}

.hidden { display: none; }

#filter {
  text-align: center;
  background-color: #333;
  padding: 15px;
}

#filter button {
  border: 0;
  background-color: #333;
  font-family: 'Open Sans', sans-serif;
  font-size: 14px;
  color: #FFF;
  cursor: pointer;
  padding: 5px 20px;
}

#filter button.active { background-color: #406174; }

#filter button:focus { outline: 0; }

#posts {
  max-width: 1200px;
  margin: 0 auto;
}

#posts .portfolio_post {
  max-width: 300px;
  float: left;
  height: 250px;
  overflow: hidden;
  text-align: center;
  cursor: pointer;
  position: relative;
  z-index: 1;
  display: inline-block;
  margin-left: 35px !important;
      margin-bottom: 10px;

}

#posts .portfolio_post img {
  position: relative;
  display: block;
  width: -webkit-calc(100% + 60px);
  width: calc(100% + 60px);
  opacity: 1;
  -webkit-transition: opacity 0.35s, -webkit-transform 0.35s;
  transition: opacity 0.35s, transform 0.35s;
  -webkit-transform: translate3d(-30px, 0, 0) scale(1.12);
  transform: translate3d(-5px, 0, 0) scale(1.12);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  min-height: 100%;
}

#posts .portfolio_post:hover img {
  opacity: 0.5;
  -webkit-transform: translate3d(0, 0, 0) scale(1);
  transform: translate3d(0, 0, 0) scale(1);
}

#posts .portfolio_post .post-content {
	font-family:'Open Sans', sans-serif;
	font-size: 18px;	
	padding: 2em;
	color: #ffffff;
	text-transform: uppercase;
	-webkit-backface-visibility: hidden;
	backface-visibility: hidden;
}

#posts .portfolio_post .post-content::before,
#posts .portfolio_post .post-content::after { pointer-events: none; }

#posts .portfolio_post .post-content,
#posts .portfolio_post a {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

#posts .portfolio_post a {
  z-index: 1000;
  text-indent: 200%;
  white-space: nowrap;
  font-size: 0;
  opacity: 0;
}

#posts .portfolio_post h2 {
  font-size:20px !important;
  font-family:'Open Sans', sans-serif !important;
  word-spacing: -0.15em;
  font-weight: 700;
  position: absolute;
  right: 0;
  bottom: 0;
  padding: 1em 1.2em;
}

#posts .portfolio_post h2,
#posts .portfolio_post p { margin: 0; }

#posts .portfolio_post p {
	line-height: 20px !important;
	letter-spacing: 1px !important;
	font-size: 68.5% !important;
	padding: 0 10px 0 0;
	width: 50% !important;
	border-top: none;
	border-bottom:none;
	border-left: none;
	border-right: 1px solid #fff !important;
	text-align: right !important;
	opacity: 0;
	-webkit-transition: opacity 0.35s, -webkit-transform 0.35s;
	transition: opacity 0.35s, transform 0.35s;
	-webkit-transform: translate3d(-40px, 0, 0);
	transform: translate3d(-40px, 0, 0);
}

#posts .portfolio_post:hover p {
  opacity: 1;
  -webkit-transform: translate3d(0, 0, 0);
  transform: translate3d(0, 0, 0);
}


/*	Responsive code */
/* Tablet Layout: 768px. */
@media only screen and (min-width: 768px) and (max-width: 991px) {
#posts .portfolio_post {width: 150px;height:150px;}
#posts .portfolio_post h2 {font-size: 14px !important;}
#posts .portfolio_post .post-content {font-size: 14px;}
#posts .portfolio_post p {width:100% !important; padding: 0 5px 0 0!important; line-height: 15px !important;}
#posts .portfolio_post img {transform: translate3d(-5px, 0, 0) scale(1.12);transition: opacity 0.0s, transform 0.0s;}

}

/* Mobile Layout: 320px.*/

@media only screen and (max-width: 767px) {
#posts .portfolio_post {width: 150px;height:150px;}
#posts .portfolio_post h2 {font-size: 14px !important;}
#posts .portfolio_post .post-content {font-size: 14px;}
#posts .portfolio_post p {width:100% !important; padding: 0 5px 0 0!important; line-height: 15px !important;}
#posts .portfolio_post img {transform: translate3d(-5px, 0, 0) scale(1.12);transition: opacity 0.0s, transform 0.0s;}


}


/* Wide Mobile Layout: 480px. */

@media only screen and (min-width: 480px) and (max-width: 767px) {
#posts .portfolio_post {width: 150px;height:150px;}
#posts .portfolio_post h2 {font-size: 14px !important;}
#posts .portfolio_post .post-content {font-size: 14px;}
#posts .portfolio_post p {width:100% !important; padding: 0 5px 0 0!important; line-height: 15px !important;}
#posts .portfolio_post img {transform: translate3d(-5px, 0, 0) scale(1.12);transition: opacity 0.0s, transform 0.0s;}

}