/* Shelby Materials2 sample guide. Every rule is isolated to the pattern wrapper. */

/* ---------- Materials2 sample guide (intentionally standalone) ---------- */
.glbs-materials2 {
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
  background: #fff;
  color: #292a29;
  font-family: var(--global-body-font-family, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif);
}

.glbs-materials2,
.glbs-materials2 * {
  font-family: var(--global-body-font-family, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif) !important;
}

.glbs-materials2 *,
.glbs-materials2 *::before,
.glbs-materials2 *::after {
  box-sizing: border-box;
}

.glbs-materials2 h1,
.glbs-materials2 h2,
.glbs-materials2 h3,
.glbs-materials2 h4 {
  font-style: normal !important;
}

.glbs-materials2 .glbs-materials2-hero {
  margin: 0 !important;
  padding: clamp(64px, 9vw, 118px) max(24px, calc((100vw - 1120px) / 2)) !important;
  background: #292a29;
  color: #fff;
}

.glbs-materials2 .glbs-materials2-hero-inner {
  width: 100%;
  max-width: 900px;
  margin: 0 !important;
}

.glbs-materials2 .glbs-materials2-eyebrow {
  margin: 0 0 20px;
  color: #c59a56;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .2em;
}

.glbs-materials2 .glbs-materials2-hero h1 {
  max-width: 880px;
  margin: 0;
  color: #fff;
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1.04;
}

.glbs-materials2 .glbs-materials2-lead {
  max-width: 780px;
  margin: 26px 0 0;
  color: #e8e3dc;
  font-size: clamp(17px, 2vw, 20px);
  line-height: 1.7;
}

.glbs-materials2 .glbs-materials2-buttons {
  gap: 12px;
  margin-top: 32px;
}

.glbs-materials2 .glbs-materials2-button-primary .wp-block-button__link,
.glbs-materials2 .glbs-materials2-button-secondary .wp-block-button__link {
  padding: 13px 22px;
  border: 1px solid #b4873f;
  border-radius: 0;
  font-weight: 700;
  text-decoration: none;
}

.glbs-materials2 .glbs-materials2-button-primary .wp-block-button__link {
  background: #b4873f;
  color: #fff;
}

.glbs-materials2 .glbs-materials2-button-secondary .wp-block-button__link {
  background: transparent;
  color: #fff;
}

.glbs-materials2 .glbs-materials2-intro,
.glbs-materials2 .glbs-materials2-section,
.glbs-materials2 .glbs-materials2-cta {
  width: min(calc(100% - 48px), 1120px) !important;
  max-width: 1120px !important;
  margin: clamp(48px, 7vw, 88px) auto !important;
  padding: clamp(28px, 5vw, 56px) !important;
  background: #f7f3ec;
  border: 1px solid #dedad3;
}

.glbs-materials2 .glbs-materials2-intro {
  text-align: center;
}

.glbs-materials2 .glbs-materials2-intro h2,
.glbs-materials2 .glbs-materials2-section h2,
.glbs-materials2 .glbs-materials2-cta h2 {
  margin: 0;
  color: #292a29;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.1;
}

.glbs-materials2 .glbs-materials2-intro > p,
.glbs-materials2 .glbs-materials2-section-copy,
.glbs-materials2 .glbs-materials2-cta > p {
  max-width: 820px;
  margin: 20px auto 0;
  color: #56534f;
  font-size: 17px;
  line-height: 1.75;
}

.glbs-materials2 .glbs-materials2-section-copy {
  margin-right: 0;
  margin-left: 0;
}

.glbs-materials2 .glbs-materials2-note {
  padding-top: 20px;
  border-top: 1px solid #b4873f;
  color: #6b645b !important;
  font-size: 14px !important;
}

.glbs-materials2 .glbs-materials2-grid {
  display: grid;
  gap: 20px;
  width: 100%;
  margin-top: 34px;
}

.glbs-materials2 .glbs-materials2-door-grid,
.glbs-materials2 .glbs-materials2-finish-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.glbs-materials2 .glbs-materials2-wood-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.glbs-materials2 .glbs-materials2-sample {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  min-width: 0;
  margin: 0 !important;
  padding: 16px;
  overflow: visible;
  background: #fff;
  border: 1px solid #dedad3;
}

.glbs-materials2 .glbs-materials2-sample img {
  display: block;
  width: auto !important;
  height: auto !important;
  max-width: 100% !important;
  margin-right: auto;
  margin-left: auto;
  object-fit: contain !important;
  object-position: center center;
  cursor: zoom-in;
}

.glbs-materials2 .glbs-materials2-door-grid img {
  max-height: 240px !important;
}

.glbs-materials2 .glbs-materials2-finish-grid img {
  max-height: 180px !important;
}

.glbs-materials2 .glbs-materials2-wood-grid img {
  max-height: 220px !important;
}

.glbs-materials2 .glbs-materials2-sample figcaption {
  width: 100%;
  margin: 16px 0 0;
  color: #69645e;
  font-size: 13px;
  line-height: 1.5;
  text-align: center;
  overflow-wrap: anywhere;
}

.glbs-materials2 .glbs-materials2-sample figcaption strong {
  color: #292a29;
  font-size: 17px;
}

.glbs-materials2 .glbs-materials2-cta {
  text-align: center;
  border-top: 4px solid #b4873f;
}

.glbs-materials2 .glbs-materials2-cta .wp-block-buttons {
  justify-content: center;
  margin-top: 28px;
}

@media (max-width: 900px) {
  .glbs-materials2 .glbs-materials2-door-grid,
  .glbs-materials2 .glbs-materials2-finish-grid,
  .glbs-materials2 .glbs-materials2-wood-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .glbs-materials2 .glbs-materials2-hero {
    padding: 52px 20px !important;
  }

  .glbs-materials2 .glbs-materials2-intro,
  .glbs-materials2 .glbs-materials2-section,
  .glbs-materials2 .glbs-materials2-cta {
    width: calc(100% - 28px) !important;
    padding: 28px 16px !important;
  }

  .glbs-materials2 .glbs-materials2-door-grid,
  .glbs-materials2 .glbs-materials2-finish-grid,
  .glbs-materials2 .glbs-materials2-wood-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .glbs-materials2 .glbs-materials2-buttons,
  .glbs-materials2 .glbs-materials2-buttons .wp-block-button {
    width: 100%;
  }

  .glbs-materials2 .glbs-materials2-buttons .wp-block-button__link {
    width: 100%;
    text-align: center;
  }
}
