/* css/gallery.css */
/* Gallery Filter Menu */
.gallery-filter-buttons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--spacing-xs);
  margin-bottom: var(--spacing-lg);
  list-style: none;
}

.gallery-filter-buttons .filter-btn {
  /* Shares button styles from menu.css */
}

/* Masonry / Responsive Grid */
.gallery-grid {
  columns: 1;
  column-gap: var(--spacing-sm);
  margin-bottom: var(--spacing-lg);
}

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

@media (min-width: 768px) {
  .gallery-grid {
    columns: 3;
    column-gap: var(--spacing-md);
  }
}

.gallery-item {
  break-inside: avoid;
  margin-bottom: var(--spacing-sm);
  position: relative;
  overflow: hidden;
  border-radius: var(--border-radius-sm);
  border: var(--border-light);
  cursor: pointer;
}

@media (min-width: 768px) {
  .gallery-item {
    margin-bottom: var(--spacing-md);
  }
}

.gallery-item img {
  width: 100%;
  height: auto;
  display: block;
  transition: var(--transition-smooth);
}

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(30, 33, 28, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition-fast);
  color: var(--color-white);
  font-size: 1.5rem;
}

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

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

/* Lightbox Modal Specific Overrides */
#lumiere-lightbox {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background-color: rgba(30, 33, 28, 0.95);
}

.lightbox-content {
  max-width: 85%;
  max-height: 75vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  transform: scale(0.95);
  transition: var(--transition-smooth);
}

#lumiere-lightbox.active .lightbox-content {
  transform: scale(1);
}

#lightbox-img {
  max-width: 100%;
  max-height: 70vh;
  object-fit: contain;
  border-radius: var(--border-radius-sm);
  border: var(--border-dark);
  box-shadow: var(--shadow-lightbox);
  opacity: 1;
  transition: opacity 0.15s ease-in-out;
}

.lightbox-meta {
  width: 100%;
  display: flex;
  justify-content: space-between;
  margin-top: var(--spacing-sm);
  color: var(--color-bg);
  font-family: var(--font-body);
  font-size: 0.85rem;
  letter-spacing: 0.05em;
}

#lightbox-caption {
  color: var(--color-accent);
  font-weight: var(--weight-medium);
}

#lightbox-counter {
  color: var(--color-muted);
}

.lightbox-btn {
  position: absolute;
  background: transparent;
  border: none;
  color: var(--color-bg);
  font-size: 2rem;
  cursor: pointer;
  transition: var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  z-index: 10010;
}

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

.lightbox-btn.close {
  top: 30px;
  right: 30px;
  font-size: 2.5rem;
}

.lightbox-btn.prev {
  left: 30px;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-btn.next {
  right: 30px;
  top: 50%;
  transform: translateY(-50%);
}

@media (max-width: 768px) {
  .lightbox-content { max-width: 95%; }
  .lightbox-btn.prev { left: 10px; }
  .lightbox-btn.next { right: 10px; }
  .lightbox-btn.close { top: 15px; right: 15px; }
}
