@charset "utf-8";

/* 인덕원스노우안과 둘러보기 : 목록 / 상세 / 작성 */
.snow_gallery {
    --tour-ink: #233f50;
    --tour-blue: #3287c5;
    --tour-navy: #19364d;
    --tour-muted: #708b9c;
    --tour-line: #d9e7f0;
    --tour-light: #f0f8fd;
    width: 100%;
    max-width: 1600px;
    min-width: 0;
    margin: 0 auto;
    color: var(--tour-ink);
    font-family: 'Pretendard', sans-serif;
    font-size: 18px;
    line-height: 1.75;
    letter-spacing: -0.02em;
    box-sizing: border-box;
}

.snow_gallery *,
.snow_gallery *::before,
.snow_gallery *::after {
    box-sizing: border-box;
}

.snow_gallery :where(h2, h3, p, figure, ul) {
    margin: 0;
}

.snow_gallery :where(ul) {
    padding: 0;
    list-style: none;
}

.snow_gallery a {
    color: inherit;
    text-decoration: none;
}

.snow_gallery .snow_gallery_btn,
.snow_gallery .snow_gallery_textbtn,
.snow_gallery input.frm_input,
.snow_gallery select#ca_name,
.snow_gallery textarea#wr_content {
    font-family: inherit;
}

.snow_gallery button,
.snow_gallery input[type="checkbox"] {
    cursor: pointer;
}

.snow_gallery input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin: 0;
    accent-color: var(--tour-blue);
    vertical-align: middle;
}

.snow_gallery a:focus-visible,
.snow_gallery button:focus-visible,
.snow_gallery input:focus-visible,
.snow_gallery select:focus-visible,
.snow_gallery textarea:focus-visible {
    outline: 2px solid var(--tour-blue);
    outline-offset: 4px;
}

.snow_gallery_intro {
    padding: 0px 20px 85px;
    text-align: center;
}

.snow_gallery .snow_gallery_en {
    color: var(--tour-blue);
    font-family: 'Marcellus', serif;
    font-size: 20px;
    letter-spacing: 0;
}

.snow_gallery_intro h2 {
    margin-top: 22px;
    font-size: clamp(32px, 3.2vw, 50px);
    font-weight: 700;
    line-height: 1.3;
    word-break: keep-all;
}

.snow_gallery_intro h2 em {
    color: var(--tour-blue);
    font-style: normal;
}

.snow_gallery_intro > p:last-child {
    margin-top: 28px;
    color: var(--tour-muted);
    word-break: keep-all;
}

.snow_gallery_categories ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 40px;
}

.snow_gallery_categories a {
    display: block;
    padding: 10px 24px;
    border: 1px solid var(--tour-line);
    border-radius: 30px;
    font-size: 16px;
}

.snow_gallery_categories #bo_cate_on {
    border-color: var(--tour-navy);
    background: var(--tour-navy);
    color: #fff;
}

.snow_gallery_tools,
.snow_gallery_select,
.snow_gallery_actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.snow_gallery_tools {
    justify-content: space-between;
    margin-bottom: 28px;
}

.snow_gallery_select {
    font-size: 14px;
    color: var(--tour-muted);
}

.snow_gallery_select label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.snow_gallery .snow_gallery_textbtn {
    position: static;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    height: auto;
    min-height: 36px;
    padding: 6px 12px;
    border: 1px solid var(--tour-line);
    border-radius: 6px;
    background: #fff;
    color: var(--tour-ink);
    font-size: 14px;
    line-height: 1.4;
    white-space: nowrap;
}

.snow_gallery .snow_gallery_btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    min-height: 46px;
    padding: 10px 22px;
    border: 1px solid var(--tour-line);
    border-radius: 6px;
    background: #fff;
    color: var(--tour-ink);
    font-size: 15px;
    font-weight: 500;
    transition: color .25s, background-color .25s, border-color .25s;
}

.snow_gallery .snow_gallery_btn.is_primary {
    border-color: var(--tour-navy);
    background: var(--tour-navy);
    color: #fff;
}

.snow_gallery .snow_gallery_btn:hover {
    border-color: var(--tour-blue);
    background: var(--tour-blue);
    color: #fff;
}

.snow_gallery_grid {
    display: flex;
    flex-wrap: wrap;
    gap: 54px 32px;
}

.snow_gallery_card {
    position: relative;
    width: calc((100% - 64px) / 3);
    min-width: 0;
}

.snow_gallery_card_link {
    display: block;
}

.snow_gallery_check {
    position: absolute;
    z-index: 2;
    top: 18px;
    left: 18px;
    display: flex;
    padding: 7px;
    border-radius: 5px;
    background: #fff;
    line-height: 1;
}

.snow_gallery_image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    border-radius: 24px;
    background: var(--tour-light);
}

.snow_gallery_image > img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .6s ease;
}

.snow_gallery_open {
    position: absolute;
    right: 20px;
    bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(255, 255, 255, .65);
    border-radius: 50%;
    background: rgba(255, 255, 255, .92);
    color: var(--tour-navy);
    font-size: 24px;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity .3s, transform .3s;
}

.snow_gallery_card_link:hover img {
    transform: scale(1.045);
}

.snow_gallery_card_link:hover .snow_gallery_open,
.snow_gallery_card_link:focus-visible .snow_gallery_open {
    opacity: 1;
    transform: translateY(0);
}

.snow_gallery_card h3 {
    margin-top: 22px;
    padding: 0 4px;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.45;
    overflow-wrap: anywhere;
    transition: color .25s;
}

.snow_gallery_card_link:hover h3 {
    color: var(--tour-blue);
}

.snow_gallery_placeholder {
    display: flex;
    height: 100%;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: #88b8d7;
    font-family: 'Marcellus', serif;
    font-size: 20px;
}

.snow_gallery_placeholder > span:first-child {
    font-size: 54px;
    line-height: 1;
}

.snow_gallery_empty {
    width: 100%;
    padding: 100px 20px;
    border-top: 1px solid var(--tour-line);
    border-bottom: 1px solid var(--tour-line);
    color: var(--tour-muted);
    text-align: center;
}

.snow_gallery_paging .pg_wrap {
    float: none;
    margin: 60px 0 0;
    text-align: center;
}

.snow_gallery_paging .pg {
    display: inline-flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}

.snow_gallery_paging :is(.pg_page, .pg_current) {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    float: none;
    min-width: 42px;
    height: 42px;
    margin: 0;
    padding: 0 10px;
    border: 1px solid var(--tour-line);
    border-radius: 50%;
    background: #fff;
    color: var(--tour-muted);
    font-size: 15px;
    line-height: 1;
}

.snow_gallery_paging .pg_current {
    border-color: var(--tour-navy);
    background: var(--tour-navy);
    color: #fff;
}

.snow_gallery_paging :is(.pg_start, .pg_prev, .pg_next, .pg_end) {
    width: auto;
    min-width: 42px;
    padding: 0 13px;
    border-radius: 24px;
    text-indent: 0;
    font-size: 13px;
}

.snow_gallery_search {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    width: min(100%, 480px);
    margin: 40px auto 0;
    padding: 10px 0;
    border-bottom: 1px solid var(--tour-line);
    font-size: 15px;
}

.snow_gallery_search input[type="search"] {
    flex: 1;
    min-width: 0;
    height: 40px;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: var(--tour-ink);
}

.snow_gallery_search button {
    flex-shrink: 0;
    padding: 6px 12px;
    border: 0;
    background: transparent;
    color: var(--tour-blue);
    font-weight: 600;
}

.snow_gallery_search > a {
    flex-shrink: 0;
    font-size: 13px;
}

/* 상세 : 제목 / 첨부 이미지 / 본문 */
.snow_gallery_view_head {
    padding: 0px 20px 50px;
    border-bottom: 1px solid var(--tour-line);
    text-align: center;
}

.snow_gallery_view_head h2 {
    font-size: clamp(28px, 3vw, 42px);
    font-weight: 700;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.snow_gallery_view_body {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 0;
}

.snow_gallery_view_images {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 28px;
}

.snow_gallery_view_images:empty {
    display: none;
}

.snow_gallery_view_images a {
    display: block;
    max-width: 100%;
}

.snow_gallery_view_images img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 0 auto;
    border-radius: 20px;
}

.snow_gallery #bo_v_con.snow_gallery_view_content {
    min-height: 0;
    margin: 0;
    color: var(--tour-ink);
    font-size: 18px;
    line-height: 1.85;
    overflow-wrap: anywhere;
}

.snow_gallery_view_images:not(:empty) + .snow_gallery_view_content {
    padding-top: 38px;
}

.snow_gallery_view_content img,
.snow_gallery_view_content iframe,
.snow_gallery_view_content video {
    max-width: 100%;
    display: block;
    margin: 0 auto;
}

.snow_gallery_view_content img {
    height: auto;
}

.snow_gallery_view_content table {
    max-width: 100%;
}

.snow_gallery_view_bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    padding-top: 28px;
    border-top: 1px solid var(--tour-line);
}

/* 사진 등록 / 수정 : 기존 에디터와 첨부 기능 유지 */
.snow_gallery_write_head {
    padding: 70px 0 42px;
}

.snow_gallery_write_head h2 {
    margin-top: 12px;
    font-size: 36px;
    font-weight: 700;
    line-height: 1.35;
}

.snow_gallery_write_head > p:last-child {
    margin-top: 16px;
    color: var(--tour-muted);
}

.snow_gallery_write #fwrite {
    width: 100%;
    max-width: 100%;
}

.snow_gallery_write .write_div {
    margin-bottom: 20px;
}

.snow_gallery_write :is(input.frm_input, select#ca_name, textarea#wr_content) {
    max-width: 100%;
    padding: 14px 18px;
    border: 1px solid var(--tour-line);
    border-radius: 8px;
    background: #fff;
    color: var(--tour-ink);
    font-size: 16px;
}

.snow_gallery_write :is(.full_input, #wr_subject, #wr_content) {
    width: 100%;
}

.snow_gallery_write .half_input {
    width: calc(50% - 8px);
}

.snow_gallery_write .bo_w_info {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.snow_gallery_write .bo_v_option {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    font-size: 15px;
}

.snow_gallery_write #wr_content {
    min-height: 300px;
}

.snow_gallery_write .bo_w_flie {
    padding: 22px;
    border: 1px solid var(--tour-line);
    border-radius: 10px;
    background: var(--tour-light);
}

.snow_gallery_write .file_wr {
    display: flex;
    align-items: center;
    gap: 12px;
}

.snow_gallery_write .file_wr:last-child {
    margin-bottom: 0;
}

.snow_gallery_write .frm_file {
    width: 100%;
    min-width: 0;
    font-size: 14px;
}

.snow_gallery_write .file_del {
    display: block;
    margin-top: 14px;
    font-size: 14px;
    overflow-wrap: anywhere;
}

.snow_gallery_write :is(#char_count_desc, #char_count_wrap) {
    margin: 12px 0;
    color: var(--tour-muted);
    font-size: 14px;
}

.snow_gallery_write .btn_confirm {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 36px;
}

.snow_gallery_write :is(.btn_cancel, .btn_submit, .btn_frmline) {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 12px 26px;
    border: 1px solid var(--tour-line);
    border-radius: 6px;
    background: #fff;
    color: var(--tour-ink);
    font-size: 15px;
}

.snow_gallery_write .btn_submit {
    border-color: var(--tour-navy);
    background: var(--tour-navy);
    color: #fff;
}

.snow_gallery_write #autosave_wrapper {
    position: relative;
}

/* 제목 입력 아래에 별도 행으로 배치: 테마의 절대좌표/고정 높이 해제 */
#bo_w.snow_gallery_write #btn_autosave {
    position: static;
    float: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-wrap: nowrap;
    gap: 4px;
    width: auto;
    max-width: 100%;
    height: auto;
    min-height: 44px;
    margin: 12px 0 0;
    padding: 10px 16px;
    border: 1px solid var(--tour-line);
    border-radius: 6px;
    background: var(--tour-light);
    color: var(--tour-ink);
    font-family: inherit;
    font-size: 14px;
    line-height: 1.5;
    white-space: nowrap;
    text-indent: 0;
    transform: none;
}
#bo_w.snow_gallery_write #btn_autosave span {
    display: inline;
    position: static;
    width: auto;
    height: auto;
    margin: 0;
    padding: 0;
    background: transparent;
    color: inherit;
    font: inherit;
}
#bo_w.snow_gallery_write .btn_cke_sc {
    position: static;
    float: none;
    display: block;
    width: auto;
    height: auto;
    min-height: 34px;
    margin: 0 0 10px auto;
    padding: 6px 12px;
    border: 1px solid var(--tour-line);
    border-radius: 5px;
    background: var(--tour-light);
    color: var(--tour-ink);
    font-family: inherit;
    font-size: 13px;
    line-height: 1.5;
    white-space: nowrap;
}
#bo_w.snow_gallery_write .btn_cke_sc_close {
    width: auto;
    height: auto;
    padding: 5px 10px;
    font-size: 13px;
    line-height: 1.5;
}
#bo_w.snow_gallery_write .btn_confirm :is(.btn_cancel, .btn_submit) {
    position: static;
    float: none;
    width: auto;
    height: auto;
    min-width: 120px;
    min-height: 48px;
    font-family: inherit;
    line-height: 1.5;
    white-space: nowrap;
}

.snow_gallery_write #autosave_pop {
    display: none;
    position: absolute;
    z-index: 10;
    top: 100%;
    right: 0;
    width: min(100%, 400px);
    padding: 20px;
    border: 1px solid var(--tour-line);
    border-radius: 10px;
    background: #fff;
}

.snow_gallery_write #autosave_pop li {
    padding: 10px 0;
    border-bottom: 1px solid var(--tour-line);
    font-size: 14px;
}

@media (max-width: 1100px) {
    .snow_gallery_grid {
        gap: 40px 24px;
    }

    .snow_gallery_card {
        width: calc((100% - 24px) / 2);
    }
}

@media (max-width: 767px) {
    .snow_gallery {
        width: calc(100% - 40px);
        font-size: 16px;
    }

    /* 테마 컨테이너가 이미 20px 여백을 가진 경우 중복 여백 방지 */
    .snow_container_sub .snow_gallery,
    #container.snow_container_sub .snow_gallery {
        width: 100%;
    }

    .snow_gallery_intro {
        padding: 0 0 50px 0;
    }

    .snow_gallery .snow_gallery_en {
        font-size: 17px;
    }

    .snow_gallery_intro h2 {
        margin-top: 16px;
        font-size: 30px;
    }

    .snow_gallery_intro > p:last-child {
        margin-top: 22px;
    }

    .snow_gallery_tools {
        align-items: flex-start;
        gap: 16px;
    }

    .snow_gallery_tools > .snow_gallery_actions {
        margin-left: auto;
    }

    .snow_gallery .snow_gallery_btn {
        min-height: 42px;
        padding: 9px 14px;
        font-size: 13px;
    }

    .snow_gallery_grid {
        gap: 30px 16px;
    }

    .snow_gallery_card {
        width: calc((100% - 16px) / 2);
    }

    .snow_gallery_image {
        border-radius: 14px;
    }

    .snow_gallery_card h3 {
        margin-top: 14px;
        font-size: 18px;
    }

    .snow_gallery_open {
        right: 10px;
        bottom: 10px;
        width: 30px;
        height: 30px;
        font-size: 18px;
        opacity: 1;
        transform: none;
    }

    .snow_gallery_check {
        top: 10px;
        left: 10px;
        padding: 5px;
    }

    .snow_gallery_placeholder {
        gap: 8px;
        font-size: 14px;
    }

    .snow_gallery_placeholder > span:first-child {
        font-size: 36px;
    }

    .snow_gallery_view_head {
        padding: 0px 0 32px;
    }

    .snow_gallery_view_head h2 {
        font-size: 28px;
    }

    .snow_gallery_view_body {
        padding: 32px 0;
    }

    .snow_gallery_view_images {
        gap: 18px;
    }

    .snow_gallery_view_images img {
        border-radius: 12px;
    }

    .snow_gallery #bo_v_con.snow_gallery_view_content {
        font-size: 16px;
    }

    .snow_gallery_view_images:not(:empty) + .snow_gallery_view_content {
        padding-top: 26px;
    }

    .snow_gallery_write_head {
        padding: 50px 0 30px;
    }

    .snow_gallery_write_head h2 {
        font-size: 28px;
    }

    .snow_gallery_write .half_input {
        width: 100%;
    }

    .snow_gallery_write .bo_w_flie {
        padding: 16px;
    }
}

@media (max-width: 480px) {
    .snow_gallery_grid {
        gap: 30px;
    }

    .snow_gallery_card {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .snow_gallery *,
    .snow_gallery *::before,
    .snow_gallery *::after {
        transition: none;
    }
}
