/*
Theme Name: Brooklyn Bridge Strategies
Author: Brooklyn Bridge Strategies
Description: A sleek, New York–inspired block theme. Black, white and transit orange, with tight grotesk type and cable-line details.
Version: 3.1
Requires at least: 6.4
Tested up to: 6.7
Requires PHP: 7.4
License: GPLv2 or later
Text Domain: bbs
*/
.bbs-cables{background:repeating-linear-gradient(115deg,transparent 0 22px,rgba(255,255,255,.07) 22px 23px);}
.bbs-rule{border-top:6px solid var(--wp--preset--color--accent);width:64px;margin:0 0 1.5rem}
.bbs-bullet{display:inline-flex;align-items:center;justify-content:center;width:2.4rem;height:2.4rem;border-radius:50%;background:var(--wp--preset--color--accent);color:#DCE8EC;font-weight:800}
.wp-block-navigation a:hover{color:var(--wp--preset--color--accent)}
.bbs-card{border-top:1px solid currentColor;padding-top:1.25rem;transition:transform .2s}
.bbs-card:hover{transform:translateY(-4px)}
.bbs-ticker{white-space:nowrap;overflow:hidden}
.bbs-ticker p{display:inline-block;animation:bbs 30s linear infinite;padding-left:100%}
@keyframes bbs{to{transform:translateX(-100%)}}
@media (prefers-reduced-motion:reduce){.bbs-ticker p{animation:none;padding-left:0}}
/* --- Bridge elements --- */
:root{--bg:var(--wp--preset--color--paper)}
.bbs-bridge{display:block;width:100%;height:auto;color:var(--wp--preset--color--ink)}
.bbs-hero-bridge{margin-top:3rem}
.has-ink-background-color .bbs-bridge,.has-granite-background-color .bbs-bridge{color:var(--wp--preset--color--limestone)}
/* gothic pointed arch, from the tower openings */
.bbs-arch img,.bbs-arch .bbs-ph{-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 125' preserveAspectRatio='none'%3E%3Cpath d='M0 125V40Q0 8 50 0Q100 8 100 40V125Z'/%3E%3C/svg%3E") center/100% 100% no-repeat;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 125' preserveAspectRatio='none'%3E%3Cpath d='M0 125V40Q0 8 50 0Q100 8 100 40V125Z'/%3E%3C/svg%3E") center/100% 100% no-repeat}
/* cable-curve divider */
.bbs-cable-divider{height:60px;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 60' preserveAspectRatio='none'%3E%3Cpath d='M0 2Q600 110 1200 2' fill='none' stroke='%23141E26' stroke-width='3' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E") center/100% 100% no-repeat}
.bbs-meta{font-family:var(--wp--preset--font-family--mono);font-size:.8rem;text-transform:uppercase;letter-spacing:.1em;border-top:1px solid currentColor;padding-top:.75rem}
/* v1.5 sections */
.bbs-stats{border-top:1px solid currentColor;border-bottom:1px solid currentColor;gap:0!important}
.bbs-stats>.wp-block-column{padding:2.5rem 1.5rem;border-right:1px solid currentColor}.bbs-stats>.wp-block-column:last-child{border:0}
.bbs-stat{font:900 clamp(2.5rem,5vw,4rem)/1 var(--wp--preset--font-family--display);color:var(--wp--preset--color--accent);margin:0}
.bbs-tabs{list-style:none;padding:0;display:flex;flex-wrap:wrap;gap:.4rem;margin:0 0 2.5rem}
.bbs-tabs li a{display:inline-block;border:1px solid #555;padding:.6rem 1rem;font-size:.75rem;font-weight:600;letter-spacing:.1em;text-transform:uppercase;text-decoration:none}
.bbs-tabs li a:hover,.bbs-tabs li.current-cat a{background:var(--wp--preset--color--accent);border-color:var(--wp--preset--color--accent);color:#DCE8EC}

.bbs-archframe::before{content:"";position:absolute;inset:14px;border:1px solid var(--wp--preset--color--accent);border-radius:inherit}
#work .wp-block-post-template.is-layout-grid>li:nth-child(-n+5){grid-column:span 2}
#work .wp-block-post-template.is-layout-grid>li:nth-child(-n+5) .bbs-arch img{aspect-ratio:8/5!important}
@media(max-width:781px){.bbs-stats>.wp-block-column{border-right:0;border-bottom:1px solid currentColor}#work .wp-block-post-template.is-layout-grid>li:nth-child(-n+5){grid-column:auto}}
.bbs-logo{display:block;color:var(--wp--preset--color--ink)}.bbs-logo-svg{height:92px;width:auto;display:block}@media(max-width:600px){.bbs-logo-svg{height:64px}}
.bbs-emblem{width:100%;height:auto;display:block}

.bbs-ticker{color:#DCE8EC}
/* centered emblem header */
.bbs-header{display:grid;grid-template-columns:1fr auto 1fr;align-items:center}
.bbs-nav-right{justify-content:flex-end}.bbs-hb .wp-block-button__link{padding:.7rem 1.1rem}
.bbs-header .bbs-logo-svg{height:118px}
.bbs-nav-mobile{display:none}
@media(max-width:900px){.bbs-nav-left,.bbs-nav-right{display:none}.bbs-header{grid-template-columns:1fr auto}.bbs-nav-mobile{display:flex;justify-self:end}.bbs-header .bbs-logo-svg{height:84px}}
/* Borough Hall train strip */
.bbs-trains{background:#141E26;color:#DCE8EC;font-size:.8rem;overflow:hidden}
.bbs-trains-inner{display:flex;align-items:center;gap:1.5rem;max-width:1280px;margin:0 auto;padding:.55rem clamp(1.25rem,4vw,3rem);white-space:nowrap;overflow-x:auto;scrollbar-width:none}
.bbs-trains-label{font-weight:700;letter-spacing:.14em;text-transform:uppercase;display:flex;align-items:center;gap:.5rem}
.bbs-trains-label::before{content:"";width:7px;height:7px;border-radius:50%;background:#4ADE80;box-shadow:0 0 0 3px rgba(74,222,128,.25)}
.bbs-trains-list{display:flex;gap:1.5rem}
.bbs-tr{display:inline-flex;align-items:center;gap:.45rem}.bbs-tr b{font-family:var(--wp--preset--font-family--mono);font-weight:400}
.bbs-tr-dir{opacity:.7}.bbs-tr-muted{opacity:.6}
.bbs-route{display:inline-flex;align-items:center;justify-content:center;width:1.45rem;height:1.45rem;border-radius:50%;color:#fff;font-weight:700;font-size:.8rem}
.bbs-route.r2,.bbs-route.r3{background:#EE352E}.bbs-route.r4,.bbs-route.r5{background:#00933C}

/* auto-scrolling train ticker */
.bbs-trains-inner{overflow:hidden!important}
.bbs-trains-list{overflow:hidden;flex:1;mask-image:linear-gradient(90deg,transparent,#000 4%,#000 96%,transparent);-webkit-mask-image:linear-gradient(90deg,transparent,#000 4%,#000 96%,transparent)}
.bbs-tr-track{display:inline-flex;gap:2.5rem;padding-right:2.5rem;animation:bbsTrains var(--dur,40s) linear infinite;will-change:transform}
.bbs-trains:hover .bbs-tr-track{animation-play-state:paused}
@keyframes bbsTrains{to{transform:translateX(-50%)}}
@media (prefers-reduced-motion:reduce){.bbs-tr-track{animation:none}.bbs-trains-list{overflow-x:auto}}
/* v2.3 project pages */
.bbs-phero{background:var(--wp--preset--color--granite);color:var(--wp--preset--color--paper);padding:3.5rem 0 4.5rem;position:relative;overflow:hidden}
.bbs-phero::before{content:"";position:absolute;inset:0;background:repeating-linear-gradient(115deg,transparent 0 22px,rgba(255,255,255,.035) 22px 23px);pointer-events:none}
.bbs-phgrid{gap:4rem!important;position:relative}
.bbs-back{display:inline-block;font-weight:600;font-size:.72rem;letter-spacing:.14em;text-transform:uppercase;color:var(--wp--preset--color--limestone);text-decoration:none;margin-bottom:3rem}.bbs-back:hover{color:#fff}
.bbs-pkick,.bbs-pkick a{font-family:var(--wp--preset--font-family--mono);font-size:.75rem;letter-spacing:.14em;text-transform:uppercase;color:var(--wp--preset--color--limestone);text-decoration:none}
.bbs-ptitle{font-size:clamp(3rem,7.5vw,6.5rem)!important;line-height:.95!important;color:var(--wp--preset--color--paper)}
.bbs-pex{font-size:1.3rem;line-height:1.45;color:#c5d4da;max-width:34ch}.bbs-pex .wp-block-post-excerpt__more-text{display:none}
.bbs-parch{aspect-ratio:4/5;max-width:420px;margin-left:auto;border:1.5px solid rgba(220,232,236,.5);border-radius:50% 50% 0 0/36% 36% 0 0;padding:14px}
.bbs-parch-in,.bbs-parch-in img{height:100%!important;width:100%;border-radius:50% 50% 0 0/36% 36% 0 0;object-fit:cover}
.bbs-parch-in{background:linear-gradient(165deg,#3B5B70,#0f171d);margin:0}
.bbs-pgrid{gap:5rem!important;padding-top:5rem;padding-bottom:6rem}
.bbs-pside{position:sticky;top:2rem;align-self:flex-start}
.bbs-pside-item{border-top:1px solid currentColor;padding:.9rem 0 1.4rem}.bbs-pside-item p:empty{display:none}
.bbs-pside-item:has(p:empty:last-child){display:none}
.bbs-plabel{font-family:var(--wp--preset--font-family--mono);font-size:.7rem!important;letter-spacing:.14em;text-transform:uppercase;color:var(--wp--preset--color--steel);margin:0 0 .4rem!important}
.bbs-pside-item a{text-decoration:none}
.bbs-psvc a{display:block;font-size:.95rem;padding:.35rem 0;border-bottom:1px dashed rgba(20,30,38,.18)}.bbs-psvc a:last-child{border:0}
.bbs-pbody{max-width:700px}.bbs-pbody>p{font-size:1.12rem;line-height:1.7}
.bbs-pbody>p:first-child{font-size:1.45rem;line-height:1.5}
.bbs-pbody>p:first-child::first-letter{float:left;font:900 5.2rem/.8 var(--wp--preset--font-family--display);margin:.35rem .6rem 0 0;color:var(--wp--preset--color--accent)}
.bbs-pbody h2{font-size:clamp(2rem,3.6vw,2.9rem);line-height:1.02;margin-top:4rem;padding-top:1.5rem;position:relative}
.bbs-pbody h2::before{content:"";position:absolute;top:0;left:0;width:56px;height:5px;background:var(--wp--preset--color--accent)}
.bbs-pbody h3{font-family:var(--wp--preset--font-family--sans);font-weight:700;font-size:.85rem;letter-spacing:.14em;text-transform:uppercase;color:var(--wp--preset--color--accent);margin-top:2.5rem}
.bbs-pbody ul{list-style:none;padding:0;border-top:1px solid currentColor}.bbs-pbody li{padding:.85rem 0 .85rem 2rem;border-bottom:1px solid rgba(20,30,38,.15);position:relative}
.bbs-pbody li::before{content:"";position:absolute;left:0;top:1.45rem;width:14px;height:2px;background:var(--wp--preset--color--accent)}
.bbs-pbody .wp-block-image{margin:3rem 0}.bbs-pbody .wp-block-image img{width:100%;height:auto}
.bbs-pnextband{background:var(--wp--preset--color--accent);padding:3.5rem 0;transition:background .25s}.bbs-pnextband:hover{background:var(--wp--preset--color--ink)}
.bbs-pnextband a{color:var(--wp--preset--color--paper);text-decoration:none;font:900 clamp(2.2rem,5vw,4.2rem)/1 var(--wp--preset--font-family--display)}
@media(max-width:860px){.bbs-pside{position:static}.bbs-parch{max-width:300px;margin:0}}
/* v2.4 case-study roadmap & chapters */
.bbs-pstrip{border-bottom:1px solid currentColor}
.bbs-pstrip-in{gap:1.5rem 3.5rem!important;padding:1.5rem 0}.bbs-pstrip-in p,.bbs-pstrip-in .wp-block-post-terms{margin:0;font-size:1rem}.bbs-pstrip-in a{text-decoration:none}
.bbs-strip-svc{flex:1;min-width:260px}.bbs-strip-item:has(p:empty:last-child){display:none}
.bbs-pgrid{gap:5rem!important;padding-top:5rem;padding-bottom:6rem}
.bbs-proad{position:sticky;top:1.5rem;align-self:flex-start}.bbs-proad-empty .bbs-plabel,.bbs-proad-empty ol{display:none}
.bbs-proad-list{list-style:none;padding:0;margin:.8rem 0 2rem;position:relative}
.bbs-proad-list::before{content:"";position:absolute;left:.95rem;top:.6rem;bottom:.6rem;width:1px;background:rgba(20,30,38,.18)}
.bbs-proad-list .bar{position:absolute;left:.95rem;top:.6rem;width:1px;background:var(--wp--preset--color--accent);height:0;transition:height .25s}
.bbs-proad-list a{display:grid;grid-template-columns:2rem 1fr;align-items:baseline;gap:.4rem;padding:.55rem 0;color:var(--wp--preset--color--steel);text-decoration:none;font-size:.92rem;line-height:1.3}
.bbs-proad-list a span{font-family:var(--wp--preset--font-family--mono);font-size:.68rem;width:1.9rem;height:1.9rem;border-radius:50%;display:flex;align-items:center;justify-content:center;background:var(--wp--preset--color--paper);border:1px solid rgba(20,30,38,.25);position:relative;z-index:1}
.bbs-proad-list a.on{color:var(--wp--preset--color--ink);font-weight:600}.bbs-proad-list a.on span,.bbs-proad-list a.done span{background:var(--wp--preset--color--accent);border-color:var(--wp--preset--color--accent);color:var(--wp--preset--color--paper)}
.bbs-pbody{max-width:760px}.bbs-pbody>p:first-child::first-letter{all:unset}
.bbs-chapter{padding-bottom:4.5rem;margin-bottom:4.5rem;border-bottom:1px solid rgba(20,30,38,.15);scroll-margin-top:1.5rem}.bbs-chapter:last-child{border-bottom:0}
.bbs-chnum{font-family:var(--wp--preset--font-family--mono);font-size:.75rem!important;letter-spacing:.14em;color:var(--wp--preset--color--accent);margin:0 0 .6rem!important}
.bbs-pbody .bbs-chtitle{font-size:clamp(2.2rem,4vw,3.2rem)!important;line-height:1;margin:0 0 2rem;padding:0}.bbs-pbody .bbs-chtitle::before{display:none}
.bbs-chapter>p:not([class]):first-of-type{font-size:1.3rem;line-height:1.55}
.bbs-lede{font-family:var(--wp--preset--font-family--display);font-weight:900;font-size:clamp(1.5rem,2.6vw,2rem)!important;line-height:1.2!important}
.bbs-brief{gap:0!important;border-top:1px solid currentColor}
.bbs-brief>.wp-block-column{padding:1.5rem 1.5rem 1.5rem 0;border-right:1px solid rgba(20,30,38,.15)}.bbs-brief>.wp-block-column+.wp-block-column{padding-left:1.5rem}.bbs-brief>.wp-block-column:last-child{border-right:0}
.bbs-pbody .bbs-brief-label{font-family:var(--wp--preset--font-family--sans);font-weight:700;font-size:.72rem!important;letter-spacing:.14em;text-transform:uppercase;color:var(--wp--preset--color--accent);margin:0 0 .8rem}
.bbs-brief p{font-size:1.02rem!important;line-height:1.55}
.bbs-figures{background:var(--wp--preset--color--granite);color:var(--wp--preset--color--paper);padding:2rem 2.2rem;margin-top:2.5rem!important;gap:2rem!important}
.bbs-figure{font-family:var(--wp--preset--font-family--display);font-weight:900;font-size:clamp(2.4rem,4.5vw,3.4rem)!important;line-height:1;margin:0 0 .5rem!important;color:#fff}
.bbs-figure-label{font-size:.88rem!important;color:var(--wp--preset--color--limestone);margin:0!important}
.bbs-gallery{gap:1rem!important;margin:2rem 0}.bbs-gallery img{aspect-ratio:4/3;object-fit:cover}
@media(max-width:860px){.bbs-proad{position:static}.bbs-proad-list{display:none}.bbs-brief>.wp-block-column{border-right:0;border-bottom:1px solid rgba(20,30,38,.15);padding:1.2rem 0!important}}
/* v2.6 live-site fixes */
html,body{overflow-x:clip}
.bbs-nav-mobile,.wp-block-navigation.bbs-nav-mobile{display:none!important}
@media(max-width:900px){.wp-block-navigation.bbs-nav-mobile{display:flex!important}}
.bbs-trains,.alignfull{width:100vw!important;max-width:100vw!important;margin-left:calc(50% - 50vw)!important;margin-right:calc(50% - 50vw)!important}
.bbs-tabs{display:flex;flex-wrap:wrap;gap:.4rem;margin:0 0 2.5rem;padding:0;list-style:none}
.bbs-tabs a{display:inline-block;border:1px solid rgba(220,232,236,.35);color:inherit;padding:.6rem 1rem;font-size:.75rem;font-weight:600;letter-spacing:.1em;text-transform:uppercase;text-decoration:none}
.bbs-tabs a:hover,.bbs-tabs a.on{background:var(--wp--preset--color--accent);border-color:var(--wp--preset--color--accent);color:var(--wp--preset--color--paper)}
.bbs-meta a,.bbs-svc a,.wp-block-post-title a{text-decoration:none;color:inherit}
.bbs-meta{color:var(--wp--preset--color--limestone)}
.bbs-svc{font-size:.85rem;opacity:.7;margin-top:.2rem}
.wp-block-post-template .wp-block-post-title{font-size:1.5rem;margin:.6rem 0 .2rem}
#work .wp-block-post-template.is-layout-grid>li:nth-child(-n+5) .wp-block-post-title{font-size:2rem}
.bbs-arch{overflow:hidden}.bbs-arch:not(:has(img)){aspect-ratio:4/5;background:linear-gradient(160deg,#3B5B70,#141E26);-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 125' preserveAspectRatio='none'%3E%3Cpath d='M0 125V40Q0 8 50 0Q100 8 100 40V125Z'/%3E%3C/svg%3E") center/100% 100% no-repeat;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 125' preserveAspectRatio='none'%3E%3Cpath d='M0 125V40Q0 8 50 0Q100 8 100 40V125Z'/%3E%3C/svg%3E") center/100% 100% no-repeat}
#work .wp-block-post-template.is-layout-grid>li:nth-child(-n+5) .bbs-arch:not(:has(img)){aspect-ratio:8/5}
/* v2.7 four-part brief + quotes */
.bbs-brief{flex-wrap:wrap!important}
.bbs-brief>.wp-block-column{flex-basis:50%!important;flex-grow:0!important;border-right:0!important;border-bottom:1px solid rgba(20,30,38,.15);padding:1.5rem 1.5rem 1.5rem 0!important}
.bbs-brief>.wp-block-column:nth-child(odd){border-right:1px solid rgba(20,30,38,.15)!important}.bbs-brief>.wp-block-column:nth-child(even){padding-left:1.5rem!important}
.bbs-brief>.wp-block-column:nth-child(n+3){border-bottom:0}
.bbs-quote{margin:2.5rem 0;padding:0 0 0 1.75rem;border-left:5px solid var(--wp--preset--color--accent)}
.bbs-quote p{font-family:var(--wp--preset--font-family--display);font-weight:900;font-size:clamp(1.4rem,2.4vw,1.85rem)!important;line-height:1.25!important;margin:0 0 .8rem!important}
.bbs-quote p::before{content:"\201C"}.bbs-quote p::after{content:"\201D"}
.bbs-quote cite{font-family:var(--wp--preset--font-family--mono);font-size:.75rem;letter-spacing:.12em;text-transform:uppercase;font-style:normal;color:var(--wp--preset--color--steel)}
.bbs-chapter h3:not([class*="bbs-"]){font-family:var(--wp--preset--font-family--sans);font-weight:700;font-size:.85rem!important;letter-spacing:.14em;text-transform:uppercase;color:var(--wp--preset--color--accent);margin:2rem 0 .5rem}
@media(max-width:860px){.bbs-brief>.wp-block-column{flex-basis:100%!important;border-right:0!important;padding:1.2rem 0!important;border-bottom:1px solid rgba(20,30,38,.15)!important}}
/* before / after comparison */
.bbs-ba{margin:2.5rem 0}
.bbs-ba-stage{position:relative;aspect-ratio:16/10;background:#0f171d;overflow:hidden;user-select:none;touch-action:pan-y}
.bbs-ba-stage img{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;display:block;margin:0;max-width:none}
.bbs-ba-before{position:absolute;inset:0;clip-path:inset(0 calc(100% - var(--pos)) 0 0);background:#0f171d}
.bbs-ba-line{position:absolute;top:0;bottom:0;left:var(--pos);width:2px;margin-left:-1px;background:#fff;box-shadow:0 0 0 1px rgba(0,0,0,.15);pointer-events:none}
.bbs-ba-line::after{content:"";position:absolute;top:50%;left:50%;width:46px;height:46px;margin:-23px 0 0 -23px;border-radius:50%;background:#fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23141E26' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 6l-6 6 6 6M15 6l6 6-6 6'/%3E%3C/svg%3E") center/22px no-repeat;box-shadow:0 4px 14px rgba(0,0,0,.3)}
.bbs-ba-tag{position:absolute;top:1rem;font:700 .68rem/1 Decimal,'Helvetica Neue',sans-serif;letter-spacing:.14em;text-transform:uppercase;padding:.45rem .7rem;pointer-events:none}
.bbs-ba-tag-b{left:1rem;background:#fff;color:#141E26}.bbs-ba-tag-a{right:1rem;background:#1F4E6B;color:#fff}
.bbs-ba-range{position:absolute;inset:0;width:100%;height:100%;margin:0;opacity:0;cursor:ew-resize;-webkit-appearance:none;appearance:none}
.bbs-ba-range:focus-visible+*{outline:2px solid #fff}
.bbs-ba figcaption{font-size:.85rem;color:#5E7383;margin-top:.7rem;padding-left:.9rem;border-left:2px solid #1F4E6B}
/* ---- editorial media plates (v2.9) ---- */
:root{--plate-noise:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .08 0 0 0 0 .12 0 0 0 0 .15 0 0 0 .22 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E")}
.bbs-chapter figure.wp-block-image:not(.bbs-gallery figure),.bbs-gallery,.bbs-ba-stage{
  position:relative;isolation:isolate;
  background-color:#c4d5dc;
  background-image:var(--plate-noise),repeating-linear-gradient(115deg,transparent 0 22px,rgba(20,30,38,.045) 22px 23px),radial-gradient(120% 90% at 30% 0%,rgba(255,255,255,.55),rgba(255,255,255,0) 60%),linear-gradient(180deg,#d3e1e6,#b6cad3);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.6),inset 0 -40px 80px -40px rgba(20,30,38,.25)}
.bbs-chapter figure.wp-block-image:not(.bbs-gallery figure){padding:clamp(1.25rem,4vw,3.25rem);margin:2.75rem 0;text-align:center}
.bbs-chapter figure.wp-block-image img,.bbs-gallery img{
  display:block;width:auto!important;max-width:100%!important;height:auto!important;max-height:78vh;margin:0 auto;object-fit:contain!important;aspect-ratio:auto!important;
  border-radius:2px;background:#fff;
  box-shadow:0 1px 2px rgba(10,20,30,.12),0 8px 18px -6px rgba(10,20,30,.25),0 30px 60px -20px rgba(10,20,30,.45);
  transition:transform .5s cubic-bezier(.2,.7,.2,1),box-shadow .5s}
.bbs-chapter figure img:hover{transform:translateY(-4px) scale(1.008);box-shadow:0 2px 4px rgba(10,20,30,.12),0 14px 26px -8px rgba(10,20,30,.3),0 44px 80px -24px rgba(10,20,30,.5)}
/* galleries: one plate, natural-shape masonry, nothing cropped */
.bbs-gallery,.wp-block-gallery.bbs-gallery{display:block!important;columns:2;column-gap:clamp(1rem,2.5vw,2rem);padding:clamp(1.25rem,3.5vw,2.75rem)!important;margin:2.75rem 0!important}
.bbs-gallery figure,.wp-block-gallery.bbs-gallery figure.wp-block-image{break-inside:avoid;margin:0 0 clamp(1rem,2.5vw,2rem)!important;width:auto!important;display:block!important;background:none!important;padding:0!important;box-shadow:none!important}
.bbs-gallery figure:last-child{margin-bottom:0!important}
.wp-block-gallery.bbs-gallery.is-cropped figure img{height:auto!important;object-fit:contain!important;flex:none}
/* images run wider than the text, like a magazine spread */
.bbs-chapter>figure,.bbs-chapter>.bbs-gallery,.bbs-chapter>.wp-block-gallery,.bbs-chapter>.bbs-ba{margin-right:min(-4vw,-2rem)!important}
@media(min-width:1180px){.bbs-chapter>figure,.bbs-chapter>.bbs-gallery,.bbs-chapter>.wp-block-gallery,.bbs-chapter>.bbs-ba{margin-right:-14rem!important}}
@media(max-width:860px){.bbs-chapter>figure,.bbs-chapter>.bbs-gallery,.bbs-chapter>.wp-block-gallery,.bbs-chapter>.bbs-ba{margin-left:-1.25rem!important;margin-right:-1.25rem!important}.bbs-gallery{columns:1}}
/* comparison stage on a darker plate */
.bbs-ba-stage{aspect-ratio:16/10;background-color:#16232d!important;background-image:var(--plate-noise),repeating-linear-gradient(115deg,transparent 0 22px,rgba(255,255,255,.035) 22px 23px),radial-gradient(100% 80% at 50% 0%,rgba(255,255,255,.08),transparent 60%)!important;box-shadow:inset 0 -60px 120px -60px rgba(0,0,0,.6)!important}
.bbs-ba-stage>img,.bbs-ba-before img{inset:6%!important;width:88%!important;height:88%!important;filter:drop-shadow(0 18px 30px rgba(0,0,0,.45))}
.bbs-ba-before{background:none!important}
/* scroll reveal */
.bbs-reveal{opacity:0;transform:translateY(28px);transition:opacity .9s ease,transform .9s cubic-bezier(.2,.7,.2,1)}
.bbs-reveal.in{opacity:1;transform:none}
@media (prefers-reduced-motion:reduce){.bbs-reveal{opacity:1;transform:none;transition:none}}
/* breakout fix: text column stays readable, media fills the full content column */
.pbody,.bbs-pbody{max-width:none!important}
.bbs-chapter>:not(figure):not(.bbs-gallery):not(.wp-block-gallery):not(.bbs-ba):not(.bbs-figures):not(.bbs-brief){max-width:700px}
.bbs-chapter>figure,.bbs-chapter>.bbs-gallery,.bbs-chapter>.wp-block-gallery,.bbs-chapter>.bbs-ba{margin-right:0!important;margin-left:0!important;max-width:100%}
.bbs-brief,.bbs-figures{max-width:900px}
@media(max-width:860px){.bbs-chapter>figure,.bbs-chapter>.bbs-gallery,.bbs-chapter>.wp-block-gallery,.bbs-chapter>.bbs-ba{margin-left:-1.25rem!important;margin-right:-1.25rem!important;max-width:none}}
@media(max-width:860px){.bbs-brief{grid-template-columns:1fr!important}.bbs-brief>div,.bbs-brief>.wp-block-column{border-right:0!important;padding:1.1rem 0!important;flex-basis:100%!important;border-bottom:1px solid rgba(20,30,38,.15)!important}.proad>.plabel,.bbs-proad>.wp-block-html .bbs-plabel,.bbs-proad .bbs-plabel{display:none}.proad .btn{display:none}}
/* ===== v3 Times-style article layout ===== */
.pchap,.bbs-pchap{position:sticky;top:0;z-index:30;background:rgba(220,232,236,.93);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);border-bottom:1px solid rgba(20,30,38,.14)}
.pchap-in,.bbs-pchap-in{display:flex;align-items:center;gap:1.25rem;overflow-x:auto;scrollbar-width:none;max-width:1280px;margin:0 auto;padding:.65rem clamp(1.25rem,4vw,3rem)}
.pchap-in::-webkit-scrollbar,.bbs-pchap-in::-webkit-scrollbar{display:none}
.pchap .plabel,.bbs-pchap .bbs-plabel{margin:0!important;white-space:nowrap;flex:none}
.pchap .proad-list,.bbs-pchap .bbs-proad-list{display:flex!important;gap:.2rem;margin:0!important;padding:0;list-style:none}
.pchap .proad-list::before,.bbs-pchap .bbs-proad-list::before,.pchap .bar,.bbs-pchap .bar{display:none!important}
.pchap .proad-list a,.bbs-pchap .bbs-proad-list a{display:flex!important;align-items:center;gap:.5rem;white-space:nowrap;padding:.35rem .8rem .35rem .4rem!important;border-radius:999px;font-size:.82rem!important;line-height:1!important;grid-template-columns:none!important;color:var(--steel,#5E7383)}
.pchap .proad-list a span,.bbs-pchap .bbs-proad-list a span{width:1.55rem!important;height:1.55rem!important;font-size:.62rem!important}
.pchap .proad-list a.on,.bbs-pchap .bbs-proad-list a.on{background:rgba(31,78,107,.1)}
.pprog,.bbs-pprog{position:absolute;left:0;bottom:-1px;height:2px;width:0;background:#1F4E6B;transition:width .15s linear}
.particle{padding-top:4.5rem;padding-bottom:6rem}
.pbody,.bbs-pbody{max-width:none!important;margin:0!important}
/* text column */
.bbs-chapter>*{max-width:680px;margin-left:auto!important;margin-right:auto!important}
.bbs-chapter>.bbs-brief,.bbs-chapter>.bbs-figures{max-width:900px}
/* media breaks out wide */
.bbs-chapter>figure,.bbs-chapter>.bbs-gallery,.bbs-chapter>.wp-block-gallery,.bbs-chapter>.bbs-ba,.bbs-chapter>.bbs-dip,.bbs-chapter>.wp-block-html>.bbs-ba,.bbs-chapter>.wp-block-html>.bbs-dip{
  width:min(1180px,calc(100vw - 3rem))!important;max-width:none!important;margin-left:calc(50% - min(590px,50vw - 1.5rem))!important;margin-right:0!important}
.bbs-chapter{border-bottom:0!important;padding-bottom:3.5rem!important;margin-bottom:3.5rem!important}
.bbs-chapter+.bbs-chapter{border-top:1px solid rgba(20,30,38,.12);padding-top:3.5rem}
/* plates: thin frame so the photo dominates */
.bbs-chapter figure.wp-block-image:not(.bbs-gallery figure){padding:clamp(.6rem,1.6vw,1.4rem)!important;margin-top:2.5rem!important;margin-bottom:2.5rem!important}
.bbs-chapter figure.wp-block-image img{width:100%!important;max-height:none}
.bbs-chapter figure.wp-block-image img.is-tall,.bbs-gallery img.is-tall{width:auto!important;max-height:86vh!important}
.bbs-gallery,.wp-block-gallery.bbs-gallery{padding:clamp(.6rem,1.6vw,1.4rem)!important;column-gap:clamp(.6rem,1.4vw,1.2rem)!important}
.bbs-gallery figure,.wp-block-gallery.bbs-gallery figure.wp-block-image{margin-bottom:clamp(.6rem,1.4vw,1.2rem)!important}
.bbs-gallery img{width:100%!important}
/* diptych: then & now side by side, never overlapping */
.bbs-dip{margin:2.5rem 0}
.bbs-dip-grid{display:grid;grid-template-columns:1fr 1fr;gap:clamp(.6rem,1.4vw,1.2rem)}
.bbs-dip-panel{position:relative;display:flex;align-items:center;justify-content:center;padding:clamp(2.6rem,4vw,3.4rem) clamp(.8rem,2vw,1.6rem) clamp(.8rem,2vw,1.6rem);
  background-color:#c4d5dc;background-image:var(--plate-noise),repeating-linear-gradient(115deg,transparent 0 22px,rgba(20,30,38,.045) 22px 23px),radial-gradient(120% 90% at 30% 0%,rgba(255,255,255,.55),rgba(255,255,255,0) 60%),linear-gradient(180deg,#d3e1e6,#b6cad3)}
.bbs-dip-panel img{display:block;max-width:100%;max-height:78vh;width:auto;height:auto;margin:0 auto;box-shadow:0 1px 2px rgba(10,20,30,.12),0 8px 18px -6px rgba(10,20,30,.25),0 30px 60px -20px rgba(10,20,30,.45)}
.bbs-dip-panel .bbs-ba-tag{top:.9rem}
.bbs-dip-panel:first-child .bbs-ba-tag{left:.9rem}.bbs-dip-panel:last-child .bbs-ba-tag{left:.9rem;right:auto}
.bbs-dip figcaption,.bbs-ba figcaption{max-width:680px;margin:.8rem auto 0}
/* slider: framed on a plate, sized to the real image */
.bbs-ba{padding:clamp(.6rem,1.6vw,1.4rem);background-color:#16232d;background-image:var(--plate-noise),repeating-linear-gradient(115deg,transparent 0 22px,rgba(255,255,255,.035) 22px 23px)}
.bbs-ba-stage{aspect-ratio:var(--r,1.6)!important;width:min(100%,calc(84vh * var(--r,1.6)))!important;margin:0 auto;background:none!important;box-shadow:0 30px 60px -20px rgba(0,0,0,.6)!important}
.bbs-ba-stage>img,.bbs-ba-before img{inset:0!important;width:100%!important;height:100%!important;object-fit:cover!important;filter:none!important}
.bbs-ba figcaption{color:#9fb3bd;border-color:#9fb3bd}
@media(max-width:860px){
  .bbs-chapter>figure,.bbs-chapter>.bbs-gallery,.bbs-chapter>.wp-block-gallery,.bbs-chapter>.bbs-ba,.bbs-chapter>.bbs-dip,.bbs-chapter>.wp-block-html>.bbs-ba,.bbs-chapter>.wp-block-html>.bbs-dip{width:100vw!important;margin-left:calc(50% - 50vw)!important}
  .bbs-dip-grid{grid-template-columns:1fr}.bbs-gallery{columns:1}}
.bbs-chapter>.bbs-brief,.bbs-chapter>.bbs-figures{max-width:680px!important}
.bbs-particle{padding-top:4.5rem;padding-bottom:6rem}
.bbs-chapter>.wp-block-html{max-width:none!important}
.wp-site-blocks{overflow-x:clip}
/* ===== v4 photo system: spreads, justified rows, film strips, viewer ===== */
.bbs-chapter>.bbs-spread{width:100vw!important;max-width:none!important;margin:3rem 0 3rem calc(50% - 50vw)!important;position:relative;overflow:hidden;isolation:isolate;
  display:flex;align-items:center;justify-content:center;padding:clamp(2rem,6vw,5.5rem) clamp(1rem,4vw,3rem);min-height:40vh;background:#0e1519}
.bbs-spread-glow{position:absolute;inset:-12%;z-index:-1;background:var(--bg) center/cover no-repeat;filter:blur(60px) saturate(1.35) brightness(.55);transform:scale(1.1)}
.bbs-spread::after{content:"";position:absolute;inset:0;z-index:-1;background:var(--plate-noise),radial-gradient(120% 90% at 50% 40%,transparent 40%,rgba(0,0,0,.45));pointer-events:none}
.bbs-spread img{display:block;max-width:min(1400px,100%);max-height:86vh;width:auto;height:auto;border-radius:3px;
  box-shadow:0 2px 4px rgba(0,0,0,.25),0 30px 70px -20px rgba(0,0,0,.7),0 60px 120px -40px rgba(0,0,0,.6);cursor:zoom-in;transition:transform .6s cubic-bezier(.2,.7,.2,1)}
.bbs-spread img:hover{transform:scale(1.012)}
/* justified rows: equal heights, natural proportions, nothing cropped */
.bbs-chapter>.bbs-row{width:min(1180px,calc(100vw - 3rem))!important;max-width:none!important;margin:2rem 0 2rem calc(50% - min(590px,50vw - 1.5rem))!important;display:flex;gap:clamp(.5rem,1.2vw,1rem);align-items:flex-start}
.bbs-row figure{margin:0!important;min-width:0}
.bbs-row img{display:block;width:100%;height:auto;object-fit:cover;border-radius:2px;background:#fff;cursor:zoom-in;
  box-shadow:0 1px 2px rgba(10,20,30,.12),0 10px 24px -8px rgba(10,20,30,.28),0 34px 70px -24px rgba(10,20,30,.42);transition:transform .45s cubic-bezier(.2,.7,.2,1),box-shadow .45s}
.bbs-row img:hover{transform:translateY(-5px);box-shadow:0 2px 4px rgba(10,20,30,.14),0 18px 34px -10px rgba(10,20,30,.32),0 50px 90px -30px rgba(10,20,30,.5)}
.bbs-row-1{justify-content:center}.bbs-row-1 figure{flex:none!important;max-width:100%}.bbs-row-1 img{width:auto;max-width:100%;max-height:86vh}
/* film strip */
.bbs-chapter>.bbs-rail{width:100vw!important;max-width:none!important;margin:3rem 0 3rem calc(50% - 50vw)!important;background:#0e1519;background-image:var(--plate-noise);padding:2.5rem 0 1.5rem}
.bbs-rail-track{display:flex;gap:1.25rem;overflow-x:auto;scroll-snap-type:x mandatory;padding:0 max(1.5rem,calc(50vw - 590px));scrollbar-width:none;cursor:grab}
.bbs-rail-track::-webkit-scrollbar{display:none}
.bbs-rail figure{flex:none;margin:0;scroll-snap-align:center}
.bbs-rail img{display:block;height:min(66vh,620px);width:auto;border-radius:3px;box-shadow:0 30px 60px -20px rgba(0,0,0,.7);cursor:zoom-in}
.bbs-rail-ui{display:flex;align-items:center;justify-content:center;gap:1.25rem;margin-top:1.25rem;color:#c5d4da;font:400 .75rem 'JetBrains Mono',monospace;letter-spacing:.12em}
.bbs-rail-ui button{width:2.6rem;height:2.6rem;border-radius:50%;border:1px solid rgba(220,232,236,.35);background:none;color:#fff;font-size:1rem;cursor:pointer}
.bbs-rail-ui button:hover{background:#1F4E6B;border-color:#1F4E6B}
/* other media pick up the zoom cursor */
.bbs-dip-panel img,.bbs-chapter figure.wp-block-image img{cursor:zoom-in}
/* full-screen viewer */
.bbs-lb{position:fixed;inset:0;z-index:9999;background:rgba(8,12,15,.96);display:flex;align-items:center;justify-content:center;opacity:0;pointer-events:none;transition:opacity .3s}
.bbs-lb.open{opacity:1;pointer-events:auto}
.bbs-lb img{max-width:92vw;max-height:84vh;box-shadow:0 40px 100px rgba(0,0,0,.6);transition:opacity .25s,transform .35s cubic-bezier(.2,.7,.2,1)}
.bbs-lb.swap img{opacity:0;transform:scale(.985)}
.bbs-lb button{position:absolute;background:none;border:1px solid rgba(255,255,255,.3);color:#fff;width:3.2rem;height:3.2rem;border-radius:50%;font-size:1.2rem;cursor:pointer}
.bbs-lb button:hover{background:#1F4E6B;border-color:#1F4E6B}
.bbs-lb-prev{left:2vw;top:50%;margin-top:-1.6rem}.bbs-lb-next{right:2vw;top:50%;margin-top:-1.6rem}.bbs-lb-close{top:1.5rem;right:1.5rem}
.bbs-lb-count{position:absolute;bottom:1.6rem;left:50%;transform:translateX(-50%);color:#9fb3bd;font:400 .75rem 'JetBrains Mono',monospace;letter-spacing:.14em}
@media(max-width:860px){
  .bbs-chapter>.bbs-row{width:100vw!important;margin-left:calc(50% - 50vw)!important;padding:0 .75rem}
  .bbs-chapter>.bbs-row:not(.bbs-row-1){flex-wrap:wrap}.bbs-chapter>.bbs-row:not(.bbs-row-1) figure{flex:1 1 100%!important}
  .bbs-spread{padding:1.5rem .75rem!important}.bbs-rail img{height:52vh}.bbs-lb-prev,.bbs-lb-next{top:auto;bottom:1rem;margin:0}}
.bbs-figures{grid-template-columns:repeat(auto-fit,minmax(150px,1fr))!important}.bbs-figure{font-size:clamp(2rem,3.4vw,2.7rem)!important;white-space:nowrap}
.bbs-figures>.wp-block-column{min-width:0}
