
.modal {
  position: relative;
  float: left;
  margin: 10px 1%;
  min-width: 300px -60px;
  max-width: 300px;
  width: 100%;
  color: #ffffff;
  text-align: left;
  background-color: #000000;
  font-size: 15px;
}
.modal * {
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  -webkit-transition: all 0.4s ease-in;
  transition: all 0.4s ease-in;
}
.modal img {
  position: relative;
  max-width: 100%;
  vertical-align: top;
}
.modal figcaption {
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  opacity: 0;
  padding: 20px 30px;
}
.modal figcaption:before,
.modal figcaption:after {
  width: 1px;
  height: 0;
}
.modal figcaption:before {
  right: 0;
  top: 0;
}
.modal figcaption:after {
  left: 0;
  bottom: 0;
}
.modal h3,
.modal p {
  line-height: 1.5em;
}
.modal h3 {
  margin: 0 0 4px;
  font-weight: 700;
  text-transform: uppercase;
}
.modal p {
  font-size: 0.8em;
  font-weight: 500;
  margin: 0 0 15px;
}
.modal a {
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  left: 0;
  z-index: 1;
}
.modal:before,
.modal:after,
.modal figcaption:before,
.modal figcaption:after {
  position: absolute;
  content: '';
  background-color: #ffffff;
  z-index: 1;
  -webkit-transition: all 0.4s ease-in;
  transition: all 0.4s ease-in;
  opacity: 0.8;
}
.modal:before,
.modal:after {
  height: 1px;
  width: 0%;
}
.modal:before {
  top: 0;
  left: 0;
}
.modal:after {
  bottom: 0;
  right: 0;
}
.modal:hover img,
.modal.hover img {
  opacity: 0.4;
}
.modal:hover figcaption,
.modal.hover figcaption {
  opacity: 1;
}
.modal:hover figcaption:before,
.modal.hover figcaption:before,
.modal:hover figcaption:after,
.modal.hover figcaption:after {
  height: 100%;
}
.modal:hover:before,
.modal.hover:before,
.modal:hover:after,
.modal.hover:after {
  width: 100%;
}
.modal:hover:before,
.modal.hover:before,
.modal:hover:after,
.modal.hover:after,
.modal:hover figcaption:before,
.modal.hover figcaption:before,
.modal:hover figcaption:after,
.modal.hover figcaption:after {
  opacity: 0.1;
}
