.team-header {
  width: 100%;
  height: min(700px, 70vh);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 50px 70px 50px 70px;
  border-radius: 20px;
  overflow: hidden;

  background: url("../../img/team/header/background-img.jpg");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  position: relative;
  max-width: 1900px;
  margin: 0 auto;
}

.team-header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, 0.5) 100%
  );
  z-index: 1;
}

.team-header-wrapper {
  margin: 0 -55px;
  padding: 0 55px;
  background-color: var(--color-gray-50);
}

.team-header__title {
  display: flex;
  flex-direction: column;
  margin-top: auto;
  z-index: 2;
  gap: 5px;
}

.team-header__title-text {
  font-family: var(--font-family-secondary);
  font-size: 90px;
  font-weight: var(--font-weight-bold);
  line-height: var(--line-height-tight);
  color: var(--color-white);
}

.team-header__subtitle {
  font-size: 22px;
  font-weight: var(--font-weight-normal);
  line-height: var(--line-height-tight);
  color: var(--color-secondary);
}

@media (max-width: 1700px) {
  .team-header {
    height: min(470px, 70vh);
    background-size: cover;
    background-position: center;
  }

  .team-header__title-text {
    font-size: 64px;
  }

  .team-header-wrapper {
    margin: 0 -40px;
    padding: 0 40px;
  }
}

@media (max-width: 1024px) {
  .team-header {
    height: min(560px, 70vh);
    padding: 30px;
    background-position: center;
  }

  .team-header__title-text {
    font-size: 48px;
  }

  .team-header__subtitle {
    font-size: 18px;
  }

  .team-header-wrapper {
    margin: 0 -16px;
    padding: 0 16px;
  }
}

@media (max-width: 768px) {
  .team-header {
    height: min(515px, 70vh);
    background: url("../../img/team/header/background-img.jpg");
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
  }
  
}
