/* Gallery Styles */
.gallery-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 40px;
}

.filter-btn {
  background: transparent;
  border: 1.5px solid rgba(229, 57, 53, 0.2);
  padding: 10px 24px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.9rem;
  color: #2d2d2d;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: inherit;
}

.filter-btn:hover {
  border-color: #e53935;
  color: #e53935;
  transform: translateY(-2px);
}

.filter-btn.active {
  background: linear-gradient(135deg, #e53935, #b71c1c);
  border-color: transparent;
  color: white;
  box-shadow: 0 8px 20px rgba(229, 57, 53, 0.3);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 28px;
}

.gallery-item {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
  transition: all 0.4s cubic-bezier(0.2, 0.9, 0.4, 1.1);
  background: #fff;
}

.gallery-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 25px 40px rgba(0, 0, 0, 0.15);
}

.gallery-img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.gallery-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.85), transparent);
  padding: 20px 16px 16px;
  color: white;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
  transform: translateY(0);
}

.gallery-overlay h4 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.gallery-overlay p {
  font-size: 0.8rem;
  opacity: 0.9;
}

/* Lightbox Modal */
.lightbox-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.92);
  z-index: 1100;
  backdrop-filter: blur(12px);
  justify-content: center;
  align-items: center;
  cursor: pointer;
}

.lightbox-content {
  max-width: 85vw;
  max-height: 85vh;
  position: relative;
  animation: fadeInScale 0.25s ease;
}

@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.lightbox-img {
  width: auto;
  max-width: 100%;
  max-height: 85vh;
  border-radius: 16px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.lightbox-caption {
  position: absolute;
  bottom: -40px;
  left: 0;
  right: 0;
  text-align: center;
  color: white;
  font-size: 1rem;
  font-weight: 500;
  text-shadow: 0 2px 8px black;
}

.close-lightbox {
  position: absolute;
  top: -50px;
  right: 0;
  font-size: 36px;
  color: white;
  cursor: pointer;
  transition: transform 0.2s;
}

.close-lightbox:hover {
  transform: scale(1.1);
  color: #e53935;
}

@media (max-width: 640px) {
  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
  }
  .lightbox-content {
    max-width: 95vw;
  }
}
