/* ━━━━━━━━━━━━━━ MATERIALS ━━━━━━━━━━━━━━ */
#materials { background: var(--bg-s); }
.mat-top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
  margin-bottom: 64px;
}
.mat-text {
  font-family: var(--serif);
  font-size: clamp(15px, 1.8vw, 21px);
  font-weight: 300;
  line-height: 1.8;
  color: var(--text);
}
.stone-table {
  width: 100%;
  border-top: 1px solid var(--border-dim);
}
.stone-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--border-dim);
  gap: 16px;
}
.stone-room { font-size: 11px; color: var(--text-dim); letter-spacing: 0.04em; white-space: nowrap; flex-shrink: 0; }
.stone-name { font-family: var(--serif); font-size: 14px; text-align: right; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }

.mat-gallery {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  grid-template-rows: repeat(2, 280px);
  gap: 3px;
}
.mat-thumb {
  position: relative;
  overflow: hidden;
  cursor: zoom-in;
}
.mat-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
  display: block;
}
.mat-thumb:hover img { transform: scale(1.06); }
.mat-thumb:nth-child(1) {
  grid-column: span 2;
  grid-row: span 2;
}
.mat-thumb-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(8,8,6,0.6) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.4s;
}
.mat-thumb:hover .mat-thumb-overlay { opacity: 1; }