.custom-team-grid {
  display: grid;
  grid-template-columns: repeat(var(--team-columns, 4), minmax(0, 1fr));
  gap: .5rem;
  width: 100%;
}

.custom-team-member {
  min-width: 0;
  padding: .5rem;
  box-shadow: 0px 0px 12px 0px #00000029;

}

.custom-team-photo {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 4px;
  background: #eee;
  height: 464px;
}

.custom-team-photo::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 30%;
  background: linear-gradient(to bottom, transparent 0%, rgba(255, 255, 255, 0.15) 35%, rgba(255, 255, 255, 0.7) 75%, #fff 100%);
  pointer-events: none;
  z-index: 1;
}

.custom-team-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.custom-team-video-link {
  position: absolute;
  bottom: 15px;
  right: 15px;
  z-index: 2;

  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;

  color: #121317;
  text-decoration: none;
  font-size: 13px;
}

.custom-team-video-link:hover {
  color: initial;
}

.custom-team-video-icon {
  border-radius: 30px;
  padding: 0px 6px;
  background: #fff;
}

.custom-team-name {
  color: #4a4a4a;
  text-transform: uppercase;
  letter-spacing: 2%;
  margin: 18px 0 5px;
  font-size: 23px;
}

.custom-team-position {
  margin: 0;
  font-size: 14px;
  color: #121317;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 2%;
}

/* MODALE VIDEO */

.custom-team-modal {
  position: fixed;
  inset: 0;
  z-index: 999999;
  background: rgba(0, 0, 0, .9);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.custom-team-modal-content {
  position: relative;
  width: 100%;
  max-width: 1000px;
  aspect-ratio: 16 / 9;
  background: #000;
}

.custom-team-modal-content iframe,
.custom-team-modal-content video {
  width: 100%;
  height: 100%;
  border: 0;
}

.custom-team-modal-close {
  position: absolute;
  top: -40px;
  right: 0;
  background: none;
  border: 0;
  color: #fff;
  font-size: 30px;
  cursor: pointer;
  line-height: 1;
}

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

@media(max-width: 600px) {
  .custom-team-grid {
    grid-template-columns: 1fr;
  }
}
