

.gallery-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 60px 80px;
}


.gallery-hero {
  text-align: center;
  margin-bottom: 40px;
}

.gallery-title {
  font-size: 42px;
  font-weight: 700;
  font-family: 'Alatsi', sans-serif;
  margin: 0 0 12px;
  color: #1b1b1b;
}

.gallery-subtitle {
  font-size: 16px;
  color: #6b7280;
  font-family: 'Poppins', sans-serif;
  margin: 0;
}


.gallery-filters {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 10px 24px;
  background: #fff;
  border: 2px solid #e5e7eb;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  font-family: 'Poppins', sans-serif;
  color: #374151;
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-btn:hover {
  border-color: #74a660;
  background: #eaf4ea;
  color: #145214;
}

.filter-btn.active {
  background: #145214;
  border-color: #145214;
  color: #fff;
}


.gallery-grid {
  column-count: 4;
  column-gap: 16px;
}

.gallery-item {
  break-inside: avoid;
  margin-bottom: 16px;
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  cursor: pointer;
  background: #f5f5f5;
}

.gallery-img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-img {
  transform: scale(1.05);
}


.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: 12px;
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-icon {
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}


.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.95);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.lightbox.active {
  display: flex;
  opacity: 1;
}

.lightbox-img {
  max-width: 90%;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #fff;
  transition: all 0.2s ease;
  backdrop-filter: blur(10px);
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.5);
  transform: scale(1.1);
}

.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #fff;
  transition: all 0.2s ease;
  backdrop-filter: blur(10px);
}

.lightbox-prev {
  left: 20px;
}

.lightbox-next {
  right: 20px;
}

.lightbox-prev:hover,
.lightbox-next:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-50%) scale(1.1);
}

.lightbox-counter {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  font-family: 'Poppins', sans-serif;
  backdrop-filter: blur(10px);
}




@media (max-width: 1024px) {
  .gallery-grid {
    column-count: 3;
  }

  .gallery-title {
    font-size: 36px;
  }
}


@media (max-width: 768px) {
  .gallery-container {
    padding: 30px 16px 60px; 
  }

  .gallery-grid {
    column-count: 2;
    column-gap: 14px; 
  }

  .gallery-item {
    margin-bottom: 14px; 
  }

  .gallery-title {
    font-size: 28px;
  }

  .gallery-subtitle {
    font-size: 14px;
  }

  .filter-btn {
    padding: 8px 16px;
    font-size: 12px;
  }

  .lightbox-prev,
  .lightbox-next {
    width: 44px;
    height: 44px;
  }

  .lightbox-prev {
    left: 10px;
  }

  .lightbox-next {
    right: 10px;
  }

  .lightbox-close {
    width: 40px;
    height: 40px;
    top: 10px;
    right: 10px;
  }

  .lightbox-img {
    max-width: 95%;
  }
}


@media (max-width: 480px) {
  .gallery-grid {
    column-count: 2; 
    column-gap: 10px;
  }

  .gallery-item {
    margin-bottom: 10px;
  }

  .gallery-filters {
    gap: 8px;
  }

  .filter-btn {
    padding: 6px 12px;
    font-size: 11px;
  }
}


.gallery-item img {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
}

@keyframes loading {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.gallery-item img[src] {
  background: none;
  animation: none;
}
