.gallery-heading {
  text-align: center;
  color: green;
  font-size: 2.5em;
  margin-bottom: 20px;
}

#gallery-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-gap: 20px;
}

.gallery-item {
  border: 1px solid #ddd;
  padding: 10px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-item h3,
.gallery-item p {
  margin: 0;
}

.gallery-item h3 {
  margin-top: 10px;
  font-size: 20px;
}

.gallery-item p {
  font-size: 16px;
}

#button-container {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

#button-container button {
  display: inline-block;
  padding: 10px 20px;
  background-color: green;
  color: #ffffff;
  font-family: 'Arial', sans-serif;
  font-size: 16px;
  text-decoration: none;
  border-radius: 5px;
  transition: background-color 0.3s ease;
  cursor: pointer;
  border: none;
  color: #fff;
  transition: background-color 0.3s ease;
}

#button-container button:hover {
  background-color: yellow;
  color: black;
}

/* Responsive styles */
@media (max-width: 768px) {
  /* Adjust grid columns for small screens */
  #gallery-container {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Center-align button container */
  #button-container {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  /* Adjust grid columns further for smaller screens */
  #gallery-container {
    grid-template-columns: 1fr;
  }

  /* Reduce font size for small screens */
  .gallery-heading {
    font-size: 1.8em;
  }

  .gallery-item h3 {
    font-size: 18px;
  }

  .gallery-item p {
    font-size: 14px;
  }
}
