/* ==========================================================================
   ELISIA — Gallery Stylesheet
   Editorial masonry grid, category curation & image frame styling
   ========================================================================== */

.gallery-section {
  padding-top: 3.5rem;
  padding-bottom: 6rem;
}

.gallery-filter-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 3.5rem;
}

.gallery-filter-btn {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.65rem 1.6rem;
  background-color: transparent;
  color: var(--color-text-secondary);
  border: 1px solid rgba(56, 16, 57, 0.12);
  border-radius: var(--radius-xs);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.gallery-filter-btn:hover {
  color: var(--color-coral);
  border-color: var(--color-coral);
}

.gallery-filter-btn.active {
  background-color: var(--color-plum-dark);
  color: var(--color-white);
  border-color: var(--color-plum-dark);
}

/* Editorial Masonry Grid */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

@media (max-width: 991px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}

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

.gallery-item {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background-color: var(--color-plum-black);
  border: 1px solid rgba(56, 16, 57, 0.1);
  border-radius: var(--radius-xs);
  box-shadow: var(--shadow-subtle);
  transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
}

.gallery-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-elevated);
}

.gallery-item-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

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

.gallery-item-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(20, 3, 21, 0.92) 0%, rgba(20, 3, 21, 0.3) 50%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2rem;
  opacity: 0.92;
  transition: opacity var(--transition-smooth);
}

.gallery-item-tag {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-coral);
  margin-bottom: 0.35rem;
}

.gallery-item-title {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  color: var(--color-white);
  line-height: 1.3;
}

.gallery-item-note {
  font-size: 0.8rem;
  color: var(--color-text-muted-dark);
  margin-top: 0.25rem;
}
