.materials-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem 2.5rem;
  margin-top: 3rem;
}

/* Leitura, não botão: sem box, borda, cursor ou hover */
.material {
  flex: 0 1 170px;
  padding: 1.25rem 1rem;
  text-align: center;
}

.material-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--charcoal);
  margin-bottom: 0.25rem;
}

.material-type {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--red);
}

/* ---------- Catálogo de pedras (fotos reais das chapas) ---------- */
.stone-catalog {
  margin-top: 4.5rem;
}

.stone-catalog-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 600;
  color: var(--charcoal);
  text-align: center;
}

.stone-catalog-title em {
  color: var(--red);
  font-style: italic;
}

.stone-catalog-lead {
  max-width: 640px;
  margin: 0.75rem auto 0;
  text-align: center;
  color: var(--charcoal);
  opacity: 0.75;
  font-size: 0.95rem;
  line-height: 1.6;
}

.stone-grid {
  margin-top: 2.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.stone-item {
  flex: 1 1 200px;
  max-width: 240px;
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  padding: 0;
  border: none;
  background: var(--snow);
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  /* botão de abrir o lightbox: duplo clique não deve selecionar a legenda */
  -webkit-user-select: none;
  user-select: none;
}

.stone-item img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}

.stone-item:hover img,
.stone-item:focus-visible img {
  transform: scale(1.07);
}

.stone-item:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 3px;
}

.stone-cap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1.75rem 1rem 0.85rem;
  background: linear-gradient(180deg, transparent, rgba(28, 28, 28, 0.88));
  color: var(--marble);
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.stone-cap strong {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-transform: none;
  /* Nome em uma linha: reticências em vez de quebrar (nome inteiro no lightbox) */
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}
