/* BAMBUKER Home Visual Fix — only homepage */
body.home .ld-materials-section .ld-section-intro,body.home .ld-materials-section .ld-section-intro h2{color:#f5efe6!important;text-shadow:0 2px 15px rgba(0,0,0,.38)}
body.home .ld-materials-section .ld-material-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px;align-items:stretch}
body.home .ld-materials-section .ld-material-card{min-width:0;overflow:hidden}
body.home .ld-materials-section .ld-material-card img{object-fit:cover}
body.home .ld-home-section,body.home .ld-collections-section{min-height:0!important;height:auto!important}
body.home .ld-collections-section{padding-bottom:clamp(40px,5vw,80px)!important}
body.home .ld-baijax-feature h2{font-size:clamp(36px,5.1vw,78px)!important;line-height:1.05!important;overflow-wrap:break-word}
body.home .ld-selector-section .ld-selector-wizard{min-width:0;max-width:100%;grid-template-columns:minmax(230px,1fr) minmax(0,2fr) minmax(200px,.75fr);gap:24px}
body.home .ld-selector-section .ld-selector-copy,body.home .ld-selector-section .ld-selector-ui{min-width:0}
body.home .ld-selector-section h2{font-size:clamp(30px,3.5vw,56px)!important;line-height:1.08!important;overflow-wrap:break-word}
body.home .ld-project-card{overflow:hidden}body.home .ld-project-card span{padding:16px!important}body.home .ld-project-card small{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
body.home .ld-interior-gallery img{width:100%;object-fit:cover;aspect-ratio:4/5}
body.home .ld-designers-section{min-height:0!important}
@media(max-width:1100px){body.home .ld-selector-section .ld-selector-wizard{grid-template-columns:1fr 1.5fr}body.home .ld-selector-section .ld-selector-photo{grid-column:1/-1}}
@media(max-width:767px){body.home .ld-materials-section .ld-material-grid{grid-template-columns:1fr!important}body.home .ld-selector-section .ld-selector-wizard{grid-template-columns:1fr!important}body.home .ld-baijax-feature h2{font-size:clamp(34px,9vw,54px)!important}body.home .ld-interior-gallery img{aspect-ratio:4/3}body.home .ld-materials-section .ld-section-intro h2{font-size:clamp(32px,9vw,50px)!important}}

/* 3.1: editorial hierarchy, compact spacing, responsive cards */
body.home .ld-shell{width:min(100% - 40px,1280px);margin-inline:auto;box-sizing:border-box}
body.home .ld-home-hero{min-height:clamp(530px,72vh,760px)!important}
body.home .ld-home-hero .wp-block-cover__image-background{object-fit:cover;object-position:center 45%}
body.home .ld-home-hero .ld-hero-copy{max-width:760px;padding-block:70px}
body.home .ld-home-hero h1{font-size:clamp(38px,5.5vw,76px)!important;line-height:1.04!important;letter-spacing:-.035em;overflow-wrap:normal;text-wrap:balance}
body.home .ld-home-hero .wp-block-button__link{min-height:48px;display:inline-flex;align-items:center;justify-content:center}
body.home .ld-materials-section .ld-section-intro{color:#f5efe6}
body.home .ld-materials-section .ld-section-intro a{color:inherit}
body.home .ld-material-grid .ld-material-card{height:clamp(290px,31vw,450px)!important;min-height:0!important;border-radius:14px}
body.home .ld-material-card .wp-block-cover__inner-container{align-self:end}
body.home .ld-material-card h3{font-size:clamp(23px,2.5vw,34px)!important;line-height:1.14!important}
body.home .ld-material-card h3 a{color:inherit;text-decoration:none}
body.home .ld-product-grid,body.home .ld-project-grid,body.home .ld-journal-grid{align-items:stretch}
body.home .ld-product-card,body.home .ld-project-card,body.home .ld-journal-card{height:100%;min-width:0}
body.home .ld-product-card>a,body.home .ld-project-card>a,body.home .ld-journal-card>a{height:100%;box-sizing:border-box}
body.home .ld-product-card img{object-fit:contain;background:#f7f5f0}
body.home .ld-project-card img,body.home .ld-journal-card img{object-fit:cover}
body.home .ld-project-card span{box-sizing:border-box}
body.home .ld-project-card b{font-size:clamp(17px,1.5vw,22px);line-height:1.2}
body.home .ld-project-card small{line-height:1.4}
body.home .ld-baijax-feature .ld-shell{max-width:1280px}
body.home .ld-baijax-feature h2{max-width:780px;letter-spacing:-.035em;text-wrap:balance}
body.home .ld-selector-section .ld-selector-copy h2{max-width:100%;hyphens:auto}
body.home .ld-selector-section .ld-selector-ui{overflow:hidden}
body.home .ld-selector-section .ld-choice-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
body.home .ld-interior-gallery{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
body.home .ld-interior-gallery figure{width:auto!important;margin:0!important;min-width:0}
body.home .ld-interior-gallery img{display:block;width:100%;height:100%;aspect-ratio:3/4;object-fit:cover}
body.home .ld-designers-layout>*{min-width:0}
body.home .ld-home-section{padding-block:clamp(48px,6vw,90px)}
@media(max-width:1024px){
 body.home .ld-materials-section .ld-material-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 body.home .ld-interior-gallery{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:767px){
 body.home .ld-shell{width:min(100% - 28px,1280px)}
 body.home .ld-home-hero{min-height:560px!important}
 body.home .ld-home-hero .ld-hero-copy{padding-block:48px}
 body.home .ld-home-hero h1{font-size:clamp(34px,9vw,52px)!important}
 body.home .ld-materials-section .ld-material-grid{grid-template-columns:1fr}
 body.home .ld-material-grid .ld-material-card{height:320px!important}
 body.home .ld-interior-gallery{gap:8px}
 body.home .ld-interior-gallery img{aspect-ratio:4/5}
 body.home .ld-selector-section .ld-choice-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 body.home .ld-home-section{padding-block:46px}
}

/* BAMBUKER Premium 3.3 — homepage only */
@media(min-width:1101px){
 body.home .ld-home-hero .ld-hero-copy{max-width:1160px!important;width:min(90vw,1160px)!important}
 body.home .ld-home-hero h1{max-width:1120px!important;font-size:clamp(60px,5.1vw,92px)!important;line-height:1.08!important;letter-spacing:-.04em!important;text-wrap:balance}
 body.home .ld-selector-wizard{grid-template-columns:minmax(260px,1.05fr) minmax(0,1.65fr) minmax(245px,.85fr)!important;gap:clamp(22px,2.4vw,44px)!important;padding-inline:clamp(32px,3.4vw,72px)!important}
 body.home .ld-selector-copy h2{font-size:clamp(32px,3vw,53px)!important;overflow-wrap:normal!important;word-break:normal!important;hyphens:none!important;letter-spacing:-.035em}
}
body.home .ld-materials-section .ld-material-grid>h2{color:#f4e8d4!important;text-shadow:0 3px 22px rgba(0,0,0,.48)!important;font-size:clamp(40px,4.1vw,74px)!important;line-height:1.07!important;letter-spacing:-.035em}
body.home .ld-materials-section .ld-section-intro,body.home .ld-materials-section .ld-section-intro h2,body.home .ld-materials-section .ld-section-intro p{color:#f4e8d4!important}
body.home .ld-materials-section .ld-material-grid{gap:clamp(14px,1.6vw,28px)!important}
body.home .ld-materials-section .ld-material-card{transition:transform .35s ease,box-shadow .35s ease!important;box-shadow:0 16px 35px rgba(0,0,0,.2)}
body.home .ld-materials-section .ld-material-card:hover{transform:translateY(-6px);box-shadow:0 26px 52px rgba(0,0,0,.3)}
body.home .ld-collections-section .ld-product-grid{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(255px,calc((100% - 72px)/4));grid-template-columns:none;overflow-x:auto;scroll-snap-type:x mandatory;overscroll-behavior-inline:contain;scroll-behavior:smooth;gap:24px;padding-bottom:16px;scrollbar-width:thin;scrollbar-color:#a88b5e transparent}
body.home .ld-collections-section .ld-product-card{scroll-snap-align:start;transition:transform .25s ease,box-shadow .25s ease}
body.home .ld-collections-section .ld-product-card:hover{transform:translateY(-5px);box-shadow:0 18px 35px rgba(0,0,0,.12)}
body.home .ld-collections-section .ld-product-card img{aspect-ratio:4/4.2!important;height:auto!important;width:100%!important;object-fit:cover!important}
body.home .ld-collections-section .ld-product-card b{font-size:clamp(19px,1.35vw,25px)!important;line-height:1.25!important}
body.home .ld-collections-section .ld-product-card span{padding:clamp(16px,2vw,30px)!important}
body.home .ld-selector-section{background:#211d1a!important}
body.home .ld-selector-wizard{box-sizing:border-box;max-width:100%!important;align-items:stretch}
body.home .ld-selector-copy,body.home .ld-selector-ui,body.home .ld-selector-photo{box-sizing:border-box;min-width:0!important}
body.home .ld-selector-copy{padding:clamp(20px,2vw,34px) 0!important}
body.home .ld-selector-copy h2{overflow-wrap:normal!important;word-break:normal!important;hyphens:none!important}
body.home .ld-selector-ui{background:#2c2723!important;border:1px solid #635448!important;padding:clamp(20px,2vw,36px)!important;border-radius:3px}
body.home .ld-selector-photo{background:#7a6c60!important;border:1px solid #a3917f!important;padding:clamp(24px,2vw,36px)!important;display:flex;flex-direction:column;justify-content:center}
body.home .ld-selector-photo p{font-size:clamp(18px,1.2vw,23px)!important;line-height:1.45!important}
body.home .ld-selector-ui h3{font-size:clamp(24px,2vw,34px)!important;line-height:1.2}
body.home .ld-selector-ui .ld-choice-grid button{min-height:68px;font-size:clamp(16px,1.05vw,19px)!important;transition:background .2s,border-color .2s}
body.home .ld-selector-ui .ld-choice-grid button:hover{background:#56493e!important;border-color:#c7a66d!important}
body.home .ld-interior-gallery{grid-template-columns:repeat(3,minmax(0,1fr))!important;grid-auto-flow:row;gap:clamp(12px,1.4vw,24px)!important}
body.home .ld-interior-gallery figure{position:relative;overflow:hidden;border-radius:3px;background:#39302a;aspect-ratio:4/3!important}
body.home .ld-interior-gallery img{width:100%!important;height:100%!important;aspect-ratio:auto!important;object-fit:cover!important;filter:contrast(1.05) saturate(.9);transition:transform .5s ease,filter .4s ease}
body.home .ld-interior-gallery figure:hover img{transform:scale(1.04);filter:contrast(1.04) saturate(1)}
body.home .ld-designers-section .ld-designers-layout{gap:clamp(30px,4vw,75px)!important}
body.home .ld-designers-section h2{font-size:clamp(38px,3.4vw,64px)!important;line-height:1.1!important;letter-spacing:-.03em}
body.home .ld-designers-section h3,body.home .ld-designers-section b{font-size:clamp(19px,1.25vw,25px)!important}
body.home .ld-designers-section p{font-size:clamp(16px,1vw,19px)!important;line-height:1.6}
@media(max-width:1100px){
 body.home .ld-home-hero .ld-hero-copy{max-width:92vw!important}
 body.home .ld-selector-wizard{padding-inline:24px!important}
 body.home .ld-selector-copy h2{font-size:clamp(32px,4vw,50px)!important}
 body.home .ld-collections-section .ld-product-grid{grid-auto-columns:minmax(245px,42%)}
}
@media(max-width:767px){
 body.home .ld-home-hero h1{font-size:clamp(36px,9vw,54px)!important;line-height:1.1!important}
 body.home .ld-materials-section .ld-material-grid>h2{font-size:clamp(36px,9vw,54px)!important}
 body.home .ld-collections-section .ld-product-grid{grid-auto-columns:minmax(240px,80%)!important;gap:14px}
 body.home .ld-selector-wizard{padding-inline:18px!important;gap:14px!important}
 body.home .ld-selector-copy h2{font-size:clamp(34px,8vw,48px)!important}
 body.home .ld-selector-ui,.ld-selector-photo{padding:20px!important}
 body.home .ld-interior-gallery{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important}
 body.home .ld-interior-gallery figure{aspect-ratio:3/4!important}
 body.home .ld-designers-section h2{font-size:clamp(34px,8vw,48px)!important}
}
@media(prefers-reduced-motion:reduce){
 body.home .ld-material-card,body.home .ld-product-card,body.home .ld-interior-gallery img{transition:none!important}
 body.home .ld-collections-section .ld-product-grid{scroll-behavior:auto}
}

/* 3.4 screenshot corrections: contrast, gallery stacking, fifth media tile */
body.home .ld-materials-section .ld-materials-layout .ld-section-intro h2,
body.home .ld-materials-section .ld-materials-layout .ld-material-grid>h2,
body.home .ld-materials-section h2.wp-block-heading{
 color:#fff4df!important;
 -webkit-text-fill-color:#fff4df!important;
 text-shadow:0 3px 14px rgba(0,0,0,.75),0 1px 2px #000!important;
 opacity:1!important;
}
body.home .ld-materials-section .ld-section-intro{position:relative;z-index:2}
body.home .ld-gallery-section{position:relative;z-index:0;overflow:hidden;isolation:isolate}
body.home .ld-gallery-section .ld-interior-gallery{
 display:grid!important;
 grid-template-columns:repeat(3,minmax(0,1fr))!important;
 grid-template-rows:none!important;
 grid-auto-rows:auto!important;
 grid-auto-flow:row!important;
 align-items:stretch!important;
 height:auto!important;min-height:0!important;
 overflow:visible!important;
}
body.home .ld-gallery-section .ld-interior-gallery>figure,
body.home .ld-gallery-section .ld-interior-gallery>figure:first-child,
body.home .ld-gallery-section .ld-interior-gallery>figure:last-child{
 grid-column:auto!important;grid-row:auto!important;
 width:100%!important;height:auto!important;min-height:0!important;
 aspect-ratio:4/3!important;position:relative!important;
 margin:0!important;overflow:hidden!important;
}
body.home .ld-gallery-section .ld-interior-gallery>figure img{
 position:static!important;display:block!important;
 width:100%!important;height:100%!important;
 max-width:100%!important;max-height:100%!important;
 aspect-ratio:4/3!important;object-fit:cover!important;
}
body.home .ld-designers-section{position:relative;z-index:1;clear:both;overflow:visible!important}
body.home .ld-designers-section .ld-designers-layout{position:relative}
body.home .ld-designers-section .ld-designers-layout>*{min-width:0}
@media(min-width:1025px){
 body.home .ld-designers-section .ld-designers-layout{
  display:grid!important;grid-template-columns:minmax(300px,1.4fr) repeat(2,minmax(160px,1fr))!important;
  gap:26px 46px!important;align-items:start!important;
 }
 body.home .ld-designers-section .ld-designers-layout>div:first-child{grid-column:1!important;grid-row:1/span 3!important}
 body.home .ld-designers-section .ld-designers-layout>p{grid-column:3!important;grid-row:auto!important}
}
/* The media-card markup may come from the theme, not this plugin.
   These scoped variants support common five-card wrappers without affecting product grids. */
@media(min-width:769px){
 body.home :is(.bambuker-media-grid,.bb-media-grid,.bmb-media-grid,.home-media-grid,.bambuker-media-blocks,.bb-home-media-grid){
  display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:20px!important;
 }
 body.home :is(.bambuker-media-grid,.bb-media-grid,.bmb-media-grid,.home-media-grid,.bambuker-media-blocks,.bb-home-media-grid)>:nth-child(5){
  grid-column:span 2!important;width:auto!important;max-width:none!important;
 }
}
@media(max-width:768px){
 body.home .ld-gallery-section .ld-interior-gallery{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important}
 body.home .ld-gallery-section .ld-interior-gallery>figure,
 body.home .ld-gallery-section .ld-interior-gallery>figure:first-child,
 body.home .ld-gallery-section .ld-interior-gallery>figure:last-child{aspect-ratio:3/4!important}
 body.home .ld-gallery-section .ld-interior-gallery>figure img{aspect-ratio:3/4!important}
 body.home :is(.bambuker-media-grid,.bb-media-grid,.bmb-media-grid,.home-media-grid,.bambuker-media-blocks,.bb-home-media-grid){
  display:grid!important;grid-template-columns:1fr!important;
 }
 body.home :is(.bambuker-media-grid,.bb-media-grid,.bmb-media-grid,.home-media-grid,.bambuker-media-blocks,.bb-home-media-grid)>:nth-child(5){
  grid-column:auto!important;
 }
}
