/**
 * Galosom editorial system for WordPress posts and post archives.
 */

body.single-post,
body.blog,
body.archive {
    --galosom-reading-width: 980px;
    --galosom-reading-wide: 980px;
    --galosom-editorial-border: #e8e1d4;
    --galosom-editorial-muted: #6d6860;
    background: #ffffff;
}

body.single-post .site-content,
body.blog .site-content,
body.archive .site-content {
    width: min(1180px, calc(100% - 48px));
    max-width: 1180px;
    box-sizing: border-box;
    margin-right: auto;
    margin-left: auto;
    padding-top: clamp(38px, 5vw, 72px);
    padding-bottom: clamp(64px, 8vw, 112px);
}

body.single-post .site.grid-container {
    max-width: 1180px;
}

body.single-post .content-area,
body.blog .content-area,
body.archive .content-area {
    width: 100%;
}

body.blog #primary.content-area,
body.archive #primary.content-area {
    float: none;
    width: min(1180px, calc(100% - 48px));
    max-width: 1180px;
    box-sizing: border-box;
    margin-right: auto !important;
    margin-left: auto !important;
    padding-top: clamp(38px, 5vw, 72px);
    padding-bottom: clamp(64px, 8vw, 112px);
}

body.single-post .site-main,
body.blog .site-main,
body.archive .site-main {
    margin: 0;
}

body.single-post.separate-containers .inside-article,
body.blog.separate-containers .inside-article,
body.archive.separate-containers .inside-article {
    padding: 0;
    background: transparent;
}

body.single-post article .inside-article {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: var(--galosom-reading-wide) !important;
    margin: 0 auto;
}

body.single-post article .entry-header {
    order: 1;
    width: min(100%, var(--galosom-reading-width));
    margin: 0 auto clamp(28px, 4vw, 44px);
}

body.single-post article .featured-image,
body.single-post article .page-header-image-single {
    order: 2;
    width: 100%;
    margin: 0 auto clamp(38px, 5vw, 58px);
}

body.single-post article .entry-content {
    order: 3;
    width: min(100%, var(--galosom-reading-width));
    max-width: var(--galosom-reading-width) !important;
    margin: 0 auto;
    color: #2b2b2b;
    font-size: 18px;
    line-height: 1.78;
    text-wrap: pretty;
}

body.single-post article > .inside-article > .entry-meta {
    order: 4;
    width: min(100%, var(--galosom-reading-width));
    margin: 40px auto 0;
}

body.single-post .entry-title {
    width: 100%;
    max-width: none;
    margin: 0;
    color: #171717;
    font-size: clamp(28px, 3vw, 34px);
    font-weight: 450;
    letter-spacing: -0.025em;
    line-height: 1.15;
    text-wrap: balance;
}

body.single-post .entry-header .entry-meta {
    margin-top: 16px;
    color: var(--galosom-editorial-muted);
    font-size: 14px;
    letter-spacing: 0.015em;
}

body.single-post .entry-header .byline,
body.single-post article > .inside-article > footer.entry-meta {
    display: none;
}

body.single-post .featured-image img,
body.single-post .page-header-image-single img {
    display: block;
    width: 100%;
    height: clamp(300px, 46vw, 500px);
    border-radius: 2px;
    object-fit: cover;
    object-position: center;
}

body.single-post .entry-content p {
    margin-bottom: 1.45em;
}

body.single-post .entry-content h2,
body.single-post .entry-content h3,
body.single-post .entry-content h4 {
    color: #191919;
    font-weight: 450;
    letter-spacing: -0.016em;
    text-wrap: balance;
}

body.single-post .entry-content h2 {
    margin: 2.25em 0 0.72em;
    font-size: clamp(22px, 2.4vw, 25px);
    line-height: 1.3;
}

body.single-post .entry-content h3 {
    margin: 1.9em 0 0.65em;
    font-size: clamp(19px, 2vw, 21px);
    line-height: 1.36;
}

body.single-post .entry-content h4 {
    margin: 1.6em 0 0.55em;
    font-size: 18px;
    line-height: 1.4;
}

body.single-post .entry-content ul,
body.single-post .entry-content ol {
    margin: 0 0 1.55em 1.25em;
}

body.single-post .entry-content li {
    margin-bottom: 0.52em;
    padding-left: 0.22em;
}

body.single-post .entry-content img {
    display: block;
    width: auto;
    max-width: 100%;
    max-height: 560px;
    margin-right: auto;
    margin-left: auto;
    object-fit: contain;
}

body.single-post .entry-content figure,
body.single-post .entry-content p:has(> img:only-child) {
    margin-top: clamp(30px, 5vw, 48px);
    margin-bottom: clamp(30px, 5vw, 48px);
}

body.single-post .entry-content figcaption,
body.single-post .wp-caption-text {
    margin-top: 10px;
    color: var(--galosom-editorial-muted);
    font-size: 13px;
    line-height: 1.55;
    text-align: center;
}

body.single-post .entry-content blockquote {
    margin: 2em 0;
    padding: 4px 0 4px 24px;
    border-left: 2px solid var(--galosom-gold);
    color: #4e4942;
    font-size: 1.04em;
}

body.single-post .entry-content a {
    text-decoration-color: rgba(184, 147, 75, 0.62);
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

body.single-post .entry-content table {
    display: block;
    width: 100%;
    margin: 2em 0;
    overflow-x: auto;
    border-collapse: collapse;
    font-size: 15px;
    line-height: 1.55;
}

body.single-post .entry-content th,
body.single-post .entry-content td {
    min-width: 130px;
    padding: 13px 15px;
    border: 1px solid var(--galosom-editorial-border);
    text-align: left;
    vertical-align: top;
}

body.single-post .entry-content th {
    background: #f8f5ef;
    font-weight: 600;
}

body.blog .site-main,
body.archive .site-main {
    max-width: 1060px;
    margin-right: auto;
    margin-left: auto;
}

body.blog .site-main article,
body.archive .site-main article {
    margin: 0;
    border-bottom: 1px solid var(--galosom-editorial-border);
}

body.blog .site-main article:first-of-type,
body.archive .site-main article:first-of-type {
    border-top: 1px solid var(--galosom-editorial-border);
}

body.blog .site-main article .inside-article,
body.archive .site-main article .inside-article {
    display: grid;
    grid-template-columns: minmax(230px, 34%) minmax(0, 1fr);
    grid-template-rows: auto 1fr;
    column-gap: clamp(26px, 4vw, 48px);
    padding: clamp(28px, 4vw, 44px) 0;
}

body.blog article .entry-header,
body.archive article .entry-header {
    grid-column: 2;
    grid-row: 1;
}

body.blog article .post-image,
body.archive article .post-image {
    grid-column: 1;
    grid-row: 1 / span 2;
    margin: 0;
}

body.blog article .entry-summary,
body.archive article .entry-summary,
body.blog article .entry-content,
body.archive article .entry-content {
    grid-column: 2;
    grid-row: 2;
    margin: 16px 0 0;
    color: #514d47;
    font-size: 16px;
    line-height: 1.68;
}

body.blog article:not(.has-post-thumbnail):not(.has-galosom-content-thumbnail) .entry-header,
body.blog article:not(.has-post-thumbnail):not(.has-galosom-content-thumbnail) .entry-summary,
body.blog article:not(.has-post-thumbnail):not(.has-galosom-content-thumbnail) .entry-content,
body.archive article:not(.has-post-thumbnail):not(.has-galosom-content-thumbnail) .entry-header,
body.archive article:not(.has-post-thumbnail):not(.has-galosom-content-thumbnail) .entry-summary,
body.archive article:not(.has-post-thumbnail):not(.has-galosom-content-thumbnail) .entry-content {
    grid-column: 1 / -1;
}

body.blog article .entry-title,
body.archive article .entry-title {
    margin: 0;
    font-size: clamp(22px, 2.5vw, 28px);
    font-weight: 500;
    letter-spacing: -0.018em;
    line-height: 1.25;
    text-wrap: balance;
}

body.blog article .entry-title a,
body.archive article .entry-title a {
    color: #171717;
}

body.blog article .entry-title a:hover,
body.blog article .entry-title a:focus-visible,
body.archive article .entry-title a:hover,
body.archive article .entry-title a:focus-visible {
    color: var(--galosom-gold);
}

body.blog article .entry-header .entry-meta,
body.archive article .entry-header .entry-meta {
    margin-top: 11px;
    color: var(--galosom-editorial-muted);
    font-size: 13px;
}

body.blog article .byline,
body.archive article .byline,
body.blog article footer.entry-meta,
body.archive article footer.entry-meta {
    display: none;
}

body.blog article .post-image a,
body.archive article .post-image a,
body.blog article .post-image img,
body.archive article .post-image img {
    display: block;
    width: 100%;
    height: 100%;
}

body.blog article .post-image img,
body.archive article .post-image img {
    min-height: 190px;
    max-height: 230px;
    object-fit: cover;
    object-position: center;
}

body.blog article .read-more,
body.archive article .read-more {
    display: inline-block;
    margin-left: 0.25em;
    color: #292621;
    font-weight: 600;
    text-decoration-color: var(--galosom-gold);
    text-underline-offset: 3px;
}

body.blog .paging-navigation,
body.archive .paging-navigation {
    margin-top: 42px;
    padding: 0;
    background: transparent;
}

body.archive.separate-containers .page-header {
    max-width: 1060px;
    margin: 0 auto;
    padding: 0 0 32px;
    background: transparent;
}

body.archive .page-title {
    margin: 0;
    color: #171717;
    font-size: clamp(30px, 4vw, 40px);
    font-weight: 450;
    letter-spacing: -0.025em;
    line-height: 1.18;
}

body.single-post.separate-containers .comments-area {
    width: min(100%, var(--galosom-reading-width));
    margin: clamp(52px, 7vw, 80px) auto 0;
    padding: clamp(32px, 5vw, 48px) 0 0;
    border-top: 1px solid var(--galosom-editorial-border);
    background: transparent;
}

body.single-post .comments-title,
body.single-post .comment-reply-title {
    font-size: clamp(22px, 3vw, 27px);
    font-weight: 500;
    line-height: 1.3;
}

@media (max-width: 768px) {
    body.single-post .site-content,
    body.blog .site-content,
    body.archive .site-content {
        width: min(100% - 36px, 1180px);
        padding: 34px 0 72px;
    }

    body.blog #primary.content-area,
    body.archive #primary.content-area {
        width: calc(100% - 36px);
        padding-top: 34px;
        padding-bottom: 72px;
    }

    body.single-post.separate-containers .inside-article,
    body.blog.separate-containers .inside-article,
    body.archive.separate-containers .inside-article {
        padding: 0;
    }

    body.single-post article .entry-header {
        margin-bottom: 28px;
    }

    body.single-post .entry-title {
        font-size: clamp(26px, 7vw, 30px);
        line-height: 1.18;
    }

    body.single-post .featured-image img,
    body.single-post .page-header-image-single img {
        height: min(70vw, 360px);
    }

    body.single-post article .entry-content {
        font-size: 17px;
        line-height: 1.75;
    }

    body.single-post .entry-content img {
        max-height: 420px;
    }

    body.blog .site-main article .inside-article,
    body.archive .site-main article .inside-article {
        display: block;
        padding: 30px 0 34px;
    }

    body.blog article .post-image,
    body.archive article .post-image {
        margin: 0 0 22px;
    }

    body.blog article .post-image img,
    body.archive article .post-image img {
        width: 100%;
        min-height: 0;
        max-height: none;
        aspect-ratio: 16 / 10;
    }

    body.blog article .entry-summary,
    body.archive article .entry-summary,
    body.blog article .entry-content,
    body.archive article .entry-content {
        margin-top: 14px;
    }
}
