/* General Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  background: #f9f9f9;
  color: #333;
}

/* header, footer {
  background-color: #222;
  color: #fff;
  text-align: center;
  padding: 20px 10px;
} */

.gallery-section {
  padding: 30px 15px;
  text-align: center;
}

.gallery-section h2 {
  font-size: 2em;
  margin-bottom: 30px;
  color: #333;
}
.gallery {
  display: grid;
  /* grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); */
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
  justify-items: center;
  /* align-items: center; */
  align-items: start;
}

.gallery-item {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  width: 100%;

}

.gallery-item:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 20px rgba(245, 247, 247, 0.2);
}

.gallery-item img {
  width: 100%;
  height: auto;
  display: block;
  border-bottom: 1px solid #ececec;
  border-radius: 12px 12px 0 0;
}

.gallery-item p {
  padding: 10px;
  font-weight: 500;
  color: #444;
  text-transform: capitalize;
}

@media (max-width: 1024px) {
  .gallery {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .gallery {
    grid-template-columns: 1fr;
  }
}
