/* ImageGallery.css */

html {
  scroll-behavior: smooth;
}

/* Container for the gallery and title */
.gallery-container {
  text-align: center;
  /* Center the title */
  padding: 20px;
  font-family: Arial, Helvetica, sans-serif;
  background-color: white;
}

/* Title Styling */
.gallery-title {
  font-size: 45px;
  font-weight: bold;
  text-transform: uppercase;
  margin-bottom: 30px;
  color: black;
  /* Adjust color as per preference */
}

span {
  color: orange;
}

/* Container for the gallery */
.image-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  /* 4 images per row */
  gap: 16px;
  padding: 20px;
  transition: grid-template-columns 0.3s ease-in-out;
}

/* Each image item */
.image-item {
  position: relative;
  text-align: center;
  overflow: hidden;
  transition: transform 0.3s ease;
}

.image-item img {
  width: 99%;
  height: auto;
  transition: transform 0.3s ease;
  border: 2px solid black;
}

/* Text below the image */
.image-item p {
  margin-top: 8px;
  font-size: 14px;
  color: black;
  font-weight: bold;
}

.image-item p:hover {
  color: orangered;
  transform: scale(1.2);
  transition: 1s;
}

/* Hover effect to increase the image size */
.image-item:hover img {
  border-radius: 50%;
  transition: 1s;
  border: 2px solid black;
}

/* Make the gallery responsive */
@media (max-width: 1200px) {
  .image-gallery {
    grid-template-columns: repeat(3, 1fr);
    /* 3 images per row */
  }
}

@media (max-width: 800px) {
  .image-gallery {
    grid-template-columns: repeat(2, 1fr);
    /* 2 images per row */
  }
}

@media (max-width: 500px) {
  .image-gallery {
    grid-template-columns: 1fr;
    /* 1 image per row */
  }

  .gallery-title {
    font-size: 30px;
    /* Decrease title size on smaller screens */
  }
}