.team-flex {
  grid-column-gap: 4.44vw;
  grid-row-gap: 4.44vw;
  justify-content: center;
  align-items: center;
  display: flex;
}


.team-card {
  cursor: default;
  flex-direction: column;
  align-items: center;
  min-width: 19.4vw;
  max-width: 19.4vw;
  min-height: 25vw;
  max-height: 25vw;
  transition: transform 0.3s, color 0.4s;
  display: flex;
  position: relative;
  overflow: hidden;
}

.team-image-wrapper {
  box-shadow: none;
  background-color: transparent;
  border-radius: var(--border-radius);
  justify-content: center;
  align-items: flex-start;
  min-width: 19.4vw;
  max-width: 19.4vw;
  min-height: 22.2vw;
  max-height: 22.2vw;
  display: flex;
  position: relative;
  overflow: hidden;
}
.team-image {
  border-radius: var(--border-radius);
  cursor: default;
  object-fit: cover;
  object-position: 50% 0%;
  min-width: 19.4vw;
  max-width: 19.4vw;
  min-height: 22.2vw;
  max-height: 22.2vw;
  transition: transform 0.25s;
    user-select: none;
    -webkit-user-drag: none;
    pointer-events: none; 
}
.team-name-card {
    z-index: 2;
    grid-column-gap: .56vw;
    grid-row-gap: .56vw;
    background-color: var(--light-gray);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 14.6vw;
    min-height: 4.9vw;
    margin-left: auto;
    margin-right: auto;
    display: flex
;
    position: relative;
    top: -2.1875rem;
    overflow: hidden;
}

.team-name {
    text-transform: uppercase;
    font-size: 1.11vw;
    line-height: 1vw;
}
.team-marquee-viewport {
    overflow: hidden;
    width: 100%;
    position: relative;
}

.team-marquee-track {
    display: flex;
    width: max-content; /* Ključno: traka je široka koliko i sadržaj */
    align-items: stretch;
}

.team-flex {
    display: flex;
    gap: 30px; /* Razmak između kartica */
    padding-right: 30px; /* Isti razmak na kraju da klon ne zalijepi */
    flex-shrink: 0;
}

.team-card {
    width: 300px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
}

@media (max-width: 768px) {
  .team-flex {
    gap: 16px;
    padding-right: 16px;
  }

  .team-card {
    width: 82vw;
    min-width: 82vw;
    max-width: 82vw;
    min-height: auto;
    max-height: none;
  }

  .team-image-wrapper,
  .team-image {
    width: 82vw;
    min-width: 82vw;
    max-width: 82vw;
    min-height: 96vw;
    max-height: 96vw;
  }

  .team-name-card {
    width: calc(82vw - 2.5rem);
    min-height: 3.75rem;
    top: -1.5rem;
  }

  .team-name {
    font-size: 1rem;
    line-height: 1.2rem;
  }

  .team-occupation {
    font-size: 0.9rem;
    line-height: 1.1rem;
    margin-bottom: 0;
  }
}
