.projects-banner {
  background-image: url(/img/backgrounds/resurfaced_road.jpg);
  background-size: cover; /* Adjust to your liking */
  background-position: center; /* Adjust to your liking */
  margin-top: 10px;
  height: calc(60vh - 10px); /* Adjust to your liking */
  display: flex;
  justify-content: center;
  align-items: center;
}

.projects-banner h2 {
  color: #fff; /* Set the color of your title */
  font-size: 5.5rem; /* Adjust to your liking */
  text-align: center;
  text-shadow: 2px 2px #000; /* Add a shadow to your title */
}

.projects-banner-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  text-shadow: 2px 2px 5px #000000;
}

.projects {
  display: flex;
  flex-wrap: wrap;
  padding: 30px;
}

.image {
  width: 50%;
  padding: 2.5rem;
  box-sizing: border-box;
}

.image img {
  max-width: 100%;
}

figcaption {
  text-align: center;
  margin-top: 5px;
  font-size: 2.6rem;
  line-height: 1.5;
  color: #fff;
  font-family: Roboto;
  font-weight: 450;
  font-style: italic;
}

.image-grid-x3 {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
}

.image-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
}

.image-container3 {
  position: relative;
  width: calc(33.33% - 10px);
  margin-bottom: 20px;
}

.image-container2 {
  position: relative;
  width: calc(50% - 10px);
  height: 50vh;
  margin-bottom: 20px;
}

.image-container2 img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 5px;
}

.image-container img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 5px;
}

.date {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  margin: auto;
  width: 100%;
  text-align: center;
  font-size: 2.5rem;
  font-style: italic;
  color: whitesmoke;
  text-shadow: 2px 2px 5px #000000;
}

.projects-text-container {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 25vh;
}

.projects-text {
  text-align: center;
  border-bottom: solid var(--site-color-01);
  padding: 15px;
  margin-bottom: 25px;
  width: 75%;
}

.projects-text h1 {
  font-size: 5rem;
}

.projects-text h2 {
  font-size: 3.2rem;
}

.learn-more {
  width: 100%;
  text-align: center;
  padding-bottom: 5rem;
}

.learn-more p {
  padding: 20px 0;
  font-size: 3rem;
}

.learn-more a {
  font-size: 1.8rem;
  display: inline;
  background-color: var(--site-color-01);
  padding: 10px 20px;
  width: fit-content;
  border-radius: 10px;
  margin-right: 10px;
}

.learn-more a:hover {
  background-color: var(--site-color-01-hover);
  transition: ease-in-out 15ms;
}

.learn-more a:nth-child(3) {
  background-color: var(--site-color-03-hover);
  color: black;
}

.learn-more a:nth-child(3):hover {
  background-color: var(--site-color-03);
  transition: ease-in-out 15ms;
}

/* Mobile Version */

@media only screen and (max-width: 600px) {
  .projects-banner {
    height: 35vh;
    padding-top: 25px;
  }

  .projects-banner h2 {
    font-size: 4.5rem;
  }

  .projects-text h1 {
    font-size: 4rem;
  }

  .image-grid {
    flex-direction: column;
    align-items: center;
  }

  .image-container3 {
    width: 100vw;
  }

  .image-container2 {
    width: 75%;
    height: 50vh;
  }

  .image-container1 {
    height: fit-content;
    width: 80%;
  }

  .image-container {
    height: fit-content;
    width: 80%;
    column-gap: 20px;
  }

  .learn-more p {
    font-size: 1.2rem;
  }

  .learn-more a {
    font-size: 1.3rem;
  }

  /* Portrait */

  @media (orientation: portrait) {
    .projects-banner {
      padding-top: 50px;
    }

    .image-grid {
      width: 100%;
    }
  }
}

/* Tablet Version */

@media only screen and (max-width: 768px) {
  .image-container2 {
    height: 28vh;
  }
}
