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

.filter-btn {
  padding: 10px 22px;
  border-radius: var(--radius-full);
  border: 1px solid var(--color-border);
  background-color: var(--color-white);
  color: var(--color-text-body);
  font-weight: var(--weight-medium);
  font-size: var(--text-sm);
  cursor: pointer;
  transition: var(--transition-base);
}

.filter-btn:hover,
.filter-btn.active {
  background-color: var(--color-primary);
  color: var(--color-white);
  border-color: var(--color-primary);
  box-shadow: var(--shadow-md);
}

/* Gallery Grid */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-6);
  margin-bottom: var(--space-16);
}

.gallery-item {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  aspect-ratio: 4/3;
  cursor: pointer;
  transition: var(--transition-base);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--duration-slow) var(--ease-out);
}

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

.gallery-item-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(61, 26, 92, 0.85) 0%, rgba(107, 45, 139, 0.3) 60%, rgba(107, 45, 139, 0) 100%);
  opacity: 0;
  display: flex;
  align-items: flex-end;
  padding: var(--space-5);
  transition: opacity var(--duration-normal) var(--ease-default);
  z-index: var(--z-raised);
}

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

.gallery-item-info h4 {
  color: var(--color-white);
  margin-bottom: var(--space-1);
  font-size: var(--text-base);
  font-family: var(--font-body);
  font-weight: var(--weight-bold);
}

.gallery-item-info span {
  color: var(--color-accent-light);
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
}

/* Lightbox overlay styling */
.lightbox-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(26, 26, 46, 0.95);
  backdrop-filter: blur(5px);
  z-index: var(--z-modal);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--duration-normal) var(--ease-default), visibility var(--duration-normal);
}

.lightbox-overlay.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-img-wrapper {
  max-width: 90%;
  max-height: 80%;
  position: relative;
  transform: scale(0.9);
  transition: transform var(--duration-normal) var(--ease-bounce);
}

.lightbox-overlay.active .lightbox-img-wrapper {
  transform: scale(1);
}

.lightbox-img-wrapper img {
  max-width: 100%;
  max-height: 80vh;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xl);
}

.lightbox-close {
  position: absolute;
  top: -40px;
  right: 0;
  color: var(--color-white);
  font-size: var(--text-3xl);
  cursor: pointer;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color var(--duration-fast);
}

.lightbox-close:hover {
  color: var(--color-accent);
}

/* Social Cards */
.social-card {
  text-align: center;
  padding: var(--space-8);
  background-color: var(--color-bg-card);
  border: var(--border-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  transition: var(--transition-base);
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.social-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.social-card svg {
  width: 48px;
  height: 48px;
  margin-bottom: var(--space-4);
}

.social-card h3 {
  font-size: var(--text-lg);
  margin-bottom: var(--space-2);
  color: var(--color-primary-dark);
}

.social-card p {
  font-size: var(--text-sm);
  color: var(--color-text-body);
  margin-bottom: var(--space-6);
  flex-grow: 1;
}

.social-card .btn {
  width: 100%;
}
