.tgp-grid{
  display:grid;
  gap:30px;
  grid-template-columns:repeat(auto-fit,minmax(250px,1fr));
}

.tgp-card{
  position:relative;
}

.tgp-image-wrapper{
  display:flex;
}

.tgp-image{
  position:relative;
  overflow:hidden;
  width:100%;
}

.tgp-img-main{
  display:block;
  width:100%;
  height:100%;
  object-fit:cover;
  transition: filter .35s ease, transform .35s ease, opacity .35s ease;
}

/* hover: preto e branco */
.tgp-image:hover .tgp-img-main,
.tgp-card.tgp-hover .tgp-img-main{
  filter: grayscale(100%);
}

/* overlay */
.tgp-overlay{
  position:absolute;
  inset:0;
  display:flex;
  align-items:center;
  justify-content:center;
  opacity:0;
  transition:opacity .25s ease;
  padding:20px;
  z-index:3;
}

.tgp-image:hover .tgp-overlay,
.tgp-card.tgp-hover .tgp-overlay{
  opacity:1;
}

/* cargo vertical */
.tgp-role-vertical{
  position:absolute;
  top:0;
  left:-22px;
  writing-mode:vertical-rl;
  transform:rotate(180deg);
  padding:6px 4px;
  z-index:4;
}

.tgp-info{
  margin-top:10px;
  text-align:center;
}

.tgp-name{
  font-weight:700;
}

.tgp-email{
  font-size:14px;
  opacity:.75;
}
@media (max-width: 880px) and (orientation: landscape){
  selector .tgp-grid,
  .tgp-grid{
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
  }
}