.modal-button {
  cursor: pointer;
}

.modal {
  display: none; /* Hidden by default */
  position: fixed; /* Stay in place */
  z-index: 1; /* Sit on top */
  left: 0;
  top: 0;
  width: 100%; /* Full width */
  height: 100%; /* Full height */
  overflow: auto; /* Enable scroll if needed */
  background-color: rgb(0,0,0); /* Fallback color */
  background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
  
  /* ADD THESE TWO LINES: Helps center the content when display: flex is triggered */
  justify-content: center;
  align-items: center;
}

/* Modal Content/Box */
.modal-content {
  background-color: #fefefe;
  /* margin: 5% auto; <-- Remove this so flexbox can handle the centering smoothly */
  padding: 20px 0 0 0px; /* FIXED: Added 'px' to the first value. '20' alone is invalid syntax */
  border: 1px solid #888;
  width: 1000px; 
  max-width: 95%; /* Good practice to keep it responsive */
  height: 749px;
  max-height: 90vh;
  position: relative; /* Gives the close button a proper anchor point */
  
  /* This will now look for the keyframes block below */
  animation: zoom 0.5s ease forwards; 
}

.modal-content p {
  position: relative;
  padding-top: 30px;
}

/* The Close Button */
.close {
  color: #000;
  font-size: 20px;
  font-weight: 400;
  margin-top: 10px;	
  position: absolute;
  top: 1px;
  right: 35px;
  z-index: 2; /* Keeps the button clickable over the image container */
}

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

/* ADD THIS NEW BLOCK to define the animation */
@keyframes zoom {
  from {
    transform: scale(0);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}
