/* =========================================================
   GLBS Shelby Materials2 Pattern
   Isolated, stable sample-card layout.
   All rules scoped under .glbs-materials2.
   ========================================================= */

.glbs-materials2,
.glbs-materials2 * {
  box-sizing: border-box !important;
}

.glbs-materials2 {
  overflow-x: clip !important;
  background: #ffffff !important;
  color: #252727 !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 0 76px !important;
}

.glbs-materials2 > * {
  min-width: 0 !important;
}

/* Hero: text only, no inherited image overlay behavior */
.glbs-materials2 .glbs-materials2-hero {
  width: 100% !important;
  max-width: none !important;
  margin: 0 0 clamp(40px, 7vw, 82px) !important;
  padding: clamp(66px, 9vw, 116px) 24px clamp(54px, 8vw, 92px) !important;
  background: #f8f7f4 !important;
  border-bottom: 1px solid #dedad3 !important;
}

.glbs-materials2 .glbs-materials2-hero-inner {
  width: min(1120px, 100%) !important;
  max-width: 1120px !important;
  margin: 0 auto !important;
  padding: 0 !important;
}

.glbs-materials2 .glbs-materials2-eyebrow {
  margin: 0 0 16px !important;
  color: #8c7646 !important;
  font-family: inherit !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  letter-spacing: 0.18em !important;
  line-height: 1.2 !important;
  text-transform: uppercase !important;
}

.glbs-materials2 .glbs-materials2-title {
  max-width: 840px !important;
  margin: 0 0 20px !important;
  color: #252727 !important;
  font-size: clamp(44px, 6vw, 82px) !important;
  font-weight: 500 !important;
  line-height: 0.98 !important;
  letter-spacing: -0.035em !important;
}

.glbs-materials2 .glbs-materials2-title::after {
  content: "" !important;
  display: block !important;
  width: 86px !important;
  height: 2px !important;
  margin: 24px 0 0 !important;
  background: #8c7646 !important;
}

.glbs-materials2 .glbs-materials2-lead {
  max-width: 720px !important;
  margin: 0 0 30px !important;
  color: #595651 !important;
  font-size: clamp(17px, 2vw, 20px) !important;
  line-height: 1.65 !important;
}

/* Buttons */
.glbs-materials2 .glbs-materials2-buttons {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 12px !important;
  align-items: center !important;
  margin-top: 0 !important;
}

.glbs-materials2 .wp-block-button__link {
  min-width: 178px !important;
  padding: 13px 22px !important;
  border-radius: 0 !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  letter-spacing: 0.08em !important;
  line-height: 1.1 !important;
  text-transform: uppercase !important;
  text-decoration: none !important;
}

.glbs-materials2 .glbs-materials2-button-primary .wp-block-button__link {
  border: 1px solid #8c7646 !important;
  background: #8c7646 !important;
  color: #ffffff !important;
}

.glbs-materials2 .glbs-materials2-button-secondary .wp-block-button__link {
  border: 1px solid #252727 !important;
  background: transparent !important;
  color: #252727 !important;
}

/* Shared containers */
.glbs-materials2 .glbs-materials2-intro,
.glbs-materials2 .glbs-materials2-section,
.glbs-materials2 .glbs-materials2-cta {
  width: min(1120px, calc(100% - 44px)) !important;
  max-width: 1120px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  min-width: 0 !important;
}

.glbs-materials2 .glbs-materials2-intro {
  margin-bottom: clamp(38px, 6vw, 70px) !important;
  padding: clamp(34px, 5vw, 54px) !important;
  background: #ffffff !important;
  border: 1px solid #dedad3 !important;
  text-align: center !important;
}

.glbs-materials2 .glbs-materials2-section {
  margin-top: 0 !important;
  margin-bottom: clamp(46px, 7vw, 84px) !important;
  padding: clamp(32px, 5vw, 58px) !important;
  background: #f8f7f4 !important;
  border: 1px solid #dedad3 !important;
}

.glbs-materials2 .glbs-materials2-section-head {
  width: min(820px, 100%) !important;
  max-width: 820px !important;
  margin: 0 auto clamp(26px, 4vw, 42px) !important;
  padding: 0 !important;
  text-align: center !important;
}

.glbs-materials2 h2,
.glbs-materials2 .glbs-materials2-intro-title,
.glbs-materials2 .glbs-materials2-section-title,
.glbs-materials2 .glbs-materials2-cta-title {
  margin: 0 0 14px !important;
  color: #252727 !important;
  font-size: clamp(32px, 4.2vw, 52px) !important;
  font-weight: 500 !important;
  line-height: 1.04 !important;
  letter-spacing: -0.025em !important;
}

.glbs-materials2 .glbs-materials2-intro-copy,
.glbs-materials2 .glbs-materials2-section-copy,
.glbs-materials2 .glbs-materials2-cta-copy {
  max-width: 760px !important;
  margin: 0 auto !important;
  color: #595651 !important;
  font-size: 17px !important;
  line-height: 1.65 !important;
}

.glbs-materials2 .glbs-materials2-note {
  max-width: 740px !important;
  margin: 18px auto 0 !important;
  padding-top: 18px !important;
  border-top: 1px solid #dedad3 !important;
  color: #6f6a63 !important;
  font-size: 14px !important;
  line-height: 1.55 !important;
}

/* The grid. This is intentionally aggressive so theme column/gallery rules cannot collapse it. */
.glbs-materials2 .glbs-materials2-grid,
.entry-content .glbs-materials2 .glbs-materials2-grid,
.wp-site-blocks .glbs-materials2 .glbs-materials2-grid {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: clamp(14px, 2vw, 22px) !important;
  align-items: stretch !important;
  justify-items: stretch !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  clear: both !important;
}

.glbs-materials2 .glbs-materials2-wood-grid,
.entry-content .glbs-materials2 .glbs-materials2-wood-grid,
.wp-site-blocks .glbs-materials2 .glbs-materials2-wood-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
}

/* Card wrapper: each card owns its cell, preventing narrow intrinsic image layout. */
.glbs-materials2 .glbs-materials2-card,
.entry-content .glbs-materials2 .glbs-materials2-card,
.wp-site-blocks .glbs-materials2 .glbs-materials2-card {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  justify-content: flex-start !important;
  float: none !important;
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  min-height: 100% !important;
  margin: 0 !important;
  padding: 14px !important;
  overflow: visible !important;
  background: #ffffff !important;
  border: 1px solid #dedad3 !important;
  box-shadow: 0 12px 28px rgba(37, 39, 39, 0.045) !important;
}

.glbs-materials2 .glbs-materials2-card > * {
  min-width: 0 !important;
}

/* Image frame: fixed frame, natural image inside. */
.glbs-materials2 .glbs-materials2-card figure.wp-block-image,
.entry-content .glbs-materials2 .glbs-materials2-card figure.wp-block-image,
.wp-site-blocks .glbs-materials2 .glbs-materials2-card figure.wp-block-image {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  float: none !important;
  width: 100% !important;
  max-width: none !important;
  height: 260px !important;
  min-height: 260px !important;
  margin: 0 0 14px !important;
  padding: 12px !important;
  overflow: visible !important;
  background: #f8f7f4 !important;
  border: 1px solid #e4ded4 !important;
  cursor: zoom-in !important;
}

.glbs-materials2 .glbs-materials2-finish-card figure.wp-block-image {
  height: 190px !important;
  min-height: 190px !important;
}

.glbs-materials2 .glbs-materials2-wood-card figure.wp-block-image {
  height: 220px !important;
  min-height: 220px !important;
}

.glbs-materials2 .glbs-materials2-card figure.wp-block-image img,
.entry-content .glbs-materials2 .glbs-materials2-card figure.wp-block-image img,
.wp-site-blocks .glbs-materials2 .glbs-materials2-card figure.wp-block-image img {
  display: block !important;
  float: none !important;
  width: auto !important;
  height: auto !important;
  max-width: 100% !important;
  max-height: 230px !important;
  min-width: 0 !important;
  min-height: 0 !important;
  margin: auto !important;
  object-fit: contain !important;
  object-position: center center !important;
}

.glbs-materials2 .glbs-materials2-finish-card figure.wp-block-image img {
  max-height: 160px !important;
}

.glbs-materials2 .glbs-materials2-wood-card figure.wp-block-image img {
  max-height: 190px !important;
}

/* Editable caption text as real Heading + Paragraph blocks. */
.glbs-materials2 .glbs-materials2-card-title,
.entry-content .glbs-materials2 .glbs-materials2-card-title,
.wp-site-blocks .glbs-materials2 .glbs-materials2-card-title {
  display: block !important;
  width: 100% !important;
  margin: 0 0 5px !important;
  padding: 0 !important;
  color: #252727 !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  line-height: 1.22 !important;
  text-align: center !important;
  letter-spacing: 0 !important;
  overflow-wrap: anywhere !important;
}

.glbs-materials2 .glbs-materials2-card-meta,
.entry-content .glbs-materials2 .glbs-materials2-card-meta,
.wp-site-blocks .glbs-materials2 .glbs-materials2-card-meta {
  display: block !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  color: #6f6a63 !important;
  font-size: 13px !important;
  line-height: 1.35 !important;
  text-align: center !important;
  overflow-wrap: anywhere !important;
}

/* CTA */
.glbs-materials2 .glbs-materials2-cta {
  margin-top: clamp(44px, 7vw, 84px) !important;
  padding: clamp(40px, 6vw, 72px) 24px !important;
  background: #252727 !important;
  color: #ffffff !important;
  text-align: center !important;
}

.glbs-materials2 .glbs-materials2-cta-title {
  color: #ffffff !important;
}

.glbs-materials2 .glbs-materials2-cta-title::after {
  content: "" !important;
  display: block !important;
  width: 72px !important;
  height: 2px !important;
  margin: 18px auto 0 !important;
  background: #8c7646 !important;
}

.glbs-materials2 .glbs-materials2-cta-copy {
  color: rgba(255,255,255,0.82) !important;
  margin-bottom: 26px !important;
}

.glbs-materials2 .glbs-materials2-cta .glbs-materials2-buttons {
  justify-content: center !important;
}

/* Lightbox */
.glbs-materials2-lightbox {
  position: fixed !important;
  inset: 0 !important;
  z-index: 999999 !important;
  display: none !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 28px !important;
  background: rgba(24, 24, 24, 0.84) !important;
}

.glbs-materials2-lightbox.is-open {
  display: flex !important;
}

.glbs-materials2-lightbox img {
  display: block !important;
  width: auto !important;
  height: auto !important;
  max-width: min(1100px, 94vw) !important;
  max-height: 90vh !important;
  object-fit: contain !important;
  background: #ffffff !important;
}

.glbs-materials2-lightbox button {
  position: absolute !important;
  top: 18px !important;
  right: 18px !important;
  width: 42px !important;
  height: 42px !important;
  border: 1px solid rgba(255,255,255,0.42) !important;
  border-radius: 999px !important;
  background: rgba(0,0,0,0.32) !important;
  color: #ffffff !important;
  font-size: 28px !important;
  line-height: 1 !important;
  cursor: pointer !important;
}

/* Tablet */
@media (max-width: 900px) {
  .glbs-materials2 .glbs-materials2-grid,
  .entry-content .glbs-materials2 .glbs-materials2-grid,
  .wp-site-blocks .glbs-materials2 .glbs-materials2-grid,
  .glbs-materials2 .glbs-materials2-wood-grid,
  .entry-content .glbs-materials2 .glbs-materials2-wood-grid,
  .wp-site-blocks .glbs-materials2 .glbs-materials2-wood-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

/* Mobile */
@media (max-width: 620px) {
  .glbs-materials2 {
    padding-bottom: 46px !important;
  }

  .glbs-materials2 .glbs-materials2-hero {
    padding: 46px 18px 44px !important;
  }

  .glbs-materials2 .glbs-materials2-title {
    font-size: clamp(38px, 13vw, 54px) !important;
  }

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

  .glbs-materials2 .glbs-materials2-grid,
  .entry-content .glbs-materials2 .glbs-materials2-grid,
  .wp-site-blocks .glbs-materials2 .glbs-materials2-grid,
  .glbs-materials2 .glbs-materials2-wood-grid,
  .entry-content .glbs-materials2 .glbs-materials2-wood-grid,
  .wp-site-blocks .glbs-materials2 .glbs-materials2-wood-grid {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .glbs-materials2 .glbs-materials2-card figure.wp-block-image {
    height: 250px !important;
    min-height: 250px !important;
  }

  .glbs-materials2 .glbs-materials2-finish-card figure.wp-block-image {
    height: 190px !important;
    min-height: 190px !important;
  }

  .glbs-materials2 .wp-block-button,
  .glbs-materials2 .wp-block-button__link {
    width: 100% !important;
  }
}
