body {
  background: #070707;
}

/* ═══════════════════════════════════════════ HERO */
.galeria-hero {
  position: sticky;
  top: 76px;
  z-index: 50;
  padding: 20px 24px 0;
  text-align: center;
  background: #070707;
}

.galeria-hero h1 {
  font-family: 'Sofia Sans Extra Condensed', sans-serif;
  font-size: 2rem;
  font-weight: 900;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #fff;
  margin: 0 0 12px;
}

.galeria-hero h1 span {
  color: #f0e800;
}

.galeria-hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 12px;
}

.mh-stat {
  display: flex;
  align-items: baseline;
  gap: 5px;
}

.mh-stat span {
  font-family: 'Sofia Sans Extra Condensed', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  line-height: 1;
}

.mh-stat small {
  font-size: 0.55rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: rgba(255,255,255,0.25);
}

.mh-divider {
  width: 1px;
  height: 16px;
  background: rgba(255,255,255,0.06);
}

/* ═══════════════════════════════════════════ FILTERS (inline no hero) */
.galeria-filters {
  padding: 0 24px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  background: #070707;
}

.filters-inner {
  max-width: 1600px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  gap: 2px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.filters-inner::-webkit-scrollbar { display: none; }

.filter-btn {
  white-space: nowrap;
  background: transparent;
  color: rgba(255,255,255,0.25);
  border: none;
  border-radius: 4px;
  padding: 6px 16px;
  font-family: 'Sofia Sans Extra Condensed', sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 0.2s ease;
}

.filter-btn:hover {
  color: rgba(255,255,255,0.6);
}

.filter-btn.active {
  color: #f0e800;
}

/* ═══════════════════════════════════════════ MAIN */
.galeria-main {
  max-width: 1600px;
  margin: 0 auto;
  padding: 40px 40px 100px;
}

/* ═══════════════════════════════════════════ COLEÇÃO */
.col-section {
  margin-bottom: 80px;
}

.col-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}

.col-header-left {
  display: flex;
  align-items: baseline;
  gap: 14px;
}

.col-year {
  font-family: 'Sofia Sans Extra Condensed', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #f0e800;
  border: 1px solid rgba(240,232,0,0.2);
  border-radius: 4px;
  padding: 3px 10px;
}

.col-label {
  font-family: 'Sofia Sans Extra Condensed', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: #fff;
}

.col-count {
  font-family: 'Sofia Sans Extra Condensed', sans-serif;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.2);
  letter-spacing: 0.5px;
}

/* ═══════════════════════════════════════════ GRID — Masonry */
.col-grid {
  column-count: 4;
  column-gap: 10px;
  break-inside: avoid;
}

.museum-card {
  position: relative;
  border-radius: 4px;
  overflow: hidden;
  background: #111;
  cursor: pointer;
  outline: none;
  display: inline-block;
  width: 100%;
  margin-bottom: 10px;
  break-inside: avoid;
  transition: transform 0.4s cubic-bezier(0.16,1,0.3,1),
              box-shadow 0.4s ease;
}

.museum-card:hover {
  transform: scale(1.015);
  box-shadow: 0 20px 60px rgba(0,0,0,0.6);
  z-index: 2;
}

.card-media {
  width: 100%;
  position: relative;
  line-height: 0;
}

.card-media img,
.card-media video {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.6s cubic-bezier(0.16,1,0.3,1);
  will-change: transform;
}

.museum-card:hover .card-media img,
.museum-card:hover .card-media video {
  transform: scale(1.04);
}

/* Card overlay — show on hover */
.card-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(0deg, rgba(0,0,0,0.8) 0%, transparent 100%);
  padding: 40px 18px 16px;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
}

.museum-card:hover .card-overlay {
  opacity: 1;
  transform: translateY(0);
}

.card-type-tag {
  font-family: 'Sofia Sans Extra Condensed', sans-serif;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(240,232,0,0.8);
  display: block;
  margin-bottom: 2px;
}

.card-overlay h3 {
  font-family: 'Sofia Sans Extra Condensed', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  color: #fff;
  margin: 0;
  line-height: 1.2;
}

/* YouTube badge */
.is-video .card-media {
  position: relative;
}

.yt-badge {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

/* ═══════════════════════════════════════════ LIGHTBOX */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0,0,0,0.97);
  user-select: none;
  -webkit-user-select: none;
}

.lightbox.open {
  display: flex;
  flex-direction: column;
}

/* Backdrop (click to close) */
.lb-backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
  cursor: zoom-out;
  pointer-events: auto;
}

.lightbox.open {
  pointer-events: none;
}

.lb-backdrop,
.lb-close,
.lb-nav,
.lb-media,
.lb-info {
  pointer-events: auto;
}

/* Close button */
.lb-close {
  position: absolute;
  top: 24px;
  right: 24px;
  z-index: 100;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  color: #fff;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
  opacity: 0;
}

.lightbox.open .lb-close {
  opacity: 1;
}

.lb-close:hover {
  background: #fff;
  color: #000;
  border-color: #fff;
}

/* Nav arrows */
.lb-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 100;
  width: 56px;
  height: 56px;
  background: none;
  border: none;
  color: rgba(255,255,255,0.2);
  font-size: 2.8rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.25s ease, transform 0.25s ease;
  padding: 0;
}

.lb-nav:hover {
  color: rgba(255,255,255,0.8);
  transform: translateY(-50%) scale(1.15);
}

.lb-prev { left: 8px; }
.lb-next { right: 8px; }

/* Main image area */
.lb-stage {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 80px;
  position: relative;
  overflow: hidden;
  cursor: grab;
}

.lb-stage:active {
  cursor: grabbing;
}

.lb-media {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  position: relative;
}

.lb-media img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
  transition: opacity 0.3s ease;
  will-change: transform;
}

.lb-media img.lb-loading {
  opacity: 0;
}

.lb-media img.lb-loaded {
  opacity: 1;
}

.lb-media video {
  max-width: 100%;
  max-height: 100%;
  border-radius: 4px;
}

.lb-media iframe {
  width: min(900px, 100%);
  aspect-ratio: 16/9;
  border: none;
  border-radius: 4px;
}

/* Info bar — minimal, only title + counter */
.lb-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 60px 80px 24px;
  background: linear-gradient(0deg, rgba(0,0,0,0.6) 0%, transparent 100%);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  pointer-events: none;
}

.lb-title {
  font-family: 'Sofia Sans Extra Condensed', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  margin: 0;
}

.lb-counter {
  font-family: 'Sofia Sans Extra Condensed', sans-serif;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.2);
  letter-spacing: 1px;
  flex-shrink: 0;
}

/* Loading spinner */
.lb-spinner {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 36px;
  height: 36px;
  border: 2px solid rgba(255,255,255,0.08);
  border-top-color: rgba(255,255,255,0.4);
  border-radius: 50%;
  animation: lbSpin 0.6s linear infinite;
}

@keyframes lbSpin {
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* ═══════════════════════════════════════════ RESPONSIVE */
@media (max-width: 1200px) {
  .col-grid { column-count: 3; }
}

@media (max-width: 1024px) {
  .galeria-main { padding: 30px 24px 80px; }
  .galeria-filters { padding: 0 24px; }
  .col-grid { column-count: 3; }
}

@media (max-width: 768px) {
  .galeria-hero { padding: 14px 20px 0; top: 76px; }
  .galeria-hero h1 { font-size: 1.5rem; margin-bottom: 8px; }
  .galeria-hero-stats { margin-bottom: 8px; gap: 10px; }
  .mh-stat span { font-size: 0.95rem; }
  .mh-stat small { font-size: 0.5rem; }
  .mh-divider { height: 14px; }
  .galeria-filters { padding: 0 20px 12px; }
  .filter-btn { padding: 4px 12px; font-size: 0.75rem; }

  .col-grid { column-count: 2; column-gap: 6px; }
  .museum-card { margin-bottom: 6px; border-radius: 3px; }

  .lb-stage { padding: 0 10px; }
  .lb-nav { display: none; }
  .lb-close { top: 16px; right: 16px; width: 40px; height: 40px; }
  .lb-info { padding: 20px 16px 16px; }
  .lb-title { font-size: 0.95rem; }
}

@media (max-width: 480px) {
  .galeria-hero h1 { font-size: 2rem; }
  .col-grid { column-count: 2; column-gap: 4px; }
  .museum-card { margin-bottom: 4px; }
  .col-header { flex-direction: column; gap: 6px; }
}
