/* Gallery page – uses global theme tokens from theme.css */

.gallery-page {
  --gal-dark: var(--site-dark);
  --gal-cream: var(--site-cream);
  --gal-muted: var(--site-text-muted);
  --gal-accent: #8a6549;
  --gal-border: var(--site-border);
  --gal-radius: var(--site-radius);
  --gal-shadow: var(--site-shadow);
}

/* Hero */
.gallery-page .page-hero--gallery {
  padding-top: clamp(3.25rem, 6vw, 4.25rem);
  padding-bottom: clamp(2rem, 4vw, 2.75rem);
  text-align: center;
  background: linear-gradient(120deg, #f6ede4, #e9dac9);
  border-bottom: 1px solid var(--gal-border);
}

.gallery-hero__inner {
  max-width: 48rem;
  margin: 0 auto;
}

.gallery-page .page-hero--gallery h1 {
  margin: 0;
  font-size: clamp(2.75rem, 6vw, 4.25rem);
  line-height: 1.08;
  color: var(--gal-dark);
}

/* Content section */
.gallery-wood {
  background-color: var(--gal-cream);
  background-image: var(--site-wood-bg);
}

.gallery-section {
  padding-top: clamp(2.5rem, 5vw, 3.5rem);
  padding-bottom: clamp(3.5rem, 7vw, 5rem);
}

.gallery-section__inner {
  max-width: 72rem;
  margin: 0 auto;
}

.gallery-head {
  text-align: center;
  max-width: 36rem;
  margin: 0 auto 2.5rem;
}

.gallery-head .eyebrow {
  margin: 0 0 0.5rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gal-accent);
}

.gallery-head h2 {
  margin: 0;
  font-size: clamp(1.75rem, 3.2vw, 2.35rem);
  line-height: 1.2;
  color: var(--gal-dark);
}

/* Photo grid – centered block */
.gallery-page .gallery-grid {
  display: grid;
  gap: 1.15rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0 auto;
  max-width: 72rem;
}

.gallery-page .gallery-tile {
  margin: 0;
  overflow: hidden;
  border-radius: var(--gal-radius);
  border: 1px solid var(--gal-border);
  background: #fff;
  box-shadow: var(--gal-shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.gallery-page .gallery-tile:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 44px rgba(42, 33, 28, 0.14);
}

.gallery-page .gallery-tile img {
  display: block;
  width: 100%;
  height: clamp(11rem, 18vw, 14.5rem);
  object-fit: cover;
}

@media (max-width: 1024px) {
  .gallery-page .gallery-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .gallery-page .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
  }

  .gallery-page .gallery-tile img {
    height: 10.5rem;
  }
}
