/* Cross-page alignment repair: scoped to editorial chapter pages.
 * Wide pages previously inherited .cgb-prose{max-width:760px}, causing
 * catalogue, recipe, advertising and guide grids to hug the left side.
 * Desktop/tablet only: preserve the approved mobile layouts.
 */
@media (min-width: 701px) {
  body.page .cgb-issue > .cgb-issue-wrap.cgb-wrap,
  body.page .cgb-issue-more > .cgb-wrap {
    margin-left:auto;
    margin-right:auto;
    float:none;
  }
  body.page .cgb-issue-layout,
  body.page .cgb-issue-content {
    min-width:0;
    box-sizing:border-box;
  }
  body.page .cgb-issue-layout.cgb-issue-wide {
    display:block;
    width:100%;
    max-width:none;
    margin-left:auto;
    margin-right:auto;
  }
  body.page .cgb-issue-layout.cgb-issue-wide > .cgb-issue-content.cgb-prose {
    display:block;
    width:100%;
    max-width:none;
    min-width:0;
    margin-left:auto;
    margin-right:auto;
    float:none;
  }
  /* The two-column magazine pages retain their editorial sidebar.
     Use the available content column instead of the unrelated 760px
     single-article prose limit. */
  body.page .cgb-issue-layout:not(.cgb-issue-wide) > .cgb-issue-content.cgb-prose {
    width:100%;
    max-width:none;
    min-width:0;
    float:none;
  }
  /* Reading text is centred in the full-width chapter, while photo,
     product, directory and commercial grids can use the whole wrapper. */
  body.page .cgb-issue-layout.cgb-issue-wide > .cgb-issue-content.cgb-prose > :is(p,h2,h3,h4,ul,ol,blockquote) {
    max-width:870px;
    margin-left:auto;
    margin-right:auto;
  }
  body.page .cgb-issue-layout.cgb-issue-wide > .cgb-issue-content.cgb-prose > :is(.cgb-camp-root,.cgb-gear-directory,.cgb-retailer-list,.cgb-affiliate-note,.cgb-r10,.cgb-sales-hub,.cgb-kitchen-hub,.cgb-postgrid) {
    margin-left:auto;
    margin-right:auto;
  }
  body.page .cgb-issue-layout.cgb-issue-wide .cgb-gear-directory,
  body.page .cgb-issue-layout.cgb-issue-wide .cgb-retailer-list {
    width:100%;
  }
}
@media (min-width: 701px) and (max-width: 1000px) {
  body.page .cgb-issue-layout:not(.cgb-issue-wide) > .cgb-issue-content.cgb-prose {
    max-width:100%;
  }
}
/* Prevent intrinsically wide embedded media or tables from enlarging
   the viewport, without clipping the directory maps or cards. */
body.page .cgb-issue-content :is(.wp-block-table,.wp-block-embed) {
  max-width:100%;
}
body.page .cgb-issue-content .wp-block-table {
  overflow-x:auto;
}
body.page .cgb-issue-content :is(.cgb-r10-grid,.cgb-gear-directory,.cgb-retailer-list,.cgb-postgrid) > * {
  min-width:0;
}
