h2 {
  margin-bottom: 40px;
}

p {
  margin-bottom: 40px;
}

.blockGallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  width: 100%;
}

.blockGallery a {
  padding: 0px;
  margin: 0px;
  line-height: 0px;
}

.imagebox {
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease;
  box-sizing: content-box;
}

.imagebox:hover {
  transform: scale(1.05);
}

.projectImage img {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.caption {
  position: absolute;
  bottom: 20px;
  background-color: white;
  color: black;
  margin: 0px;

  padding: 20px 20px 15px 20px;
  border-radius: 0px 5px 5px 0px;

  left: -100%;
  /* Start off-screen to the left */
  transition: left 0.3s ease;
}

.imagebox:hover .caption {
  left: 0;
}

.caption p {
  line-height: 1em;
  margin-bottom: 5px;

}

.main iframe {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
}


.imgDesc {
  color: gray;
  font-size: 0.8em;
}

.blockImage img {
  width: 100%;
  height: auto;
  margin-bottom: 40px;
}

@media screen and (max-width: 800px) {
  .blockGallery {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

@media screen and (max-width: 500px) {
  .blockGallery {
    grid-template-columns: repeat(1, 1fr);
    gap: 20px;
  }

  h2 {
    margin-bottom: 20px;
  }
}
