.mdm-resident {
  padding: 26px;
  text-align: center;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  max-width: 304px;
  margin: 22px auto 0;
  position: relative;
  -webkit-transition: all 0.3s;
  transition: all 0.3s;
  position: relative;
}

.mdm-resident:before, .mdm-resident:after {
  position: absolute;
  content: "";
  left: 0;
  top: 0;
  width: calc(100% - 2px);
  height: calc(100% - 2px);
  -webkit-transition: all 0.3s;
  transition: all 0.3s;
  pointer-events: none;
}

.mdm-resident:after {
  border: solid 1px #000000;
  opacity: 1;
  z-index: 2;
}

.mdm-resident:before {
  border: solid 1px transparent;
  -o-border-image: linear-gradient(84.36deg, #ED8AE4 5.36%, #0D96EE 94.85%);
     border-image: linear-gradient(84.36deg, #ED8AE4 5.36%, #0D96EE 94.85%);
  border-image-slice: 1;
  opacity: 1;
  z-index: 1;
}

.mdm-resident:hover:after {
  opacity: 0;
}

@media only screen and (min-width: 768px) {
  .mdm-resident {
    -webkit-box-flex: 1;
        -ms-flex: auto;
            flex: auto;
    width: calc(33.3333333333% - 22px);
    max-width: calc(33.3333333333% - 22px);
    margin: 22px 0 0 22px;
  }
}
@media only screen and (min-width: 1024px) {
  .mdm-resident {
    width: calc(25% - 22px);
    max-width: calc(25% - 22px);
  }
}
.mdm-resident__logo {
  display: block;
  max-width: 284px;
  overflow: hidden;
}

.mdm-resident__img {
  width: 100%;
}

.mdm-resident__name {
  font-size: 1rem;
  line-height: 1.5rem;
  text-align: center;
  letter-spacing: 0.0625rem;
  text-transform: uppercase;
  font-family: TTNormsProBold, serif;
  margin: 20px 0 0 0;
}

.mdm-resident__location {
  font-size: 0.875rem;
  line-height: 1.25rem;
  color: #363636;
  font-family: ManropeMedium, serif;
  margin: 0 0 16px 0;
}

.mdm-resident .mdm-breadcrumbs {
  margin: 8px 0 20px;
}

.mdm-resident__link {
  font-size: 0.875rem;
  line-height: 0.875rem;
  color: #1796EE;
  margin: auto auto 0;
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
  border-bottom: solid 1px transparent;
  -webkit-transition: border-bottom 0.3s;
  transition: border-bottom 0.3s;
}

.mdm-resident__link:hover {
  border-bottom: solid 1px #1796EE;
}