/*
	Tutorial: Css3 Image hover effect
	Author : WpFreeware
	Author URI: https://www.wpfreeware.com/

*/
/* BASE - Base tyles, Variables, Mixins, etc. */
/* Style for Demo */

body {
  overflow-x: hidden;
  overflow-y: scroll;
}

/* Third Section */
#third-section {
  background-color: #cccccc;
  display: inline;
  width: 100%;
  float: left;
}


/* LAYOUTS - Page layout styles */


/*  Start CSS3 Image Hover Effect */


/*  Demo 2 */
.wpf-demo-2 {
  background-color: #FFF;
  display: block;
  width: 220px;
  height: 220px;
  overflow: hidden;
  position: relative;
  -webkit-transition: all 0.5s;
  -moz-transition: all 0.5s;
  -ms-transition: all 0.5s;
  -o-transition: all 0.5s;
  transition: all 0.5s;
}
.wpf-demo-2 img {
  height: 100%;
  width: 100%;
  -moz-transform: scale(1.5);
  -o-transform: scale(1.5);
  -ms-transform: scale(1.5);
  -webkit-transform: scale(1.5);
  transform: scale(1.5);
  -webkit-transition: all 0.5s;
  -moz-transition: all 0.5s;
  -ms-transition: all 0.5s;
  -o-transition: all 0.5s;
  transition: all 0.5s;
}
.wpf-demo-2:hover img {
  -moz-transform: scale(1);
  -o-transform: scale(1);
  -ms-transform: scale(1);
  -webkit-transform: scale(1);
  transform: scale(1);
}
.wpf-demo-2:hover .view-caption {
  -moz-transform: translateY(-100%);
  -o-transform: translateY(-100%);
  -ms-transform: translateY(-100%);
  -webkit-transform: translateY(-100%);
  transform: translateY(-100%);
}
.wpf-demo-2:hover .view-caption p {
  -moz-transform: translateX(0%);
  -o-transform: translateX(0%);
  -ms-transform: translateX(0%);
  -webkit-transform: translateX(0%);
  transform: translateX(0%);
}
.wpf-demo-2 .view-caption {
  -moz-transform: translateY(0%);
  -o-transform: translateY(0%);
  -ms-transform: translateY(0%);
  -webkit-transform: translateY(0%);
  transform: translateY(0%);
  background-color: #FFF;
  -webkit-transition: all 0.5s;
  -moz-transition: all 0.5s;
  -ms-transition: all 0.5s;
  -o-transition: all 0.5s;
  transition: all 0.5s;
  padding: 0px;
  height: 50%;
	text-align: center;
}
.wpf-demo-2 .view-caption h4 {
  color: #555;
  font-size: 14px;
  font-weight: normal;
  margin-bottom: 15px;
  margin-top: 5px;
}
.wpf-demo-2 .view-caption p {
  font-size: 12px;
  display: inline-block;
  -moz-transform: translateX(-500%);
  -o-transform: translateX(-500%);
  -ms-transform: translateX(-500%);
  -webkit-transform: translateX(-500%);
  transform: translateX(-500%);
  -webkit-transition: all 0.5s;
  -moz-transition: all 0.5s;
  -ms-transition: all 0.5s;
  -o-transition: all 0.5s;
  transition: all 0.5s;
}