/* Photo Gallery: existing title background and global header are untouched. */
.elementor-widget.kpcm-photo-gallery {
    width: 100%;
    max-width: 1560px;
    margin-inline: auto;
}
.kpcm-pg,
.kpcm-pg * {
    box-sizing: border-box;
}
.kpcm-pg {
    width: 100%;
    color: #714a4d;
}
.kpcm-pg__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    column-gap: 32px;
    row-gap: 42px;
}
.kpcm-pg .kpcm-pg__item {
    min-width: 0;
    margin: 0;
    padding: 0;
}
.kpcm-pg .kpcm-pg__photo {
    display: block;
    width: 100%;
    aspect-ratio: 5 / 3;
    overflow: hidden;
    background: #f4f1ef;
    border: 0;
    text-decoration: none;
}
.kpcm-pg .kpcm-pg__image {
    display: block;
    width: 100% !important;
    height: 100% !important;
    max-width: none;
    object-fit: cover;
    object-position: var(--kpcm-crop, center);
    border: 0;
    border-radius: 0;
    transition: opacity 180ms ease;
}
.kpcm-pg__photo:hover .kpcm-pg__image {
    opacity: .9;
}
.kpcm-pg .kpcm-pg__caption {
    margin: 13px 0 0;
    color: #714a4d;
    font-family: "Pretendard Variable", sans-serif;
    font-size: 17px;
    font-weight: 400;
    line-height: 1.6;
    text-align: left;
    word-break: keep-all;
}
.kpcm-pg__pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 13px;
    margin: 50px 0 0;
}
.kpcm-pg button,
.kpcm-pg-lightbox button {
    cursor: pointer;
    font-family: "Montserrat", "Pretendard Variable", sans-serif;
    box-shadow: none;
}
/* Matches Bulletin and Pastor's Column archive pagination. */
.kpcm-pg__pagination button,
.kpcm-pg__pagination > span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    height: auto;
    min-width: 27px;
    min-height: 34px;
    padding: 3px 5px;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #694045;
    font-family: "Pretendard Variable", sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.5;
    text-decoration: none;
    box-shadow: none;
}
.kpcm-pg__pagination button[aria-current="page"] {
    background: #694045;
    color: #fff;
}
.kpcm-pg__pagination .kpcm-pg__page-arrow {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #f2eeee;
    font-size: 25px;
    line-height: 1;
}
.kpcm-pg__pagination button:hover:not(:disabled):not([aria-current="page"]) {
    color: #ae5166;
}
.kpcm-pg__pagination button:disabled {
    opacity: .35;
    cursor: default;
}
.kpcm-pg [hidden],
.kpcm-pg-lightbox [hidden] {
    display: none !important;
}
.kpcm-pg a:focus,
.kpcm-pg button:focus,
.kpcm-pg-lightbox button:focus {
    outline: none !important;
}
.kpcm-pg-lightbox {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100vw;
    height: 100dvh;
    max-width: none;
    max-height: none;
    margin: 0;
    padding: 64px 80px;
    border: 0;
    background: rgba(24, 18, 17, .96);
    color: #fff;
    z-index: 2147483000;
}
.kpcm-pg-lightbox::backdrop {
    background: rgba(24, 18, 17, .96);
}
.kpcm-pg-lightbox__figure {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    max-width: 100%;
    max-height: 100%;
    margin: 0;
}
.kpcm-pg-lightbox__image {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: calc(100dvh - 190px);
    object-fit: contain;
    border: 0;
}
.kpcm-pg-lightbox__caption {
    max-width: 800px;
    margin: 0;
    color: #fff;
    font: 400 17px/1.5 "Pretendard Variable", sans-serif;
    text-align: center;
}
.kpcm-pg-lightbox__count {
    position: absolute;
    top: 25px;
    left: 30px;
    color: #fff;
    font: 400 14px/1.5 "Montserrat", sans-serif;
}
.kpcm-pg-lightbox button {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    padding: 12px;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #fff;
}
.kpcm-pg-lightbox button:hover {
    background: rgba(255,255,255,.12);
}
.kpcm-pg-lightbox button i {
    font-size: 24px;
}
.kpcm-pg-lightbox__close {
    top: 16px;
    right: 20px;
}
.kpcm-pg-lightbox__prev {
    top: calc(50% - 24px);
    left: 16px;
}
.kpcm-pg-lightbox__next {
    top: calc(50% - 24px);
    right: 16px;
}
@media (max-width: 1024px) {
    .kpcm-pg__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        column-gap: 24px;
        row-gap: 32px;
    }
}
@media (max-width: 767px) {
    .kpcm-pg__grid {
    grid-template-columns: minmax(0, 1fr);
}
    .kpcm-pg .kpcm-pg__caption {
    font-size: 16px;
}
    .kpcm-pg-lightbox {
    padding: 64px 44px;
}
    .kpcm-pg-lightbox__image {
    max-height: calc(100dvh - 210px);
}
    .kpcm-pg-lightbox__caption {
    font-size: 15px;
}
    .kpcm-pg-lightbox__prev {
    left: 0;
}
    .kpcm-pg-lightbox__next {
    right: 0;
}
}

.kpcm-pg-lightbox[hidden] {
    display: none !important;
}
