/*
Theme Name: Garden Buddy
Theme URI: https://gardenbuddy.au
Author: Garden Buddy AU
Description: Garden Buddy child theme — editorial layout, garden green palette, brand-led visuals.
Template: twentytwentyfive
Version: 1.8.0
Updated: 2026-04-18 (v1.8.0 — canonical typography tokens mirroring home page; uniform font stack + rem scale across all pages; overrides guide-page px scale)
*/

:root {
    /* Brand palette */
    --gb-green: #27ae60;
    --gb-green-dark: #1e8449;
    --gb-green-pale: #e8f5ed;
    --gb-earth: #8b5a2b;
    --gb-tomato: #e74c3c;
    --gb-tomato-dark: #c0392b;
    --gb-cream: #faf8f3;
    --gb-charcoal: #2c3e50;
    --gb-sub: #34495e;
    --gb-muted: #7f8c8d;
    --gb-muted-2: #555;
    --gb-border: #e8e6e0;

    /* Canonical typography — derived from home page (v1.8.0) */
    --gb-font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --gb-text-xs:   0.8rem;
    --gb-text-sm:   0.9rem;
    --gb-text-base: 1rem;
    --gb-text-md:   1.15rem;
    --gb-text-lg:   1.3rem;
    --gb-text-xl:   1.6rem;
    --gb-text-2xl:  2rem;
    --gb-text-3xl:  2.6rem;
    --gb-leading-tight:  1.15;
    --gb-leading-body:   1.6;
    --gb-leading-loose:  1.65;

    /* Remap the older guide-page tokens onto the home scale so pages
       already referencing var(--gbg-*) inherit a uniform look. */
    --gbg-font:  var(--gb-font);
    --gbg-sm:    var(--gb-text-sm);
    --gbg-base:  var(--gb-text-base);
    --gbg-lg:    var(--gb-text-md);
    --gbg-xl:    var(--gb-text-lg);
    --gbg-2xl:   var(--gb-text-xl);
    --gbg-3xl:   var(--gb-text-2xl);
}

/* Global font family — every page inherits this unless it explicitly
   overrides inline. Beats page-level :root tokens that would otherwise
   hardcode a different scale. */
html, body {
    font-family: var(--gb-font);
}

body {
    background: var(--gb-cream);
    color: var(--gb-charcoal);
}

/* === Uniform typography override for guide-page content (v1.8.0) ===
   Guide pages (IDs 82-107) embed their own :root {--gbg-base:17px ...}
   via inline <style> blocks. Those declarations would otherwise win
   the cascade. Rescoping the same tokens onto the .gbg3-root class
   gives higher specificity, forcing the canonical home-page scale. */
.gbg3-root,
.gbg3-root * {
    --gbg-font:  var(--gb-font) !important;
    --gbg-sm:    var(--gb-text-sm) !important;
    --gbg-base:  var(--gb-text-base) !important;
    --gbg-lg:    var(--gb-text-md) !important;
    --gbg-xl:    var(--gb-text-lg) !important;
    --gbg-2xl:   var(--gb-text-xl) !important;
    --gbg-3xl:   var(--gb-text-2xl) !important;
    font-family: var(--gb-font) !important;
}
.gbg3-root p,
.gbg3-root li,
.gbg3-root td,
.gbg3-root th {
    line-height: var(--gb-leading-body);
}

/* Make the wp:site-logo bigger in header */
.wp-block-site-logo img {
    max-width: 56px !important;
    height: auto !important;
}
.wp-block-site-logo a {
    text-decoration: none;
}

/* Nav styling */
.wp-block-navigation {
    font-size: 15px;
    font-weight: 500;
}
.wp-block-navigation .wp-block-navigation-item__content {
    color: var(--gb-charcoal);
    padding: 0.4rem 0.8rem;
}
.wp-block-navigation .wp-block-navigation-item__content:hover {
    color: var(--gb-green-dark);
}

/* === HOMEPAGE STRUCTURE === */
.gb-hero {
    padding: 4rem 1.5rem 2rem;
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 3rem;
    align-items: center;
}
@media (max-width: 768px) {
    .gb-hero {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .gb-hero img.gb-hero-mascot {
        order: -1;
        max-width: 200px;
        margin: 0 auto;
    }
}
.gb-hero h1 {
    font-size: clamp(2rem, 4.5vw, 3rem);
    line-height: 1.15;
    margin: 0 0 1rem 0;
    font-weight: 800;
    color: var(--gb-charcoal);
    letter-spacing: -0.02em;
}
.gb-hero .lede {
    font-size: 1.2rem;
    color: var(--gb-charcoal);
    line-height: 1.5;
    margin-bottom: 2rem;
}
.gb-hero img.gb-hero-mascot {
    width: 100%;
    max-width: 280px;
    height: auto;
    display: block;
}

/* === FREE RESOURCES SECTION === */
.gb-resources {
    background: white;
    padding: 4rem 1.5rem;
    margin: 3rem 0;
    border-top: 4px solid var(--gb-green);
    border-bottom: 1px solid var(--gb-border);
}
.gb-resources-inner {
    max-width: 1100px;
    margin: 0 auto;
}
.gb-resources h2 {
    text-align: center;
    font-size: 2rem;
    margin: 0 0 0.5rem 0;
    color: var(--gb-green-dark);
}
.gb-resources .subhead {
    text-align: center;
    color: var(--gb-muted);
    margin-bottom: 2.5rem;
    font-size: 1.05rem;
}
.gb-resource-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}
.gb-resource-card {
    background: var(--gb-cream);
    border: 1px solid var(--gb-border);
    border-radius: 8px;
    padding: 1.5rem;
    text-decoration: none;
    color: var(--gb-charcoal);
    display: block;
    transition: transform 0.15s, border-color 0.15s, box-shadow 0.15s;
}
.gb-resource-card:hover {
    transform: translateY(-3px);
    border-color: var(--gb-green);
    box-shadow: 0 6px 20px rgba(39, 174, 96, 0.12);
    color: var(--gb-charcoal);
}
.gb-resource-card .icon {
    width: 48px;
    height: 48px;
    background: var(--gb-green-pale);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    font-size: 24px;
}
.gb-resource-card h3 {
    font-size: 1.15rem;
    margin: 0 0 0.5rem 0;
    color: var(--gb-green-dark);
}
.gb-resource-card p {
    color: var(--gb-charcoal);
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0 0 0.75rem 0;
}
.gb-resource-card .arrow {
    color: var(--gb-green-dark);
    font-weight: 600;
    font-size: 0.9rem;
}

/* === SECTION (article-style content blocks) === */
.gb-section {
    max-width: 760px;
    margin: 3rem auto;
    padding: 0 1.5rem;
}
.gb-section h2 {
    font-size: 1.7rem;
    margin-bottom: 1rem;
    color: var(--gb-charcoal);
    letter-spacing: -0.01em;
}
.gb-section p {
    color: var(--gb-charcoal);
    font-size: 1.05rem;
    line-height: 1.65;
    margin-bottom: 1.2em;
}
.gb-section h3 {
    color: var(--gb-green-dark);
    font-size: 1.2rem;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

/* === ASIDE / CALLOUT === */
.gb-aside {
    background: white;
    border-left: 4px solid var(--gb-green);
    padding: 1.25rem 1.5rem;
    margin: 1.5rem 0;
    border-radius: 0 4px 4px 0;
    font-size: 1rem;
    color: var(--gb-charcoal);
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

/* === PRICING ROWS === */
.gb-pricing {
    max-width: 760px;
    margin: 2rem auto;
    background: white;
    border: 1px solid var(--gb-border);
    border-radius: 8px;
    padding: 0.5rem 1.5rem;
}
.gb-pricing-row {
    display: grid;
    grid-template-columns: 1fr 2fr auto;
    align-items: baseline;
    gap: 1.5rem;
    padding: 1.25rem 0;
    border-bottom: 1px solid var(--gb-border);
}
.gb-pricing-row:last-child { border-bottom: none; }
.gb-pricing-row .name {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--gb-charcoal);
}
.gb-pricing-row .desc {
    color: var(--gb-charcoal);
    font-size: 0.95rem;
    line-height: 1.5;
}
.gb-pricing-row .price {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--gb-green-dark);
    white-space: nowrap;
}
.gb-pricing-row .price small {
    display: block;
    font-size: 0.75rem;
    font-weight: 400;
    color: var(--gb-muted);
}
@media (max-width: 600px) {
    .gb-pricing-row {
        grid-template-columns: 1fr auto;
    }
    .gb-pricing-row .desc {
        grid-column: 1 / -1;
    }
}

/* === CTAs === */
.gb-cta {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: var(--gb-green-dark);
    color: white !important;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    transition: background 0.15s;
    border: 1px solid var(--gb-green-dark);
}
.gb-cta:hover {
    background: var(--gb-green);
    border-color: var(--gb-green);
    color: white !important;
}
.gb-cta-secondary {
    background: transparent;
    color: var(--gb-green-dark) !important;
}
.gb-cta-secondary:hover {
    background: var(--gb-green-pale);
    color: var(--gb-green-dark) !important;
}

/* === Decorative leaf divider === */
.gb-divider {
    text-align: center;
    color: var(--gb-green);
    margin: 2.5rem 0;
    font-size: 1.5rem;
    letter-spacing: 1rem;
}

/* === Mascot inline === */
.gb-mascot-inline {
    width: 80px;
    height: auto;
    vertical-align: middle;
    margin-right: 0.5rem;
}

/* Login screen — already styled in functions.php */

/* Hide H1 page title on the front page (the hero already has the headline) */
.home .wp-block-post-title,
body.page-id-9 .wp-block-post-title,
body.home .wp-block-post-title {
    display: none;
}

/* Make header logo bigger */
.wp-block-site-logo a img {
    max-width: 64px !important;
    height: auto !important;
}
.wp-block-site-logo {
    margin: 0 !important;
}

/* Header should have a bit more breathing room */
.wp-block-template-part header.wp-block-template-part {
    background: white;
    border-bottom: 1px solid var(--gb-border);
}

/* Footer columns should align properly */
.wp-block-columns.alignwide {
    gap: 2rem;
}
/* Hide page titles globally — content provides its own heading via gb-hero */
.wp-site-blocks .wp-block-post-title {
    display: none;
}
/* Re-show on blog posts only (not pages) */
.single-post .wp-block-post-title {
    display: block;
}

/* === Touch target sizes (44px minimum per Apple HIG) === */
.gb-cta, .gb-resource-card, .wp-block-navigation-item__content, button, input[type="submit"] {
    min-height: 44px;
    line-height: 1.4;
}

/* === Mobile (≤640px) === */
@media (max-width: 640px) {
    body {
        font-size: 16px;
    }

    .gb-hero {
        padding: 2rem 1rem 1.5rem;
        grid-template-columns: 1fr;
        text-align: center;
        gap: 1.5rem;
    }
    .gb-hero h1 {
        font-size: 1.8rem;
        line-height: 1.2;
    }
    .gb-hero .lede {
        font-size: 1.05rem;
    }
    .gb-hero img.gb-hero-mascot {
        order: -1;
        max-width: 160px;
        margin: 0 auto;
    }
    .gb-hero p {
        text-align: center;
    }
    .gb-cta {
        display: inline-block;
        margin: 0.4rem 0.2rem;
        padding: 0.85rem 1.4rem;
        font-size: 0.95rem;
    }

    .gb-resources {
        padding: 2.5rem 1rem;
    }
    .gb-resources h2 {
        font-size: 1.5rem;
    }
    .gb-resources .subhead {
        font-size: 0.95rem;
    }
    .gb-resource-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    .gb-resource-card {
        padding: 1.25rem;
    }

    .gb-section {
        padding: 0 1rem;
        margin: 2rem auto;
    }
    .gb-section h2 {
        font-size: 1.4rem;
    }
    .gb-section h3 {
        font-size: 1.05rem;
    }
    .gb-section p, .gb-section li {
        font-size: 0.98rem;
    }
    .gb-section img {
        max-width: 100% !important;
        height: auto !important;
    }

    .gb-pricing {
        padding: 0.5rem 1rem;
    }
    .gb-pricing-row {
        grid-template-columns: 1fr auto;
        gap: 0.8rem;
        padding: 1rem 0;
    }
    .gb-pricing-row .desc {
        grid-column: 1 / -1;
        font-size: 0.9rem;
    }
    .gb-pricing-row .price {
        font-size: 1.2rem;
    }

    .gb-aside {
        padding: 1rem 1.2rem;
        font-size: 0.95rem;
    }

    /* Header logo on mobile */
    .wp-block-site-logo a img {
        max-width: 48px !important;
    }

    /* Footer columns stack on mobile */
    .wp-block-template-part footer .wp-block-columns {
        flex-direction: column !important;
        gap: 2rem !important;
    }
    .wp-block-template-part footer .wp-block-column {
        flex-basis: 100% !important;
        width: 100% !important;
    }

    /* Tables on mobile — horizontal scroll */
    #priceTable {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    #priceTable table {
        min-width: 600px;
    }

    /* Sortable controls stack */
    .gb-section > div[style*="grid-template-columns: 1fr auto auto"] {
        grid-template-columns: 1fr !important;
    }
}

/* === Tablet/iPad portrait (641px–900px) === */
@media (min-width: 641px) and (max-width: 900px) {
    .gb-hero {
        padding: 3rem 2rem 2rem;
        grid-template-columns: 1.4fr 200px;
        gap: 2rem;
    }
    .gb-hero h1 {
        font-size: 2.4rem;
    }
    .gb-hero img.gb-hero-mascot {
        max-width: 200px;
    }

    .gb-resources {
        padding: 3rem 2rem;
    }
    .gb-resource-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem;
    }

    .gb-section {
        padding: 0 2rem;
    }

    .gb-pricing {
        max-width: 100%;
    }
}

/* === iPad landscape (901px–1180px) === */
@media (min-width: 901px) and (max-width: 1180px) {
    .gb-resource-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* === Make all images responsive by default === */
img {
    max-width: 100%;
    height: auto;
}

/* === Improve readability on all sizes === */
.gb-section p {
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* === Tap-friendly nav on touch devices === */
@media (hover: none) and (pointer: coarse) {
    .wp-block-navigation .wp-block-navigation-item__content {
        padding: 0.6rem 0.9rem;
    }
}

/* === Price table mobile responsiveness === */
@media (max-width: 640px) {
    /* Hide per-retailer columns on small screens — only show name + avg */
    #priceTable table th:nth-child(3),
    #priceTable table td:nth-child(3),
    #priceTable table th:nth-child(4),
    #priceTable table td:nth-child(4),
    #priceTable table th:nth-child(5),
    #priceTable table td:nth-child(5),
    #priceTable table th:nth-child(6),
    #priceTable table td:nth-child(6) {
        display: none;
    }
    /* Make remaining columns full width */
    #priceTable table {
        min-width: 100% !important;
    }
    #priceTable {
        overflow-x: visible;
    }
}

/* === Tablet — show all columns but compact === */
@media (min-width: 641px) and (max-width: 900px) {
    #priceTable table {
        font-size: 0.9rem;
    }
    #priceTable th,
    #priceTable td {
        padding: 0.6rem 0.5rem !important;
    }
}

/* === Search/sort controls stack on mobile === */
@media (max-width: 640px) {
    /* Catch-all: any 3-column grid in a section becomes 1-column */
    .gb-section > div[style*="grid-template-columns"] {
        display: flex !important;
        flex-direction: column !important;
        gap: 0.6rem !important;
    }
    .gb-section > div[style*="grid-template-columns"] > * {
        width: 100% !important;
        box-sizing: border-box !important;
    }
}

/* Ensure box-sizing: border-box site-wide */
*, *::before, *::after { box-sizing: border-box; }
img, video, canvas, audio, iframe, embed, object { max-width: 100%; height: auto; }

/* Zone index page main element */
.wp-block-group main, main.wp-block-group {
    max-width: 100%;
    overflow-x: hidden;
}

/* Mobile-specific zone page tweaks */
@media (max-width: 640px) {
    /* Ensure all grids in the zone page stack/wrap nicely */
    main div[style*="grid-template-columns"] {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
    /* Hero on zone page */
    main .gb-hero {
        padding: 1rem !important;
    }
    /* Breadcrumb wraps */
    main nav {
        word-wrap: break-word;
    }
}

/* === Width constraints (request: header 80%, content 75% centered) === */

/* Site header — content takes 80% of viewport */
.wp-site-blocks > header.wp-block-template-part > .wp-block-group {
    max-width: 80%;
    margin: 0 auto;
}

/* Footer — same treatment */
.wp-site-blocks > footer.wp-block-template-part > .wp-block-group > .wp-block-group {
    max-width: 80%;
    margin: 0 auto;
}

/* Veggie landing page main content — 75% centered */
.gzlp-veggie-landing,
.content-area .gzlp-veggie-landing {
    max-width: 75% !important;
    width: 75% !important;
    margin: 2rem auto !important;
}

/* Per-veg detail pages from gardenbuddy-prices plugin — main element */
.wp-site-blocks main.wp-block-group {
    max-width: 75% !important;
    margin: 0 auto !important;
}

/* Marketing pages with .gb-section — keep narrow for readability */
.gb-hero, .gb-section {
    /* Already centered with max-width — leave alone */
}

/* Mobile: drop all width constraints — full viewport with padding */
@media (max-width: 900px) {
    .wp-site-blocks > header.wp-block-template-part > .wp-block-group,
    .wp-site-blocks > footer.wp-block-template-part > .wp-block-group > .wp-block-group {
        max-width: 100% !important;
        padding-left: 1rem;
        padding-right: 1rem;
    }
    .gzlp-veggie-landing,
    .content-area .gzlp-veggie-landing,
    .wp-site-blocks main.wp-block-group {
        max-width: 100% !important;
        width: auto !important;
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }
}

/* iPad — slightly more generous */
@media (min-width: 901px) and (max-width: 1180px) {
    .wp-site-blocks > header.wp-block-template-part > .wp-block-group,
    .wp-site-blocks > footer.wp-block-template-part > .wp-block-group > .wp-block-group {
        max-width: 92%;
    }
    .gzlp-veggie-landing,
    .wp-site-blocks main.wp-block-group {
        max-width: 88% !important;
        width: 88% !important;
    }
}

/* === Consistent section widths — fill the main 75% container === */
.gb-hero,
.gb-section,
.gb-resources-inner,
.gb-pricing {
    max-width: 100% !important;
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    box-sizing: border-box;
}

/* Vertical spacing */
.gb-hero { padding: 3rem 0 2rem 0 !important; }
.gb-section { padding: 2rem 0 !important; margin: 0 !important; }
.gb-resources { padding: 3rem 1.5rem; margin: 2rem 0 !important; }
.gb-resources-inner { padding: 0 !important; }

/* For pure long-form text (About, Privacy, Terms), use a narrow inner column */
.gb-section-text {
    max-width: 760px !important;
    margin: 0 auto !important;
}

/* Zone index cards — exactly 4 per row on desktop, evenly spread */
.gb-resource-grid {
    grid-template-columns: repeat(4, 1fr) !important;
    max-width: 100% !important;
}
/* iPad portrait + landscape fallback — tighter */
@media (min-width: 901px) and (max-width: 1180px) {
    .gb-resource-grid {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}
/* Mobile — 2 per row */
@media (max-width: 900px) {
    .gb-resource-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}
/* Small phones — 1 per row */
@media (max-width: 520px) {
    .gb-resource-grid {
        grid-template-columns: 1fr !important;
    }
}

/* Pricing rows use full width */
.gb-pricing-row {
    gap: 2rem;
}

/* Hero uses full width but constrains inline content */
.gb-hero h1, .gb-hero .lede {
    max-width: 800px;
}

/* Mobile — reduce padding */
@media (max-width: 900px) {
    .gb-hero { padding: 2rem 1rem 1rem 1rem !important; }
    .gb-section { padding: 1.5rem 1rem !important; }
    .gb-resources { padding: 2rem 1rem; }
}

/* === Make the main container wider — 90% on desktop === */
.wp-site-blocks main.wp-block-group,
main.wp-block-group,
.gzlp-veggie-landing,
.content-area .gzlp-veggie-landing {
    max-width: 92% !important;
    width: 92% !important;
    margin: 0 auto !important;
}

/* Header + footer also wider — target INNER content group so outer green bar stays full-width */
.gb-header-inner {
    max-width: 92% !important;
}
footer.gb-footer-wrap > div,
.wp-site-blocks > footer.wp-block-template-part > .wp-block-group > .wp-block-group {
    max-width: 92% !important;
    margin-left: auto !important;
    margin-right: auto !important;
}
/* Outer green bar must span 100% */
.wp-site-blocks > footer.wp-block-template-part > .wp-block-group {
    max-width: 100% !important;
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

/* Kill any remnant narrow constraints */
.gb-resources-inner {
    max-width: 100% !important;
    width: 100% !important;
}

/* Prices page + features page + hero: force content to fill */
.gb-section, .gb-hero, .gb-resources-inner {
    max-width: 100% !important;
    width: 100% !important;
}

/* Tablet — same */
@media (min-width: 901px) and (max-width: 1180px) {
    .wp-site-blocks main.wp-block-group,
    main.wp-block-group,
    .gzlp-veggie-landing,
    .content-area .gzlp-veggie-landing,
    .gb-header-inner,
    footer.gb-footer-wrap > div,
    .wp-site-blocks > footer.wp-block-template-part > .wp-block-group > .wp-block-group {
        max-width: 95% !important;
        width: 95% !important;
    }
}

/* Mobile stays 100% */
@media (max-width: 900px) {
    .wp-site-blocks main.wp-block-group,
    main.wp-block-group,
    .gzlp-veggie-landing,
    .content-area .gzlp-veggie-landing,
    .gb-header-inner,
    footer.gb-footer-wrap > div,
    .wp-site-blocks > footer.wp-block-template-part > .wp-block-group > .wp-block-group {
        max-width: 100% !important;
        width: auto !important;
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }
}

/* === FORCE all homepage sections to full width === */
.wp-block-post-content > .gb-hero,
.wp-block-post-content > .gb-stats,
.wp-block-post-content > .gb-potw,
.wp-block-post-content > .gb-resources,
.wp-block-post-content > .gb-zones,
.wp-block-post-content > .gb-why,
.wp-block-post-content > .gb-compare,
.wp-block-post-content > .gb-featured,
.wp-block-post-content > .gb-section,
.wp-block-post-content > .gb-testimonials,
.wp-block-post-content > .gb-faq,
.wp-block-post-content > .gb-final-cta,
.entry-content > .gb-hero,
.entry-content > .gb-stats,
.entry-content > .gb-potw,
.entry-content > .gb-resources,
.entry-content > .gb-zones,
.entry-content > .gb-why,
.entry-content > .gb-compare,
.entry-content > .gb-featured,
.entry-content > .gb-section,
.entry-content > .gb-testimonials,
.entry-content > .gb-faq,
.entry-content > .gb-final-cta,
/* Same for other pages with inline-styled max-width sections */
.wp-block-post-content > div[class*="gb-"],
.wp-block-post-content > div[class*="ft-"],
.wp-block-post-content > div[class*="gbcs-"],
.wp-block-post-content > div[class*="gbp-"],
.wp-block-post-content > div[class*="gzlp-"],
.wp-block-post-content > section,
.wp-block-post-content > nav,
.entry-content > div[class*="ft-"],
.entry-content > div[class*="gbcs-"],
.entry-content > div[class*="gbp-"],
.entry-content > div[class*="gzlp-"],
.entry-content > section,
.entry-content > nav {
    max-width: 100% !important;
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

/* Override the parent theme contentSize (645px) for all post content */
.wp-block-post-content > *,
.entry-content > * {
    max-width: 100% !important;
}
/* Re-permit alignments */
.wp-block-post-content > .alignwide,
.entry-content > .alignwide { max-width: 1340px !important; }
.wp-block-post-content > .alignnarrow,
.entry-content > .alignnarrow { max-width: 645px !important; margin: 0 auto !important; }

/* Override any WP block constraint */
.wp-block-post-content {
    max-width: 100% !important;
}
