/* Sample layout gallery — centred 3×3 desktop, symmetric mobile */
.section.sample-gallery,
.silo-section.sample-gallery {
  padding-top: 3rem;
  padding-bottom: 3rem;
  text-align: center;
}
.sample-gallery {
  scroll-margin-top: 5rem;
  width: 100%;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
}
.sample-gallery .section-header {
  margin-bottom: 1rem;
  text-align: center;
}
.sample-gallery__lead,
.sample-gallery > p,
.sample-gallery__note {
  color: var(--text-muted);
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 0.65rem;
  text-align: center;
  font-size: 0.92rem;
  line-height: 1.55;
}
.sample-gallery__note {
  font-size: 0.82rem;
  margin-bottom: 1.35rem;
  opacity: 0.9;
}
.sample-gallery__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem 1.1rem;
  width: min(780px, calc(100% - 2rem));
  margin: 0 auto;
  justify-items: stretch;
  align-items: start;
}
.sample-shot {
  margin: 0;
  min-width: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}
.sample-shot__frame {
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.35);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.22);
  aspect-ratio: 16 / 10;
  width: 100%;
  max-height: 128px;
}
.sample-shot__frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}
.sample-shot figcaption {
  width: 100%;
  text-align: center;
}
.sample-shot figcaption h3 {
  font-size: 0.86rem;
  font-weight: 600;
  line-height: 1.25;
  margin: 0 0 0.15rem;
}
.sample-shot figcaption p {
  color: var(--text-muted);
  font-size: 0.76rem;
  line-height: 1.35;
  margin: 0;
}

/* Tablet: keep 3×3 but slightly tighter */
@media (max-width: 900px) {
  .sample-gallery__grid {
    width: min(680px, calc(100% - 1.5rem));
    gap: 0.85rem;
  }
  .sample-shot__frame {
    max-height: 112px;
  }
}

/* Mobile: single column — symmetric stack, no orphan tile */
@media (max-width: 640px) {
  .section.sample-gallery,
  .silo-section.sample-gallery {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  .sample-gallery__grid {
    grid-template-columns: 1fr;
    width: min(300px, 100%);
    gap: 1rem;
  }
  .sample-shot__frame {
    max-height: 168px;
  }
}
