.wrapper {
  /* height: 35vh; */
  margin: 2rem auto;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}

.contact-card {
  padding: 1rem;
  margin: 30px;
  width: 18rem;
  background-color: #f7f5ec;
  text-align: center;
  overflow: hidden;
  position: relative;
  height: 20rem;
}

.contact-card .picture {
  display: inline-block;
  height: 130px;
  width: 130px;
  margin-bottom: 20px;
  z-index: 1;
  position: relative;
}

.contact-card .picture::before {
  content: "";
  width: 100%;
  height: 0;
  border-radius: 50%;
  background-color: var(--colour-primary);
  position: absolute;
  bottom: 135%;
  right: 0;
  left: 0;
  opacity: 0.9;
  transform: scale(3);
  transition: all 0.3s linear 0s;
}

.contact-card:hover .picture::before {
  height: 100%;
}

.contact-card .picture::after {
  content: "";
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background-color: var(--colour-primary);
  position: absolute;
  top: 0;
  left: 0;
  z-index: -1;
}

.contact-card .picture img {
  width: 100%;
  height: auto;
  border-radius: 50%;
  transform: scale(1);
  transition: all 0.9s ease 0s;
}

.contact-card:hover .picture img {
  box-shadow: 0 0 0 14px #f7f5ec;
  transform: scale(0.7);
}

.contact-card .title {
  display: block;
  font-size: 15px;
  color: #4e5052;
  text-transform: capitalize;
}

.contact-card .email {
  width: 100%;
  padding: 0;
  margin: 0;
  background-color: var(--colour-primary);
  position: absolute;
  bottom: -100px;
  left: 0;
  transition: all 0.5s ease 0s;
}

.contact-card:hover .email {
  bottom: 0;
}

.contact-card .email li {
  display: inline-block;
}

.contact-card .email li a {
  display: block;
  padding: 10px;
  font-size: 1rem;
  color: white;
  transition: all 0.3s ease 0s;
  text-decoration: none;
}

.contact-card .email li a:hover {
  color: #f7f5ec;
}

@media all and (max-width: 1060px) {
  #contact main {
    flex-direction: column;
    height: 100vh;
  }
}
