#section-team {
  width: 100%;
  padding: 0;
}

.module-team.style-5 {
  padding: 100px 0;
  background-color: var(--color-bg-white, #ffffff);
  position: relative;
  overflow: hidden;
}

.module-team.style-5 .ry-container {
  width: 90%;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 2;
}

.module-team.style-5 .ry-flex {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  position: relative;
}

.module-team.style-5 .ry-flex .ry-each:not(.image-wrapper) {
  flex: 0 0 55%;
  max-width: 630px;
  padding: 0;
  position: relative;
  z-index: 3;
}

.module-team.style-5 .text-wrapper {
  max-width: 100%;
}

.module-team .ry-headline h2 {
  font-family: var(--font-primary-serif) !important;
  font-size: clamp(30px, 3.4vw, 65px) !important;
  font-weight: 400 !important;
  line-height: 1.15 !important;
  color: var(--color-primary-navy, #1e3048);
  text-transform: uppercase !important;
  margin-bottom: 14px;
  text-wrap: nowrap;
}

.module-team .ry-headline h2 .span-1 {
  display: inline-block;
  margin-left: 85px;
  width: 600px;
}

.module-team.style-5 .ry-headline > .span-1 {
  display: block;
  font-family: var(--font-primary-serif) !important;
  font-size: clamp(20px, 1.87vw, 36px) !important;
  font-weight: 500 !important;
  line-height: 1.25 !important;
  letter-spacing: 0.02em !important;
  text-transform: uppercase !important;
  text-align: right !important;
  color: var(--color-accent-blue, #48709f);
  margin-bottom: 28px;
  text-wrap: nowrap;
}

.module-team.style-5 .ry-text p,
.module-team.style-5 .ry-text p .span-1 {
  font-family: var(--font-primary-sans) !important;
  font-size: clamp(16px, 1.04vw, 20px) !important;
  line-height: 1.7 !important;
  color: #4d4c4a;
  margin: 0 0 34px 0;
}

.module-team.style-5 .ry-text p:empty {
  display: none;
}

.module-team.style-5 .button-wrapper {
  display: flex;
  justify-content: flex-start;
  margin-top: 10px;
}

.module-team.style-5 .ry-flex .ry-each.image-wrapper {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 44vw;
  max-width: 50vw;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  padding: 0;
  z-index: 1;
}

.module-team.style-5 .ry-flex .ry-each.image-wrapper .photo {
  position: relative;
  width: 100%;
  height: auto;
  padding-bottom: 0;
}

.module-team.style-5 .ry-flex .ry-each.image-wrapper .photo img {
  position: absolute;
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
  transform: translate(-20%, -50%);
}

@media (max-width: 1080px) {
  .module-team.style-5 {
    padding: 60px 0;
  }

  .module-team.style-5 .ry-flex {
    flex-direction: column;
    gap: 40px;
  }

  .module-team.style-5 .ry-flex .ry-each:not(.image-wrapper) {
    max-width: 100%;
    flex: 1 1 100%;
    padding: 0;
    text-align: center !important;
  }

  .module-team .ry-headline h2 .span-1 {
    margin-left: 0;
    width: 100%;
  }

  .module-team.style-5 .ry-headline {
    text-align: center !important;
  }

  .module-team.style-5 .ry-headline > .span-1 {
    text-align: center !important;
    margin-bottom: 20px;
  }

  .module-team.style-5 .ry-text {
    text-align: center !important;
  }

  .module-team.style-5 .button-wrapper {
    justify-content: center;
  }

  .module-team.style-5 .ry-flex .ry-each.image-wrapper {
    position: static;
    transform: none;
    width: 100%;
    max-width: 520px;
    margin: 0 auto;
    justify-content: center;
  }

  .module-team.style-5 .ry-flex .ry-each.image-wrapper .photo img {
    position: static;
    transform: none;
    width: 100%;
    height: auto;
    display: block;
  }
}

@media (max-width: 680px) {
  .module-team.style-5 .ry-text p,
  .module-team.style-5 .ry-text p .span-1 {
    font-size: 17px !important;
  }

  .module-team.style-5 .ry-headline > .span-1 {
    text-wrap: wrap;
  }
}