.project-modal {
  display: flex;
  justify-content: center;
  align-items: center;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 999999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s;
  backdrop-filter: blur(4px);
  height: 100vh;
}

.project-modal .close-modal {
  cursor: pointer;
}

.project-modal-container {
  width: 80%;
  height: 86%;
  max-width: 982px;
  margin: 0 16px;
  border-radius: 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: #f5f7fa;
  box-shadow: -4px 10px 15px 0px #00000026;
  border: 1px solid #cbd5e0;
  padding-bottom: 32px;
}

.project-modal-header {
  display: flex;
  align-items: center;
  justify-content: end;
  width: 100%;
  padding: 24px;
}

.project-modal-header .close-modal {
  width: 45px;
  height: 45px;
}

.project-modal-header .close-modal img {
  width: 45px;
  height: 45px;
  border: 2px solid transparent;
  border-radius: 45px;
}

.project-modal-header .close-modal img:hover {
  border: 2px solid #2d3748;
  background: #f5f7fa;
}

.project-modal-header .close-modal img:active {
  border: 2px solid transparent;
  background: #4fd1c5;
}

.project-modal.active {
  opacity: 1;
  visibility: visible;
}

.project-modal-content {
  display: flex;
  flex-direction: column;
  gap: 32px;
  padding: 0px 100px 64px;
  overflow-y: auto;
}

.project-modal-content .project-modal-content-title {
  color: #2d3748;
  font-family: "FK Display";
  font-size: 40px;
  font-style: normal;
  font-weight: 400;
  line-height: 130%;
}

.project-modal-content .project-modal-content-paragraph {
  color: #2d3748;
  font-family: Figtree;
  font-size: 18px;
  font-style: normal;
  font-weight: 400;
  line-height: 150%;
}

.project-modal-content .project-modal-content-paragraph img {
  width: 100%;
  height: auto;
}

@media (max-width: 868px) {
  .project-modal {
    align-items: end;
  }

  .project-modal-container {
    width: 100%;
    height: 94%;
    margin: 0;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    padding-bottom: 0;
  }

  .project-modal-header {
    padding: 15px;
    font-size: 24px;
  }

  .project-modal-content {
    padding: 0px 16px 32px;
  }
}
