/* ===== Gallery page — designer bento layout ===== */
.gallery-page {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem 4rem;
}

/* Hero */
.gallery-hero {
  text-align: center;
  padding: 2.5rem 0 3rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}
.gallery-hero__title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  color: #1a1a1a;
  margin: 0 0 0.75rem;
}
.gallery-hero__lead {
  font-size: 1.05rem;
  color: #555;
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.5;
}

/* Bento grid — not boring squares */
.gallery-section {
  padding: 2.5rem 0;
}
.gallery-bento {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 200px;
  gap: 1rem;
  align-items: stretch;
}
.gallery-item {
  margin: 0;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.gallery-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
}
.gallery-item__img-wrap {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 180px;
  background: #e8e8e8;
}
.gallery-item__img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.gallery-item:hover .gallery-item__img-wrap img {
  transform: scale(1.06);
}
.gallery-item__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 50%);
  opacity: 0.7;
  transition: opacity 0.25s ease;
}
.gallery-item:hover .gallery-item__overlay {
  opacity: 0.85;
}
.gallery-item__caption {
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: #fff;
  margin: 0;
  text-shadow: 0 1px 4px rgba(0,0,0,0.4);
  transform: translateY(4px);
  opacity: 0.9;
  transition: transform 0.25s ease;
}
.gallery-item:hover .gallery-item__caption {
  transform: translateY(0);
}

/* Bento sizes — wide (2 cols), tall (2 rows), first = hero (2x2) */
.gallery-item--wide {
  grid-column: span 2;
}
.gallery-item--tall {
  grid-row: span 2;
}
.gallery-bento .gallery-item:first-child {
  grid-column: span 2;
  grid-row: span 2;
}

@media (max-width: 900px) {
  .gallery-bento {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 180px;
  }
  .gallery-bento .gallery-item:nth-child(1),
  .gallery-bento .gallery-item:nth-child(4),
  .gallery-bento .gallery-item:nth-child(8),
  .gallery-bento .gallery-item:nth-child(12),
  .gallery-bento .gallery-item:nth-child(15),
  .gallery-bento .gallery-item:nth-child(21) {
    grid-column: span 2;
  }
  .gallery-item--wide { grid-column: span 2; }
  .gallery-item--tall { grid-row: span 2; }
}

@media (max-width: 560px) {
  .gallery-bento {
    grid-template-columns: 1fr;
    grid-auto-rows: 220px;
  }
  .gallery-bento .gallery-item:nth-child(n) {
    grid-column: span 1;
    grid-row: span 1;
  }
  .gallery-item--wide,
  .gallery-item--tall { grid-column: span 1; grid-row: span 1; }
  .gallery-item__img-wrap { min-height: 220px; }
}

/* CTA block */
.gallery-cta {
  text-align: center;
  padding: 3rem 1.5rem;
  background: linear-gradient(135deg, #faf9f7 0%, #f4f2ef 100%);
  border-radius: 20px;
  margin-top: 2rem;
}
.gallery-cta__title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0 0 0.5rem;
}
.gallery-cta__text {
  color: #555;
  margin: 0 0 1.25rem;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}
.gallery-cta__btn {
  display: inline-block;
  padding: 0.85rem 1.75rem;
  background: #c41e3a;
  color: #fff;
  font-weight: 600;
  border-radius: 8px;
  transition: background 0.2s, transform 0.2s;
}
.gallery-cta__btn:hover {
  background: #a01830;
  transform: translateY(-2px);
}
