.staff-popup {
  visibility: hidden;
  opacity: 0;
  background-color: rgba(0, 0, 0, 0.6);
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  transition: all 300ms ease-in-out;
}

.js-popup-active .staff-popup {
  visibility: visible;
  opacity: 1;
}

.staff-popup__container {
  background-color: white;
  width: 330px;
  display: flex;
  flex-direction: column;
  padding: 30px 20px 35px;
  position: relative;
  border-radius: 12px;
}

.staff-popup__close-btn {
  display: block;
  width: 40px;
  height: 40px;
  background-image: url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M15 1L1 15M1 1L15 15' stroke='%23111111' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E%0A");
  background-position: center;
  background-size: 14px 14px;
  background-repeat: no-repeat;
  background-color: white;
  border-radius: 50%;
  cursor: pointer;
  transition: all 300ms ease-in-out;
  position: absolute;
  top: 20px;
  right: 20px;
}

.staff-popup__close-btn:hover {
  transform: rotate(90deg);
}

.staff-popup__pic {
  width: 100%;
  height: 337px;
  border-radius: 12px;
  object-fit: cover;
  object-position: top center;
}

.staff-popup__info {
  display: flex;
  gap: 16px;
  flex-direction: column;
  margin-top: 20px;
}

.staff-popup__name {
  font-weight: 600;
  font-size: 18px;
  line-height: 21.6px;
  color: var(--main-red);
}

.staff-popup__text * {
  font-weight: 500;
  font-size: 16px;
  line-height: 19.2px;
  margin-top: 0.8em;
}

.staff-popup__text *:first-child {
  margin: 0;
}

@media screen and (min-width: 768px) {
  .staff-popup__container {
    width: 515px;
    padding: 40px;
  }
  .staff-popup__pic {
    width: 300px;
    height: 361px;
    margin: 0 auto;
  }
  .staff-popup__info {
    margin-top: 40px;
  }
  .staff-popup__name {
    font-size: 26px;
    line-height: 31.2px;
  }
  .staff-popup__close-btn {
    width: 14px;
    height: 14px;
    border-radius: unset;
    background-color: transparent;
    background-size: contain;
  }
}

@media screen and (min-width: 1200px) {
  .staff-popup__container {
    width: 940px;
    padding: 0 85px 0 0;
    flex-direction: row;
    gap: 40px;
    overflow: hidden;
    align-items: center;
  }
  .staff-popup__pic {
    width: 300px;
    height: 330px;
    min-width: 300px;
    min-height: 330px;
    margin: 0 auto;
  }
  .staff-popup__info {
    margin: 0;
  }
  div.staff__container {
    margin-top: 40px;
  }
}
