#projectModal {
  width: 90vw; /* Smaller modal width for mobile */
  max-width: 1000px; /* Ensure it doesn’t get too wide */
  max-height: 80vh;
  padding: 20px;
  border-radius: 8px;
  background-color: white;
  margin: 10vh auto; /* Centered for mobile */
  animation: slideIn 0.3s ease-out;
}

.modal-gallery {
  position: absolute; /* Absolute positioning for draggable functionality */
  max-width: 80%;
  width: 80%;
  padding: 20px;
  border: none;
  border-radius: 8px;
  background-color: #ffffff;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #ddd;
  padding-bottom: 10px;
}

.modal-header h2 {
  margin: 0;
}

#portfolio .portfolio-box {
  position: relative;
  display: block;
  overflow: hidden;
}

#portfolio .portfolio-box img {
  height: 250px; /* Adjust height as needed */
  width: 100%; /* Ensure the image fills the width of the container */
  object-fit: cover; /* Crop image to fill the height without stretching */
}

This CSS s

#portfolio .portfolio-box:hover img {
  transform: scale(1.05); /* Slight zoom on hover */
}

#portfolio .portfolio-box-caption {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  opacity: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  color: white;
  text-align: center;
  transition: opacity 0.3s ease;
}

#portfolio .portfolio-box:hover .portfolio-box-caption {
  opacity: 1;
}

#portfolio .portfolio-box-caption .project-category {
  font-size: 0.9em;
  font-weight: 300;
}

#portfolio .portfolio-box-caption .project-name {
  font-size: 1.2em;
  font-weight: 700;
  margin-top: 5px;
}

/* Mobile-Specific Styles */
@media (max-width: 375px) {
  .cta {
      padding: 5px 15px;
      font-size: 12px;
  }

  #projectModal {
      width: 95vw;
      max-width: 300px;
      margin: 20vh auto;
  }
}