.gallery-page .site-shell {
  padding-bottom: 4rem;
}

.gallery-main {
  display: grid;
  gap: 1.5rem;
  padding-top: 2.2rem;
}

.gallery-hero,
.gallery-wall {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
}

.gallery-hero {
  position: relative;
  overflow: hidden;
  padding: 1.45rem;
  isolation: isolate;
}

.gallery-hero::before {
  content: "";
  position: absolute;
  inset: -8%;
  z-index: -2;
  background: url("../assets/images/carne-brasa-humo-el-roseton.jpg") center/cover no-repeat;
  filter: blur(10px) brightness(0.45) saturate(0.9);
  opacity: 0.55;
  transform: scale(1.1);
}

.gallery-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(120deg, rgba(12, 9, 8, 0.86), rgba(12, 9, 8, 0.58));
}

.gallery-hero-copy {
  position: relative;
  z-index: 1;
  max-width: 72ch;
}

.gallery-hero h1 {
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  line-height: 0.98;
  font-size: clamp(2.2rem, 5vw, 4.2rem);
}

.gallery-hero p {
  margin: 0.95rem 0 0;
  color: var(--muted);
  line-height: 1.75;
}

.gallery-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.2rem;
}

.nav a.is-active {
  color: var(--text);
  font-weight: 700;
}

.gallery-wall {
  padding: 1.3rem;
}

.galeria-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.galeria-grid .gallery-item {
  min-height: 320px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.galeria-grid .gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 1080px) {
  .galeria-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .galeria-grid .gallery-item {
    min-height: 280px;
  }
}

@media (max-width: 680px) {
  .gallery-main {
    padding-top: 1.5rem;
  }

  .gallery-hero,
  .gallery-wall {
    border-radius: 26px;
  }

  .gallery-hero {
    padding: 1rem;
  }

  .galeria-grid {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }

  .galeria-grid .gallery-item {
    min-height: 250px;
    border-radius: 20px;
  }
}
