/* BF349 scoped, responsive showcase; does not modify existing site layout. */
#bf349-ci-gallery{box-sizing:border-box;isolation:isolate;max-width:1250px;margin:clamp(24px,4vw,55px) auto;padding:clamp(18px,3vw,38px);border:1px solid #a991df33;border-radius:24px;color:#f9f7ff;background:linear-gradient(120deg,#14162a,#241b45 56%,#1a1635);box-shadow:0 20px 55px #0c12212b;font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif}
#bf349-ci-gallery *,#bf349-ci-gallery *::before,#bf349-ci-gallery *::after{box-sizing:border-box}
#bf349-ci-gallery .bf349-kicker{font-size:11px;letter-spacing:.22em;text-transform:uppercase;color:#d1b3ff;font-weight:750}
#bf349-ci-gallery h2{color:#fff;margin:10px 0 12px;font-size:clamp(21px,2.8vw,34px);font-weight:800;line-height:1.2}
#bf349-ci-gallery .bf349-lead{font-size:clamp(13px,1.3vw,16px);color:#d8d3e9;line-height:1.6;margin:0 0 24px;max-width:760px}
#bf349-ci-gallery .bf349-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
#bf349-ci-gallery figure{min-width:0;margin:0;border:1px solid #a99ce344;border-radius:16px;background:#ffffff0a;overflow:hidden;transition:transform .17s ease,border-color .17s ease}
#bf349-ci-gallery figure:hover{transform:translateY(-3px);border-color:#cfafff99}
#bf349-ci-gallery img{display:block;width:100%;height:auto;aspect-ratio:4/3;object-fit:cover}
#bf349-ci-gallery figcaption{padding:13px 15px;font-size:13px;color:#eee7ff;font-weight:700;line-height:1.4}
#bf349-ci-gallery .bf349-actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:22px}
#bf349-ci-gallery .bf349-actions a{display:inline-flex;align-items:center;justify-content:center;padding:12px 20px;border-radius:11px;background:linear-gradient(115deg,#7060f5,#a36cda);color:#fff;text-decoration:none;font-size:13px;font-weight:750;box-shadow:0 5px 14px #10102544}
#bf349-ci-gallery .bf349-actions a.secondary{background:transparent;border:1px solid #b5a4e866;color:#eee7ff;box-shadow:none}
#bf349-ci-gallery .bf349-disclaimer{font-size:11px;color:#a9a4c0;margin:16px 0 0}
@media(max-width:700px){#bf349-ci-gallery{padding:18px;margin:22px 10px;border-radius:16px}#bf349-ci-gallery .bf349-cards{grid-template-columns:1fr}#bf349-ci-gallery figure{display:grid;grid-template-columns:39% 1fr;align-items:center}#bf349-ci-gallery img{aspect-ratio:1/1}#bf349-ci-gallery figcaption{font-size:12px}}
@media(prefers-reduced-motion:reduce){#bf349-ci-gallery figure{transition:none}}

/* BF362_SCOPED_THEME_PREMIUM_CI_V1 — scoped to the existing three-page gallery. */
#bf349-ci-gallery {
  --bf362-surface:linear-gradient(125deg,#fff 0%,#f9f7ff 64%,#f0edff 100%);
  --bf362-ink:#172139;--bf362-muted:#485570;--bf362-label:#6242b7;
  --bf362-edge:#dbe0ed;--bf362-card:#fff;--bf362-link:#1c2545;
  --bf362-shadow:0 16px 48px rgba(31,40,73,.09);
  color:var(--bf362-ink)!important;background:var(--bf362-surface)!important;
  border-color:var(--bf362-edge)!important;box-shadow:var(--bf362-shadow)!important;
}
#bf349-ci-gallery h2 {color:var(--bf362-ink)!important;text-shadow:none!important;}
#bf349-ci-gallery .bf349-kicker {color:var(--bf362-label)!important;}
#bf349-ci-gallery .bf349-lead,
#bf349-ci-gallery .bf349-disclaimer {color:var(--bf362-muted)!important;}
#bf349-ci-gallery .bf349-cards figure {
  background:var(--bf362-card)!important;border-color:var(--bf362-edge)!important;
  box-shadow:0 4px 18px rgba(30,39,77,.065);
}
#bf349-ci-gallery .bf349-cards figcaption {color:var(--bf362-ink)!important;background:var(--bf362-card)!important;}
#bf349-ci-gallery .bf349-actions a:not(.secondary) {
  color:#fff!important;background:linear-gradient(110deg,#5841ca,#7d52d4)!important;
  border-color:transparent!important;opacity:1!important;
}
#bf349-ci-gallery .bf349-actions a.secondary {
  color:var(--bf362-link)!important;border:1px solid var(--bf362-edge)!important;
  background:var(--bf362-card)!important;opacity:1!important;
}
#bf349-ci-gallery .bf349-actions a:focus-visible {outline:3px solid #9b8add;outline-offset:3px;}
/* Follow explicit site theme; never impose a dark background in light mode. */
html[data-theme="dark"] #bf349-ci-gallery,
html[data-bf-theme="dark"] #bf349-ci-gallery,
html.dark #bf349-ci-gallery,html.bf-dark #bf349-ci-gallery,
body.dark #bf349-ci-gallery,body.theme-dark #bf349-ci-gallery,
body[data-theme="dark"] #bf349-ci-gallery {
  --bf362-surface:linear-gradient(120deg,#14162a,#241b45 56%,#1a1635);
  --bf362-ink:#f9f7ff;--bf362-muted:#ded8ec;--bf362-label:#d1b3ff;
  --bf362-edge:rgba(177,151,229,.31);--bf362-card:#24243d;
  --bf362-link:#f6f0ff;--bf362-shadow:0 18px 52px rgba(5,5,22,.3);
}
html[data-theme="dark"] #bf349-ci-gallery .bf349-cards figure,
body[data-theme="dark"] #bf349-ci-gallery .bf349-cards figure,
html.dark #bf349-ci-gallery .bf349-cards figure {box-shadow:none;}
@media(max-width:700px){#bf349-ci-gallery .bf349-actions a{min-height:44px;}}
