/* Back Forty BBQ — gallery-only refinements. Preserves all gallery content. */
/* Visually hide redundant pasture hero, retaining H1 in DOM for semantics/SEO. */
body.b40-gallery-homepage-style-active .b40p-page .b40p-hero,
body.b40-gallery-homepage-style-active .b40e-page .b40e-hero {
 position:absolute!important;width:1px!important;height:1px!important;padding:0!important;
 margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;
 white-space:nowrap!important;border:0!important;
}
/* Reduce top spacing so the food gallery leads beneath the header. */
body.b40-gallery-homepage-style-active .b40p-page > .b40p-section:first-of-type,
body.b40-gallery-homepage-style-active .b40e-page > .b40e-section:first-of-type {
 padding-top:clamp(24px,3.5vw,48px)!important;
}
/* Charred wood final CTA: override the original gradient texture. */
body.b40-gallery-homepage-style-active .b40p-page .b40p-cta,
body.b40-gallery-homepage-style-active .b40e-page .b40e-cta {
 background-color:#28160e!important;
 background-image:url('charred-wood.webp')!important;
 background-position:center center!important;
 background-size:cover!important;
 background-repeat:no-repeat!important;
 border-top:6px solid #2c140a!important;
 border-bottom:6px solid #2c140a!important;
 box-shadow:inset 0 0 0 2px rgba(245,170,94,.25)!important;
 padding:clamp(34px,5vw,66px) 20px!important;
 text-align:center!important;color:#fff1dc!important;
}
body.b40-gallery-homepage-style-active .b40p-page .b40p-cta h2,
body.b40-gallery-homepage-style-active .b40p-page .b40p-cta p,
body.b40-gallery-homepage-style-active .b40e-page .b40e-cta h2,
body.b40-gallery-homepage-style-active .b40e-page .b40e-cta p {
 color:#fff1dc!important;text-shadow:0 2px 3px #180900!important;
}
body.b40-gallery-homepage-style-active .b40p-page .b40p-cta .wp-block-buttons,
body.b40-gallery-homepage-style-active .b40e-page .b40e-cta .wp-block-buttons {justify-content:center!important;}
body.b40-gallery-homepage-style-active .b40p-page .b40p-cta .wp-block-button__link,
body.b40-gallery-homepage-style-active .b40e-page .b40e-cta .wp-block-button__link {
 display:inline-flex!important;align-items:center!important;justify-content:center!important;
 width:min(440px,90vw)!important;height:clamp(78px,10vw,126px)!important;
 background:transparent url('branded-quote.webp') center / contain no-repeat!important;
 border:0!important;box-shadow:none!important;padding:0!important;
 font-size:0!important;color:transparent!important;-webkit-text-fill-color:transparent!important;
 text-decoration:none!important;
}
body.b40-gallery-homepage-style-active .b40p-page .b40p-cta .wp-block-button__link:focus-visible,
body.b40-gallery-homepage-style-active .b40e-page .b40e-cta .wp-block-button__link:focus-visible {
 outline:3px solid #ffd5a3!important;outline-offset:4px!important;
}
@media(max-width:767px){
 body.b40-gallery-homepage-style-active .b40p-page .b40p-cta,
 body.b40-gallery-homepage-style-active .b40e-page .b40e-cta {padding:28px 14px!important;}
}
