:root {
    --eo-blog-green: var(--e-global-color-28a0ed7, #2f332a);
    --eo-blog-gold: var(--e-global-color-3f51516, #ad8740);
    --eo-blog-beige: #faedd0;
    --eo-blog-text: #3d4237;
    --eo-blog-max: 1180px;
}

/* Page background */
body.single-post {
    background: var(--eo-blog-beige);
}

.eo-blog-page {
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    background: var(--eo-blog-beige);
    color: var(--eo-blog-text);
}

.eo-blog-texture {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(250, 237, 208, .84), rgba(250, 237, 208, .84)),
        url("https://elegantoccasionsbyjoanngregoli.com/wp-content/uploads/2025/11/bg-line-art-1-scaled.png");
    background-repeat: repeat-y, repeat-y;
    background-position: top center, top center;
    background-size: cover, 100% auto;
}

/* Full-width article shell */
.eo-blog-article {
    position: relative;
    z-index: 1;
    width: min(calc(100% - 48px), var(--eo-blog-max));
    margin: 0 auto;
    padding: 72px 0 88px;
}

/* Stacked landscape hero */
.eo-blog-hero {
    margin: 0 0 58px;
}

.eo-blog-featured {
    overflow: hidden;
    border-radius: 32px 0 0 0;
    background: var(--eo-blog-green);
}

.eo-blog-featured-img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 6;
    object-fit: cover;
}

/* Dark intro panel directly below image */
.eo-blog-intro {
    margin-top: 0;
    padding: 44px 52px 48px;
    background: var(--eo-blog-green);
    color: var(--eo-blog-beige);
    border-radius: 0 0 32px 0;
    text-align: left;
}

.eo-blog-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 9px;
    margin: 0 0 18px;
    color: var(--eo-blog-gold);
    font-size: .82rem;
    font-weight: 700;
    letter-spacing: .08em;
    line-height: 1.3;
    text-transform: uppercase;
    text-align: left;
}

.eo-blog-title {
    max-width: 980px;
    margin: 0;
    color: var(--eo-blog-beige);
    font-family: "Ovo", serif;
    font-size: 55px !important;
    font-weight: 500;
    line-height: 1.02;
    text-align: left;
    text-transform: none;
    overflow-wrap: normal;
    word-break: normal;
    hyphens: none;
}

.eo-blog-deck {
    max-width: 950px;
    margin: 24px 0 0;
    color: rgba(250, 237, 208, .90);
    font-size: 1.08rem;
    line-height: 1.66;
    text-align: left;
}

/* Article body now matches hero width */
.eo-blog-content {
    width: 100%;
    margin: 0;
    color: var(--eo-blog-text);
    font-size: 1.075rem;
    line-height: 1.5;
    text-align: left;
}

.eo-blog-content,
.eo-blog-content * {
    text-align: left;
}

.eo-blog-content p,
.eo-blog-content ul,
.eo-blog-content ol,
.eo-blog-content blockquote,
.eo-blog-content h2,
.eo-blog-content h3,
.eo-blog-content h4,
.eo-blog-content h5,
.eo-blog-content h6 {
    max-width: none;
}

.eo-blog-content p {
    margin: 0 0 1.5em;
}

.eo-blog-content h2,
.eo-blog-content h3,
.eo-blog-content h4,
.eo-blog-content h5,
.eo-blog-content h6 {
    color: var(--eo-blog-green);
    font-family: "Ovo", serif;
    font-weight: 500;
    line-height: 1.15;
    text-transform: none;
}

.eo-blog-content h2 {
    margin: 2.35em 0 .65em;
    font-size: clamp(2rem, 3vw, 2.8rem);
}

.eo-blog-content h3 {
    margin: 1em 0 .58em;
    font-size: clamp(1.55rem, 2.2vw, 2rem);
}

.eo-blog-content h4 {
    margin: 1.9em 0 .55em;
    font-size: 1.35rem;
}

.eo-blog-content a {
    color: var(--eo-blog-gold);
    text-decoration-thickness: 1px;
    text-underline-offset: .16em;
}

.eo-blog-content ul,
.eo-blog-content ol {
    margin: 0 0 1.6em;
    padding-left: 1.45em;
}

.eo-blog-content li + li {
    margin-top: .4em;
}

.eo-blog-content blockquote {
    margin: 2em 0;
    padding: 1.35em 1.55em;
    border-left: 4px solid var(--eo-blog-gold);
    background: rgba(255, 255, 255, .22);
    color: var(--eo-blog-green);
    font-size: 1.14rem;
}

/* Images */
.eo-blog-content figure {
    margin: 2.5em 0;
}

.eo-blog-content img {
    display: block;
    max-width: 100%;
    height: auto;
    border-radius: 32px 0 32px 0;
}

/* Gutenberg galleries: respect the block's own columns, crop and aspect ratio settings.
   Only neutralize the generic article-image rules that interfere with gallery cells. */
.eo-blog-content .wp-block-gallery.has-nested-images > figure.wp-block-image {
    margin: 0;
}

.eo-blog-content .wp-block-gallery.has-nested-images > figure.wp-block-image img {
    width: 100%;
    max-width: none;
}

.eo-blog-content .wp-block-gallery.has-nested-images.is-cropped > figure.wp-block-image img {
    height: 100%;
    object-fit: cover;
}

/* Footer/navigation aligned to article width */
.eo-blog-footer {
    width: 100%;
    margin: 66px 0 0;
    padding-top: 30px;
    border-top: 1px solid rgba(61, 66, 55, .24);
}

.eo-blog-back {
    display: inline-block;
    margin: 0 0 35px;
    color: var(--eo-blog-green);
    font-weight: 700;
    text-decoration: none;
}

.eo-blog-back:hover {
    color: var(--eo-blog-gold);
}

.eo-blog-post-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.eo-blog-prev,
.eo-blog-next {
    min-width: 0;
}

.eo-blog-next {
    text-align: right;
}

.eo-blog-nav-label {
    display: block;
    margin-bottom: 7px;
    color: var(--eo-blog-gold);
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.eo-blog-post-nav a {
    color: var(--eo-blog-green);
    font-family: "Ovo", serif;
    font-size: 1.24rem;
    line-height: 1.28;
    text-decoration: none;
}

.eo-blog-post-nav a:hover {
    color: var(--eo-blog-gold);
}

/* Tablet */
@media (max-width: 960px) {
    .eo-blog-article {
        width: min(calc(100% - 36px), var(--eo-blog-max));
        padding-top: 48px;
    }

    .eo-blog-featured-img {
        aspect-ratio: 16 / 10;
    }

    .eo-blog-intro {
        padding: 38px 34px 42px;
    }

    .eo-blog-title {
        font-size: clamp(2.3rem, 7vw, 4rem) !important;
    }
}

/* Mobile */
@media (max-width: 640px) {
    .eo-blog-article {
        width: min(calc(100% - 28px), var(--eo-blog-max));
        padding: 30px 0 58px;
    }

    .eo-blog-hero {
        margin-bottom: 42px;
    }

    .eo-blog-featured {
        border-radius: 24px 0 0 0;
    }

    .eo-blog-featured-img {
        aspect-ratio: 4 / 3;
    }

    .eo-blog-intro {
        padding: 29px 24px 34px;
        border-radius: 0 0 24px 0;
    }

    .eo-blog-title {
        font-size: clamp(2rem, 9.5vw, 3rem) !important;
        line-height: 1.05;
    }

    .eo-blog-deck {
        font-size: 1rem;
    }

    .eo-blog-content {
        font-size: 1rem;
        line-height: 1.74;
    }

    .eo-blog-content img {
        border-radius: 24px 0 24px 0;
    }

    .eo-blog-post-nav {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .eo-blog-next {
        text-align: left;
    }
}
