body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  flex-direction: column;
  overflow-y: auto;
}

@font-face {
  font-family: "Arial Nova Light";
  src: url("fonts/ArialNova-Light.ttf") format("truetype");
}

.image-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  padding: 30px;
  margin-top: 10vh;
}

.image-item {
  position: relative;
  overflow: hidden;
  text-align: center;
  opacity: 0;
  animation: fadeIn 0.5s forwards;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
  }
}

.image-item:nth-child(1) {
  animation-delay: 0s;
}

.image-item:nth-child(2) {
  animation-delay: 0.2s;
}

.image-item:nth-child(3) {
  animation-delay: 0.4s;
}

.image-item:nth-child(4) {
  animation-delay: 0.6s;
}

.image-item:nth-child(5) {
  animation-delay: 0.8s;
  filter: blur(5px);
}

.image-item:nth-child(6) {
  animation-delay: 1s;
  filter: blur(5px);
}

.image-item:nth-child(7) {
  animation-delay: 1.2s;
  filter: blur(5px);
}

.image-item:nth-child(8) {
  animation-delay: 1.4s;
  filter: blur(5px);
}

.image-item img {
  width: 100%;
  height: auto;
  transition: filter 0.3s ease;
  filter: grayscale(100%);
  margin-bottom: 20px;
}

.image-item:hover img {
  filter: grayscale(0%);
}

.overlay {
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.image-item:hover .overlay {
  opacity: 1;
}

.overlay p {
  text-decoration: none;
  color: rgb(230, 230, 230);
  font-size: 12px;
  font-family: "Arial Nova Light", Arial, Helvetica;
  font-weight: bold;
  font-style: italic;
  line-height: 0.5;

}

.overlay h3 {
  text-decoration: none;
  color: rgb(255, 95, 69);
  font-size: 12px;
  font-family: Arial, sans-serif;
  font-weight: bold;
  text-align: left;
  font-style: italic;
}

@media screen and (max-width: 768px) {
  .overlay {
    opacity: 1;
  }
  .image-grid {
    grid-template-columns: 1fr;
    margin-top: 10vh;
  }
}
