.team-grid {
  max-width: 1276px !important;
  margin: auto;
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  border: 1px solid #000000;
  overflow: hidden;
}

@media (min-width: 768px) {
  .team-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1200px) {
  .team-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1000px) {
  .team-grid .team-member .team-info {
    display: none;
  }
}

.team-grid .team-member:hover .team-info {
  display: block;
}

.team-grid .team-member {
  position: relative;
}

.team-grid .team-member::before, 
.team-grid .team-member::after {
   content: '';
   position: absolute;
   background-color: #000000;
   z-index: 1;
}

.team-grid .team-member::before {
  width: 1px;
  height: 100vw;
  left: -1px;
  top: 0;
}

.team-grid .team-member::after {
  width: 100vw;
  height: 1px;
  left: 0;
  top: -1px;
}

.team-grid .team-member img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-grid .team-info {
  position: absolute;
  bottom: 23px;
  left: 24px;
  right: 24px;
  background-color: #CEFF00;
  border: 1px solid #000000;
  min-height: 120px;
  max-height: 120px;
  padding: 18px 65px 0 21px;
}

.team-grid .team-info .h3 {
  font-size: 22px;
  line-height: 26px;
  font-weight: bold;
  margin-bottom: 9px;
}

.team-grid .team-info .position {
  font-size: 16px;
  line-height: 26px;
  text-transform: uppercase;
  margin-bottom: 0;
}

.team-grid .team-info .links {
  position: absolute;
  right: 0;
  top: 0;
  width: 60px;
  justify-content: space-evenly;
  align-items: center;
  height: 100%;
  display: flex;
  flex-direction: column;
  border-left: 1px solid #000000;
  gap: 20px;
}

.team-grid .team-info .links.border:after {
  content: '';
  height: 1px;
  width: 60px;
  background-color: #000000;
  position: absolute;
  top; 60px;
  right: 0;
}

.team-grid .team-info .links a:first-child {
  height: 24px;
}

.team-grid .team-info .links a:last-child {
  height: 29px;
}