.modal-link {
  cursor: pointer;
  color: #ff9d00;
  text-decoration: underline;
  font: normal normal 600 18px Montserrat;
  margin-top: 15px;
}

.target-modal {
  display: none;
}
.target-modal:checked ~ .modal {
  opacity: 1;
  visibility: visible;
  pointer-events: initial;
}
.target-modal:checked ~ .modal .modal-inner {
  transform: none;
}

.modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: all 0.3s ease-in-out;
}
.modal .modal-inner {
  position: relative;
  text-align: center;
  flex: none;
  width: 800px;
  height: 700px;
  background: #eeeeee;
  border-radius: 8px;
  z-index: 2;
  box-shadow: 0 4px 22px rgba(0, 0, 0, 0.45);
  transform: translate(0, 100%);
  transition: all 0.3s ease;

  display: flex;
  justify-content: center;
  align-items: center;
}
.modal .modal-inner .close-modal {
  position: absolute;
  top: 1.2rem;
  right: 1.2rem;
  height: 24px;
  width: 24px;
  display: inline-block;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='36.18' height='36.18' viewBox='0 0 36.18 36.18'%3E%3Cpath d='M18.09,3.015A15.075,15.075,0,1,1,3.015,18.09,15.092,15.092,0,0,1,18.09,3.015ZM18.09,0A18.09,18.09,0,1,0,36.18,18.09,18.091,18.091,0,0,0,18.09,0Zm9.045,24.931-6.922-6.856,6.853-6.915L24.931,9.045l-6.852,6.918L11.163,9.114,9.045,11.232l6.924,6.862L9.114,25.017l2.118,2.118L18.1,20.206l6.921,6.859,2.115-2.135Z' fill='%23333'/%3E%3C/svg%3E%0A");
  background-size: contain;
  background-repeat: no-repeat;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 1;
}
.modal .modal-inner .close-modal:hover {
  opacity: 0.45;
}
.modal .modal-inner h2 {
  font-size: 3rem;
}
.modal .modal-inner h3 {
  font-weight: 400;
}
.modal .overlay-modal {
  position: absolute;
  background: rgba(0, 0, 0, 0.75);
  height: 100%;
  width: 100%;
  z-index: 1;
}
.modal .img-content {
  position: relative;
  width: 296px;
  height: 100%;
  overflow: hidden;
  border-radius: 10px 0 0 10px;
}
.modal .img-content img {
  position: absolute;
  top: -9999px;
  left: -9999px;
  right: -9999px;
  bottom: -9999px;
  margin: auto;
}
.modal .img-content #img-5{
  position: absolute;
  top: -9950px;
  left: -9999px;
  right: -9999px;
  bottom: -9999px;
  margin: auto;
}
.modal .text-content {
  position: relative;
  height: inherit;
  max-width: 504px;
  padding: 40px 30px;
  text-align: left;
}
.modal .text-content p {
  font: normal normal 500 14px Montserrat;
  color: #000000;
}
@media screen and (min-width: 1024px) and (max-width: 1440px) {
  .modal .text-content p.variation-1 {
    font-size: 12px;
  }
}
.modal .text-content h2 {
  font: normal normal 700 28px Montserrat;
  color: #ffa300;
  margin: 0 0 15px;
}
.modal .social-icons {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  position: absolute;
  bottom: 10px;
}

@media screen and (min-width: 1024px) and (max-width: 1440px) {
  .modal .modal-inner {
    width: 60vw;
    height: 80vh;
    max-width: 800px;
  }
  .modal .img-content {
    position: relative;
    width: 480px;
    height: 100%;
    overflow: hidden;
    border-radius: 10px 0 0 10px;
  }
}

@media screen and (max-width: 505px) {
  .modal .modal-inner {
    flex-wrap: wrap;
    padding: 30px 0;
  }
  .modal .img-content {
    width: 172px;
    height: 172px;
    border-radius: 100%;
  }
  .modal .modal-inner {
    width: 90%;
    max-width: 365px;
    height: 780px;
  }
  .modal .text-content {
    padding: 15px 20px;
    max-height: 560px;
  }
  .modal .text-content p {
    font-size: 12px;
  }
}
@media screen and (max-height: 667px) and (max-width: 500px) {
  .modal .modal-inner {
    height: 90vh;
    max-height: 600px;
  }
  .modal .text-content {
    max-height: 395px;
  }
  .modal .text-content p {
    max-height: 270px;
    overflow: scroll;
  }
}
