.mapping-section {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  column-gap: 250px;
  row-gap: 100px;
  padding: 30px;
}

.mapping-section2 {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  column-gap: 250px;
  row-gap: 100px;
  padding: 30px;
}

.mapping-box {
  width: 300px;
  position: relative;
  overflow: hidden;
  border: 1px solid #ccc;
  padding: 15px;
  background: white;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  text-align: center;
  border-radius: 8px;
  transition: transform 0.3s ease;
}

.mapping-box2 {
  width: 300px;
  position: relative;
  overflow: hidden;
  border: 1px solid #ccc;
  padding: 15px;
  background: white;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  text-align: center;
  border-radius: 8px;
  transition: transform 0.3s ease;
}

.mapping-header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 2;
  font-weight: bold;
  color: white;
  text-align: center;
  text-decoration: none;
  font-size: 16px;
  transition: all 0.3s ease;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 40px;
  border-radius: 8px 8px 0 0;
}

.mapping-header2 {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 2;
  font-weight: bold;
  color: white;
  text-align: center;
  text-decoration: none;
  font-size: 16px;
  transition: all 0.3s ease;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 40px;
  border-radius: 8px 8px 0 0;
}

.mapping-header.green {
  background-color: #007940;
  color: white;
}

.mapping-box:hover .mapping-header {
  height: 285px;
  font-size: 20px;
}

.mapping-header2.green2 {
  background-color: #007940;
  color: white;
}

/* .mapping-box2:hover .mapping-header2 {
  height: 350px;
  font-size: 20px;
} */

/* Image now comes below the green bar */
.mapping-box img {
  width: 225px;
  height: 225px;
  margin-top: 45px;
  border-radius: 4px;
  transition: opacity 0.3s ease;
  z-index: 1;
  position: relative;
}

.mapping-box2 img {
  width: 285px;
  height: 285px;
  margin-top: 45px;
  border-radius: 4px;
  transition: opacity 0.3s ease;
  z-index: 1;
  position: relative;
  object-fit: cover;
}

.mapping-box h3,
.mapping-box p {
  transition: opacity 0.3s ease;
  z-index: 1;
  position: relative;
  margin-top: 10px;
}

.mapping-box2 h3,
.mapping-box2 p {
  transition: opacity 0.3s ease;
  z-index: 1;
  position: relative;
  margin-top: 10px;
}

.mapping-box:hover img,
.mapping-box:hover h3,
.mapping-box:hover p {
  opacity: 0.7;
}

.mapping-box2:hover img,
.mapping-box2:hover h3,
.mapping-box2:hover p {
  opacity: 0.7;
}

.mapping-box h3 a {
  color: #0079c1;
  text-decoration: none;
}

.mapping-box p {
  font-size: 14px;
  color: #444;
}

.mapping-box2 h3 a {
  color: #0079c1;
  text-decoration: none;
}

.mapping-box2 p {
  font-size: 14px;
  color: #444;
}

.note {
  color: red;
  font-weight: bold;
}

@media screen and (min-width: 0px) {
    .image1{
        height: 130px;
    }
    .image2{
        height: 130px;
    }
    .image3{
        height: 160px;
    }
    .image4{
        height: 130px;
    }
    .image5{
        height: 130px;
    }
    .image6{
        height: 160px;
    }
    .grid-containerTwo {
        display: grid;
        grid-template-areas:
        'first first second second'
        'third third third third'
        'fourth fourth fifth fifth'
        'sixth sixth sixth sixth';
        gap: 10px;
        background-color: #FFF;
        padding: 10px;
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
    .image1 { grid-area: first; }
    .image2 { grid-area: second; }
    .image3 { grid-area: third; }
    .image4 { grid-area: fourth; }
    .image5 { grid-area: fifth; }
    .image6 { grid-area: sixth; }
    .joeImg {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: 0px 0px;
    }
}

@media screen and (min-width: 1100px) {
  .joeImg {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: 0px -130px;
  }
}

@media screen and (min-width: 768px) {
    .image1{
        height: 230px;
    }
    .image2{
        height: 230px;
    }
    .image3{
        height: 300px;
    }
    .image4{
        height: 230px;
    }
    .image5{
        height: 230px;
    }
    .image6{
        height: 300px;
    }
}
