/* ══════════════════════════════════════════
   Feature pages (Quilt Corner, Recipes to Share)
   OVERVIEW text + full-width thumbnail gallery
   ══════════════════════════════════════════ */

body.fp-page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

body.fp-page main {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.fp-hero {
  background: var(--surface-mid);
  padding: var(--space-xl) var(--space-2xl);
  border-bottom: 3px solid var(--accent-primary);
  text-align: center;
  flex-shrink: 0;
}

.fp-hero__icon {
  font-size: 40px;
  line-height: 1;
  margin-bottom: 6px;
}

.fp-hero__title {
  font-family: var(--font-display);
  font-size: 44px;
  font-weight: 700;
  color: var(--text-on-dark);
  line-height: 1.1;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.30);
}

.fp-hero__sub {
  font-size: 13px;
  color: var(--text-on-dark-muted);
  margin-top: 8px;
  letter-spacing: 0.4px;
}

.fp-body {
  background: var(--surface-page);
  padding: var(--space-xl) var(--space-2xl) var(--space-2xl);
  width: 100%;
  flex: 1;
}

/* Light-brown content panel (darker than the beige body, lighter than the banner) */
.fp-panel {
  background: #d6c096;
  border: 1px solid rgba(138, 104, 69, 0.45);
  border-radius: 6px;
  padding: 16px 20px;
}

/* ── Overview section ── */
.fp-overview-heading {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--surface-mid);
  border-bottom: 2px solid var(--accent-primary);
  padding-bottom: 6px;
  margin-bottom: 14px;
}

.fp-overview-text {
  font-size: 16px;
  line-height: 1.5;
  color: var(--text-secondary);
  margin-bottom: 28px;
  position: relative;
  background: #d6c096;
  border: 1px solid rgba(138, 104, 69, 0.45);
  border-radius: 6px;
  padding: 16px 20px;
}

.fp-overview-text #block-body-overview:empty::before {
  content: 'No overview has been added yet.';
  font-style: italic;
  color: var(--text-muted);
}

/* Gallery empty placeholder → light-brown panel on feature pages */
.fp-body .gallery-empty {
  background: #d6c096;
  border: 1px solid rgba(138, 104, 69, 0.45);
}

/* ── Gallery ── */
.fp-gallery-heading {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--surface-mid);
  border-bottom: 2px solid var(--accent-primary);
  padding-bottom: 6px;
  margin-bottom: 14px;
}

.sg-upload {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

/* Full-width responsive grid; thumbnails ~120px (same as reunion galleries) */
.sg-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 8px;
}

.sg-grid .gallery-empty {
  grid-column: 1 / -1;
}

@media (max-width: 600px) {
  .fp-body { padding: var(--space-lg) var(--space-md) var(--space-xl); }
  .fp-hero__title { font-size: 32px; }
  .sg-grid {
    grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
  }
}
