.team {
  padding: 2.25rem 0;
  background: lightgray;
}

.team-members {
  padding-top: 2.25rem;
}

.team-member {
  display: flex;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}

.member-image {
  flex: none;
  width: 170px;
}

.member-photo {
  border: 5px solid darkslategray;
  border-radius: 100%;
  width: 160px;
  height: auto;
}

.member-info {
  flex: 0 1 270px;
  min-width: 0;
}

.member-info .footnote {
  display: block;
  color: darkred;
}

.member-moto {
  background: none;
  border: 0;
  font-family: inherit;
  text-align: left;
}

.member-info .footnote:hover {
  color: #a00;
  text-decoration: underline;
  cursor: pointer;
}

.member-details {
  list-style-type: square;
  margin: 0.5rem 0 1.25rem;
}

.member-social {
  background: white;
  border-radius: 3px;
  display: inline-block;
  padding: .8rem 1.25rem .5rem;
  margin-top: .6rem;
}

.member-social-link {
  display: inline-block;
  width: 32px;
  height: 32px;
  background: url('../img/icons/social.png?v=8a3fc70') no-repeat;
}

.telegram-icon {
  background: url('../img/icons/telegram.svg?v=8a3fc70') center / 32px 32px no-repeat;
}

.telegram-icon:hover {
  background-image: url('../img/icons/telegram-hover.svg?v=8a3fc70');
}

.vk-icon {
  background-position: 0 -32px;
}

.vk-icon:hover {
  background-position: -32px -32px;
}

.twitter-icon {
  background-position: 0 -64px;
}

.twitter-icon:hover {
  background-position: -32px -64px;
}

.youtube-icon {
  background: url('../img/icons/youtube.svg?v=8a3fc70') center / 32px 32px no-repeat;
}

.youtube-icon:hover {
  background-image: url('../img/icons/youtube-hover.svg?v=8a3fc70');
}

@media (max-width: 640px) {
  .team-member {
    flex-direction: column;
    align-items: center;
  }

  .member-image {
    width: auto;
  }

  .member-info {
    flex: none;
    width: 100%;
    max-width: 270px;
  }
}
