/* CMA Theme: Full-width layout with 8.3vw side margins for all content blocks */

.gh-content,
.gh-canvas {
    overflow-x: clip;
    --screen-margin: 8.3vw;
    max-width: none !important;
    width: 100% !important;
}

.gh-content > *,
.gh-canvas > * {
    grid-column: 1 / -1 !important;
    width: calc(100vw - (var(--screen-margin) * 2)) !important;
    margin-left: calc(50% - 50vw + var(--screen-margin)) !important;
    margin-right: calc(50% - 50vw + var(--screen-margin)) !important;
}

.gh-content > * + *,
.gh-canvas > * + * {
    margin-top: max(3.2vmin, 24px);
}

/* Ghost Editor Cards */
.gh-content :is(.kg-width-wide, .kg-width-full, .kg-content-wide, .kg-card),
.gh-canvas :is(.kg-width-wide, .kg-width-full, .kg-content-wide, .kg-card) {
    width: calc(100vw - (var(--screen-margin) * 2)) !important;
    margin-left: calc(50% - 50vw + var(--screen-margin)) !important;
    margin-right: calc(50% - 50vw + var(--screen-margin)) !important;
}

/* Media Elements */
.gh-content :is(img, video, iframe),
.gh-canvas :is(img, video, iframe) {
    width: 100% !important;
    max-width: 100% !important;
    height: auto;
}

.gh-content figure,
.gh-canvas figure {
    width: calc(100vw - (var(--screen-margin) * 2)) !important;
    margin-left: calc(50% - 50vw + var(--screen-margin)) !important;
    margin-right: calc(50% - 50vw + var(--screen-margin)) !important;
}

/* Code Blocks */
.gh-content pre,
.gh-canvas pre {
    width: calc(100vw - (var(--screen-margin) * 2));
    margin-left: calc(50% - 50vw + var(--screen-margin));
    margin-right: calc(50% - 50vw + var(--screen-margin));
}

/* Tables */
.gh-content table:not(.gist table),
.gh-canvas table:not(.gist table) {
    display: block;
    width: calc(100vw - (var(--screen-margin) * 2)) !important;
    max-width: calc(100vw - (var(--screen-margin) * 2)) !important;
    overflow-x: auto;
    margin-left: calc(50% - 50vw + var(--screen-margin)) !important;
    margin-right: calc(50% - 50vw + var(--screen-margin)) !important;
}

/* Text Elements */
.gh-content :is(p, blockquote, ul, ol, dl),
.gh-canvas :is(p, blockquote, ul, ol, dl) {
    width: calc(100vw - (var(--screen-margin) * 2));
    margin-left: calc(50% - 50vw + var(--screen-margin));
    margin-right: calc(50% - 50vw + var(--screen-margin));
}

.gh-article-header{
    margin-top:var(--header-spacing,80px);
}

.gh-article-tag{
    color:var(--ghost-accent-color);
}

.gh-article-title{
    word-break:break-word;
}

gh-article-excerpt{
    color:var(--color-secondary-text);
    font-size:2.1rem;
    line-height:1.5;
    margin-top:2rem;
}

.gh-article-excerpt
{
    font-family:var(--gh-font-body,var(--font-serif));
}

/* Mobile Responsiveness */
@media (max-width: 767px) {
    .gh-content > *,
    .gh-canvas > * {
        margin-left: 0 !important;
        margin-right: 0 !important;
        width: 100% !important;
    }
    .gh-content :is(p, blockquote, ul, ol, dl, pre, table, figure),
    .gh-canvas :is(p, blockquote, ul, ol, dl, pre, table, figure) {
        margin-left: 0 !important;
        margin-right: 0 !important;
        width: 100% !important;
    }
}

