/* Gallery Section Styles */

.gallery-section {
  padding: 100px 0;
  background: #f9f9f9;
}

.section-titles {
  text-align: center;
  margin-bottom: 60px;
}

.section-titles h2 {
  font-size: 36px;
  color: #333;
  margin-bottom: 15px;
  position: relative;
  display: inline;
}

.section-titles h2:after {
  content: "";
  position: absolute;
  width: 60px;
  height: 2px;
  background: #e53f29;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
}

.section-titles p {
  color: #777;
  font-size: 16px;
  max-width: 700px;
  margin: 30px auto;
}

.gallery-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 5px;
  /* box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1); */
  transition: all 0.3s ease;
}

.gallery-item:hover {
  transform: translateY(-5px);
  /* box-shadow: 0 10px 25px rgb(0, 0, 0); */
}

.gallery-img {
  /* width: 100%; */
  /* height: 200px; */
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.gallery-item:hover .gallery-img {
  transform: scale(1.05);
}

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(229, 63, 41, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-icon {
  color: #fff;
  font-size: 30px;
}

.gallery-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 15px;
  /* background: rgba(0, 0, 0, 0.7); */
  color: #fff;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-caption {
  transform: translateY(0);
}

.gallery-caption h3 {
  font-size: 16px;
  margin-bottom: 5px;
}

.gallery-caption p {
  font-size: 13px;
  margin: 0;
  opacity: 0.8;
}

/* Filter Controls */

.gallery-filter {
  text-align: center;
  margin-bottom: 40px;
}

.filter-btn {
  display: inline-block;
  padding: 8px 20px;
  background: #fff;
  color: #333;
  border: 1px solid #ddd;
  margin: 0 5px;
  cursor: pointer;
  transition: all 0.3s ease;
  border-radius: 30px;
}

.filter-btn.active,
.filter-btn:hover {
  background: #e53f29;
  color: #fff;
  border-color: #e53f29;
}

/* Responsive Adjustments */

@media (max-width: 768px) {
  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  }
  .section-title h2 {
    font-size: 28px;
  }
}

@media (max-width: 576px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }
  .filter-btn {
    margin-bottom: 10px;
  }
}
