/* Gallery Section Styles */
.gallery {
  padding: 80px 40px;
  background-color: #f9f9f9;
}

.gallery-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 64px;
}

.gallery-header h2 {
  font-size: 2.5rem;
  margin-top: 16px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.gallery-item {
  position: relative;
  height: 0;
  padding-bottom: 65%;
  overflow: hidden;
  border-radius: 8px;
  cursor: pointer;
}

.gallery-item img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  opacity: 0;
  display: flex;
  align-items: flex-end;
  padding: 24px;
  transition: all 0.4s ease;
}

.gallery-info {
  transform: translateY(20px);
  opacity: 0;
  transition: all 0.5s ease;
  transition-delay: 0.1s;
}

.gallery-info h3 {
  color: #fff;
  font-size: 1.3rem;
  margin-bottom: 8px;
}

.gallery-info p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
}

.gallery-item:hover img {
  transform: scale(1.1);
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-item:hover .gallery-info {
  transform: translateY(0);
  opacity: 1;
}

/* Media Queries */
@media screen and (max-width: 991px) {
  .gallery {
    padding: 64px 40px;
  }
  
  .gallery-header h2 {
    font-size: 2rem;
  }
}

@media screen and (max-width: 767px) {
  .gallery {
    padding: 64px 24px;
  }
  
  .gallery-header {
    margin-bottom: 40px;
  }
  
  .gallery-header h2 {
    font-size: 1.8rem;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  }
}