.totya-team-grid {
  display: grid;
  grid-template-columns: repeat(3, 200px);
  justify-content: center;
  gap: 40px;
  margin: 0;
  padding: 0;
}

.totya-team-card {
  width: 200px;
  margin: 0;
}

.totya-team-image-wrap {
  position: relative;
  aspect-ratio: 3 / 4;
  border-radius: 10px;
  overflow: visible;
  background: #f5f7f9;
}

.totya-team-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 10px;
}

.totya-team-image--placeholder {
  width: 100%;
  height: 100%;
  border-radius: 10px;
  background: linear-gradient(135deg, #f0f2f5, #e5e8ee);
}

.totya-team-info-bar {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: -14px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    background: #d91d45;
    color: #ffffff;

    padding: 10px 16px;

    min-width: 210px;
    width: max-content;

    box-sizing: border-box;
    border-radius: 0;
}

.totya-team-info-main {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.totya-team-name {
    margin: 0 0 4px 0;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
}

.totya-team-name-link {
  color: #fff !important;
  text-decoration: none;
}

.totya-team-name-link:hover,
.totya-team-name-link:focus {
  color: #fff !important;
  text-decoration: underline;
}

.totya-team-position {
    margin: 0;
    font-size: 10px;
    line-height: 1.2;
    white-space: nowrap;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

@media (max-width: 760px) {
  .totya-team-grid {
    grid-template-columns: repeat(2, 200px);
  }
}

@media (max-width: 460px) {
  .totya-team-grid {
    grid-template-columns: 200px;
  }
}
