/* BANNER */
#banner {
  background-image: url(/assets/img/team-hero-img.png);
}

/* TEAM LIST */
.container-fluid {
  padding: 70px 20px;

  .ff {
    gap: 0px;

    @media (max-width: 1024px) {
      gap: 20px;
    }
  }
}

.team-list {
  margin-top: 32px;
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  column-gap: 32px;
  row-gap: 32px;
}

.team-card {
  display: flex;
  flex-direction: column;
  gap: 24px;
  cursor: pointer;

  img {
    align-self: stretch;
    object-fit: cover;
    object-position: top;
    aspect-ratio: 304/296;
    background: #efefef;
    transition-property: color, background-color, border-color,
      text-decoration-color, fill, stroke, opacity, box-shadow, transform,
      filter, backdrop-filter;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
  }

  img.object-contain {
    object-fit: contain !important;
  }

  .details {
    .name {
      color: var(--Primary-Purple, #595378);
      font-size: 20px;
      font-style: normal;
      font-weight: 700;
      line-height: 150%; /* 30px */
    }

    .info {
      display: block;
      color: var(--Black, #212529);
      font-size: 16px;
      font-style: normal;
      font-weight: 400;
      line-height: 150%; /* 24px */
    }
  }
}

.team-card:hover img {
  background: #595378;
}

.action {
  margin-top: 32px;
}

.load-more-btn {
  display: flex;
  width: 188px;
  padding: 12px 24px;
  justify-content: center;
  align-items: center;
  gap: 8px;
  border: 2px solid var(--Primary-Purple, #595378);
  color: var(--Primary-Purple, #595378);
  font-size: 16px;
  font-style: normal;
  font-weight: 700;
  line-height: 150%; /* 24px */
  text-transform: uppercase;
  cursor: pointer;
}

.load-more-btn.hidden {
  display: none !important;
}

.team-modal {
  .modal-dialog {
    max-width: 1112px;
    inset: 0;
    position: fixed;
    display: flex;
    align-items: center;
    padding: 0px 10px;
  }

  .modal-dialog:before {
    content: "";
    background: rgba(0, 0, 0, 0.5);
    position: fixed;
    inset: 0;
    z-index: 1;
  }

  .modal-content {
    z-index: 99;
    border: 3px solid var(--Primary-Purple, #595378);
    padding: 50px 50px 32px 50px;

    @media (max-width: 1024px) {
      max-height: 617px;
      overflow-y: auto;
      padding: 50px 32px 32px 20px;

      .modal-body {
        display: flex;
        align-items: center;
        justify-content: center;
        flex-direction: column;
        gap: 4px;
        flex-shrink: 0;
        background: #fff;
        width: 100%;

        .left {
          margin-bottom: 20px;
          width: 100%;

          .team-card {
            max-width: 100%;
          }
        }

        .right .description {
          overflow-y: visible;
        }
      }
    }
  }

  .close-icon {
    display: flex;
    width: 24px;
    height: 24px;
    padding: 6px;
    justify-content: center;
    align-items: center;
    gap: 10px;
    position: absolute;
    right: 10px;
    top: 9.5px;
    z-index: 99;
    cursor: pointer;

    svg {
      fill: #000;
    }
  }
  .modal-body {
    display: flex;
    align-items: flex-start;
    gap: 40px;
    flex-shrink: 0;
    background: #fff;
    width: 100%;
    padding: 0px;

    .left {
      .team-card {
        max-width: 304px;
        cursor: auto;

        .name {
          color: var(--Primary-Purple, #595378);
          font-size: 20px;
          font-weight: 700;
          line-height: 150%;
        }

        .info {
          color: var(--Black, #212529);
          font-size: 16px;
          font-weight: 400;
          line-height: 150%;
        }
      }

      .team-card:hover img {
        background: #efefef;
      }
    }

    .right {
      .description {
        overflow-y: auto;
        max-height: 496px;
        padding-right: 26px;
        color: var(--Black, #212529);
        font-size: 16px;
        font-weight: 400;
        line-height: 150%;
      }
    }
  }
}

.team-modal.show {
  display: block !important;
}

@media (min-width: 1024px) {
  .container-fluid {
    padding: 90px 64px;
  }

  .team-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1280px) {
  .team-list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
