
/* Rejilla de la página de galería completa */
.full-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 2.5rem;
}

.full-gallery-item {
  position: relative;
  padding: 0;
  border: 2px solid var(--border);
  border-radius: 1rem;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  cursor: pointer;
  background: none;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.full-gallery-item:hover {
  border-color: var(--primary);
  transform: scale(1.08);
  z-index: 2;
  box-shadow: var(--shadow-soft);
}

.full-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* --- Página de galería --- */
.gallery-page {
  max-width: 60rem;
  margin-bottom: 6rem;
  min-height: 700px;
}

.gallery-page h1 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.gallery-page p {
  color: var(--foreground);
  margin-bottom: 0.75rem;
  line-height: 1.6;
}

.gallery-back {
  display: inline-block;
  margin-bottom: 1.5rem;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--primary);
  text-decoration: none;
}

.gallery-back:hover {
  text-decoration: underline;
}

/* ============================================================================
   TABLET — de 640px a 900px
   ============================================================================ */
@media (max-width: 900px) {

  .full-gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

}

/* ============================================================================
   SMARTPHONE — hasta 639px
   ============================================================================ */
@media (max-width: 639px) {

  .full-gallery-grid {
    grid-template-columns: 1fr;
  }

  .gallery-page h1 {
    font-size: 2rem;
  }

}
