/* Scoped navigation gallery. Cover is intentional here only; media files stay intact. */
.bf-home-practice { padding-block: clamp(44px, 5vw, 76px); }
.bf-home-practice .bf-home__container { width: 92%; max-width: 1760px; }
.bf-practice__intro { max-width: 1000px; margin-bottom: clamp(24px, 3vw, 38px); }
.bf-home-practice .bf-practice__eyebrow { font-size: 12px; line-height: 1.4; letter-spacing: .13em; margin-bottom: 16px; }
.bf-home-practice .bf-practice__statement { font-size: clamp(32px, 3.8vw, 56px); line-height: 1.1; max-width: 24ch; margin-bottom: 20px; }
.bf-practice__copy { font-size: clamp(16px, 1.25vw, 18px); line-height: 1.65; max-width: 78ch; }
.bf-practice__copy p + p { margin-top: 12px; }
.bf-practice__gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.bf-practice__panel { position: relative; min-width: 0; min-height: 0; height: 320px; overflow: hidden; border-radius: 22px; background: #e8e8e2; isolation: isolate; }
.bf-practice__media { position: absolute; inset: 0; overflow: hidden; }
.wp-site-blocks .bf-home-practice img.bf-practice__image.bf-practice__image {
  display: block; width: 100% !important; height: 100% !important; max-width: none !important; max-height: none !important;
  margin: 0 !important; object-fit: cover !important; object-position: var(--practice-focal, 50% 50%);
}
.bf-practice__panel::after { content: ''; position: absolute; inset: auto 0 0; height: 150px; background: linear-gradient(transparent, rgba(0,0,0,.48)); pointer-events: none; z-index: 1; }
/* Light frost only on unselected previews; selection restores clarity immediately. */
.bf-practice__panel::before { content: ''; position: absolute; inset: 0; background: rgba(255,255,255,.06); opacity: 0; -webkit-backdrop-filter: none; backdrop-filter: none; pointer-events: none; z-index: 1; transition: none; }
.bf-practice__gallery[data-enhanced="true"] .bf-practice__panel[data-active="false"]::before { opacity: 1; -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); }
.bf-practice__toggle { display: none; position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; padding: 0; border: 0; border-radius: 0; background: transparent; color: #fff; cursor: pointer; z-index: 2; font: inherit; }
.bf-practice__tab-label { position: absolute; left: 18px; bottom: 22px; writing-mode: vertical-rl; transform: rotate(180deg); font-size: 12px; line-height: 1.35; letter-spacing: .09em; white-space: nowrap; text-shadow: 0 1px 4px rgba(0,0,0,.65); }
.bf-practice__caption { position: absolute; left: clamp(18px, 2vw, 28px); right: 16px; bottom: 24px; z-index: 3; color: #fff; pointer-events: none; }
.bf-home-practice .bf-practice__caption h3 { font-size: clamp(14px, 1.1vw, 17px); font-weight: 500; line-height: 1.4; letter-spacing: .06em; margin-bottom: 10px; }
.bf-home-practice a.bf-practice__cta { display: inline-block; font-size: 12px; line-height: 1.6; letter-spacing: .06em; text-decoration: underline; text-underline-offset: .3em; text-decoration-thickness: 1px; pointer-events: auto; }
.bf-practice__cta:hover { opacity: .8; }
.bf-home-practice :is(.bf-practice__toggle,.bf-practice__cta):focus-visible { outline: 2px solid currentColor; outline-offset: -6px; }
.bf-home-practice .bf-practice__cta:focus-visible { outline-offset: 5px; }
.bf-practice__panel--text .bf-practice__caption, .bf-practice__panel--text .bf-practice__toggle { color: #20201d; }
.bf-practice__panel--text::after { display: none; }
.bf-practice__panel--text .bf-practice__tab-label { text-shadow: none; }
.bf-practice__gallery[data-enhanced="true"] { display: flex; align-items: stretch; height: clamp(430px, 40vw, 580px); }
.bf-practice__gallery[data-enhanced="true"] .bf-practice__panel { flex: 1 1 0; height: auto; }
.bf-practice__gallery[data-enhanced="true"] .bf-practice__panel[data-active="true"] { flex-grow: 5; }
.bf-practice__gallery[data-enhanced="true"] .bf-practice__toggle { display: block; }
.bf-practice__gallery[data-enhanced="true"] .bf-practice__panel[data-active="true"] .bf-practice__tab-label { opacity: 0; }
.bf-practice__gallery[data-enhanced="true"] .bf-practice__panel[data-active="false"] .bf-practice__caption { visibility: hidden; opacity: 0; }
@media (max-width: 899px) {
  .bf-home-practice { padding-block: 44px; }
  .bf-practice__intro { margin-bottom: 24px; }
  .bf-practice__gallery { grid-template-columns: 1fr; }
  .bf-practice__panel { height: 280px; border-radius: 16px; }
  .bf-practice__gallery[data-enhanced="true"] { flex-direction: column; height: clamp(620px, 100svh, 740px); gap: 6px; }
  .bf-practice__tab-label { left: 18px; bottom: auto; top: 50%; writing-mode: horizontal-tb; transform: translateY(-50%); }
  .bf-practice__caption { bottom: 20px; }
  .bf-home-practice a.bf-practice__cta { display: inline-flex; align-items: center; min-height: 44px; padding-block: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .bf-practice__gallery *, .bf-practice__gallery *::after { animation: none !important; transition: none !important; }
}
