.team-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-template-rows: repeat(4, 1fr);
  gap: 5px;
  min-width: 100% !important;
  height: 100%;
  margin: 0 auto;
}

.team-grid a {
  display: block;
  position: relative;
  color: white;
  text-decoration: none;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center center;
  grid-column: span 1;
  grid-row: span 1;
}

.team-grid a:hover .text-inner {
  opacity: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
.team-grid a:hover .text-inner span {
  white-space: nowrap;
}

.team-grid a:before {
  content: "";
  display: block;
  padding: 100% 0 0 0;
}

.team-grid a .team-member {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  padding: 0.5em;
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
  background: rgba(0, 0, 0, 0.75);
  opacity: 1;
  -webkit-transition: opacity 0.5s;
  -o-transition: opacity 0.5s;
  transition: opacity 0.5s;
  z-index: 2;
  font-weight: 300;
}

.team-grid a .team-member .text-inner {
  display: table;
  width: 100%;
  height: 100%;
}

.team-grid a .team-member .text-inner .text-inner-tc {
  display: table-cell;
  text-align: center;
  vertical-align: middle;
  overflow: hidden;
}

.team-grid a .team-member em {
  display: block;
  text-align: center;
  text-transform: uppercase;
  font-size: 1.2em;
  font-weight: 700;
  font-style: normal;
  margin: 0 0 0.5em 0;
}

.team-grid a .team-member span.terms-wrapper {
  display: block;
  max-width: 20em;
  margin: 0 auto;
  overflow: hidden;
}

.team-grid a .team-member span.terms {
  display: -webkit-flex;
  display: -moz-flex;
  display: -ms-flex;
  display: -o-flex;
  display: flex;
  -webkit-flex-direction: row;
  -moz-flex-direction: row;
  -ms-flex-direction: row;
  -o-flex-direction: row;
  flex-direction: row;
  -webkit-flex-wrap: wrap;
  -moz-flex-wrap: wrap;
  -ms-flex-wrap: wrap;
  -o-flex-wrap: wrap;
  flex-wrap: wrap;
  justify-content: space-between;
  margin-left: -1px;
  width: 100%;
}

.team-grid a .team-member span.terms i {
  font-style: normal;
  display: inline-block;
  flex-grow: 1;
  flex-basis: auto;
  margin: 0.25em 0;
  padding: 0 0.25em;
  text-align: center;
  border-left: 1px solid currentColor;
}

@media (max-width: 960px) {
  .team-grid {
    font-size: 14px;
    grid-template-columns: repeat(4, 1fr);
  }

  .team-grid a {
    grid-column: span 1;
    grid-row: span 1;
  }

}

@media only screen and (max-width: 768px) {
  .team-grid {
    font-size: 12px;
    grid-template-columns: repeat(4, 1fr);
  }

}

@media only screen and (max-width: 650px) {
  .team-grid {
    font-size: 12px;
    grid-template-columns: repeat(2, 1fr);
  }

}