.reference-wrap img {
  width: 100%;
}
.reference-wrap {
  width: calc(33.3333% - 2px);
  display: inline-block;
  overflow: hidden;
  box-sizing: content-box;
  overflow: hidden;
  vertical-align: top;
}
.reference-overlay {
  -webkit-transition: all .5s ease;
  transition: all .5s ease;
  position: absolute;
  left: 0;
  top: 0px;
  width: 100%;
  height: 100%;
  background-color: rgba(000,000,000,.5);
  color: #fff;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  opacity: 1;
  -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=100)";
  z-index: 1
}
.reference-overlay h3 {
  color: #fff;
  font-size: 23px;
  margin-top: 15px;
  line-height: 1;
}
.reference-overlay img {
  width: auto;
  max-width: 40%;
}
.reference .reference-image {
  -webkit-transition: all .5s ease;
  transition: all .5s ease;
  -webkit-filter: grayscale(40%);
  filter: url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg"><filter id="filter"><feColorMatrix type="matrix" color-interpolation-filters="sRGB" values="0.68504 0.28608 0.028880000000000003 0 0 0.08504 0.88608 0.028880000000000003 0 0 0.08504 0.28608 0.62888 0 0 0 0 0 1 0" /></filter></svg>#filter');
  filter: grayscale(40%);
}
.reference:hover .reference-overlay {
  background-color: rgba(000,000,000,.3);
}
.reference:hover .reference-image {
  -webkit-filter: grayscale(0%);
  filter: url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg"><filter id="filter"><feColorMatrix type="matrix" color-interpolation-filters="sRGB" values="1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0" /></filter></svg>#filter');
  filter: grayscale(0%);
}
.reference-wrap:nth-child(2) {
  border-left: 3px solid #fff;
  border-right: 3px solid #fff;
}
.reference {
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
}
.reference-wrap .reference:first-child {
  border-bottom: 3px solid #fff;
}

@media screen and (max-width: 767px) {
  .latest-references .reference-wrap {
    width: 100%;
    border: 0 !important;
  }
  .latest-references .reference {
    height: 53vw;
    width: 100%;
    border: 0 !important;
    margin-bottom: 10px;
  }
}