.effects {
  position: relative;
  width: 100.2%;
  color: #fff;
  text-align: left;
  background: #000;
}

.effects *,
.effects:before,
.effects:after {
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  -webkit-transition: all 0.4s ease;
  transition: all 0.4s ease;
}

.effects img {
  max-width: 100%;
  backface-visibility: hidden;
  vertical-align: top;
}

.effects:before,
.effects:after {
  position: absolute;
  top: 20px;
  right: 20px;
  content: '';
  background-color: #fff;
  z-index: 1;
  opacity: 0;
}

.effects:before {
  width: 0;
  height: 1px;
}

.effects:after {
  height: 0;
  width: 1px;
}

.effects figcaption {
  position: absolute;
  left: 0;
  bottom: 0;
}

.effects:hover img,
.effects.hover img {
  filter: alpha(opacity=20);
  -webkit-opacity: 0.2;
  opacity: 0.2;
}

.effects:hover:before,
.effects.hover:before,
.effects:hover:after,
.effects.hover:after {
  opacity: 1;
  -webkit-transition-delay: 0.25s;
  transition-delay: 0.25s;
}

.effects:hover:before,
.effects.hover:before {
  width: 40px;
}

.effects:hover:after,
.effects.hover:after {
  height: 40px;
}

/*Smartphone css*/
@media screen and (max-width: 480px) {
.effects:before,
.effects:after {
  top: 25px;
  right: 20px;
}
}

@media screen and (min-width:481px) and (max-width:600px) {

}

@media screen and (min-width:601px) and (max-width:767px) {

}

@media screen and (min-width:768px) and (max-width:900px) {

}

@media screen and (min-width:901px) and (max-width:1024px) {

}

@media screen and (min-width:1025px) and (max-width:1240px) {

}