/* KPCM post-footer revision: 2026-09-30 R11 */
/* Shared title image, chosen once per category in the WordPress Customizer. */
.kpcm-single-hero {
    --kpcm-single-hero-image: none;
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 600px;
    background-color: #694045;
    background-image: linear-gradient(90deg, rgba(32, 22, 20, .34), rgba(32, 22, 20, .05)), var(--kpcm-single-hero-image);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    color: #fff;
}

.kpcm-single-hero__inner {
    width: calc(100% - 60px);
    max-width: 1560px;
    margin: 0 auto;
}

.kpcm-single-hero__title-ko,
.kpcm-single-hero__title-en,
.kpcm-single-hero__breadcrumb {
    margin: 0;
    color: inherit;
}

.kpcm-single-hero__title-ko {
    font: 600 48px/1.25 "Noto Serif KR", serif;
}

.kpcm-single-hero__title-en {
    font: 400 48px/1.2 "Lora", serif;
}

.kpcm-single-hero__breadcrumb {
    margin-top: 22px;
    font: 500 22px/1.4 "Montserrat", sans-serif;
}

/* The post content sits beneath the title image. */
.kpcm-single-bulletin .site-content,
.kpcm-single-column .site-content {
    padding-top: 80px;
    background: #fff;
}

.kpcm-single-bulletin .site-content > .ast-container,
.kpcm-single-column .site-content > .ast-container {
    width: calc(100% - 60px);
    max-width: 1560px;
    margin-right: auto;
    margin-left: auto;
    padding: 0;
}

.kpcm-single-bulletin .ast-article-single,
.kpcm-single-column .ast-article-single {
    width: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
}

.kpcm-single-bulletin .site-content .content-area,
.kpcm-single-column .site-content .content-area {
    width: 100%;
    max-width: none;
}

/* Astra's old title and uploader meta are replaced by the scoped heading. */
/* Astra can wrap its original title/meta differently from the content hook. */
.kpcm-single-bulletin .site-content .entry-header,
.kpcm-single-column .site-content .entry-header,
.kpcm-single-bulletin .site-content .entry-title,
.kpcm-single-column .site-content .entry-title,
.kpcm-single-bulletin .site-content .entry-meta,
.kpcm-single-column .site-content .entry-meta {
    display: none !important;
}

.kpcm-single-bulletin .post-navigation,
.kpcm-single-column .post-navigation {
    display: none;
}

.kpcm-single-bulletin .ast-article-single > .entry-content,
.kpcm-single-column .ast-article-single > .entry-content {
    margin: 0 auto;
}

.kpcm-post-heading h1 {
    margin: 0;
    color: #442b17;
    font-family: "Noto Serif KR", "Lora", serif;
    font-weight: 600;
    letter-spacing: -.035em;
}

/* Bulletin: the Basic Gallery widget stays editable on every post. */
.kpcm-single-bulletin .ast-article-single > .entry-content {
    max-width: 1140px;
    padding: 0 0 100px;
}

.kpcm-post-heading--bulletin {
    max-width: 1024px;
    margin: 0 auto 38px;
    padding-bottom: 20px;
    border-bottom: 1px solid #b99d9c;
}

.kpcm-post-heading--bulletin h1 {
    font-size: clamp(32px, 3vw, 48px);
    line-height: 1.4;
}

.kpcm-single-bulletin .entry-content .elementor-section .elementor-container,
.kpcm-single-bulletin .entry-content .e-con {
    max-width: 1024px;
}

.kpcm-single-bulletin .entry-content .e-con {
    margin-right: auto;
    margin-left: auto;
}

/* The actual Elementor widget can remain 1560px even when its gallery items are resized. */
.kpcm-single-bulletin .elementor-widget-image-gallery {
    width: min(100%, 1024px) !important;
    max-width: 1024px !important;
    margin-right: auto !important;
    margin-left: auto !important;
}

.kpcm-single-bulletin .elementor-widget-image-gallery .gallery {
    display: flex;
    flex-direction: column;
    gap: 28px;
    width: 100%;
    margin: 0 auto;
}

.kpcm-single-bulletin .elementor-widget-image-gallery .gallery-item {
    float: none;
    width: 100% !important;
    max-width: none;
    margin: 0;
    padding: 0;
}

.kpcm-single-bulletin .elementor-widget-image-gallery .gallery-icon img {
    display: block;
    width: 100%;
    height: auto;
    max-width: none;
    margin: 0;
    border: 1px solid #eee9e7;
}

/* Existing Display Posts shortcode, styled as the recent-issues row. */
.kpcm-single-bulletin .elementor-shortcode .display-posts-listing {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 13px 0;
    box-sizing: border-box;
    width: min(100%, 1024px) !important;
    max-width: 1024px !important;
    margin: 58px auto 0 !important;
    padding: 25px 0 0;
    border-top: 1px solid #dfd1cf;
    list-style: none;
}

.kpcm-single-bulletin .display-posts-listing::before {
    display: block;
    flex-basis: 100%;
    margin-bottom: 16px;
    color: #714a4d;
    font-family: "Noto Serif KR", serif;
    font-size: 22px;
    font-weight: 500;
    line-height: 1.5;
    text-align: center;
    content: "지난 주보";
}

.kpcm-single-bulletin .display-posts-listing li {
    margin: 0;
    padding: 0 20px;
    border-right: 1px solid #c7b6b4;
    line-height: 1.4;
}

.kpcm-single-bulletin .display-posts-listing li:last-child {
    border-right: 0;
}

.kpcm-single-bulletin .display-posts-listing a {
    color: #714a4d;
    font-family: "Pretendard Variable", sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.5;
    text-decoration: none;
}

.kpcm-single-bulletin .display-posts-listing a:hover,
.kpcm-single-bulletin .display-posts-listing a:focus-visible {
    color: #442b17;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.kpcm-single-bulletin .display-posts-pagination {
    display: none;
}

/* Column: a comfortable measure on an otherwise open 1560px canvas. */
.kpcm-single-column .ast-article-single > .entry-content {
    max-width: 900px;
    padding: 0 0 88px;
}

.kpcm-single-column .entry-content .elementor-section .elementor-container,
.kpcm-single-column .entry-content .e-con {
    max-width: 900px;
}

.kpcm-post-heading--column {
    margin-bottom: 48px;
    text-align: center;
}

.kpcm-post-heading--column h1 {
    font-size: clamp(32px, 3.4vw, 52px);
    line-height: 1.42;
}

.kpcm-post-heading__writer {
    margin: 17px 0 7px;
    color: #714a4d;
    font: 500 22px/1.5 "Noto Serif KR", "Lora", serif;
}

.kpcm-post-heading--column time {
    color: #897d79;
    font: 400 15px/1.6 "Montserrat", sans-serif;
}

.kpcm-single-column .entry-content .elementor-widget-text-editor,
.kpcm-single-column .entry-content .elementor-widget-text-editor p {
    color: #442b17;
    font-family: "Pretendard Variable", sans-serif;
    font-size: 18px;
    line-height: 1.9;
}

.kpcm-single-column .entry-content .elementor-widget-text-editor p {
    margin: 0 0 1.55em;
}

.kpcm-column-post-nav {
    width: min(100%, 900px);
    max-width: 900px;
    margin: 65px auto 0;
    padding-top: 23px;
    border-top: 1px solid #e2d9d7;
    font-family: "Pretendard Variable", sans-serif;
}

.kpcm-column-post-nav__links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.kpcm-column-post-nav__item {
    min-height: 84px;
    padding: 0 25px 0 0;
}

.kpcm-column-post-nav__item--next {
    padding: 0 0 0 25px;
    border-left: 1px solid #e2d9d7;
    text-align: right;
}

.kpcm-column-post-nav__item a {
    display: inline-flex;
    flex-direction: column;
    gap: 10px;
    color: #714a4d;
    text-decoration: none;
}

.kpcm-column-post-nav__label {
    font-family: "Montserrat", sans-serif;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.4;
}

.kpcm-column-post-nav__title {
    font-family: "Noto Serif KR", "Lora", serif;
    font-size: 20px;
    font-weight: 500;
    line-height: 1.5;
}

.kpcm-single-column .kpcm-column-post-nav a,
.kpcm-single-column .kpcm-column-post-nav a * {
    text-decoration: none !important;
}

.kpcm-single-column .kpcm-column-post-nav a:hover,
.kpcm-single-column .kpcm-column-post-nav a:hover * {
    color: #442b17;
    text-decoration: underline !important;
    text-underline-offset: 4px;
}

.kpcm-column-post-nav__writer {
    font-family: "Noto Serif KR", "Lora", serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.5;
}

.kpcm-column-post-nav__archive {
    display: flex;
    align-items: center;
    gap: 10px;
    width: max-content;
    max-width: 100%;
    margin: 34px auto 0;
    color: #714a4d;
    font-family: "Pretendard Variable", sans-serif;
    font-size: 18px;
    font-weight: 400;
    text-decoration: none;
}

@media (max-width: 1100px) {
    .kpcm-single-hero {
        min-height: 440px;
    }

    .kpcm-single-hero__inner {
        width: calc(100% - 44px);
    }

    .kpcm-single-hero__title-ko,
    .kpcm-single-hero__title-en {
        font-size: 40px;
    }

    .kpcm-single-hero__breadcrumb {
        font-size: 18px;
    }

    .kpcm-single-bulletin .site-content > .ast-container,
    .kpcm-single-column .site-content > .ast-container {
        width: calc(100% - 44px);
    }

}

@media (max-width: 767px) {
    .kpcm-single-hero {
        min-height: 340px;
    }

    .kpcm-single-hero__inner {
        width: calc(100% - 36px);
    }

    .kpcm-single-hero__title-ko,
    .kpcm-single-hero__title-en {
        font-size: 32px;
    }

    .kpcm-single-hero__breadcrumb {
        margin-top: 18px;
        font-size: 15px;
    }

    .kpcm-single-bulletin .site-content > .ast-container,
    .kpcm-single-column .site-content > .ast-container {
        width: calc(100% - 36px);
    }


    .kpcm-single-bulletin .ast-article-single > .entry-content,
    .kpcm-single-column .ast-article-single > .entry-content {
        padding-bottom: 64px;
    }

    .kpcm-single-bulletin .elementor-widget-image-gallery .gallery {
        gap: 18px;
    }

    .kpcm-single-bulletin .display-posts-listing li {
        padding: 0 12px;
    }

    .kpcm-post-heading--column {
        margin-bottom: 36px;
    }

    .kpcm-single-column .entry-content .elementor-widget-text-editor,
    .kpcm-single-column .entry-content .elementor-widget-text-editor p {
        font-size: 16px;
    }

    .kpcm-column-post-nav__title {
        font-size: 15px;
    }
}

/* Bulletin return button, beneath the recent-issue dates. */
.kpcm-bulletin-post-nav {
    max-width: 1024px;
    margin: 34px auto 0;
    text-align: center;
}

.kpcm-single-bulletin .kpcm-bulletin-post-nav__archive {
    display: flex;
    align-items: center;
    gap: 10px;
    width: max-content;
    max-width: 100%;
    margin: 0 auto;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #714a4d;
    font-family: "Pretendard Variable", sans-serif;
    font-size: 18px;
    font-weight: 400;
    text-decoration: none !important;
}

.kpcm-single-bulletin .kpcm-bulletin-post-nav__archive * {
    text-decoration: none !important;
}

.kpcm-single-bulletin .kpcm-bulletin-post-nav__archive:hover,
.kpcm-single-bulletin .kpcm-bulletin-post-nav__archive:hover * {
    color: #442b17;
    text-decoration: underline !important;
    text-underline-offset: 4px;
}

/* Remove dotted link outlines on Bulletin and Pastor's Column posts. */
.kpcm-single-bulletin a:focus,
.kpcm-single-bulletin a:focus-visible,
.kpcm-single-column a:focus,
.kpcm-single-column a:focus-visible {
    outline: none !important;
}

/* Hide legacy Go Back links in Bulletin posts. */
body.kpcm-single-bulletin a[href*="kpcmiami.org/announcements-2"] {
    display: none !important;
}