.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  padding: 40px;
  max-width: 1400px;
  margin: auto;
  background-color: #fff;
}

.gallery-item {
  cursor: pointer;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:hover {
  transform: scale(1.02);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.gallery-item:hover img {
  transform: scale(1.07);
}

/* Lightbox Overlay */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.9);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.3s ease;
  padding: 20px;
  box-sizing: border-box;
}

.lightbox img {
  max-width: 100%;
  max-height: 90vh;
  border-radius: 10px;
  box-shadow: 0 0 40px rgba(255, 255, 255, 0.2);
}

.lightbox.show {
  visibility: visible;
  opacity: 1;
}

.lightbox:after {
  content: '✖';
  position: absolute;
  top: 25px;
  right: 35px;
  color: white;
  font-size: 2.5rem;
  cursor: pointer;
  transition: color 0.3s ease;
}

.lightbox:after:hover {
  color: #ff5252;
}

.gallery-section {
  background-color: #fff;
  padding: 40px 20px;
  text-align: center;
}

.gallery-section h2 {
  font-size: 2rem;
  margin-bottom: 15px;
  color: #333;
}

.gallery-section p {
  font-size: 1.1rem;
  color: #666;
  max-width: 800px;
  margin: 0 auto;
}
.gallery-summary {
  background-color: #f8f8f8;
  padding: 40px 20px;
  text-align: center;
}

.gallery-summary h2 {
  font-size: 2rem;
  color: #2b2b2b;
  margin-bottom: 15px;
}

.gallery-summary p {
  font-size: 1.1rem;
  color: #555;
  max-width: 800px;
  margin: 10px auto;
}
