.npl-team-container {
  display: grid;
  grid-template-columns: minmax(0px, 880px) minmax(15px, 1fr) 240px;
  max-width: 1185px;
  height: auto;
  margin: 60px 45px 90px 11%;
}

.npl-team-section-box {
  display: flex;
  gap: 40px 32px;
  grid-column: 1;
  flex-wrap: wrap;
}

.npl-team-section-box-inside {
  width: 100%;
  max-width: 272px;
  height: 380px;
  background-color: var(--7a);
  display: flex;
  flex-direction: column;
  gap: 15px;
  cursor: pointer;
  padding: 22px 0px;
  overflow-y: clip;
  position: relative;
}

.npl-team-section-aside {
  grid-column: 3;
}

.npl-team-section-box-img {
  width: 100%;
  max-width: 228px;
  aspect-ratio: 2/2;
  margin: 0px auto 0px;
  overflow: clip;
}

.npl-team-section-box-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: 0.3s ease-in-out;
}

.npl-team-section-box-inside:hover .npl-team-section-box-img img {
  transform: scale(1.05);
  transition: 0.5s ease-in-out;
}

.npl-team-box-content {
  width: 85%;
  height: 100%;
  min-height: 93px;
  margin: 0 auto;
  /* padding: 0 30px; */
  display: flex;
  flex-direction: column;
  /* gap: 10px; */
  justify-content: space-between;
}

.npl-team-box-content h2 {
  /* color: var(--white); */
  font-family: var(--libre);
  font-weight: var(--xl);
  font-size: var(--eighteen);
  line-height: var(--libreHeight);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: clip;
}

.npl-team-box-content p {
  color: black;
  font-size: var(--fifteen);
  font-family: var(--barlow);
  font-weight: var(--authorWeight);
  line-height: var(--barlowHeight);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
  overflow-y: clip;
}

.npl-team-box-gap {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.npl-team-line {
  height: 1px;
  background-color: var(--df);
  width: 0;
  opacity: 0;
}

.npl-team-section-box-inside:hover .npl-team-line {
  width: 100%;
  opacity: 1;
  transition: all 0.3s ease-in-out;
  /* transition-delay: 0.1s; */
}

.npl-team-section-aside {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.npl-team-section-aside p {
  font-family: var(--libre);
  font-weight: var(--menuWeight);
  font-style: italic;
  color: var(--71);
  border: none;
  border-bottom: 1px solid var(--71);
  padding-bottom: 5px;
  padding-left: 5px;
}

.npl-team-aside-img {
  display: flex;
  flex-direction: column;
  gap: 15px;
  width: 85%;
  margin: 0 auto;
}

.npl-team-aside-img a {
  text-decoration: none;
  display: flex;
  align-items: center;
  color: black;
  width: 100%;
  gap: 5px;
  font-size: var(--fifteen);
  font-family: var(--barlow);
  font-weight: var(--normalWeight);
  opacity: 1;
}

.npl-team-aside-img a:hover {
  /* opacity: 0.85; */
  color: var(--7b);
}

.npl-team-aside-x img,
.npl-team-aside-insta img,
.npl-team-aside-fb img {
  width: var(--medButton);
  height: var(--medButton);
}

/* popup */

.npl-team-popUp {
  /* position: fixed;
  height: auto;
  min-height: 100vh;
  width: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 9999;
  top: 0;
  display: flex;
  justify-content: center;
    align-items: center;
  visibility: hidden;
  pointer-events: none;
  padding: 5vh 0;
  cursor: pointer;
  overflow-y: auto; */

    width: 100%;
    height: 100vh;
    position: fixed;
    top: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.5);
    /* opacity: 0.8; */
    z-index: 9999;
    visibility: hidden;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
    cursor: pointer;
}

.npl-team-popup-back::-webkit-scrollbar {
  display: none;
}

.npl-team-popup-back {
  /* background-color: var(--41);
  padding: 22px;
  width: 740px;
  max-height: 80vh;
  overflow-y: auto;
  margin: auto;
  display: flex;
  flex-direction: column;
  gap: 40px;
  cursor: auto;
  box-shadow: 1px 1px 5px rgba(0, 0, 0, 0.5); */

  display: flex;
    justify-content: center;
    align-items: center;
    width: 740px;
    max-height: 80vh;
    position: relative;
    cursor: auto;
    box-shadow: 1px 1px 5px rgba(0, 0, 0, 0.5);
}

.npl-team-class-insideField{
  width: 100%;
  padding: 22px;
  background-color: var(--41);
}

.npl-team-popUp fieldset {
  /* width: 100%;
  max-width: 740px;
  margin: 0 auto;
  position: relative;
  padding: 22px;
  display: flex;
  gap: 40px;
  flex-direction: column;
  border: 2px solid var(--ff);
  max-height: calc(80vh - 90px); */
  /* overflow-y: scroll; */
  padding: 22px;
    position: relative;
    width: 100%;
    max-width: 788px;
    border: 2px solid var(--ff);
}

.npl-team-class-insideField, .npl-team-class-insideField fieldset {
    height: auto;
}


.npl-team-popUp legend {
  position: absolute;
  right: 20px;
  top: -13px;
  background-color: var(--41);
  padding: 1px 3px;
  color: var(--ff);
  cursor: pointer;
  font-family: var(--libre);
  font-style: italic;
  font-weight: var(--menuWeight);
  font-size: var(--fifteen);
}

.npl-team-popcontent{
  display: flex;
    flex-direction: column;
    /* height: 100%; */
    max-height: calc(80vh - 90px);
    /* justify-content: space-between; */
    gap: 40px;
    color: white;
    overflow-y: scroll;
}

.npl-team-popcontent::-webkit-scrollbar {
  display: none;
}

.npl-team-popup-info {
  width: 100%;
  display: flex;
  gap: 30px;
}

.npl-team-pop-media {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.npl-team-pop-media a {
  /* color: var(--gray2); */
  color: white;
  display: flex;
  align-items: center;
  gap: 5px;
  opacity: 1;
  font-size: var(--fifteen);
  font-family: var(--barlow);
  font-weight: var(--normalWeight);
  width: fit-content;
}

.npl-team-pop-media a:hover {
  opacity: 0.85;
}

.npl-team-pop-img-info {
  display: flex;
  flex-direction: column;
  gap: 10px;
  justify-content: space-between;
}

.npl-team-pop-content-dynamic {
  display: flex;
  gap: 10px;
  flex-direction: column;
}

.npl-team-popup-img {
  width: 100%;
  max-width: 320px;
  height: 320px;
}

.npl-team-popup-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.popup-name {
  color: var(--white);
  font-size: var(--thirtySix);
  font-family: var(--libre);
  line-height: var(--libreHeight);
  /* font-style: italic; */
  font-weight: var(--xl);
}

.npl-team-popup-back .npl-team-info-p {
  width: 100%;
  font-size: clamp(1rem, 2vw, var(--eighteen));
  font-family: var(--barlow);
  line-height: var(--barlowHeight);
  /* font-style: italic; */
  color: white;
  font-weight: var(--normalWeight);
}

.npl-team-popup-project {
  padding: 5px 0;
  border: none;
  border-top: 1px solid var(--gray2);
  border-bottom: 1px solid var(--gray2);
}

.npl-team-popup-project p {
  font-family: var(--barlow);
  font-weight: var(--dblXl);
  font-size: var(--eighteen);
  color: var(--df);
}

.pop-role {
  font-weight: var(--authorWeight);
  color: white;
  text-transform: uppercase;
  font-size: var(--eighteen);
  font-family: var(--barlow);
}

@media screen and (max-width: 768px) {
    .npl-team-popup-back {
        max-width: 90%;
    }


  .npl-team-popup-info {
    flex-direction: column;
    align-items: center;
  }
  .popup-name,
  .pop-role {
    text-align: center;
  }

  .npl-team-pop-media {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }

  .npl-team-pop-media a {
    justify-content: center;
  }
}

.npl-team-popUp {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
}

.npl-team-popUp.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
}

.npl-team-line-container {
  display: flex;
  gap: 5px;
  /* justify-content: center; */
  align-items: center;
  position: absolute;
  bottom: 5px;
  width: 82%;
  margin: 0 0 10px 0;
  overflow: clip;
}

.npl-team-overflow {
  position: relative;
  opacity: 0;
  pointer-events: none;
  transform: translateY(110%);
}

.npl-team-section-box-inside:hover .npl-team-overflow {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
  transition: all 0.3s ease-in-out;
  /* transition-delay: 0.1s; */
}

.npl-team-dummy {
  transform: translateY(0);
  opacity: 1;
  transition: 0.3s ease-in-out;
}

.npl-team-original {
  position: absolute;
  top: 0;
  opacity: 0;
  transform: translateY(110%);
  transition: 0.3s ease-in-out;
}

.npl-team-section-box-inside:hover .npl-team-overflow {
  /* transform: translateY(-11px); */
  transition-delay: 0.1s;
}

.npl-team-overflow:hover .npl-team-dummy {
  transform: translateY(-110%);
  opacity: 0;
  transition: 0.3s ease-in-out;
}

.npl-team-overflow:hover .npl-team-original {
  transform: translateY(0);
  opacity: 1;
  transition: 0.3s ease-in-out;
}

.npl-team-overflow p {
  font-family: var(--libre);
  font-style: italic;
  font-size: var(--fourteen);
  color: var(--df);
}

/* @media screen and (max-width: 1350px) {
  .npl-team-container {
    max-width: 1160px;
    margin: 60px 30px 90px auto;
  }
} */

@media screen and (max-width: 1350px) and (min-width: 1251px) {
  .npl-team-container,
  .npl-update-header-grid {
    max-width: 1135px;
    margin: 60px 0px 90px 7%;
  }
}

@media screen and (max-width: 1250px) {
  .npl-team-section-aside {
    display: none;
  }
  .npl-update-header-grid {
    grid-template-columns: 1fr;
  }
}

@media screen and (max-width: 1250px) and (min-width: 1025px) {
  .npl-team-container {
    /* max-width: 80%; */
    grid-template-columns: 1fr;
    margin: 60px 30px 90px 11%;
  }
}

@media screen and (max-width: 1024px) {
  .npl-team-section-aside {
    display: none;
  }

  .npl-update-header-grid {
    width: 90%;
    max-width: 740px;
    margin: 0 auto;
  }

  .npl-update-header {
    margin: 0;
    max-width: 100%;
  }

  .npl-team-box-content h2 {
    -webkit-line-clamp: 3;
  }

  .npl-team-container {
    grid-template-columns: 1fr;
    width: 90%;
    max-width: 740px;
    margin: 60px auto 90px;
  }

  .npl-team-line-container {
    display: none;
  }

  .npl-team-box-content h2 {
    font-size: var(--twentyTwo);
  }

  .npl-team-section-box-inside {
    flex-direction: row;
    padding: 35px 22px 22px;
    width: 100%;
    max-width: 100%;
    height: auto;
    overflow: clip;
  }

  .npl-team-section-box-inside:hover .npl-team-section-box-img img {
    transform: scale(1);
    transition: 0s;
  }

  .npl-team-section-box-img {
    aspect-ratio: 3/2;
    height: 100%;
    display: flex;
    justify-content: center;
  }
  .npl-team-section-box-img img {
    width: auto;
    max-width: 152px;
    aspect-ratio: 2/2;
  }
}

@media screen and (max-width: 500px) {
  .npl-team-box-content h2 {
    font-size: clamp(var(--fourteen), 2vw, var(--eighteen));
  }
}

.npl-team-overflow-pop {
  position: relative;
  overflow: clip;
}

.npl-team-pop-original {
  position: absolute;
  top: 0;
  transform: translateY(110%);
  transition: 0.3s ease-in-out;
}

.npl-team-pop-dummy {
  transform: translateY(0%);
  transition: 0.3s ease-in-out;
}

.npl-team-overflow-pop:hover .npl-team-pop-original {
  transform: translateY(0);
  transition: 0.3s ease-in-out;
}

.npl-team-overflow-pop:hover .npl-team-pop-dummy {
  transform: translateY(-110%);
  transition: 0.3s ease-in-out;
}

@media screen and (max-width: 1024px) {
  .npl-team-pop-dummy {
    transform: translateY(0);
    transition: 0s ease-in-out;
  }
}
