/* ============================================
   GALLERY PAGE STYLES - Light Theme v2
   ============================================ */

/* ----- Gallery Filters ----- */
.gallery-filters {
  display: flex;
  justify-content: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-2xl);
  flex-wrap: wrap;
}

.gallery-filter {
  padding: 0.55rem 1.35rem;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 500;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-full);
  background: transparent;
  color: var(--color-text-muted);
  cursor: pointer;
  transition: all var(--transition-base);
}

.gallery-filter:hover {
  border-color: var(--color-secondary);
  color: var(--color-secondary);
  transform: translateY(-1px);
}

.gallery-filter.active {
  background: linear-gradient(135deg, var(--color-secondary), var(--color-secondary-dark));
  border-color: transparent;
  color: white;
  font-weight: 600;
  box-shadow: 0 4px 14px rgba(59, 151, 212, 0.25);
}

/* ----- Gallery Grid (Masonry) ----- */
.gallery-grid {
  columns: 3;
  column-gap: var(--space-lg);
}

.gallery-item {
  break-inside: avoid;
  margin-bottom: var(--space-lg);
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  transition: all var(--transition-base);
  box-shadow: var(--shadow-sm);
}

.gallery-item img {
  width: 100%;
  display: block;
  transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-item:hover {
  box-shadow: var(--shadow-lg);
}

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

.gallery-item-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top,
    rgba(26, 26, 46, 0.9) 0%,
    rgba(26, 26, 46, 0.4) 40%,
    transparent 70%
  );
  opacity: 0;
  transition: opacity var(--transition-base);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--space-xl);
}

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

.gallery-item-overlay h4 {
  font-size: 1rem;
  margin-bottom: 0.2rem;
  color: white;
}

.gallery-item-overlay p {
  font-size: 0.8rem;
  margin: 0;
  color: rgba(255, 255, 255, 0.7);
}

.gallery-item-overlay .expand-icon {
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  color: white;
  font-size: 0.85rem;
  transition: all var(--transition-base);
}

.gallery-item:hover .expand-icon {
  background: var(--color-secondary);
  color: white;
  transform: rotate(45deg);
}

/* ----- Responsive ----- */
@media (max-width: 1024px) {
  .gallery-grid {
    columns: 2;
  }
}

@media (max-width: 768px) {
  .gallery-grid {
    columns: 2;
    column-gap: var(--space-md);
  }

  .gallery-item {
    margin-bottom: var(--space-md);
  }

  .gallery-filters {
    gap: 0.4rem;
  }

  .gallery-filter {
    font-size: 0.75rem;
    padding: 0.45rem 1rem;
  }
}

@media (max-width: 480px) {
  .gallery-grid {
    columns: 1;
  }
}
