.modal {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 1000;
}

.modal.active {
  display: block;
}

.modal-overlay {
  position: absolute;
  inset: 0;
  backdrop-filter: blur(20px);
  background: rgba(0,0,0,0.5);
}

/* CONTENT */
.modal-content {
  position: relative;
  width: 90%;
  height: 90%;
  margin: auto;
  top: 5%;
  background: white;
  display: flex;
  border-radius: 20px;
  overflow: hidden;
}

/* GALLERY */
.modal-gallery {
  width: 60%;
  overflow-y: auto;
  scroll-behavior: smooth;
}

.modal-gallery img {
  width: 100%;
  display: block;
}


/* INFO */
.modal-info {
  width: 40%;
  padding: 40px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  color: #7C6981;
}

.modal-info h2 {
  margin-top: 0;
  font-size: 28px;
  color: #CBAED3;
}

.subtitle {
  margin-bottom: 3rem;
  margin-top: .5rem;
}

.description {
  line-height: 1.4;
}

p.modal-description, p.modal-description p, p.modal-description ul{
  text-align: justify !important;
}

/* .modal-description ul {
  margin-left: 20px;
} */

.meta {
  margin-top: 30px;
  font-size: 14px;
}

.link {
  color: #7C6981;
  font-size: 1.8rem;
  transition: 0.3s ease-in-out;
  margin-left: 1rem;
  font-family: "Titan One", sans-serif;
}
.link:hover {
  color: #CDE0A7;
  transition: 0.3s ease-in-out;
}

/* CLOSE */
.close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  border: none;
  background: none;
  font-size: 2.5rem;
  cursor: pointer;
  color: #7C6981;
  transition: 0.3s ease-in-out;
}
.close-btn:hover {
  color: #CDE0A7;
  transition: 0.3s ease-in-out;
}

/* NAVIGATION */

.navigation {
  display: flex;
  justify-content: space-between;
  margin-top: 4rem;
}

.nav-btn {
  padding: 10px 20px;
  cursor: pointer;
  font-size: 2rem;
  background-color: rgba(203, 174, 211, 20%);
	backdrop-filter: blur(15px);
  color: #7C6981;
  border: none;
  border-radius: 1.5rem;
  transition: 0.3s ease-in-out;
}
.nav-btn:hover {
  background-color: #CDE0A7;
  transition: 0.3s ease-in-out;
  color: #F9F7EB;
}

/* ANIMATION TEXT */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
}


/* RESPONSIVE */
@media (max-width: 900px) {
  .modal-content {
    flex-direction: column;
    width: 95%;
    height: 95%;
    top: 2.5%;
    border-radius: 15px;
  }

  .modal-gallery {
    width: 100%;
    height: 50%;
    display: flex;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
  }

  .modal-gallery img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    flex-shrink: 0;
    scroll-snap-align: start;
  }

  .modal-info {
    width: 100%;
    height: 50%;
    padding: 25px;
  }

  .modal-info h2 {
    font-size: 22px;
  }

  .nav.prev, .nav.next {
    bottom: 10px;
    font-size: 16px;
  }
}