/* Gallery Section */
.gallery-section {
  padding: 60px 30px 80px;
  min-height: calc(100vh - var(--header-height));
}

.gallery-container {
  max-width: 1400px;
  margin: 0 auto;
}

/* Filter Buttons */
.gallery-filter {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 50px;
  padding: 20px;
  background: rgba(26, 26, 26, 0.4);
  border: 1px solid var(--border-ui);
  border-radius: 12px;
  backdrop-filter: blur(10px);
}

.filter-btn {
  padding: 12px 28px;
  background: rgba(43, 43, 43, 0.6);
  border: 2px solid var(--border-ui);
  border-radius: 8px;
  color: var(--text-secondary);
  font-family: 'Poppins Medium', sans-serif;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.filter-btn:hover {
  background: rgba(200, 178, 138, 0.15);
  border-color: var(--accent-gold);
  color: var(--text-primary);
  transform: translateY(-2px);
}

.filter-btn.active {
  background: linear-gradient(135deg, var(--accent-gold) 0%, var(--accent-hover) 100%);
  border-color: var(--accent-gold);
  color: var(--bg-primary);
  box-shadow: 0 4px 15px rgba(200, 178, 138, 0.4);
}

/* Gallery Grid */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  background: var(--bg-secondary);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

.gallery-item.hidden {
  display: none;
}

.gallery-image {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 0.8;
  object-fit: cover;
  border-radius: 12px;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  background: linear-gradient(135deg, rgba(43, 43, 43, 0.3) 0%, rgba(26, 26, 26, 0.3) 100%);
}

.gallery-item:hover .gallery-image {
  transform: scale(1.03);
}

/* Image overlay effect on hover */
.gallery-item::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(200, 178, 138, 0.1) 100%
  );
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
  border-radius: 12px;
}

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

/* Loading placeholder */
.gallery-image[data-src] {
  background: linear-gradient(
    135deg,
    rgba(43, 43, 43, 0.5) 0%,
    rgba(26, 26, 26, 0.5) 50%,
    rgba(43, 43, 43, 0.5) 100%
  );
  background-size: 200% 200%;
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Mobile - Tablet */
@media (max-width: 968px) {
  .gallery-section {
    padding: 40px 20px 60px;
  }

  .gallery-filter {
    gap: 10px;
    margin-bottom: 40px;
    padding: 16px;
  }

  .filter-btn {
    padding: 10px 20px;
    font-size: 13px;
  }

  .gallery-grid {
    gap: 20px;
  }
}

/* Mobile - Single Column */
@media (max-width: 768px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }
}

/* Small Mobile */
@media (max-width: 480px) {
  .gallery-section {
    padding: 30px 15px 50px;
  }

  .gallery-filter {
    gap: 8px;
    margin-bottom: 30px;
    padding: 12px;
  }

  .filter-btn {
    padding: 8px 16px;
    font-size: 12px;
  }

  .gallery-grid {
    gap: 15px;
  }
}