p {
  margin: 0;
}


/* === banner === */


#team .banner {
  max-width: 100%;
  max-height: 100%;
  position: relative;
  background-image: url('../image/about_us.png');
  padding: 200px 0 100px 0;
  object-fit: cover;
  background-size: cover;
}

#team .banner_slide {
  position: relative;
  z-index: 1;
  color: var(--nir-white);
  text-align: center;
}

#team .banner img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  object-position: center;
}

#team .layer {
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  background-image: linear-gradient(var(--nir-gray) 80%, transparent);
  opacity: 0.4;
  z-index: 1;
}

#team .layer_content h1 {
  font-size: 47px;
  font-weight: bold;
}

#team .layer_content h3 {
  font-size: 30px;
  font-weight: 500;
  margin: 30px 0;
}

#team .layer_content p {
  font-size: 24px;
  font-weight: 300;
}


/* === Team === */


#team_slide {
  margin: 100px 0;
  position: relative;
}

#team_slide .team_slide {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

#team_slide .slide_text {
  width: calc(100% - 320px);
}

#team_slide .slide_image {
  width: 300px;
  text-align: center;
}

#team_slide .slide_image figure {
  border-radius: 50%;
  overflow: hidden;
  aspect-ratio: 1 / 1;
}

#team_slide .slide_image figure img {
  width: 100%;
  height:300px;
  object-fit: cover;
  object-position: center;
}

#team_slide .slide_text h5 {
  font-size: 36px;
  font-weight: bold;
  color: var(--nir-gray);
}

#team_slide .slide_text p {
  font-size: 24px;
  font-weight: 300;
}

#team_slide .slide_image h2 {
  font-size: 30px;
  font-weight: bold;
}

#team_slide .slide_image p {
  font-size: 22px;
  font-weight: 500;
  color: var(--nir-gray);
}

#team_slide .slick-arrow {
  background-position: center;
  background-size: contain;
  background-repeat: no-repeat;
  width: 20px;
  height: 40px;
}

#team_slide .slick-prev {
  background-image: url(../image/arrow.png);
  right: calc(100% + 20px);
  left: auto;
}

#team_slide .slick-next {
  background-image: url(../image/arrow_right.png);
  left: calc(100% + 20px);
  right: auto;
}

#team_slide .slick-prev:before,
#team_slide .slick-next:before {
  content: none;
}


/* === Team Slidbar === */


#team_slidbar {
  padding: 50px 0;
  background-color: var(--nir-bg-gray);
}

#team_slidbar .team_slidbar {
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  text-align: center;
}

#team_slidbar .slide_image {
  width: 16%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
}

#team_slidbar .slide_image h2 {
  font-size: 18px;
  font-weight: bold;
  margin-top: 10px;
}

#team_slidbar .slide_image p {
  font-size: 14px;
  font-weight: 500;
  color: var(--nir-gray);
}

#team_slidbar .slide_image figure {
  border-radius: 50%;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  width: 200px;
  height: 200px;
  margin: 0 auto;
}

#team_slidbar .slide_image figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#team_slidbar .read_btn a {
  text-transform: uppercase;
  border: 1px solid var(--nir-gray);
  color: var(--nir-gray);
  border-radius: 50px;
  padding: 2px 20px;
  font-size: 14px;
  text-decoration: none;
  font-weight: bold;
  margin: 0 auto;
  width: fit-content;
  display: block;
  transition: all 0.4s;
}

#team_slidbar .read_btn a:hover {
  background-color: var(--nir-theme);
  border: 1px solid var(--nir-theme);
  color: var(--nir-white);
}

#team_slidbar .slick-current {
  display: none;
}


/* === end css === */


@media (max-width: 768px) {

  p {
      margin: 0;
  }


  /* === banner === */


  #banner .banner {
      min-height: 100vh;
  }

  #banner .banner img {
      height: 100vh;
  }

  .layer_content {
      width: 90%;
  }


  /* === Team Slide === */


  #team_slide .team_slide {
      width: 90%;
      margin: 0 auto;
  }

  #team_slide .slide_text h5 {
      font-size: 22px;
  }

  #team_slide .slide_text p {
      font-size: 18px;
  }

  #team_slide .slide_image {
      order: 1;
      width: 100%;
      display: flex;
      align-items: center;
      text-align: start;
      justify-content: flex-start;
  }
  #team_slide .slide_image img{height: 200px !important;}

  #team_slide .slide_image figure {
      margin-right: 40px;
      width:200px;
  }
  #team_slide .slide_image>div{width: calc(100% - 240px);}

  #team_slide .slide_text {
      order: 2;
      width: 100%;
  }


  /* === Team Slidbar === */


  #team_slidbar .team_slidbar {
      gap: 40px;
      justify-content: start;
      flex-wrap: wrap;
  }

  #team_slidbar .slide_image {
      width: calc(33.33% - 30px);
  }

  #banner .layer_content h1 {
      font-size: 36px;
  }

  #banner .layer_content h3 {
      font-size: 26px;
  }

  #banner .layer_content p {
      font-size: 20px;
  }

  #team_slide .slick-prev {
      right: calc(100% + 0px);
  }

  #team_slide .slick-next {
      left: calc(100% + 0px);
  }
}

@media (max-width: 450px) {

  p {
      margin: 0;
  }
  #team_slide .slide_image>div{width: 100%;}

  #team_slide .team_slide{display: grid;grid-template-rows: auto 1fr;align-items: start;}
  /* === banner === */


  #banner .layer_content h1 {
      font-size: 32px;
  }

  #banner .layer_content h3 {
      font-size: 22px;
  }

  #banner .layer_content p {
      font-size: 18px;
  }

  #banner .layer_content {
      width: 100%;
  }

  #banner .layer_content {
      padding: 0 20px;
  }


  /* === Team Slide === */


  #team_slide .slide_image h2 {
      font-size: 24px;
  }

  #team_slide .slide_image p {
      font-size: 18px;
  }

  #team_slide .slide_image figure {
      margin-right: auto;      
      margin-left: auto;
  }

  #team_slide .slide_text h5 {
      font-size: 20px;
  }

  #team_slide .slide_text p {
      font-size: 16px;
  }

  #team_slide .slide_image {
      display: block;
  }


  /* === Team Slidbar === */


  #team_slidbar .slide_image {
      width: 100%;
  }

  #team_slidbar .slide_image div {
      width: 100%;
  }

  #team_slidbar .slide_image figure {
      margin-bottom: 10px;
  }

  #team_slide {
      margin: 40px 0;
  }

  #team_slide .slick-prev {
      left: calc(100% - 60px);
      right: auto;
      top: 90px;
  }

  #team_slide .slick-next {
      left: calc(100% - 20px);
      right: auto;
      top: 90px;
  }

  #team_slide .slide_image {
      text-align: center;
  }
}