/* ==========================================================================
   GALLERY PAGE STYLESHEET
   ========================================================================== */

.gallery-filters {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.filter-btn {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  color: var(--text-dark);
  padding: 0.6rem 1.4rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: var(--transition);
}

.filter-btn:hover, .filter-btn.active {
  background: var(--accent-yellow);
  color: #ffffff;
  border-color: var(--accent-yellow);
  box-shadow: var(--shadow-yellow);
}

.gallery-grid {
  column-width: 280px;
  column-gap: 1.5rem;
}

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

.gallery-item img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(5, 19, 41, 0.92), rgba(14, 41, 75, 0.35));
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
  opacity: 0;
  transition: var(--transition);
}

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

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

.gallery-overlay h4 { 
  color: var(--accent-yellow); 
  font-size: 1.1rem; 
  margin-bottom: 0.2rem; 
}

.gallery-overlay p { 
  color: var(--bg-white); 
  font-size: 0.85rem; 
}

/* Gallery Responsive Rules */
@media (max-width: 768px) {
  .gallery-filters {
    margin-bottom: 2rem;
    gap: 0.5rem;
  }
  .filter-btn {
    padding: 0.5rem 1.1rem;
    font-size: 0.82rem;
  }
}

@media (max-width: 576px) {
  .gallery-grid {
    column-width: auto;
    column-count: 1;
  }
  .gallery-item {
    margin-bottom: 1.25rem;
  }
}
