section.projects {
  width: 100%;
  height: 100%;
  padding: 256px 0 0 0;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-gap: 1rem;
  box-sizing: border-box;
}

section a.project {
  grid-column: span 4;
  margin: 0 0 72px 0;

  text-decoration: none;
}

.img-wrapper {
  overflow: hidden; /* This ensures the image is clipped */
  width: 100%; /* Full width to match container */
  height: auto;

  border-radius: 0px; /* Initial state */
  transition: border-radius 0.3s ease-in-out; /* Smooth border-radius transition */
}

.project img {
  max-height: 700px; /* Increase height as needed */
  object-fit: cover; /* Ensures image maintains aspect ratio without stretching */

  width: 100%;
  transition: transform 0.3s ease-in-out;
  transform-origin: center;
}

.project h2 {
  font-family: 'FT System Blank Bold';
  font-size: 24px;
  margin: 10px 0 2px 0;
  color: var(--dark-color);
}

.project h4 {
  font-family: 'FT System Blank Book';
  font-size: 24px;
  color: var(--dark-color);
}

p.request {
  font-family: 'FT System Mono';
  font-size: 12px;
  text-transform: uppercase;
  color: var(--grey-7);

  margin-top: 16px;
}


@media (max-width: 1024px) {
  section.projects {
    grid-template-columns: repeat(2, 1fr);
  }
  section a.project {
    grid-column: span 1;
  }

  .project h2,
  .project h4 {
    font-size: 18px;
  }
}

/* One project per row on small screens */
@media (max-width: 600px) {
  section.projects {
    grid-template-columns: 1fr;
    padding: 72px 0 0 0;
  }
  section a.project {
    grid-column: span 1;
    margin: 0 0 32px 0;
  }
}
