@charset "UTF-8";

/* =====================================================
   MIPLUS — 전후사진 게시판
   큰 사진 + 각도 선택 + 썸네일
===================================================== */

#mp-before-board {
    --mp-before-line: var(--color-line, #d5d0c7);
    --mp-before-accent: var(--section-eyebrow-color, #9f826e);

    width: 100%;
    max-width: 1160px;
    margin: 0 auto;

    color: var(--color-body-copy, #48413c);

    font-family: var(--site-font-korean, "Miplus A2Z", sans-serif);
    font-size: var(--type-body-small, 14px);
    font-weight: var(--weight-body, 300);
    line-height: var(--leading-body, 1.85);
    letter-spacing: var(--tracking-korean-body, -0.015em);

    font-synthesis: none;
}

html body main#main-content #mp-before-board,
html body main#main-content #mp-before-board * {
    box-sizing: border-box;

    font-family:
        var(--site-font-korean, "Miplus A2Z", sans-serif) !important;

    font-synthesis: none;
}

#mp-before-board [hidden] {
    display: none !important;
}

#mp-before-board button,
#mp-before-board input {
    font: inherit;
}

#mp-before-board button,
#mp-before-board a {
    -webkit-tap-highlight-color: transparent;
}

#mp-before-board button {
    cursor: pointer;
}

#mp-before-board :is(button, a, input):focus-visible {
    outline: 2px solid var(--mp-before-accent);
    outline-offset: 4px;
}

/* =====================================================
   01. 분류 — PC 6열 / 모바일 3열
===================================================== */

#mp-before-board .mp-before-category {
    width: 100%;
    max-width: 960px;
    margin: 0 auto 36px;
}

#mp-before-board .mp-before-category ul {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 8px;

    margin: 0;
    padding: 0;

    list-style: none;
}

#mp-before-board .mp-before-category li {
    min-width: 0;
    margin: 0;
    padding: 0;
}

#mp-before-board .mp-before-category a {
    display: flex;
    align-items: center;
    justify-content: center;

    min-height: 43px;
    padding: 10px 6px;

    border: 1px solid var(--mp-before-line);
    border-radius: 0;

    background: transparent;
    color: var(--color-body-copy, #48413c);

    font-size: var(--type-body-small, 14px);
    font-weight: var(--weight-body, 300);
    line-height: 1.5;
    text-align: center;
    text-decoration: none;

    word-break: keep-all;
}

#mp-before-board
.mp-before-category a[aria-current="page"] {
    border-color: #625b50;
    background: #625b50;
    color: var(--color-white, #fff);

    font-weight: var(--weight-body-emphasis, 400);
}

@media (hover: hover) {
    #mp-before-board
    .mp-before-category a:not([aria-current="page"]):hover {
        border-color: var(--mp-before-accent);
        color: var(--mp-before-accent);
    }
}

/* =====================================================
   02. 목록 정보
===================================================== */

#mp-before-board .mp-before-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;

    margin-bottom: 16px;
}

#mp-before-board .mp-before-total {
    margin: 0;

    color: var(--color-text-light, #81786f);

    font-size: 12px;
    font-weight: var(--weight-body, 300);
    line-height: 1.6;
}

#mp-before-board .mp-before-total strong {
    color: var(--color-body-copy, #48413c);
    font-weight: var(--weight-body-emphasis, 400);
}

#mp-before-board .mp-before-check {
    display: inline-flex;
    align-items: center;
    gap: 7px;

    color: var(--color-text-light, #81786f);

    font-size: 12px;
    font-weight: var(--weight-body, 300);
    line-height: 1.6;
}

#mp-before-board .mp-before-check input {
    width: 13px;
    height: 13px;
    margin: 0;

    accent-color: var(--mp-before-accent);
}

/* =====================================================
   03. 큰 사진 뷰어
===================================================== */

#mp-before-board .mp-before-viewer {
    position: relative;

    width: 100%;
    max-width: 1080px;

    margin: 0 auto;
    padding: 26px 68px 22px;

    border: 0;
    background: var(--color-white, #fff);
    box-shadow: none;
}

#mp-before-board .mp-before-panel {
    width: 100%;
    max-width: 840px;

    margin: 0 auto;
    padding: 0;
}

#mp-before-board .mp-before-photos,
#mp-before-board .mp-before-photo {
    width: 100%;
    margin: 0;
    padding: 0;
}

#mp-before-board .mp-before-photo img {
    display: block;

    width: 100%;
    max-width: 100%;
    height: auto;

    margin: 0;
    padding: 0;

    border: 0;
    object-fit: contain;
}

/* =====================================================
   04. 사진 각도 선택
===================================================== */

#mp-before-board .mp-before-angles {
    display: flex;
    justify-content: center;

    width: fit-content;
    max-width: 100%;

    margin: 18px auto 0;
    padding: 0;

    border-bottom: 1px solid var(--mp-before-line);
}

#mp-before-board .mp-before-angles button {
    position: relative;

    min-width: 94px;
    min-height: 42px;

    margin: 0;
    padding: 9px 18px 12px;

    border: 0;
    border-radius: 0;

    background: transparent;
    color: var(--color-body-copy, #48413c);

    font-size: var(--type-body-small, 14px);
    font-weight: var(--weight-body, 300);
    line-height: 1.5;

    box-shadow: none;
}

#mp-before-board
.mp-before-angles button[aria-pressed="true"] {
    font-weight: var(--weight-body-emphasis, 400);
}

#mp-before-board
.mp-before-angles button[aria-pressed="true"]::after {
    content: "";

    position: absolute;
    right: 15px;
    bottom: -1px;
    left: 15px;

    height: 2px;
    background: var(--mp-before-accent);
}

@media (hover: hover) {
    #mp-before-board .mp-before-angles button:hover {
        color: var(--mp-before-accent);
    }
}

/* =====================================================
   05. 수술명
===================================================== */

html body main#main-content
#mp-before-board .mp-before-title {
    margin: 18px 0 0;

    color: var(--color-body-copy, #48413c);

    font-size: var(--type-body, 15px) !important;
    font-weight: var(--weight-body-emphasis, 400) !important;
    line-height: var(--leading-body, 1.85);
    letter-spacing: var(--tracking-korean-body, -0.015em);

    text-align: center;
    word-break: keep-all;
    overflow-wrap: anywhere;
}

#mp-before-board .mp-before-item-admin {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 14px;

    margin-top: 10px;

    color: var(--color-text-light, #81786f);

    font-size: 11px;
    font-weight: var(--weight-body, 300);
    line-height: 1.6;
}

#mp-before-board .mp-before-item-admin a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 4px;
}

/* =====================================================
   06. 좌우 이동·현재 위치
===================================================== */

#mp-before-board .mp-before-navigation {
    display: none;
}

#mp-before-board.is-ready .mp-before-navigation {
    display: block;
}

#mp-before-board .mp-before-arrow {
    position: absolute;
    top: 42%;

    display: grid;
    place-items: center;

    width: 42px;
    height: 54px;

    margin: 0;
    padding: 0;

    border: 0;
    border-radius: 0;

    background: transparent;
    color: var(--color-text-soft, #625b50);

    box-shadow: none;
    transform: translateY(-50%);
}

#mp-before-board .mp-before-arrow--prev {
    left: 12px;
}

#mp-before-board .mp-before-arrow--next {
    right: 12px;
}

#mp-before-board .mp-before-arrow svg {
    display: block;
    width: 25px;
    height: 25px;
}

#mp-before-board .mp-before-arrow:disabled {
    cursor: default;
    opacity: 0.25;
}

#mp-before-board .mp-before-position {
    margin: 16px 0 0;

    color: var(--color-text-light, #81786f);

    font-size: 11px;
    font-weight: var(--weight-body, 300);
    line-height: 1.5;
    text-align: center;
    letter-spacing: 0.06em;
}

/* =====================================================
   07. 썸네일 — PC 4열
===================================================== */

#mp-before-board .mp-before-thumbnails {
    display: none;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 26px 18px;

    margin: 28px 0 0;
    padding: 0;

    list-style: none;
}

#mp-before-board.is-ready .mp-before-thumbnails {
    display: grid;
}

#mp-before-board .mp-before-thumbnails > li {
    min-width: 0;
    margin: 0;
    padding: 0;
}

#mp-before-board .mp-before-thumbnail {
    display: block;

    width: 100%;
    height: 100%;

    margin: 0;
    padding: 0;

    border: 0;
    border-radius: 0;

    background: transparent;
    color: var(--color-body-copy, #48413c);

    text-align: left;
    box-shadow: none;
}

#mp-before-board .mp-before-thumbnail__image {
    position: relative;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 100%;
    aspect-ratio: 8 / 5;

    padding: 6px;

    background: var(--color-white, #fff);
    color: var(--color-text-light, #81786f);

    font-size: 12px;
    line-height: 1.5;
}

#mp-before-board .mp-before-thumbnail__image::after {
    content: "";

    position: absolute;
    inset: 0;

    border: 1px solid var(--mp-before-line);
    pointer-events: none;
}

#mp-before-board
.mp-before-thumbnail[aria-pressed="true"]
.mp-before-thumbnail__image::after {
    border: 2px solid var(--mp-before-accent);
}

#mp-before-board .mp-before-thumbnail__image img {
    display: block;

    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;

    margin: 0;
    border: 0;

    object-fit: contain;
    opacity: 1;
}

#mp-before-board .mp-before-thumbnail__title {
    display: block;

    margin-top: 10px;

    color: var(--color-body-copy, #48413c);

    font-size: var(--type-body-small, 14px);
    font-weight: var(--weight-body, 300);
    line-height: var(--leading-body, 1.85);
    letter-spacing: var(--tracking-korean-body, -0.015em);

    word-break: keep-all;
    overflow-wrap: anywhere;
}

#mp-before-board
.mp-before-thumbnail[aria-pressed="true"]
.mp-before-thumbnail__title {
    font-weight: var(--weight-body-emphasis, 400);
}

@media (hover: hover) {
    #mp-before-board
    .mp-before-thumbnail:hover .mp-before-thumbnail__title {
        color: var(--mp-before-accent);
    }
}

/* =====================================================
   08. 안내·빈 목록
===================================================== */

#mp-before-board .mp-before-notice {
    margin: 30px 0 0;

    color: var(--color-text-light, #81786f);

    font-size: 12px;
    font-weight: var(--weight-body, 300);
    line-height: 1.8;
    text-align: center;

    word-break: keep-all;
}

#mp-before-board .mp-before-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;

    min-height: 280px;
    padding: 30px 20px;

    background: var(--section-bg-ivory, #f8f5f0);
    color: var(--color-text-soft, #625b50);

    font-size: var(--type-body-small, 14px);
    line-height: 1.8;
    text-align: center;
}

#mp-before-board .mp-before-placeholder p {
    margin: 0;
}

#mp-before-board .mp-before-placeholder a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 5px;
}

#mp-before-board .mp-before-empty {
    margin: 0;
    padding: 90px 20px;

    border-top: 1px solid var(--mp-before-line);
    border-bottom: 1px solid var(--mp-before-line);

    color: var(--color-text-soft, #625b50);
    font-size: var(--type-body-small, 14px);
    line-height: 1.8;
    text-align: center;
}

/* =====================================================
   09. 관리자 버튼
===================================================== */

#mp-before-board .mp-before-admin {
    display: flex;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 7px;

    margin-top: 26px;
}

#mp-before-board .mp-before-admin :is(a, button) {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 35px;

    margin: 0;
    padding: 7px 12px;

    border: 1px solid var(--mp-before-line);
    border-radius: 0;

    background: transparent;
    color: var(--color-body-copy, #48413c);

    font-size: 12px;
    font-weight: var(--weight-body, 300);
    line-height: 1.5;
    text-decoration: none;

    box-shadow: none;
}

/* =====================================================
   10. 페이지 이동
===================================================== */

#mp-before-board .mp-before-pagination {
    margin-top: 38px;
}

#mp-before-board .pg_wrap {
    float: none;
    clear: both;

    margin: 0;
    padding: 0;

    text-align: center;
}

#mp-before-board .pg {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 5px;
}

#mp-before-board .pg_page,
#mp-before-board .pg_current {
    position: static;
    float: none;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: auto;
    min-width: 34px;
    height: 36px;

    margin: 0;
    padding: 0 9px;

    border: 0;
    border-radius: 0;

    background: transparent;
    background-image: none;

    color: var(--color-text-soft, #625b50);

    font-size: 12px;
    font-weight: var(--weight-body, 300);
    line-height: 1;
    text-decoration: none;
    text-indent: 0;

    box-shadow: none;
}

#mp-before-board .pg_current {
    color: var(--color-text, #1d1c19);
    font-weight: var(--weight-body-emphasis, 400);

    text-decoration: underline;
    text-underline-offset: 7px;
    text-decoration-color: var(--mp-before-accent);
}

#mp-before-board .pg_start,
#mp-before-board .pg_prev,
#mp-before-board .pg_next,
#mp-before-board .pg_end {
    width: auto;
    padding-right: 11px;
    padding-left: 11px;

    font-size: 11px;
}

#mp-before-board .sound_only,
#mp-before-board .mp-before-sr-only {
    position: absolute !important;

    width: 1px !important;
    height: 1px !important;

    margin: -1px !important;
    padding: 0 !important;

    overflow: hidden !important;
    border: 0 !important;

    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
}

/* =====================================================
   11. 태블릿
===================================================== */

@media (min-width: 768px) and (max-width: 1023px) {
    #mp-before-board .mp-before-category {
        margin-bottom: 30px;
    }

    #mp-before-board .mp-before-category a {
        min-height: 41px;
        padding: 9px 4px;
        font-size: 13px;
    }

    #mp-before-board .mp-before-viewer {
        padding: 22px 48px 20px;
    }

    #mp-before-board .mp-before-arrow {
        width: 34px;
    }

    #mp-before-board .mp-before-arrow--prev {
        left: 5px;
    }

    #mp-before-board .mp-before-arrow--next {
        right: 5px;
    }

    #mp-before-board .mp-before-thumbnails {
        gap: 24px 14px;
    }
}

/* =====================================================
   12. 모바일
===================================================== */

@media (max-width: 767px) {
    #mp-before-board .mp-before-category {
        margin-bottom: 26px;
    }

    #mp-before-board .mp-before-category ul {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 7px;
    }

    #mp-before-board .mp-before-category a {
        min-height: 39px;
        padding: 8px 4px;

        font-size: 12px;
        line-height: 1.5;
    }

    #mp-before-board .mp-before-toolbar {
        margin-bottom: 12px;
    }

    #mp-before-board .mp-before-total,
    #mp-before-board .mp-before-check {
        font-size: 11px;
    }

    #mp-before-board .mp-before-viewer {
        padding: 12px 10px 16px;
    }

    #mp-before-board .mp-before-angles {
        margin-top: 14px;
    }

    #mp-before-board .mp-before-angles button {
        min-width: 76px;
        min-height: 40px;

        padding: 9px 12px 11px;
        font-size: 13px;
    }

    html body main#main-content
    #mp-before-board .mp-before-title {
        margin-top: 16px;
        font-size: var(--type-body-small, 14px) !important;
    }

    #mp-before-board.is-ready .mp-before-navigation {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 20px;

        margin-top: 14px;
    }

    #mp-before-board .mp-before-arrow {
        position: static;

        width: 38px;
        height: 38px;

        transform: none;
    }

    #mp-before-board .mp-before-arrow svg {
        width: 21px;
        height: 21px;
    }

    #mp-before-board .mp-before-position {
        min-width: 50px;
        margin: 0;
    }

    #mp-before-board .mp-before-thumbnails {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 22px 12px;

        margin-top: 22px;
    }

    #mp-before-board .mp-before-thumbnail__image {
        padding: 5px;
    }

    #mp-before-board .mp-before-thumbnail__title {
        margin-top: 8px;

        font-size: 13px;
        line-height: 1.8;
    }

    #mp-before-board .mp-before-notice {
        margin-top: 25px;
        font-size: 11px;
    }

    #mp-before-board .mp-before-placeholder {
        min-height: 200px;
    }

    #mp-before-board .mp-before-admin {
        margin-top: 22px;
    }

    #mp-before-board .mp-before-admin :is(a, button) {
        padding: 7px 10px;
        font-size: 11px;
    }

    #mp-before-board .mp-before-pagination {
        margin-top: 28px;
    }

    #mp-before-board .pg {
        gap: 3px;
    }

    #mp-before-board .pg_page,
    #mp-before-board .pg_current {
        min-width: 28px;
        padding: 0 6px;

        font-size: 11px;
    }

    #mp-before-board .pg_start,
    #mp-before-board .pg_prev,
    #mp-before-board .pg_next,
    #mp-before-board .pg_end {
        padding-right: 7px;
        padding-left: 7px;

        font-size: 10px;
    }
}

/* =====================================================
   전후사진 — 글자 체계 통일
   사진·박스·배치 변경 없음
===================================================== */

html body main#main-content #mp-before-board,
html body main#main-content #mp-before-board * {
    font-family: var(--site-font-korean) !important;
    font-synthesis: none;
}

/* 주요 글씨 — 동일한 크기·굵기·색상 */
html body main#main-content #mp-before-board :is(
    .mp-before-category a,
    .mp-before-angles button,
    .mp-before-title,
    .mp-before-thumbnail__title
) {
    color: var(--color-body-copy);
    font-size: var(--type-body-small, 14px) !important;
    font-weight: var(--weight-body, 300) !important;
    line-height: 1.8 !important;
    letter-spacing: var(--tracking-korean-body) !important;
}

/* 선택 항목만 공통 강조 굵기 */
html body main#main-content #mp-before-board :is(
    .mp-before-category a[aria-current="page"],
    .mp-before-angles button[aria-pressed="true"],
    .mp-before-thumbnail[aria-pressed="true"]
        .mp-before-thumbnail__title
) {
    font-weight: var(--weight-body-emphasis, 400) !important;
}

/* 선택 분류 — 어두운 배경 위 흰 글씨 유지 */
html body main#main-content #mp-before-board
.mp-before-category a[aria-current="page"] {
    color: var(--color-white, #fff);
}

/* 부가 정보 — 작은 글씨 기준 통일 */
html body main#main-content #mp-before-board :is(
    .mp-before-total,
    .mp-before-total strong,
    .mp-before-check,
    .mp-before-position,
    .mp-before-item-admin,
    .mp-before-item-admin a,
    .mp-before-notice,
    .mp-before-admin a,
    .mp-before-admin button,
    .pg_page,
    .pg_current
) {
    font-size: 12px !important;
    font-weight: var(--weight-body, 300) !important;
    line-height: 1.8 !important;
    letter-spacing: var(--tracking-korean-body) !important;
}

/* 현재 페이지 강조 */
html body main#main-content #mp-before-board .pg_current {
    font-weight: var(--weight-body-emphasis, 400) !important;
}

/* 썸네일 — 제목 길이와 관계없이 사진 상단 정렬 */
#mp-before-board .mp-before-thumbnails {
    align-items: start;
}

#mp-before-board .mp-before-thumbnails > li {
    align-self: start;
}

#mp-before-board .mp-before-thumbnail {
    height: auto;
}

/* 큰 사진 뷰어 — 바깥 흰 배경 제거 */
#mp-before-board .mp-before-viewer {
    background: transparent;
}

/* 썸네일 — 흰 배경과 안쪽 여백 제거 */
#mp-before-board .mp-before-thumbnail__image {
    background: transparent;
    padding: 0;
}

/* 전후사진 — 하단 안내문 숨김 */
#mp-before-board .mp-before-notice {
    display: none !important;
}

/* 썸네일 — 고정 비율 해제, 사진 위아래 빈 공간 제거 */
#mp-before-board .mp-before-thumbnail__image {
    display: block;
    aspect-ratio: auto;
    height: auto;
    min-height: 0;
    padding: 0;
}

#mp-before-board .mp-before-thumbnail__image img {
    display: block;
    width: 100%;
    height: auto;
    max-height: none;
}

/* 전후사진 — 전체 게시물 수 숨김 */
#mp-before-board .mp-before-total {
    display: none !important;
}

/* 전후사진 — ‘전체’는 선택 여부와 관계없이 한 단계 굵게 */
html body main#main-content
#mp-before-board .mp-before-category li:first-child > a {
    font-weight: 400 !important;
}
/* =====================================================
   전후사진 — 비로그인 사진 덮개
   로그인 회원은 기존 사진 그대로 표시
===================================================== */

/* 큰 사진 영역 */
#mp-before-board.mp-before-is-guest .mp-before-photos {
    position: relative;
    isolation: isolate;

    min-height: 320px;
}

/*
 * 사진의 원래 높이는 유지하면서 화면에서만 숨김.
 * 이미지 주소 접근을 제한하는 보안 처리는 아닙니다.
 */
#mp-before-board.mp-before-is-guest .mp-before-photo {
    visibility: hidden;
    pointer-events: none;
    user-select: none;
}

/* 불투명 아이보리 덮개 */
#mp-before-board .mp-before-login-cover {
    position: absolute;
    inset: 0;
    z-index: 2;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 32px 20px;

    background: #f5f2ee;
    color: #48413c;

    text-align: center;
}

#mp-before-board .mp-before-login-cover__content {
    width: 100%;
    max-width: 460px;
}

/* 잠금 아이콘 */
#mp-before-board .mp-before-login-cover__icon {
    display: block;

    width: 24px;
    height: 24px;

    margin: 0 auto 18px;

    color: #998b7c;
}

/* 안내 제목 */
html body #mp-before-board
.mp-before-login-cover__title {
    margin: 0;
    padding: 0;

    color: #48413c;

    font-size: 20px !important;
    font-weight: 400 !important;
    line-height: 1.7 !important;
    letter-spacing: -0.025em !important;

    word-break: keep-all;
}

/* 부가 설명 */
html body #mp-before-board
.mp-before-login-cover__description {
    margin: 13px 0 0;
    padding: 0;

    color: #81786f;

    font-size: 13px !important;
    font-weight: 300 !important;
    line-height: 1.8 !important;
    letter-spacing: -0.015em !important;

    word-break: keep-all;
}

/* 로그인·회원가입 */
#mp-before-board .mp-before-login-cover__actions {
    display: flex;
    align-items: center;
    justify-content: center;

    gap: 8px;

    margin-top: 24px;
}

html body #mp-before-board
.mp-before-login-cover__actions > a {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 104px;
    min-height: 42px;

    margin: 0;
    padding: 10px 20px;

    border: 1px solid #c9c0b6;
    border-radius: 0;

    background: transparent;
    color: #625b50;

    font-size: 13px !important;
    font-weight: 400 !important;
    line-height: 1.5 !important;
    letter-spacing: -0.015em !important;

    text-decoration: none;
}

html body #mp-before-board
.mp-before-login-cover__actions
.mp-before-login-cover__login {
    border-color: #6d6051;
    background: #6d6051;
    color: #fff;
}

/* 썸네일도 사진 영역만 가림 */
#mp-before-board.mp-before-is-guest
.mp-before-thumbnail__image {
    position: relative;

    display: flex;
    align-items: center;
    justify-content: center;

    min-height: 100px;

    background: #f5f2ee;
}

#mp-before-board.mp-before-is-guest
.mp-before-thumbnail__image img {
    visibility: hidden;
    user-select: none;
}

/* 기존 테두리 ::after는 유지 */
#mp-before-board.mp-before-is-guest
.mp-before-thumbnail__image::before {
    content: "로그인 후 확인";

    position: absolute;
    inset: 0;
    z-index: 1;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 10px;

    background: #f5f2ee;
    color: #91867a;

    font-size: 12px;
    font-weight: 300;
    line-height: 1.6;
    letter-spacing: -0.015em;

    text-align: center;
    pointer-events: none;
}

/* 모바일 */
@media (max-width: 767px) {
    #mp-before-board.mp-before-is-guest .mp-before-photos {
        min-height: 260px;
    }

    #mp-before-board .mp-before-login-cover {
        padding: 24px 14px;
    }

    #mp-before-board .mp-before-login-cover__icon {
        width: 22px;
        height: 22px;

        margin-bottom: 14px;
    }

    html body #mp-before-board
    .mp-before-login-cover__title {
        font-size: 17px !important;
        line-height: 1.7 !important;
    }

    html body #mp-before-board
    .mp-before-login-cover__description {
        max-width: 240px;
        margin: 10px auto 0;

        font-size: 12px !important;
    }

    #mp-before-board .mp-before-login-cover__actions {
        margin-top: 20px;
    }

    html body #mp-before-board
    .mp-before-login-cover__actions > a {
        min-width: 92px;
        min-height: 40px;

        padding: 9px 16px;
    }

    #mp-before-board.mp-before-is-guest
    .mp-before-thumbnail__image {
        min-height: 80px;
    }

    #mp-before-board.mp-before-is-guest
    .mp-before-thumbnail__image::before {
        font-size: 11px;
    }
}

/* =====================================================
   비로그인 — 왼쪽 수술 전 사진만 가리기
   오른쪽 수술 후 사진은 그대로 표시
===================================================== */

/* 기존 사진 전체 숨김 해제 */
html body #mp-before-board.mp-before-is-guest
.mp-before-photo,
html body #mp-before-board.mp-before-is-guest
.mp-before-thumbnail__image img {
    visibility: visible !important;
}

/* 덮개 때문에 추가했던 최소 높이 해제 */
html body #mp-before-board.mp-before-is-guest
.mp-before-photos {
    position: relative;
    min-height: 0 !important;
}

/* 큰 사진 — 왼쪽 50%만 덮기 */
html body #mp-before-board.mp-before-is-guest
.mp-before-login-cover {
    top: 0;
    bottom: 0;
    left: 0;
    right: auto;

    width: 50%;
    height: 100%;

    padding: 20px 12px;
    box-sizing: border-box;

    background: #f5f2ee;
}

html body #mp-before-board
.mp-before-login-cover__content {
    width: 100%;
    max-width: 340px;
}

html body #mp-before-board
.mp-before-login-cover__title {
    font-size: 18px !important;
    line-height: 1.65 !important;
}

html body #mp-before-board
.mp-before-login-cover__description {
    font-size: 12px !important;
}

html body #mp-before-board
.mp-before-login-cover__actions {
    gap: 8px;
    margin-top: 20px;
}

html body #mp-before-board
.mp-before-login-cover__actions > a {
    min-width: 0;
    min-height: 38px;
    padding: 8px 18px;
}

/* 썸네일 원래 사진 높이 유지 */
html body #mp-before-board.mp-before-is-guest
.mp-before-thumbnail__image {
    display: block;
    min-height: 0 !important;
    padding: 0;
}

/* 썸네일 — 왼쪽 절반만 덮기 */
html body #mp-before-board.mp-before-is-guest
.mp-before-thumbnail__image::before {
    content: "로그인 후 확인";

    top: 0;
    bottom: 0;
    left: 0;
    right: auto;

    width: 50%;
    height: 100%;
    padding: 6px;
    box-sizing: border-box;

    background: #f5f2ee;

    font-size: 11px;
    line-height: 1.6;
    word-break: keep-all;
}

/* 모바일 — 왼쪽 사진 안에 안내가 들어가도록 축소 */
@media (max-width: 767px) {
    html body #mp-before-board.mp-before-is-guest
    .mp-before-login-cover {
        padding: 10px 6px;
    }

    html body #mp-before-board
    .mp-before-login-cover__icon {
        width: 18px;
        height: 18px;
        margin-bottom: 8px;
    }

    html body #mp-before-board
    .mp-before-login-cover__title {
        font-size: 12px !important;
        line-height: 1.65 !important;
    }

    html body #mp-before-board
    .mp-before-login-cover__description {
        display: none;
    }

    html body #mp-before-board
    .mp-before-login-cover__actions {
        flex-direction: column;
        gap: 5px;
        margin-top: 10px;
    }

    html body #mp-before-board
    .mp-before-login-cover__actions > a {
        width: 88px;
        min-height: 30px;
        padding: 5px 8px;

        font-size: 11px !important;
    }

    html body #mp-before-board.mp-before-is-guest
    .mp-before-thumbnail__image::before {
        font-size: 10px;
    }
}

/* 비로그인 — 왼쪽 전사진이 은은하게 비치는 반투명 덮개 */
html body #mp-before-board.mp-before-is-guest
.mp-before-login-cover,
html body #mp-before-board.mp-before-is-guest
.mp-before-thumbnail__image::before {
    background: rgba(245, 242, 238, 0.92) !important;

    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
}

/* 모바일 — 분류 버튼 한 줄·동일 높이 */
@media (max-width: 767px) {
    html body main#main-content
    #mp-before-board .mp-before-category ul {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        align-items: stretch;
    }

    html body main#main-content
    #mp-before-board nav.mp-before-category ul > li > a {
        box-sizing: border-box;

        height: 44px;
        min-height: 44px;
        padding: 8px 2px;

        font-size: 12px !important;
        line-height: 1.4 !important;
        letter-spacing: -0.04em !important;

        white-space: nowrap;
        word-break: normal;
        overflow-wrap: normal;
    }
}

@media (max-width: 359px) {
    html body main#main-content
    #mp-before-board nav.mp-before-category ul > li > a {
        font-size: 11px !important;
    }
}

/* 전후사진 덮개 — 로그인 버튼만 표시 */
html body #mp-before-board
.mp-before-login-cover__register {
    display: none !important;
}

/* 사진 위에는 로그인 버튼 하나만 */
html body #mp-before-board
.mp-before-login-cover__register {
    display: none !important;
}

/* 기존 로그인 팝업 — 작은 화면에서 넘침 방지 */
body > .layer_login {
    box-sizing: border-box;
    max-width: calc(100vw - 32px);
    max-height: calc(100vh - 32px);
    max-height: calc(100dvh - 32px);
    overflow-y: auto;
    overscroll-behavior: contain;
}

body > .layer_login *,
body > .pw_lost_popup * {
    box-sizing: border-box;
}

/* =====================================================
   눈성형 — 위쪽 전사진 50%만 가림
   아래쪽 후사진은 그대로 표시
===================================================== */

/* 큰 사진 덮개 위치 */
html body #mp-before-board.mp-before-is-guest
.mp-before-photos[data-mp-layout="vertical"]
.mp-before-login-cover {
    top: 0;
    right: 0;
    bottom: auto;
    left: 0;

    width: 100%;
    height: 50%;
}

/* 높이가 낮은 상단 영역에 맞춰 안내·로그인 가로 배치 */
html body #mp-before-board
.mp-before-photos[data-mp-layout="vertical"]
.mp-before-login-cover__content {
    display: flex;
    align-items: center;
    justify-content: center;

    gap: 18px;

    width: 100%;
    max-width: none;
}

html body #mp-before-board
.mp-before-photos[data-mp-layout="vertical"]
.mp-before-login-cover__icon,
html body #mp-before-board
.mp-before-photos[data-mp-layout="vertical"]
.mp-before-login-cover__description {
    display: none;
}

html body #mp-before-board
.mp-before-photos[data-mp-layout="vertical"]
.mp-before-login-cover__title {
    margin: 0;

    font-size: 15px !important;
    line-height: 1.65 !important;
}

html body #mp-before-board
.mp-before-photos[data-mp-layout="vertical"]
.mp-before-login-cover__actions {
    flex: 0 0 auto;
    margin: 0;
}

/* 썸네일도 위쪽 절반만 가림 */
html body #mp-before-board.mp-before-is-guest
.mp-before-thumbnail__image[data-mp-layout="vertical"]::before {
    top: 0;
    right: 0;
    bottom: auto;
    left: 0;

    width: 100%;
    height: 50%;
}

/* 모바일 */
@media (max-width: 767px) {
    html body #mp-before-board
    .mp-before-photos[data-mp-layout="vertical"]
    .mp-before-login-cover__content {
        gap: 10px;
    }

    html body #mp-before-board
    .mp-before-photos[data-mp-layout="vertical"]
    .mp-before-login-cover__title {
        font-size: 12px !important;
        line-height: 1.6 !important;
    }

    html body #mp-before-board
    .mp-before-photos[data-mp-layout="vertical"]
    .mp-before-login-cover__actions > a {
        width: auto;
        min-width: 64px;
        min-height: 30px;

        padding: 5px 10px;

        font-size: 11px !important;
    }
}

/* 전후사진 — 썸네일 테두리가 로그인 덮개 위로 보이도록 */
html body #mp-before-board
.mp-before-thumbnail__image {
    isolation: isolate;
}

html body #mp-before-board
.mp-before-thumbnail__image::after {
    z-index: 3;
    pointer-events: none;
}

/* 선택된 썸네일 — 테두리 2px → 3px */
html body #mp-before-board
.mp-before-thumbnail[aria-pressed="true"]
.mp-before-thumbnail__image::after {
    border-width: 3px;
    border-style: solid;
    border-color: var(--mp-before-accent);
}

/* 모바일 전후사진 — 사진 아래 문구 축소 */
@media (max-width: 767px) {
    html body main#main-content
    #mp-before-board .mp-before-thumbnail__title {
        margin-top: 7px !important;
        font-size: 12px !important;
        font-weight: 300 !important;
        line-height: 1.65 !important;
        letter-spacing: -0.015em !important;
    }
}
