/* ============================================================
   GALLERY — Exotic Detail
   ============================================================ */
#galeria .sec-title { margin-bottom: 16px; }

/* Filter buttons */
.gallery-filters {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.filter-btn {
  font-family: var(--f-head);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--gray-4);
  padding: 10px 18px;
  border: 1px solid var(--dark-3);
  border-radius: var(--radius-btn);
  background: transparent;
  cursor: pointer;
  transition: all var(--t-fast) ease;
  white-space: nowrap;
}

.filter-btn:hover,
.filter-btn.active {
  color: var(--white);
  border-color: var(--red);
  background: rgba(227,30,36,0.1);
}

/* Masonry grid */
.gallery-grid {
  columns: 3;
  column-gap: 16px;
}

/* Individual items */
.gallery-item {
  position: relative;
  break-inside: avoid;
  margin-bottom: 16px;
  border-radius: var(--radius-card);
  overflow: hidden;
  cursor: pointer;
}

.gallery-item.hidden {
  display: none;
}

.gallery-item img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.6s var(--ease-out-expo);
}

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

/* Overlay */
.gallery-item-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,10,10,0.9) 0%, transparent 55%);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 16px;
  opacity: 0;
  transition: opacity var(--t-mid) ease;
}

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

.gallery-item-info {
  flex: 1;
}

.gallery-cat {
  display: block;
  font-family: var(--f-head);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 4px;
}

.gallery-title {
  font-family: var(--f-head);
  font-size: 13px;
  font-weight: 600;
  color: var(--white);
  letter-spacing: 0.5px;
  line-height: 1.3;
}

.gallery-zoom {
  color: var(--white);
  opacity: 0.8;
  transition: opacity var(--t-fast) ease, transform var(--t-fast) ease;
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  margin-left: 12px;
}

.gallery-zoom:hover {
  opacity: 1;
  transform: scale(1.1);
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: var(--z-modal);
  background: rgba(10,10,10,0.96);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--t-mid) ease;
}

.lightbox.is-open {
  opacity: 1;
  pointer-events: all;
}

.lb-content {
  position: relative;
  max-width: 1000px;
  width: 100%;
}

#lb-img {
  width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: var(--radius-card);
  display: block;
}

.lb-caption {
  padding: 16px 0 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

#lb-cat {
  font-family: var(--f-head);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--red);
}

#lb-title {
  font-family: var(--f-head);
  font-size: 16px;
  font-weight: 600;
  color: var(--white);
}

.lb-close,
.lb-prev,
.lb-next {
  position: absolute;
  color: var(--white);
  font-size: 20px;
  line-height: 1;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.08);
  border-radius: 50%;
  transition: background var(--t-fast) ease;
  z-index: 2;
}

.lb-close:hover,
.lb-prev:hover,
.lb-next:hover {
  background: rgba(227,30,36,0.3);
}

.lb-close {
  top: -16px;
  right: -16px;
}

.lb-prev {
  top: 50%;
  left: -56px;
  transform: translateY(-50%);
}

.lb-next {
  top: 50%;
  right: -56px;
  transform: translateY(-50%);
}

/* Responsive */
@media (max-width: 1024px) {
  .gallery-grid { columns: 2; }
  .lb-prev { left: 8px; }
  .lb-next { right: 8px; }
  .lb-close { top: 8px; right: 8px; }
}

@media (max-width: 480px) {
  .gallery-grid { columns: 1; }
  .gallery-filters { gap: 6px; }
  .filter-btn { font-size: 9px; padding: 8px 12px; }
}
