/* Native WPBakery rows remain the source of sizing, colour, and content positions. */
.fx-agency-layout :is(.fx-visual-copy,.fx-site-template-preview) { max-width:100%; }
.fx-agency-layout .fx-visual-copy { padding-block:clamp(1rem,2.5vw,2.5rem); }
.fx-agency-layout .fx-visual-copy :is(img,video,iframe) { max-width:100%; height:auto; }
.fx-agency-layout .fx-agency-row .wpb_wrapper > :is(.fx-visual-copy,.fx-reel) { width:100%; }
.fx-site-template-preview { min-height:40vh; }
/* Header template: keep the working Fusion mobile navigation controls and menu semantics. */
.fx-navbar-builder { display:block; }
.fx-navbar-builder .fx-site-header-grid.vc_row { display:flex; align-items:center; width:100%; margin:0; gap:clamp(.5rem,2vw,2rem); }
.fx-navbar-builder .fx-site-header-grid > .wpb_column { margin:0; min-width:0; }
.fx-navbar-builder .fx-site-header-grid > .wpb_column > .vc_column-inner { padding:0; }
.fx-navbar-builder .fx-site-header-grid .wpb_wrapper { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:.5rem; }
.fx-navbar-builder .fx-site-header-grid .wpb_wrapper:has(#fx-main-nav) { justify-content:flex-end; }
.fx-navbar-builder #fx-main-nav .fx-menu { justify-content:flex-end; }
/* Footer elements are rearrangeable and individually editable. */
.fx-global-footer-builder .fx-slot-row { margin-inline:0; }
.fx-global-footer-builder .fx-slot-row > .wpb_column > .vc_column-inner { padding-inline:0; }
.fx-global-footer-builder .fx-foot-top { padding-bottom:1.7rem; }
.fx-global-footer-builder .fx-foot-bottom { gap:2rem; }
.fx-template-footer-contact { display:flex; flex-wrap:wrap; gap:1rem 1.5rem; align-items:center; }
.fx-template-social { display:flex; flex-wrap:wrap; gap:1.2rem; padding-block:1rem; }
.fx-template-social a { text-underline-offset:.2em; }
.fx-global-footer-builder .wpb_wrapper > .fx-privacy + .fx-privacy { margin-left:1rem; }
/* Article templates can put any extra rows before, after, or between the dynamic slots. */
.fx-news-template .fx-slot-article-head { margin:0; }
.fx-news-template .fx-slot-article-head > .wpb_column > .vc_column-inner { padding:0; }
.fx-news-template .fx-slot-reader-row.vc_row { display:flex; flex-wrap:wrap; gap:clamp(1.5rem,3.5vw,4rem); max-width:1320px; padding:clamp(2rem,4vw,4.5rem) clamp(1rem,3vw,2rem); margin:0 auto; }
.fx-news-template .fx-slot-reader-row > .wpb_column { flex:1 1 20rem; min-width:0; }
.fx-news-template .fx-slot-reader-row > .wpb_column:first-child { flex:2.35 1 36rem; }
.fx-news-template .fx-slot-reader-row > .wpb_column > .vc_column-inner { padding:0; }
.fx-news-template .fx-slot-reader-row .fx-reader-navigation { width:100%; }
.fx-news-template .fx-slot-row { margin-inline:0; }
.fx-news-template .fx-slot-row > .wpb_column > .vc_column-inner { padding:0; }
.fx-project-template .fx-slot-row { margin-inline:0; }
.fx-project-template .fx-slot-row > .wpb_column > .vc_column-inner { padding:0; }
.fx-visual-copy :is(.wp-block-gallery,.wp-block-image,.wp-block-video) { max-width:100%; }
@media (max-width:800px) {
  .fx-navbar-builder .fx-site-header-grid.vc_row { flex-wrap:wrap; }
  .fx-navbar-builder .fx-site-header-grid > .wpb_column { flex-basis:100%; width:100%; }
  .fx-navbar-builder .fx-site-header-grid .wpb_wrapper:has(#fx-main-nav) { justify-content:space-between; }
  .fx-navbar-builder #fx-main-nav { width:100%; }
  .fx-navbar-builder .fx-site-header-grid .wpb_wrapper { justify-content:space-between; }
  .fx-news-template .fx-slot-reader-row > .wpb_column { flex-basis:100%; }
  .fx-template-footer-contact { display:grid; }
}

/* Metadata controls are editable in WPBakery but render in project hero and credits, not as an extra blank row. */
.fx-project-meta-row { display:none!important; }

/* Standard pages and utility templates also use template-owned design options. */
.fx-visual-page-body { padding-block:clamp(1rem,2vw,3rem); }
.fx-search-template .fx-template-results, .fx-404-template .fx-template-404 { max-width:1240px; }

.fx-template-page-nav ul { display:flex; flex-wrap:wrap; list-style:none; margin:0; padding:1rem 0; gap:.75rem 1.5rem; }
.fx-template-page-nav a { text-underline-offset:.3em; }
