/* v05.36.64 / Approved Work Body Review 04.
 * Opt-in to an existing single-work article; unrelated templates are untouched.
 * No image index, post ID, file-name, nth-child, crop, or fixed height rules.
 */
body.bbv5-site .bbv5-case.bbv5-case--body-wide .bbv5-case-content {
  display:block;
  width:100%;
  max-width:calc(1680px + var(--gutter)*2);
  padding:clamp(64px,7vw,112px) var(--gutter) clamp(84px,8vw,132px);
  margin:0 auto;
}
body.bbv5-site .bbv5-case--body-wide .bbv5-case-content>aside {
  display:flex; flex-direction:row; justify-content:space-between;
  align-items:baseline; gap:16px 24px; flex-wrap:wrap;
  width:100%; padding-top:18px; margin:0 0 36px;
  border-top:1px solid var(--line);
}
body.bbv5-site .bbv5-case--body-wide .bbv5-case-content>aside a {font-size:12px}
body.bbv5-site .bbv5-case--body-wide .bbv5-case-content>.bbv5-rich-content {
  display:flow-root; width:100%; max-width:none; margin:0;
  font-size:16px; line-height:2.05;
  --bb-work-copy:700px; --bb-work-image:1200px;
}
/* Only block-level text gets the measure. Text inside columns retains its column. */
body.bbv5-site .bbv5-case--body-wide .bbv5-rich-content>:is(h2,h3,h4,h5,h6,p,ul,ol,blockquote,pre),
body.bbv5-site .bbv5-case--body-wide .bbv5-rich-content .bbv5-work-group>:is(h2,h3,h4,h5,h6,p,ul,ol,blockquote,pre) {
  width:100%; max-width:var(--bb-work-copy); margin-inline:auto;
}
body.bbv5-site .bbv5-case--body-wide .bbv5-rich-content h2 {
  font-size:clamp(20px,1.6vw,22px); font-weight:400;
  letter-spacing:0; line-height:1.8; text-wrap:wrap;
  margin-top:clamp(48px,5.5vw,80px); margin-bottom:26px;
}
body.bbv5-site .bbv5-case--body-wide .bbv5-rich-content h3 {
  font-size:18px; font-weight:400; letter-spacing:0; line-height:1.85;
  margin-top:42px; margin-bottom:22px;
}
body.bbv5-site .bbv5-case--body-wide .bbv5-rich-content :is(h4,h5,h6) {
  font-size:16px; font-weight:400; line-height:1.9;
}
body.bbv5-site .bbv5-case--body-wide .bbv5-rich-content :is(h2,h3,h4,h5,h6)>:is(strong,b) {font-weight:inherit}
body.bbv5-site .bbv5-case--body-wide .bbv5-rich-content p {margin-top:0;margin-bottom:1.7em}
/* Classes below are assigned by a structure-only enhancer. No content is moved. */
body.bbv5-site .bbv5-case--body-wide .bbv5-rich-content .bbv5-work-media {
  display:block; width:100%; max-width:var(--bb-work-image);
  margin:clamp(40px,5vw,76px) auto; float:none; clear:both;
}
body.bbv5-site .bbv5-case--body-wide .bbv5-rich-content .bbv5-work-media.alignwide {
  max-width:1440px;
}
body.bbv5-site .bbv5-case--body-wide .bbv5-rich-content .bbv5-work-media.alignfull {
  max-width:none; margin-inline:0; width:100%;
}
body.bbv5-site .bbv5-case--body-wide .bbv5-rich-content .bbv5-work-media> :is(a,picture) {
  display:block; max-width:100%;
}
body.bbv5-site .bbv5-case--body-wide .bbv5-rich-content .bbv5-work-media img {
  display:block; width:100%; max-width:100%; height:auto; max-height:none;
  object-fit:contain; margin:0 auto;
}
/* Respect editor-resized images. Do not enlarge deliberately small logos. */
body.bbv5-site .bbv5-case--body-wide .bbv5-rich-content .bbv5-work-media.is-resized {
  width:fit-content; max-width:100%;
}
body.bbv5-site .bbv5-case--body-wide .bbv5-rich-content .bbv5-work-media.is-resized img {width:auto;max-width:100%}
body.bbv5-site .bbv5-case--body-wide .bbv5-rich-content .bbv5-work-media.alignleft {margin-inline:0 auto}
body.bbv5-site .bbv5-case--body-wide .bbv5-rich-content .bbv5-work-media.alignright {margin-inline:auto 0}
/* Portraits are limited by width, never cropped or squeezed into a fixed height. */
body.bbv5-site .bbv5-case--body-wide .bbv5-rich-content .bbv5-work-media--portrait:not(.alignwide):not(.alignfull):not(.is-resized) {
  max-width:min(100%,620px);
}
body.bbv5-site .bbv5-case--body-wide .bbv5-rich-content .bbv5-work-gallery,
body.bbv5-site .bbv5-case--body-wide .bbv5-rich-content .bbv5-work-columns {
  width:100%; max-width:var(--bb-work-image); margin:clamp(40px,5vw,76px) auto;
}
body.bbv5-site .bbv5-case--body-wide .bbv5-rich-content .bbv5-work-gallery.alignwide,
body.bbv5-site .bbv5-case--body-wide .bbv5-rich-content .bbv5-work-columns.alignwide {max-width:1440px}
body.bbv5-site .bbv5-case--body-wide .bbv5-rich-content .bbv5-work-gallery.alignfull,
body.bbv5-site .bbv5-case--body-wide .bbv5-rich-content .bbv5-work-columns.alignfull {max-width:none}
body.bbv5-site .bbv5-case--body-wide .bbv5-rich-content .wp-block-column {min-width:0}
body.bbv5-site .bbv5-case--body-wide .bbv5-rich-content figcaption {
  font-size:12px;line-height:1.8;color:var(--muted);
  margin:12px 0 0;overflow-wrap:anywhere;
}
body.bbv5-site .bbv5-case--body-wide .bbv5-rich-content .bbv5-work-group {min-width:0;max-width:100%}
body.bbv5-site .bbv5-case--body-wide .bbv5-rich-content>:first-child,
body.bbv5-site .bbv5-case--body-wide .bbv5-rich-content .bbv5-work-group>:first-child {margin-top:0}
body.bbv5-site .bbv5-case--body-wide .bbv5-rich-content>:last-child {margin-bottom:0}
@media(max-width:760px) {
  body.bbv5-site .bbv5-case.bbv5-case--body-wide .bbv5-case-content {padding-top:54px;padding-bottom:76px}
  body.bbv5-site .bbv5-case--body-wide .bbv5-case-content>aside {padding-top:16px;margin-bottom:26px;gap:14px}
  body.bbv5-site .bbv5-case--body-wide .bbv5-case-content>aside a {font-size:11px}
  body.bbv5-site .bbv5-case--body-wide .bbv5-case-content>.bbv5-rich-content {font-size:15px;line-height:2}
  body.bbv5-site .bbv5-case--body-wide .bbv5-rich-content h2 {font-size:16px;line-height:1.85;margin-top:38px;margin-bottom:24px}
  body.bbv5-site .bbv5-case--body-wide .bbv5-rich-content h3 {font-size:15px;line-height:1.9;margin-top:32px;margin-bottom:20px}
  body.bbv5-site .bbv5-case--body-wide .bbv5-rich-content :is(h4,h5,h6) {font-size:15px}
  body.bbv5-site .bbv5-case--body-wide .bbv5-rich-content .bbv5-work-media,
  body.bbv5-site .bbv5-case--body-wide .bbv5-rich-content .bbv5-work-gallery,
  body.bbv5-site .bbv5-case--body-wide .bbv5-rich-content .bbv5-work-columns {margin-top:38px;margin-bottom:38px}
}

/* Safe initial / no-JavaScript rendering of standard WordPress image blocks.
 * The enhancer removes this fallback after it has classified legacy wrappers.
 * No visibility hiding, crop, URL replacement or content mutation.
 */
body.bbv5-site .bbv5-case--body-wide .bbv5-rich-content:not(.bbv64-body-enhanced)>:is(.wp-block-image,.wp-block-gallery,.wp-block-columns,.wp-block-media-text) {
  width:100%;max-width:1200px;margin:clamp(40px,5vw,76px) auto;
}
body.bbv5-site .bbv5-case--body-wide .bbv5-rich-content:not(.bbv64-body-enhanced)>.wp-block-image img {
  display:block;max-width:100%;height:auto;margin:0 auto;
}
body.bbv5-site .bbv5-case--body-wide .bbv5-rich-content:not(.bbv64-body-enhanced)>.wp-block-image:not(.is-resized) img {width:100%}
body.bbv5-site .bbv5-case--body-wide .bbv5-rich-content:not(.bbv64-body-enhanced)>.wp-block-image.is-resized {width:fit-content;max-width:100%}
body.bbv5-site .bbv5-case--body-wide .bbv5-rich-content:not(.bbv64-body-enhanced)>.alignwide {max-width:1440px}
body.bbv5-site .bbv5-case--body-wide .bbv5-rich-content:not(.bbv64-body-enhanced)>.alignfull {max-width:none}
@media(max-width:760px) {
  body.bbv5-site .bbv5-case--body-wide .bbv5-rich-content:not(.bbv64-body-enhanced)>:is(.wp-block-image,.wp-block-gallery,.wp-block-columns,.wp-block-media-text) {margin-top:38px;margin-bottom:38px}
}


/* v05.36.65 / Approved Refinement Review 01: Work body headings only. */
body.bbv5-site .bbv5-case--body-wide .bbv5-rich-content :is(h2,h3,h4,h5,h6){font-weight:600}
