/* Modal base style */
.modal {
  display: none; /* Hidden by default */
  position: fixed; /* Stay in place */
  z-index: 1000; /* Sit on top */
  left: 0;
  top: 0;
  width: 100%; /* Full width */
  height: 100%; /* Full height */
  overflow: auto; /* Enable scroll if needed */
  background-color: rgba(0,0,0,0.6); /* Black w/ opacity */
  -webkit-animation-name: fadeIn;
  -webkit-animation-duration: 0.4s;
  animation-name: fadeIn;
  animation-duration: 0.4s
}

/* Modal content */
.modal-content {
  position: fixed;
  background-color: #fefefe;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  -webkit-animation-name: fadeIn;
  -webkit-animation-duration: 0.4s;
  animation-name: fadeIn;
  animation-duration: 0.4s;
  border-radius: 18px;
  padding: 20px;
  border: 1px solid #888;
  width: 90%;
  max-width: 600px;
  background: var(--card);
  max-height: 90vh;
  overflow-y: auto;
}

.project-modal-btn {
  color: var(--muted);
}


/* The Close Button */
.close {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
}

.close:hover,
.close:focus {
  color: black;
  text-decoration: none;
  cursor: pointer;
}

#modal-image {
    width: 100%;
    height: auto;
    border-radius: 12px;
    margin-bottom: 15px;
    max-height: 60vh;
    object-fit: contain;
}

#modal-description {
    font-size: 16px;
    line-height: 1.6;
    color: var(--text);
}



@-webkit-keyframes fadeIn {
  from {opacity: 0} 
  to {opacity: 1}
}

@keyframes fadeIn {
  from {opacity: 0} 
  to {opacity: 1}
}