.ih-item {
  position: relative;
  -webkit-transition: all 0.35s ease-in-out;
  -moz-transition: all 0.35s ease-in-out;
  transition: all 0.35s ease-in-out;
}
.ih-item,
.ih-item * {
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
}
.ih-item a {
  color: #333;
}
.ih-item a:hover {
  text-decoration: none;
}
/*.ih-item img {
  width: 100%;
  height: 100%;
}*/

.ih-item.square {
  position: relative;
  /*width: 316px;*/
  height: 320px;
  /*border: 8px solid #fff;
  box-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);*/
}
.ih-item.square .info {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  text-align: center;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}


.ih-item.square.effect4 {
  overflow: hidden;
  position: relative;
}


.ih-item.square.effect4 .img {
  -webkit-transition: all 0.35s ease-in-out;
  -moz-transition: all 0.35s ease-in-out;
  transition: all 0.35s ease-in-out;
}


.ih-item.square.effect4 .info {
  background: #f5f5f5;
  width: 100%;
   opacity: 0;
    -webkit-transition: opacity 0.5s ease-in-out;
    -moz-transition: opacity 0.5s ease-in-out;
    -ms-transition: opacity 0.5s ease-in-out;
    -o-transition: opacity 0.5s ease-in-out;
    transition: opacity 0.5s ease-in-out;
}
.ih-item.square.effect4 .info span.h3 {

  text-align: center;
  padding: 10px;
  background: transparent;
  margin: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
 
}
.ih-item.square.effect4 .info span.p {
  position: relative;
  padding: 10px;
  display:block;
  text-align: center;
  opacity: 0;
  -webkit-transition: all 0.35s ease-in 0s;
  -moz-transition: all 0.35s ease-in 0s;
  transition: all 0.35s ease-in 0s;
}

.ih-item.square.effect4 a:hover .info,
.ih-item.square.effect4 a:hover .info span.h3,
.ih-item.square.effect4 a:hover .info span.p,
.ih-item.square.effect4 a.hover .info,
.ih-item.square.effect4 a.hover .info span.h3,
.ih-item.square.effect4 a.hover .info span.p {
  opacity: 1;
}