.s-faculty__modal {
  display: flex;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s var(--move);
  pointer-events: none;
  z-index: 20;
}

.s-faculty__modal[aria-hidden="false"] {
  opacity: 1;
  pointer-events: all;
}

.s-faculty__modal-content {
  background-color: white;
  padding: 40px 24px;
  border-radius: 8px;
  max-width: 1269px;
  height: 97%;
  width: 94%;
  border: 1px solid var(--gray-200);
  max-width: 789px;
  position: relative;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transform: scale(0.8);
  opacity: 0; 
  transition: transform, opacity, 0.3s var(--move);
  overflow: hidden;
}

@media screen and (min-width: 770px) {
  .s-faculty__modal-content {
    height: 82vh;
    max-height: 687px;
  }
}

@media screen and (min-width: 1026px) {
  .s-faculty__modal-content {
    padding: 40px;
  }
}

.s-faculty__modal .s-faculty__modal-content {
  transform: scale(1);
  opacity: 1; 
}

.s-faculty__modal-top {
  display: flex;
  justify-content: space-between;
  margin-bottom: 24px;
  align-items: start;
}

.s-faculty__modal-header {
  flex-wrap: wrap;
  display: flex;
  align-items: center;
}

.s-faculty__modal-name {
  font-size: 16px;
  font-weight: 600;
  color: var(--gray-500);
}

@media screen and (min-width: 1026px) {
  .s-faculty__modal-name {
    font-size: 24px;
  }
}

.s-faculty__modal-position {
  font-size: 12px;
  color: var(--gray-500);
}

@media screen and (min-width: 1026px) {
  .s-faculty__modal-position {
    font-size: 14px;
  }
}

.s-faculty__modal-info {
  display: grid;
  gap: 8px;
  margin-left: 24px;
}

.s-faculty__modal-main {
  overflow-y: auto;
  font-size: 14px;
  line-height: 24px;
  color: var(--gray-500);
  padding-bottom: 40px;
  padding-right: 24px;
  max-height: 87%;
}

@media screen and (min-width: 770px) {
  .s-faculty__modal-main {
    max-height: 75%;
  }
}

.s-faculty__modal-main::-webkit-scrollbar {
  width: 4px;
}
 
.s-faculty__modal-main::-webkit-scrollbar-track {
  background: var(--gray-200);
  border-radius: 100px;
}
 
.s-faculty__modal-main::-webkit-scrollbar-thumb {
  border-radius: 100px;
  background-color: var(--primary);
}

.s-faculty__modal-footer {
  margin-top: 24px;
  display: block;
  font-size: 12px;
}

@media screen and (max-width: 770px) {
  .s-faculty__modal-close svg {
    transform: translateY(-100%);
  }

  .s-faculty__modal-main > .paragraph br {
    display: none;
  }
}

.s-faculty__modal-figure {
  height: 80px;
}

.s-faculty__modal-img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 100%;
}

@media screen and (min-width: 1026px) {
  .s-faculty__modal-img {
    width: 104px;
    height: 104px;
  }

  .s-faculty__modal-figure {
    height: 104px;
  }
}
