.team-galler-wrap {
  grid-area: 3/1/4/13;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: auto;
  width: 100%;
  height: 100%;
  position: relative;
  -webkit-column-gap: 1.5rem;
     -moz-column-gap: 1.5rem;
          column-gap: 1.5rem;
}

@media (max-width: 600px) {
  .team-galler-wrap {
    grid-area: 3/1/4/5;
  }
}
@media (max-width: 600px) {
  .team-galler-wrap {
    grid-template-columns: repeat(2, 1fr);
  }
}
.gris-is-team {
  row-gap: 8rem;
}

.team-item {
  width: 66%;
  border-bottom: 1px solid var(--line);
  padding: 1rem 0;
}

.team-info-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto;
  -webkit-column-gap: 1.5rem;
     -moz-column-gap: 1.5rem;
          column-gap: 1.5rem;
}

.small-size-italic {
  font-family: "Editorial New";
  font-style: italic;
  font-weight: 500;
  font-size: 1.125rem;
  letter-spacing: -0.015em;
  -webkit-font-smoothing: antialiased;
  text-transform: none;
}

.team-social-wrap {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: end;
      -ms-flex-pack: end;
          justify-content: flex-end;
  -webkit-box-align: start;
      -ms-flex-align: start;
          align-items: flex-start;
}

.team-social-icon {
  width: 1.6rem;
}

/* First row */
.team-gallery-wrap {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

/* First row */
.team-galler-wrap > div:nth-child(1) {
  grid-column: 1/2;
}

.team-galler-wrap > div:nth-child(2) {
  grid-column: 2/3;
}

.team-galler-wrap > div:nth-child(3) {
  grid-column: 4/5;
}

/* Second row */
.team-galler-wrap > div:nth-child(4) {
  grid-column: 2/3;
}

.team-galler-wrap > div:nth-child(5) {
  grid-column: 3/4;
}

.team-galler-wrap > div:nth-child(6) {
  grid-column: 4/5;
}

/* Third row */
.team-galler-wrap > div:nth-child(7) {
  grid-column: 1/2;
}

.team-galler-wrap > div:nth-child(8) {
  grid-column: 3/4;
}

.team-galler-wrap > div:nth-child(9) {
  grid-column: 4/5;
}

.team-last-block {
  grid-area: 4/1/5/13;
  max-width: 73ch;
}

@media (max-width: 991px) {
  .team-last-block {
    grid-area: 4/1/5/12;
  }
}
@media (max-width: 600px) {
  .team-last-block {
    grid-area: 4/1/5/5;
  }
  .team-galler-wrap > div {
    grid-column: span 1;
  }
  .team-galler-wrap > div:nth-child(odd) {
    grid-column: 1/2;
  }
  .team-galler-wrap > div:nth-child(even) {
    grid-column: 2/3;
  }
}
.is-main-grid-team {
  row-gap: 8rem;
}

.team-button-wrap {
  grid-area: 3/7/4/12;
}

.caption-fix {
  top: -0.1rem;
}

.gallery-header-wrap {
  grid-area: 1/1/2/13;
  row-gap: 2rem;
  display: grid;
}

@media (max-width: 600px) {
  .gallery-header-wrap {
    grid-area: 1/1/2/5;
  }
}
.team-grid-gap {
  /* row-gap: 3rem */
}