.photo1 a {
  position: relative;
  z-index: 1;
  display: inline-block;
  overflow: hidden;
  height: auto;
  text-align: center;
  background: #4F5591;
}
@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) {
  .photo1 a {
    max-width: 100%;
  }
}
.photo1 a img {
  opacity: 1;
  transition: opacity 0.5s;
  position: relative;
  max-width: 100%;
  height: auto;
  display: block;
}
.photo1 a:hover img {
  opacity: 0.6;
}
.photo1 a div {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}
.photo1 a div::before, .photo1 a div::after {
  position: absolute;
  top: 2px;
  right: 2px;
  bottom: 2px;
  left: 2px;
  content: "";
  opacity: 0;
  transition: opacity 0.5s, transform 0.5s;
  pointer-events: none;
}
.photo1 a div::before {
  border-top: 2px solid #fff;
  border-bottom: 2px solid #fff;
}
.photo1 a div::after {
  border-right: 2px solid #fff;
  border-left: 2px solid #fff;
}
.photo1 a:hover div::before, .photo1 a:hover div::after {
  opacity: 1;
}
.photo1 div img {
  display: block;
  position: absolute;
  top: 50%;
  left: 50%;
  margin-top: -21px !important;
  margin-left: -21px !important;
  width: 42px !important;
  height: 42px !important;
  -webkit-transition: transform 0.3s ease 0s;
  -moz-transition: transform 0.3s ease 0s;
  -ms-transition: transform 0.3s ease 0s;
  -o-transition: transform 0.3s ease 0s;
  transition: transform 0.3s ease 0s;
  transform: scale(0);
  font-size: 32px;
  color: #fff;
}
.photo1 a:hover div img {
  transform: scale(1);
  opacity: 1;
}