@charset "utf-8";

/*
 * Glory Community Church - Gallery Board Skin
 * Uses the original GNUBOARD gallery PHP structure supplied by the user,
 * while restyling list, view, write and comments for the Glory theme.
 */

#bo_gall,
#bo_v,
#bo_w,
#bo_vc,
#bo_vc_w {
    --gg-primary: #173e70;
    --gg-primary-dark: #0d294c;
    --gg-gold: #c9a45c;
    --gg-text: #374151;
    --gg-muted: #6b7280;
    --gg-line: #e5e7eb;
    --gg-soft: #f5f8fc;
    --gg-white: #ffffff;
    color: var(--gg-text);
    font-family: "Noto Sans KR", sans-serif;
    box-sizing: border-box;
}

#bo_gall *,
#bo_v *,
#bo_w *,
#bo_vc *,
#bo_vc_w * {
    box-sizing: border-box;
}

#bo_gall a,
#bo_v a,
#bo_w a,
#bo_vc a,
#bo_vc_w a {
    color: inherit;
    text-decoration: none;
}

.sound_only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0,0,0,0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* Common buttons */
.btn,
.btn_submit,
.btn_b01,
.btn_b02,
.btn_b03,
.btn_admin,
.btn_cancel,
.btn_frmline,
#bo_gall button,
#bo_v button,
#bo_w button,
#bo_vc button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 15px;
    border: 1px solid var(--gg-primary);
    border-radius: 7px;
    background: var(--gg-primary);
    color: #fff !important;
    font: inherit;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: .2s ease;
}

.btn:hover,
.btn_submit:hover,
.btn_b01:hover,
.btn_b02:hover,
.btn_b03:hover,
.btn_admin:hover,
.btn_cancel:hover,
.btn_frmline:hover,
#bo_gall button:hover,
#bo_v button:hover,
#bo_w button:hover,
#bo_vc button:hover {
    background: var(--gg-primary-dark);
    border-color: var(--gg-primary-dark);
}

.btn_cancel,
.btn_b01 {
    background: #fff;
    color: var(--gg-primary) !important;
    border-color: #ccd7e5;
}

/* Categories */
#bo_cate {
    margin: 0 0 26px;
}

#bo_cate h2 {
    position: absolute;
    overflow: hidden;
    width: 1px;
    height: 1px;
    clip: rect(0,0,0,0);
}

#bo_cate ul {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

#bo_cate li {
    display: block;
    padding: 0;
}

#bo_cate a {
    display: block;
    padding: 8px 15px;
    border: 1px solid #d8e1ec;
    border-radius: 999px;
    color: var(--gg-primary);
    background: #fff;
    font-size: 13px;
    font-weight: 700;
}

#bo_cate a:hover,
#bo_cate #bo_cate_on {
    color: #fff;
    background: var(--gg-primary);
    border-color: var(--gg-primary);
}

/* Gallery toolbar */
#bo_btn_top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin: 0 0 22px;
}

#bo_list_total {
    color: var(--gg-muted);
    font-size: 14px;
}

.btn_bo_user,
.btn_bo_adm {
    display: flex;
    align-items: center;
    gap: 7px;
    float: none;
    margin: 0;
    padding: 0;
    list-style: none;
}

.btn_bo_user li,
.btn_bo_adm li {
    position: relative;
    float: none;
    width: auto;
    margin: 0;
    background: transparent;
}

.btn_bo_user .btn,
.btn_bo_adm .btn {
    width: 40px;
    height: 40px;
    min-height: 40px;
    padding: 0;
}

.more_opt {
    display: none;
    position: absolute;
    top: 46px;
    right: 0;
    min-width: 130px;
    z-index: 1000;
    padding: 7px;
    background: #fff;
    border: 1px solid var(--gg-line);
    border-radius: 9px;
    box-shadow: 0 12px 30px rgba(13,41,76,.14);
}

.more_opt li {
    width: 100%;
    padding: 0;
    border: 0;
}

.more_opt li a,
.more_opt li button {
    display: flex;
    width: 100%;
    min-height: 38px;
    justify-content: space-between;
    padding: 0 10px;
    color: var(--gg-text) !important;
    background: #fff;
    border: 0;
}

.more_opt li a:hover,
.more_opt li button:hover {
    color: var(--gg-primary) !important;
    background: var(--gg-soft);
}

/* Admin checkbox */
.selec_chk {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.chk_box {
    position: relative;
}

.chk_box label {
    position: relative;
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding-left: 28px;
    color: var(--gg-muted);
    cursor: pointer;
}

.chk_box label span {
    position: absolute;
    left: 0;
    top: 50%;
    width: 18px;
    height: 18px;
    transform: translateY(-50%);
    background: #fff;
    border: 1px solid #cfd8e4;
    border-radius: 4px;
}

.chk_box input:checked + label span {
    background: var(--gg-primary);
    border-color: var(--gg-primary);
}

.chk_box input:checked + label span::after {
    content: "✓";
    position: absolute;
    left: 3px;
    top: -1px;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
}

#gall_allchk {
    margin-bottom: 15px;
}

/* Gallery grid */
#bo_gall #gall_ul {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 26px;
    margin: 0;
    padding: 0;
    list-style: none;
}

#bo_gall .gall_li {
    width: auto !important;
    float: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

#bo_gall .box_clear {
    clear: none;
}

#bo_gall .gall_box {
    position: relative;
    height: 100%;
    margin: 0;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--gg-line);
    border-radius: 14px;
    box-shadow: 0 12px 32px rgba(13,41,76,.08);
    transition: transform .2s ease, box-shadow .2s ease;
}

#bo_gall .gall_box:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 42px rgba(13,41,76,.13);
}

#bo_gall .gall_chk {
    position: absolute;
    top: 9px;
    left: 9px;
    z-index: 5;
    padding: 0;
}

#bo_gall .gall_con {
    height: 100%;
}

#bo_gall .gall_img {
    position: relative;
    height: 230px !important;
    max-height: none !important;
    overflow: hidden;
    background: #eef2f7;
    border: 0;
}

#bo_gall .gall_img a,
#bo_gall .gall_img .no_image,
#bo_gall .gall_img .is_notice {
    display: flex;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
}

#bo_gall .gall_img img,
#bo_gall .gall_img video {
    width: 100%;
    height: 100% !important;
    max-width: none;
    object-fit: cover;
    transition: transform .35s ease;
}

#bo_gall .gall_box:hover .gall_img img {
    transform: scale(1.045);
}

#bo_gall .no_image {
    color: #98a4b3;
    background: linear-gradient(135deg, #edf2f7, #f8fafc);
    font-size: 13px;
    text-transform: uppercase;
}

#bo_gall .is_notice {
    color: var(--gg-primary);
    background: #edf3fa;
    font-weight: 700;
}

#bo_gall .gall_text_href {
    min-height: 142px;
    margin: 0;
    padding: 20px 20px 10px;
}

#bo_gall .bo_cate_link {
    display: inline-flex;
    margin-bottom: 9px;
    padding: 4px 8px;
    color: #7a5516;
    background: #fff5dc;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700 !important;
}

#bo_gall .bo_tit {
    display: block;
    overflow: hidden;
    color: var(--gg-primary-dark);
    font-size: 17px;
    font-weight: 700;
    line-height: 1.55;
    text-overflow: ellipsis;
    white-space: nowrap;
}

#bo_gall .bo_cnt {
    display: -webkit-box;
    overflow: hidden;
    margin-top: 8px;
    color: var(--gg-muted);
    font-size: 13px;
    line-height: 1.65;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

#bo_gall .cnt_cmt,
#bo_gall .new_icon,
#bo_gall .hot_icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    margin-left: 4px;
    padding: 0 5px;
    border-radius: 5px;
    font-size: 10px;
    vertical-align: middle;
}

#bo_gall .cnt_cmt {
    color: var(--gg-primary);
    background: #eaf0f8;
}

#bo_gall .new_icon {
    color: #fff;
    background: var(--gg-gold);
}

#bo_gall .gall_info {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    padding: 0 20px 18px;
    color: var(--gg-muted);
    font-size: 12px;
    line-height: 1.5;
}

#bo_gall .gall_info .gall_date,
#bo_gall .gall_info .gall_view {
    margin: 0;
}

#bo_gall .gall_option {
    position: absolute;
    top: 12px;
    right: 12px;
}

#bo_gall .gall_option strong {
    display: inline-flex;
    padding: 5px 9px;
    background: rgba(255,255,255,.94);
    border-radius: 999px;
    box-shadow: 0 4px 15px rgba(0,0,0,.13);
    font-size: 11px;
}

#bo_gall li.empty_list {
    grid-column: 1 / -1;
    padding: 70px 20px;
    text-align: center;
    background: #fff;
    border: 1px solid var(--gg-line);
    border-radius: 12px;
    color: var(--gg-muted);
}

.bo_fx {
    float: none;
    display: flex;
    justify-content: flex-end;
    margin: 22px 0 0;
}

/* Search modal */
.bo_sch_wrap {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(13,41,76,.55);
}

.bo_sch {
    position: absolute;
    top: 50%;
    left: 50%;
    width: min(calc(100% - 32px), 430px);
    padding: 28px;
    transform: translate(-50%, -50%);
    background: #fff;
    border: 0;
    border-radius: 14px;
    box-shadow: 0 24px 70px rgba(0,0,0,.24);
}

.bo_sch h3 {
    margin: 0 0 18px;
    color: var(--gg-primary-dark);
    font-size: 22px;
}

.bo_sch form {
    display: grid;
    gap: 9px;
}

.bo_sch select,
.bo_sch input {
    width: 100%;
    min-height: 46px;
    padding: 0 13px;
    border: 1px solid #d5dee9;
    border-radius: 7px;
    background: #fff;
    font: inherit;
    outline: none;
}

.bo_sch select:focus,
.bo_sch input:focus {
    border-color: var(--gg-primary);
    box-shadow: 0 0 0 4px rgba(23,62,112,.10);
}

.bo_sch .bo_sch_cls {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 36px;
    min-height: 36px;
    padding: 0;
}

/* View */
#bo_v {
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--gg-line);
    border-radius: 14px;
    box-shadow: 0 14px 40px rgba(13,41,76,.08);
}

#bo_v > header {
    padding: 30px 32px 22px;
}

#bo_v_title {
    margin: 0;
    color: var(--gg-primary-dark);
    font-size: clamp(25px, 4vw, 36px);
    line-height: 1.4;
}

#bo_v_title .bo_v_cate {
    display: inline-flex;
    margin-right: 8px;
    padding: 5px 10px;
    color: #7a5516;
    background: #fff5dc;
    border-radius: 999px;
    font-size: 12px;
    vertical-align: middle;
}

#bo_v_info {
    position: relative;
    padding: 0 32px 24px;
    border-bottom: 1px solid var(--gg-line);
}

#bo_v_info > h2 {
    position: absolute;
    overflow: hidden;
    width: 1px;
    height: 1px;
}

.profile_info {
    display: flex;
    align-items: center;
    gap: 13px;
}

.pf_img img {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
}

.profile_info_ct {
    color: var(--gg-muted);
    font-size: 13px;
    line-height: 1.7;
}

#bo_v_top {
    position: absolute;
    right: 32px;
    bottom: 22px;
}

#bo_v_top .btn_bo_user {
    display: flex;
}

#bo_v_atc {
    padding: 34px 32px 44px;
}

#bo_v_atc_title {
    position: absolute;
    overflow: hidden;
    width: 1px;
    height: 1px;
}

#bo_v_share {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 20px;
}

#bo_v_img {
    display: grid;
    gap: 22px;
    margin-bottom: 30px;
}

#bo_v_img img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 0 auto;
    border-radius: 10px;
    box-shadow: 0 10px 28px rgba(13,41,76,.10);
}

#bo_v_con {
    color: var(--gg-text);
    font-size: 16px;
    line-height: 1.9;
    word-break: break-word;
}

#bo_v_con img {
    max-width: 100%;
    height: auto;
}

#bo_v_act {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 35px 0 0;
}

#bo_v_act a,
#bo_v_act span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 15px;
    border: 1px solid var(--gg-line);
    border-radius: 999px;
    background: #fff;
}

#bo_v_file,
#bo_v_link {
    margin: 0 32px 24px;
    padding: 22px;
    background: var(--gg-soft);
    border: 1px solid var(--gg-line);
    border-radius: 10px;
}

#bo_v_file h2,
#bo_v_link h2 {
    margin: 0 0 13px;
    color: var(--gg-primary-dark);
    font-size: 17px;
}

#bo_v_file ul,
#bo_v_link ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

#bo_v_file li,
#bo_v_link li {
    padding: 8px 0;
    border-bottom: 1px solid var(--gg-line);
    font-size: 14px;
}

#bo_v_file li:last-child,
#bo_v_link li:last-child {
    border-bottom: 0;
}

.bo_v_nb {
    margin: 0;
    padding: 0;
    border-top: 1px solid var(--gg-line);
    list-style: none;
}

.bo_v_nb li {
    display: grid;
    grid-template-columns: 85px minmax(0,1fr) auto;
    gap: 12px;
    padding: 15px 32px;
    border-bottom: 1px solid var(--gg-line);
    font-size: 14px;
}

.bo_v_nb .nb_tit {
    color: var(--gg-primary);
    font-weight: 700;
}

#bo_v_bot {
    padding: 22px 32px;
}

/* Write */
#bo_w {
    overflow: hidden;
    padding: 30px;
    background: #fff;
    border: 1px solid var(--gg-line);
    border-radius: 14px;
    box-shadow: 0 14px 40px rgba(13,41,76,.08);
}

#bo_w form {
    width: 100% !important;
}

.write_div {
    margin-bottom: 18px;
}

.frm_input,
.frm_file,
#bo_w select,
#bo_w textarea,
#bo_w input[type="text"],
#bo_w input[type="password"],
#bo_w input[type="email"],
#bo_w input[type="url"] {
    width: 100%;
    min-height: 46px;
    padding: 0 13px;
    border: 1px solid #d5dee9;
    border-radius: 7px;
    background: #fff;
    font: inherit;
    outline: none;
}

#bo_w textarea {
    min-height: 300px;
    padding-top: 13px;
}

.frm_input:focus,
.frm_file:focus,
#bo_w select:focus,
#bo_w textarea:focus,
#bo_w input:focus {
    border-color: var(--gg-primary);
    box-shadow: 0 0 0 4px rgba(23,62,112,.10);
}

.full_input {
    width: 100%;
}

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

.bo_w_info {
    display: grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: 10px;
}

.bo_v_option {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin: 0;
    padding: 12px 15px;
    background: var(--gg-soft);
    border-radius: 8px;
    list-style: none;
}

.bo_w_flie {
    padding: 16px;
    background: var(--gg-soft);
    border: 1px solid var(--gg-line);
    border-radius: 9px;
}

.file_wr {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 9px;
}

.file_wr .lb_icon {
    color: var(--gg-primary);
    font-size: 18px;
}

.file_del {
    display: block;
    margin-top: 8px;
    color: var(--gg-muted);
    font-size: 13px;
}

#char_count_desc,
#char_count_wrap {
    color: var(--gg-muted);
    font-size: 12px;
}

.btn_confirm {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 26px;
}

/* Comments */
.cmt_btn {
    width: 100%;
    margin-top: 28px;
    justify-content: space-between !important;
}

#bo_vc,
#bo_vc_w {
    margin-top: 20px;
    padding: 25px;
    background: #fff;
    border: 1px solid var(--gg-line);
    border-radius: 12px;
}

#bo_vc > h2,
#bo_vc_w > h2 {
    margin: 0 0 18px;
    color: var(--gg-primary-dark);
    font-size: 20px;
}

#bo_vc article {
    position: relative;
    display: flex;
    gap: 13px;
    padding: 20px 0;
    border-bottom: 1px solid var(--gg-line);
}

#bo_vc article:last-of-type {
    border-bottom: 0;
}

#bo_vc .cm_wrap {
    flex: 1;
    min-width: 0;
}

#bo_vc header {
    color: var(--gg-muted);
    font-size: 13px;
}

#bo_vc .cmt_contents {
    margin-top: 8px;
    line-height: 1.75;
}

#bo_vc .bo_vl_opt {
    position: relative;
}

#bo_vc .bo_vc_act {
    display: none;
    position: absolute;
    top: 40px;
    right: 0;
    z-index: 20;
    min-width: 95px;
    margin: 0;
    padding: 7px;
    background: #fff;
    border: 1px solid var(--gg-line);
    border-radius: 8px;
    list-style: none;
    box-shadow: 0 10px 24px rgba(13,41,76,.12);
}

#bo_vc .bo_vc_act a {
    display: block;
    padding: 7px 9px;
}

#bo_vc_empty {
    color: var(--gg-muted);
    text-align: center;
}

#bo_vc_w textarea {
    width: 100%;
    min-height: 120px;
    padding: 13px;
    border: 1px solid #d5dee9;
    border-radius: 8px;
    font: inherit;
    resize: vertical;
}

.bo_vc_w_wr {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 12px;
}

.bo_vc_w_info {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    flex: 1;
}

.bo_vc_w_info .frm_input {
    width: auto;
    min-width: 170px;
}

.bo_vc_w .btn_confirm {
    margin: 0;
}

/* Pagination */
.pg_wrap {
    display: block;
    margin: 28px 0 0;
    text-align: center;
}

.pg_page,
.pg_current {
    display: inline-flex;
    min-width: 36px;
    height: 36px;
    align-items: center;
    justify-content: center;
    margin: 2px;
    border: 1px solid var(--gg-line);
    border-radius: 6px;
    background: #fff;
    color: var(--gg-text);
}

.pg_current {
    color: #fff;
    background: var(--gg-primary);
    border-color: var(--gg-primary);
}

/* Tablet */
@media (max-width: 980px) {
    #bo_gall #gall_ul {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Mobile */
@media (max-width: 680px) {
    #bo_btn_top {
        align-items: stretch;
        flex-direction: column;
    }

    .btn_bo_user,
    .btn_bo_adm {
        width: 100%;
        justify-content: flex-end;
    }

    #bo_gall #gall_ul {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    #bo_gall .gall_img {
        height: 240px !important;
    }

    #bo_gall .gall_text_href {
        min-height: auto;
        padding: 18px 17px 9px;
    }

    #bo_gall .gall_info {
        padding: 0 17px 16px;
    }

    #bo_v > header,
    #bo_v_info,
    #bo_v_atc,
    #bo_v_bot {
        padding-left: 20px;
        padding-right: 20px;
    }

    #bo_v_top {
        position: static;
        margin-top: 16px;
    }

    #bo_v_top .btn_bo_user {
        justify-content: flex-start;
    }

    #bo_v_file,
    #bo_v_link {
        margin-left: 20px;
        margin-right: 20px;
    }

    .bo_v_nb li {
        grid-template-columns: 62px minmax(0,1fr);
        padding: 14px 20px;
    }

    .bo_v_nb .nb_date {
        display: none;
    }

    #bo_w {
        padding: 22px 17px;
    }

    .bo_w_info {
        grid-template-columns: 1fr;
    }

    .half_input {
        width: 100%;
    }

    .file_wr {
        align-items: flex-start;
        flex-direction: column;
    }

    .btn_confirm {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .bo_vc_w_wr {
        flex-direction: column;
    }

    .bo_vc_w_info {
        flex-direction: column;
    }

    .bo_vc_w_info .frm_input {
        width: 100%;
    }

    #bo_vc article {
        padding-left: 0 !important;
        margin-left: 0 !important;
    }
}

@media (max-width: 420px) {
    #bo_gall .gall_img {
        height: 210px !important;
    }

    #bo_v_title {
        font-size: 23px;
    }

    #bo_v_con {
        font-size: 15px;
    }

    .btn_confirm {
        grid-template-columns: 1fr;
    }
}

/* =========================================================
   Gallery UI corrections
   1. 목록/읽기 상단 아이콘 버튼을 동일한 파란 사각 버튼으로 통일
   2. 임시 저장 버튼의 줄바꿈 방지
   ========================================================= */

/* 목록 상단 및 하단의 관리자·검색·글쓰기·옵션 버튼 */
#bo_gall .btn_bo_user > li > a.btn,
#bo_gall .btn_bo_user > li > button.btn,
#bo_gall .btn_bo_adm > li > a.btn,
#bo_gall .btn_bo_adm > li > button.btn {
    display: inline-flex;
    width: 40px;
    min-width: 40px;
    height: 40px;
    min-height: 40px;
    padding: 0;
    align-items: center;
    justify-content: center;
    color: #fff !important;
    background: var(--gg-primary) !important;
    border: 1px solid var(--gg-primary) !important;
    border-radius: 7px;
}

#bo_gall .btn_bo_user > li > a.btn:hover,
#bo_gall .btn_bo_user > li > button.btn:hover,
#bo_gall .btn_bo_adm > li > a.btn:hover,
#bo_gall .btn_bo_adm > li > button.btn:hover {
    color: #fff !important;
    background: var(--gg-primary-dark) !important;
    border-color: var(--gg-primary-dark) !important;
}

/* 읽기 화면 우상단의 목록·답변·글쓰기·수정/삭제 메뉴 버튼 */
#bo_v_top .btn_bo_user > li > a.btn,
#bo_v_top .btn_bo_user > li > button.btn {
    display: inline-flex;
    width: 40px;
    min-width: 40px;
    height: 40px;
    min-height: 40px;
    padding: 0;
    align-items: center;
    justify-content: center;
    color: #fff !important;
    background: var(--gg-primary) !important;
    border: 1px solid var(--gg-primary) !important;
    border-radius: 7px;
}

#bo_v_top .btn_bo_user > li > a.btn:hover,
#bo_v_top .btn_bo_user > li > button.btn:hover {
    color: #fff !important;
    background: var(--gg-primary-dark) !important;
    border-color: var(--gg-primary-dark) !important;
}

/* 임시 저장 버튼 */
#bo_w #btn_autosave {
    width: auto;
    min-width: 158px;
    height: 42px;
    min-height: 42px;
    padding: 0 15px;
    white-space: nowrap;
    line-height: 1;
}

/* 임시 저장 팝업은 버튼 아래에서 정상 폭으로 표시 */
#bo_w #autosave_wrapper {
    position: relative;
}

#bo_w #autosave_pop {
    display: none;
    position: absolute !important;
    top: 48px;
    right: 0;
    z-index: 1000;
    width: min(360px, 100%);
    max-height: 260px;
    overflow-y: auto;
    background: #fff;
    border: 1px solid var(--gg-line);
    border-radius: 9px;
    box-shadow: 0 14px 36px rgba(13,41,76,.16);
}

#bo_w #autosave_pop strong {
    display: block;
    padding: 13px 15px;
    color: var(--gg-primary-dark);
    border-bottom: 1px solid var(--gg-line);
}

#bo_w #autosave_pop ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

#bo_w #autosave_pop .autosave_close {
    width: auto;
    min-width: 70px;
    margin: 10px;
    white-space: nowrap;
}

@media (max-width: 680px) {
    #bo_w #btn_autosave {
        min-width: 150px;
        max-width: 100%;
        font-size: 13px;
    }

    #bo_w #autosave_pop {
        left: 0;
        right: auto;
        width: min(360px, calc(100vw - 70px));
    }
}

