/* Video component: usable with any theme. Existing-site fixes are theme-scoped. */
.fb-video-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,280px),1fr));gap:24px;min-width:0}
.fb-video-card{box-sizing:border-box;min-width:0;border:1px solid #ddd;border-radius:10px;padding:20px;overflow-wrap:anywhere}
.fb-video-card img{display:block;width:100%;height:auto;aspect-ratio:16/9;object-fit:cover}
.fb-video-card h2{font-size:1.25rem;line-height:1.5}
.fb-video-card a{color:inherit;overflow-wrap:anywhere}
.fb-video-card>a:last-child{display:inline-flex;align-items:center;min-height:44px}
.fb-video-card p{line-height:1.8}
.wp-block-video{max-width:100%;min-width:0}
.wp-block-video video{display:block;width:100%;max-width:100%;height:auto;max-height:75vh;max-height:75svh;object-fit:contain;background:#111}
.wp-theme-fengbang-law .entry-content,.wp-theme-fengbang-law .page-editor-content{min-width:0;overflow-wrap:anywhere}
.wp-theme-fengbang-law .entry-content figure,.wp-theme-fengbang-law .page-editor-content figure{max-width:100%;margin-inline:0}
.wp-theme-fengbang-law .entry-content :is(img,video,iframe),.wp-theme-fengbang-law .page-editor-content :is(img,video,iframe){max-width:100%}
.wp-theme-fengbang-law .entry-content video,.wp-theme-fengbang-law .page-editor-content video{width:100%;height:auto;max-height:75vh;max-height:75svh;object-fit:contain}
.wp-theme-fengbang-law .wp-embed-aspect-16-9 iframe{width:100%;height:auto;aspect-ratio:16/9}
.wp-theme-fengbang-law .wp-embed-aspect-9-16 iframe{width:100%;height:auto;aspect-ratio:9/16;max-height:75vh}
.wp-theme-fengbang-law .wp-block-table{max-width:100%;overflow-x:auto}
@media(max-width:1100px){
 .wp-theme-fengbang-law .menu-toggle{display:flex;flex-direction:column;justify-content:center;gap:7px;width:44px;height:44px;flex-shrink:0;padding:10px;background:none;border:1px solid var(--line)}
 .wp-theme-fengbang-law .menu-toggle span{height:1px;width:100%;background:var(--ink)}
 .wp-theme-fengbang-law #main-nav{display:none;position:absolute;top:100%;left:-32px;right:-32px;background:#fff;padding:18px 32px 24px;border-bottom:1px solid var(--line);max-height:calc(100vh - 150px);max-height:calc(100dvh - 150px);overflow-y:auto;overscroll-behavior:contain}
 .wp-theme-fengbang-law #main-nav.is-open{display:flex;flex-direction:column;align-items:stretch;gap:6px}
 .wp-theme-fengbang-law #main-nav>a{padding:12px 0;min-height:44px;white-space:normal}
 .wp-theme-fengbang-law #main-nav .nav-contact{margin-top:5px}
}
@media(max-width:600px){
 .fb-video-list{grid-template-columns:minmax(0,1fr);gap:16px}
 .fb-video-card{padding:18px}
 .wp-theme-fengbang-law #main-nav{left:-20px;right:-20px;padding:15px 20px 22px}
 .wp-theme-fengbang-law .entry-content{font-size:16px;line-height:1.95}
 .wp-theme-fengbang-law .article-header h1{font-size:clamp(25px,7vw,30px);overflow-wrap:anywhere}
 .wp-theme-fengbang-law .hero-actions{flex-wrap:wrap}
 .wp-theme-fengbang-law :is(.article-actions,.hero-actions) .text-link{min-height:44px;align-items:center}
 .wp-theme-fengbang-law.single-fb_legal_video .mobile-contact{position:static}
 .wp-theme-fengbang-law:has(.wp-block-video) .mobile-contact{position:static}
}
