/* type `team` — include/internet-advertising-sections/team.php */

.iad-team__track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 120px) / 4);
  gap: 40px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.iad-team__track::-webkit-scrollbar {
  display: none;
}

.iad-team__card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 40px;
  min-height: 317px;
  padding: 40px;
  background: var(--background-light);
  scroll-snap-align: start;
}

.iad-sec--light .iad-team__card {
  background: var(--background-white);
}

.iad-team__progress {
  display: none;
  position: relative;
  height: 2px;
  margin-top: 24px;
  overflow: hidden;
  background: var(--outher-light-gray);
}

.iad-team__progress span {
  display: block;
  width: 25%;
  height: 100%;
  background: var(--purple-normal);
  transition: transform 0.2s;
}

@media screen and (max-width: 1240px) {
  .iad-team__track {
    grid-auto-columns: calc((100% - 40px) / 2.5);
  }
}

@media screen and (max-width: 640px) {
  .iad-team__track {
    grid-auto-columns: calc(100% - 16px);
    gap: 16px;
  }

  .iad-team__card {
    min-height: 224px;
    padding: 24px;
  }

  .iad-team__progress {
    display: block;
  }

  .iad-team__progress[hidden] {
    display: none;
  }
}
