

.image-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s cubic-bezier(0.4, 0.0, 0.2, 1);
  cursor: none !important;
}

.image-modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.image-modal-content {
  max-width: 800px;
  width: 85%;
  max-height: 80vh;
  overflow-y: auto;
  padding: 3.5rem 3rem 3rem 3rem;
  text-align: left;
  position: relative;
  background-color: #ffffff;
  border-radius: 0px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.25);
  transform: translateY(20px) scale(0.95);
  opacity: 0;
  transition: all 0.5s cubic-bezier(0.4, 0.0, 0.2, 1) 0.1s;
}

.image-modal-overlay.active .image-modal-content {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.image-modal-heading {
  font-family: "Poppins", sans-serif;
  font-size: 2.8rem;
  font-weight: 300;
  line-height: 1.3;
  color: #000000;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin: 0 0 2rem 0;
}

.image-modal-paragraph {
  font-family: "Poppins", sans-serif;
  font-size: 1.1rem;
  font-weight: 300;
  line-height: 1.8;
  color: rgba(0, 0, 0, 0.8);
  letter-spacing: 0.3px;
  text-transform: uppercase;
  margin: 0 0 3rem 0;
  max-width: 700px;
}

.image-modal-location {
  font-family: "Poppins", sans-serif;
  font-size: 0.85rem;
  font-weight: 400;
  color: rgba(0, 0, 0, 0.6);
  letter-spacing: 1px;
  text-transform: uppercase;
  position: absolute;
  bottom: 3rem;
  right: 3rem;
  margin: 0;
}

body.dark-mode .image-modal-overlay {
  background-color: rgba(0, 0, 0, 0.6);
}

body.dark-mode .image-modal-content {
  background-color: #000000;
  box-shadow: 0 25px 60px rgba(255, 255, 255, 0.1);
}

body.dark-mode .image-modal-heading {
  color: #ffffff;
}

body.dark-mode .image-modal-paragraph {
  color: rgba(255, 255, 255, 0.8);
}

body.dark-mode .image-modal-location {
  color: rgba(255, 255, 255, 0.6);
}

@media screen and (max-width: 768px) {
  .image-modal-content {
    width: 90%;
    padding: 2.5rem 2rem 3rem 2rem;
    max-height: 85vh;
  }

  .image-modal-heading {
    font-size: 2rem;
    margin-bottom: 1.5rem;
  }

  .image-modal-paragraph {
    font-size: 1rem;
    margin-bottom: 2.5rem;
  }

  .image-modal-location {
    font-size: 0.75rem;
    bottom: 2rem;
    right: 2rem;
  }
}

@media screen and (max-width: 480px) {
  .image-modal-content {
    width: 92%;
    padding: 2rem 1.5rem 3rem 1.5rem;
    max-height: 90vh;
  }

  .image-modal-heading {
    font-size: 1.6rem;
    margin-bottom: 1.2rem;
  }

  .image-modal-paragraph {
    font-size: 0.95rem;
    line-height: 1.7;
  }

  .image-modal-location {
    font-size: 0.7rem;
    bottom: 1.5rem;
    right: 1.5rem;
  }
}
