@charset "utf-8";


/* =========================================================
   GALLERY BOARD
   COMMON
========================================================= */

.gallery_board,
.gallery_write,
.gallery_view,
.gallery_comment,
.gallery_comment_write {
    --gallery-primary: var(--color-primary, #76bc38);
    --gallery-text: #181818;
    --gallery-sub: #666;
    --gallery-light: #999;
    --gallery-border: #e1e1e1;
    --gallery-border-dark: #cfcfcf;
    --gallery-bg: #fff;
    --gallery-gray: #f7f8f7;
    --gallery-gray02: #f2f3f2;

    color: var(--gallery-text);
}

.gallery_board *,
.gallery_write *,
.gallery_view *,
.gallery_comment *,
.gallery_comment_write * {
    box-sizing: border-box;
}


/* =========================================================
   COMMON FORM
========================================================= */

.gallery_write input,
.gallery_write select,
.gallery_write textarea,
.gallery_comment_write input,
.gallery_comment_write textarea,
.gallery_comment_write select {
    font-family: inherit;
}

.gallery_write .frm_input,
.gallery_comment_write .frm_input {
    height: 50px;
    padding: 0 16px;

    border: 1px solid var(--gallery-border);
    border-radius: 4px;

    background: #fff;

    color: var(--gallery-text);

    font-size: 15px;

    outline: none;

    transition:
        border-color .2s ease,
        box-shadow .2s ease;
}

.gallery_write .frm_input:focus,
.gallery_comment_write .frm_input:focus,
.gallery_write select:focus,
.gallery_comment_write select:focus,
.gallery_write textarea:focus,
.gallery_comment_write textarea:focus {
    border-color: var(--gallery-primary);

    box-shadow:
        0 0 0 3px rgba(118,188,56,.08);
}

.gallery_write input::placeholder,
.gallery_write textarea::placeholder,
.gallery_comment_write input::placeholder,
.gallery_comment_write textarea::placeholder {
    color: #aaa;
}


/* =========================================================
   LIST
========================================================= */

#bo_gall.gallery_board {
    position: relative;

    width: 100%;

    padding-top: 75px;
    padding-bottom: 100px;
}


/* =========================================================
   LIST TOP
========================================================= */

.gallery_list_top {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 30px;

    margin-bottom: 35px;

    padding-bottom: 20px;

    border-bottom: 1px solid var(--gallery-text);
}

.gallery_list_count {
    display: flex;
    align-items: baseline;

    gap: 9px;
}

.gallery_list_count > span {
    color: var(--gallery-light);

    font-size: 14px;
    font-weight: 600;

    letter-spacing: .06em;
}

.gallery_list_count > strong {
    color: var(--gallery-text);

    font-size: 18px;
    font-weight: 700;
}

.gallery_list_top_buttons {
    display: flex;
    align-items: center;

    gap: 7px;
}

.gallery_list_btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 94px;
    height: 40px;

    padding: 0 16px;

    border: 1px solid var(--gallery-border-dark);
    border-radius: 3px;

    background: #fff;

    color: #555;

    font-size: 14px;
    font-weight: 500;

    text-decoration: none;

    transition: .25s ease;
}

.gallery_list_btn:hover {
    border-color: var(--gallery-text);

    color: var(--gallery-text);
}

.gallery_list_write {
    border-color: var(--gallery-text);

    background: var(--gallery-text);

    color: #fff;
}

.gallery_list_write:hover {
    border-color: var(--gallery-primary);

    background: var(--gallery-primary);

    color: #fff;
}


/* =========================================================
   LIST CATEGORY
========================================================= */

.gallery_list_category {
    display: flex;
    align-items: center;
    flex-wrap: wrap;

    gap: 8px;

    margin-bottom: 45px;
}

.gallery_list_category a {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 90px;
    height: 42px;

    padding: 0 20px;

    border: 1px solid var(--gallery-border);
    border-radius: 30px;

    background: #fff;

    color: #777;

    font-size: 14px;
    font-weight: 500;

    text-decoration: none;

    transition: .25s ease;
}

.gallery_list_category a:hover,
.gallery_list_category a.is_active {
    border-color: var(--gallery-primary);

    background: var(--gallery-primary);

    color: #fff;
}


/* =========================================================
   LIST ADMIN
========================================================= */

.gallery_list_admin {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;

    margin-bottom: 25px;

    padding: 13px 16px;

    border: 1px solid var(--gallery-border);

    background: #fafafa;
}

.gallery_list_check_all {
    display: inline-flex;
    align-items: center;

    gap: 8px;

    color: #555;

    font-size: 14px;

    cursor: pointer;
}

.gallery_list_check_all input {
    width: 17px;
    height: 17px;

    accent-color: var(--gallery-primary);
}

.gallery_list_admin_buttons {
    display: flex;

    gap: 5px;
}

.gallery_list_admin_buttons button {
    height: 34px;

    padding: 0 12px;

    border: 1px solid var(--gallery-border);
    border-radius: 3px;

    background: #fff;

    color: #666;

    font-size: 14px;

    cursor: pointer;
}

.gallery_list_admin_buttons button:hover {
    border-color: #aaa;

    color: var(--gallery-text);
}


/* =========================================================
   GALLERY GRID
========================================================= */

.gallery_list {
    display: grid;

    /*
     * PHP에서 전달된 관리자 설정 가로폭을
     * 카드 기준 폭으로 사용.
     *
     * 화면이 좁아지면 자동으로 줄어듭니다.
     */
    grid-template-columns:
        repeat(
            auto-fill,
            minmax(
                min(100%, var(--gallery-thumb-width)),
                1fr
            )
        );

    gap: 55px 28px;

    margin: 0;
    padding: 0;

    list-style: none;
}

.gallery_list_item {
    position: relative;

    min-width: 0;

    margin: 0;
    padding: 0;
}

.gallery_list_item_inner {
    position: relative;

    width: 100%;
}


/* =========================================================
   LIST IMAGE
========================================================= */

.gallery_list_image {
    position: relative;

    display: block;

    width: 100%;

    /*
     * 게시판 관리자에서 설정한
     * 갤러리 이미지 가로/세로 비율 사용
     */
    aspect-ratio:
        var(--gallery-thumb-width) /
        var(--gallery-thumb-height);

    overflow: hidden;

    border: 1px solid #ececec;
    /* border-radius:20px; */

    background: var(--gallery-gray);

    text-decoration: none;
}

.gallery_list_image img {
    display: block;

    width: 100%;
    height: 100%;

    margin: 0;

    /*
     * 원본 비율은 유지하면서
     * 프레임 전체를 채움
     */
    object-fit: cover;
    object-position: center;

    transition:
        transform .45s ease,
        opacity .35s ease;
}

.gallery_list_image:hover img {
    transform: scale(1.025);
}


/* =========================================================
   LIST HOVER
========================================================= */

.gallery_list_hover {
    position: absolute;

    inset: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    background: rgba(18,18,18,.30);

    opacity: 0;

    transition: opacity .3s ease;
}

.gallery_list_hover > span {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 66px;
    height: 66px;

    border: 1px solid rgba(255,255,255,.75);
    border-radius: 50%;

    color: #fff;

    font-size: 14px;
    font-weight: 600;

    letter-spacing: .08em;

    transform: translateY(8px);

    transition: transform .3s ease;
}

.gallery_list_image:hover .gallery_list_hover {
    opacity: 1;
}

.gallery_list_image:hover .gallery_list_hover > span {
    transform: translateY(0);
}


/* =========================================================
   NO IMAGE / NOTICE
========================================================= */

.gallery_list_no_image,
.gallery_list_notice {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;

    gap: 7px;

    width: 100%;

    min-height: 260px;

    background: var(--gallery-gray);
}

.gallery_list_no_image strong,
.gallery_list_notice strong {
    color: #aaa;

    font-size: 14px;
    font-weight: 600;

    letter-spacing: .08em;
}

.gallery_list_notice strong {
    color: var(--gallery-primary);
}

.gallery_list_notice em {
    color: #777;

    font-size: 14px;
    font-style: normal;
}


/* =========================================================
   LIST CHECKBOX
========================================================= */

.gallery_list_checkbox {
    position: absolute;

    z-index: 10;

    left: 12px;
    top: 12px;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 32px;
    height: 32px;

    border-radius: 50%;

    background: rgba(255,255,255,.94);

    box-shadow:
        0 2px 10px rgba(0,0,0,.08);

    cursor: pointer;
}

.gallery_list_checkbox input {
    width: 16px;
    height: 16px;

    accent-color: var(--gallery-primary);
}


/* =========================================================
   LIST INFO
========================================================= */

.gallery_list_info {
    padding-top: 19px;
}

.gallery_list_cate {
    display: inline-block;

    margin-bottom: 9px;

    color: var(--gallery-primary);

    font-size: 14px;
    font-weight: 600;

    text-decoration: none;
}

.gallery_list_title {
    display: flex;
    align-items: flex-start;

    gap: 8px;

    color: var(--gallery-text);

    text-decoration: none;
}

.gallery_list_title strong {
    display: block;

    min-width: 0;

    color: var(--gallery-text);

    font-size: 17px;
    font-weight: 600;
    line-height: 1.5;

    letter-spacing: -.025em;

    word-break: keep-all;

    transition: color .2s ease;
}

.gallery_list_title:hover strong {
    color: var(--gallery-primary);
}

.gallery_list_comment {
    flex: 0 0 auto;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 22px;
    height: 22px;

    padding: 0 6px;

    border-radius: 20px;

    background: var(--gallery-gray02);

    color: #888;

    font-size: 14px;
}


/* =========================================================
   LIST EMPTY
========================================================= */

.gallery_list_empty {
    grid-column: 1 / -1;

    padding: 100px 20px;

    border-top: 1px solid var(--gallery-border);
    border-bottom: 1px solid var(--gallery-border);

    color: #999;

    font-size: 15px;

    text-align: center;
}


/* =========================================================
   PAGING
========================================================= */

.gallery_list_paging {
    margin-top: 70px;

    text-align: center;
}

.gallery_list_paging .pg_wrap {
    display: inline-block;
}

.gallery_list_paging .pg {
    display: flex;
    align-items: center;
    justify-content: center;

    gap: 5px;
}

.gallery_list_paging .pg_page,
.gallery_list_paging .pg_current {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 38px;
    height: 38px;

    margin: 0;

    padding: 0 8px;

    border: 1px solid var(--gallery-border);
    border-radius: 50%;

    background: #fff;

    color: #777;

    font-size: 14px;

    text-decoration: none;
}

.gallery_list_paging .pg_current {
    border-color: var(--gallery-primary);

    background: var(--gallery-primary);

    color: #fff;
}

.gallery_list_paging .pg_page:hover {
    border-color: var(--gallery-primary);

    color: var(--gallery-primary);
}


/* =========================================================
   LIST SEARCH
========================================================= */

.gallery_list_search {
    display: flex;
    justify-content: center;

    margin-top: 55px;
}

.gallery_list_search form {
    width: 100%;
    max-width: 540px;
}

.gallery_list_search_inner {
    display: grid;

    grid-template-columns: 130px minmax(0,1fr) 50px;

    border: 1px solid var(--gallery-border);

    background: #fff;
}

.gallery_list_search select,
.gallery_list_search input {
    height: 50px;

    border: 0;

    background: transparent;

    color: #555;

    font-size: 14px;

    outline: none;
}

.gallery_list_search select {
    padding: 0 15px;

    border-right: 1px solid var(--gallery-border);
}

.gallery_list_search input {
    width: 100%;

    padding: 0 16px;
}

.gallery_list_search button {
    position: relative;

    width: 50px;
    height: 50px;

    padding: 0;

    border: 0;

    background: var(--gallery-text);

    cursor: pointer;
}

.gallery_list_search button i {
    position: absolute;

    left: 50%;
    top: 50%;

    width: 15px;
    height: 15px;

    border: 2px solid #fff;
    border-radius: 50%;

    transform:
        translate(-60%,-60%);
}

.gallery_list_search button i:after {
    content: "";

    position: absolute;

    right: -6px;
    bottom: -4px;

    width: 7px;
    height: 2px;

    background: #fff;

    transform: rotate(45deg);
}


/* =========================================================
   WRITE
========================================================= */

#bo_w.gallery_write {
    width: 100%;

    padding-top: 75px;
    padding-bottom: 100px;
}


/* =========================================================
   WRITE HEADER
========================================================= */

.gallery_write_header {
    margin-bottom: 55px;

    padding-bottom: 35px;

    border-bottom: 1px solid var(--gallery-text);
}

.gallery_write_header_en {
    display: block;

    margin-bottom: 15px;

    color: var(--gallery-primary);

    font-size: 14px;
    font-weight: 700;

    letter-spacing: .08em;
}

.gallery_write_header h1 {
    margin: 0;

    color: var(--gallery-text);

    font-size: 34px;
    font-weight: 700;
    line-height: 1.3;

    letter-spacing: -.04em;
}

.gallery_write_header p {
    margin: 15px 0 0;

    color: #777;

    font-size: 15px;
    line-height: 1.7;
}


/* =========================================================
   WRITE FORM
========================================================= */

.gallery_write_form {
    border-top: 1px solid var(--gallery-border-dark);
}

.gallery_write_row {
    display: grid;

    grid-template-columns: 180px minmax(0,1fr);

    min-height: 82px;

    border-bottom: 1px solid var(--gallery-border);
}

.gallery_write_label {
    padding: 27px 25px;

    background: #fafafa;
}

.gallery_write_label label,
.gallery_write_label_text {
    color: #333;

    font-size: 15px;
    font-weight: 600;
}

.gallery_write_label label > span {
    margin-left: 4px;

    color: var(--gallery-primary);

    font-size: 14px;
    font-weight: 500;
}

.gallery_write_label > p {
    margin: 9px 0 0;

    color: #999;

    font-size: 14px;
    line-height: 1.6;

    word-break: keep-all;
}

.gallery_write_field {
    min-width: 0;

    padding: 16px 25px;
}

.gallery_write_field > .frm_input {
    width: 100%;
    max-width: 650px;
}

.gallery_write_subject {
    max-width: 100% !important;
}

.gallery_write_inline {
    display: flex;
    align-items: center;

    gap: 8px;
}

.gallery_write_inline .frm_input {
    width: 50%;
    max-width: 320px;
}

.gallery_write_field select {
    width: 100%;
    max-width: 320px;

    height: 50px;

    padding: 0 42px 0 15px;

    border: 1px solid var(--gallery-border);
    border-radius: 4px;

    background: #fff;

    color: #555;

    font-size: 15px;
}


/* =========================================================
   WRITE OPTION
========================================================= */

.gallery_write_options {
    display: flex;
    align-items: center;
    flex-wrap: wrap;

    gap: 10px 22px;

    min-height: 50px;

    margin: 0;
    padding: 0;

    list-style: none;
}

.gallery_write_check {
    display: flex;
    align-items: center;

    gap: 7px;
}

.gallery_write_check input {
    width: 17px;
    height: 17px;

    accent-color: var(--gallery-primary);
}

.gallery_write_check label {
    color: #555;

    font-size: 14px;

    cursor: pointer;
}


/* =========================================================
   WRITE CONTENT
========================================================= */

.gallery_write_help {
    margin: 0 0 10px;

    color: #888;

    font-size: 14px;
    line-height: 1.6;
}

.gallery_write_editor {
    width: 100%;
}

.gallery_write_editor textarea,
.gallery_write textarea#wr_content {
    width: 100%;

    min-height: 300px;

    padding: 18px;

    border: 1px solid var(--gallery-border);

    color: #333;

    font-size: 15px;
    line-height: 1.7;

    resize: vertical;
}

#char_count_wrap {
    margin-top: 8px;

    color: #999;

    font-size: 14px;

    text-align: right;
}


/* =========================================================
   WRITE FILE
========================================================= */

.gallery_write_filebox {
    display: flex;

    width: 100%;
    max-width: 700px;
}

.gallery_file_name {
    flex: 1;

    min-width: 0;
    height: 50px;

    padding: 0 15px;

    border: 1px solid var(--gallery-border);
    border-right: 0;

    background: #fff;

    color: #777;

    font-size: 14px;

    outline: none;
}

.gallery_write_filebox > label {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 105px;
    height: 50px;

    border: 1px solid var(--gallery-text);

    background: var(--gallery-text);

    color: #fff;

    font-size: 14px;
    font-weight: 500;

    cursor: pointer;

    transition: .2s ease;
}

.gallery_write_filebox > label:hover {
    border-color: var(--gallery-primary);

    background: var(--gallery-primary);
}

.gallery_upload_file {
    position: absolute;

    width: 1px;
    height: 1px;

    overflow: hidden;

    clip: rect(0,0,0,0);

    white-space: nowrap;
}

.gallery_write_file_desc {
    display: block;

    width: 100%;
    max-width: 700px !important;

    margin-top: 8px;
}

.gallery_write_existing {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;

    width: 100%;
    max-width: 700px;

    margin-top: 10px;

    padding: 11px 13px;

    background: var(--gallery-gray);

    color: #777;

    font-size: 14px;
}

.gallery_write_existing strong {
    color: #444;

    font-weight: 500;
}

.gallery_write_existing label {
    flex: 0 0 auto;

    display: flex;
    align-items: center;

    gap: 6px;

    cursor: pointer;
}

.gallery_write_existing input {
    width: 16px;
    height: 16px;

    accent-color: var(--gallery-primary);
}


/* =========================================================
   WRITE BUTTON
========================================================= */

.gallery_write_buttons {
    display: flex;
    align-items: center;
    justify-content: center;

    gap: 8px;

    margin-top: 45px;
}

.gallery_write_cancel,
.gallery_write_submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 130px;
    height: 50px;

    padding: 0 25px;

    border-radius: 3px;

    font-family: inherit;

    font-size: 15px;
    font-weight: 600;

    text-decoration: none;

    cursor: pointer;
}

.gallery_write_cancel {
    border: 1px solid var(--gallery-border-dark);

    background: #fff;

    color: #666;
}

.gallery_write_submit {
    border: 1px solid var(--gallery-text);

    background: var(--gallery-text);

    color: #fff;
}

.gallery_write_submit:hover {
    border-color: var(--gallery-primary);

    background: var(--gallery-primary);
}


/* =========================================================
   VIEW
========================================================= */

#bo_v.gallery_view {
    width: 100%;

    padding-top: 75px;
    padding-bottom: 100px;
}


/* =========================================================
   VIEW HEADER
========================================================= */

.gallery_view_header {
    padding: 0 0 38px;

    border-bottom: 1px solid var(--gallery-text);

    text-align: center;
}

.gallery_view_category {
    display: inline-block;

    margin-bottom: 15px;

    color: var(--gallery-primary);

    font-size: 14px;
    font-weight: 600;
}

.gallery_view_title {
    margin: 0;

    color: var(--gallery-text);

    font-size: clamp(28px,2.5vw,40px);
    font-weight: 700;
    line-height: 1.35;

    letter-spacing: -.04em;

    word-break: keep-all;
}


/* =========================================================
   VIEW ACTION
========================================================= */

.gallery_view_actions {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;

    padding: 18px 0;

    border-bottom: 1px solid var(--gallery-border);
}

.gallery_view_actions_left,
.gallery_view_actions_right {
    display: flex;
    align-items: center;

    gap: 5px;
}

.gallery_view_btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 66px;
    height: 36px;

    padding: 0 12px;

    border-radius: 3px;

    font-size: 14px;
    font-weight: 500;

    text-decoration: none;
}

.gallery_view_btn_line {
    border: 1px solid var(--gallery-border);

    background: #fff;

    color: #666;
}

.gallery_view_btn_primary {
    border: 1px solid var(--gallery-text);

    background: var(--gallery-text);

    color: #fff;
}

.gallery_view_btn_delete {
    border: 1px solid #e4d2d2;

    background: #fff;

    color: #a65d5d;
}


/* =========================================================
   VIEW MANAGE
========================================================= */

.gallery_view_manage {
    position: relative;
}

.gallery_view_manage_btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 6px;

    height: 36px;

    padding: 0 12px;

    border: 1px solid var(--gallery-border);
    border-radius: 3px;

    background: #fff;

    color: #666;

    font-family: inherit;
    font-size: 14px;

    cursor: pointer;
}

.gallery_view_manage_menu {
    position: absolute;

    z-index: 50;

    right: 0;
    top: calc(100% + 5px);

    display: none;

    width: 90px;

    padding: 5px;

    border: 1px solid var(--gallery-border);

    background: #fff;

    box-shadow:
        0 8px 25px rgba(0,0,0,.08);
}

.gallery_view_manage_menu.is_open {
    display: block;
}

.gallery_view_manage_menu a {
    display: block;

    padding: 8px 10px;

    color: #555;

    font-size: 14px;

    text-decoration: none;
}

.gallery_view_manage_menu a:hover {
    background: var(--gallery-gray);

    color: var(--gallery-primary);
}


/* =========================================================
   VIEW CONTENT
========================================================= */

.gallery_view_content {
    padding: 60px 0 70px;
}

.gallery_view_images {
    display: flex;
    flex-direction: column;
    align-items: center;

    gap: 35px;

    width: 100%;
}

.gallery_view_image {
    width: 100%;

    margin: 0;

    text-align: center;
}

.gallery_view_image img {
    display: block;

    width: auto;
    max-width: 100%;

    height: auto;

    margin: 0 auto;
}

.gallery_view_image figcaption {
    margin-top: 12px;

    color: #888;

    font-size: 14px;
    line-height: 1.6;
}

.gallery_view_body {
    max-width: 1000px;

    margin: 55px auto 0;

    color: #444;

    font-size: 16px;
    line-height: 1.8;

    word-break: keep-all;
}

.gallery_view_body:first-child {
    margin-top: 0;
}

.gallery_view_body img {
    max-width: 100%;
    height: auto;
}

.gallery_view_signature {
    max-width: 1000px;

    margin: 40px auto 0;

    padding-top: 25px;

    border-top: 1px solid var(--gallery-border);

    color: #777;

    font-size: 14px;
    line-height: 1.7;
}


/* =========================================================
   VIEW SECTION
========================================================= */

.gallery_view_section {
    padding: 50px 0;

    border-top: 1px solid var(--gallery-border);
}

.gallery_view_section_title {
    margin-bottom: 25px;
}

.gallery_view_section_title > span {
    display: block;

    margin-bottom: 8px;

    color: var(--gallery-primary);

    font-size: 14px;
    font-weight: 700;

    letter-spacing: .07em;
}

.gallery_view_section_title h2 {
    margin: 0;

    color: var(--gallery-text);

    font-size: 22px;
    font-weight: 600;
}


/* =========================================================
   VIEW FILE
========================================================= */

.gallery_view_files {
    border-top: 1px solid var(--gallery-border);
}

.gallery_view_files > a {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 30px;

    min-height: 72px;

    padding: 14px 18px;

    border-bottom: 1px solid var(--gallery-border);

    color: #555;

    text-decoration: none;

    transition: background .2s ease;
}

.gallery_view_files > a:hover {
    background: var(--gallery-gray);
}

.gallery_view_file_info {
    min-width: 0;
}

.gallery_view_file_info strong {
    display: block;

    overflow: hidden;

    color: #333;

    font-size: 15px;
    font-weight: 500;

    text-overflow: ellipsis;
    white-space: nowrap;
}

.gallery_view_file_info span {
    display: block;

    margin-top: 5px;

    color: #999;

    font-size: 14px;
}

.gallery_view_file_meta {
    flex: 0 0 auto;

    display: flex;
    align-items: center;

    gap: 20px;
}

.gallery_view_file_meta > span {
    color: #999;

    font-size: 14px;
}

.gallery_view_file_meta em {
    color: var(--gallery-primary);

    font-size: 14px;
    font-style: normal;
    font-weight: 600;
}


/* =========================================================
   VIEW LINK
========================================================= */

.gallery_view_links {
    border-top: 1px solid var(--gallery-border);
}

.gallery_view_links > a {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 30px;

    min-height: 64px;

    padding: 12px 18px;

    border-bottom: 1px solid var(--gallery-border);

    color: #555;

    font-size: 14px;

    text-decoration: none;
}

.gallery_view_links > a:hover {
    background: var(--gallery-gray);
}

.gallery_view_links > a > span {
    overflow: hidden;

    text-overflow: ellipsis;
    white-space: nowrap;
}

.gallery_view_links em {
    flex: 0 0 auto;

    color: var(--gallery-primary);

    font-size: 14px;
    font-style: normal;
    font-weight: 600;
}


/* =========================================================
   VIEW PREV NEXT
========================================================= */

.gallery_view_navigation {
    border-top: 1px solid var(--gallery-border);
}

.gallery_view_navigation_item {
    display: grid;

    grid-template-columns: 90px minmax(0,1fr) 30px;

    align-items: center;

    min-height: 70px;

    padding: 0 18px;

    border-bottom: 1px solid var(--gallery-border);

    color: #555;

    text-decoration: none;
}

.gallery_view_navigation_label {
    color: #999;

    font-size: 14px;
    font-weight: 600;

    letter-spacing: .05em;
}

.gallery_view_navigation_item strong {
    overflow: hidden;

    color: #444;

    font-size: 15px;
    font-weight: 500;

    text-overflow: ellipsis;
    white-space: nowrap;
}

.gallery_view_navigation_item i {
    color: #aaa;

    font-size: 16px;
    font-style: normal;

    text-align: right;
}

.gallery_view_navigation_item:hover strong,
.gallery_view_navigation_item:hover i {
    color: var(--gallery-primary);
}


/* =========================================================
   VIEW BOTTOM
========================================================= */

.gallery_view_bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;

    margin-top: 45px;
}

.gallery_view_back {
    display: inline-flex;
    align-items: center;

    gap: 10px;

    color: #444;

    font-size: 15px;
    font-weight: 600;

    text-decoration: none;
}

.gallery_view_back_icon {
    display: grid;

    grid-template-columns: repeat(2,4px);

    gap: 3px;
}

.gallery_view_back_icon i {
    display: block;

    width: 4px;
    height: 4px;

    background: #555;
}

.gallery_view_bottom_actions {
    display: flex;

    gap: 5px;
}

.gallery_view_bottom_actions a {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    height: 38px;

    padding: 0 14px;

    border: 1px solid var(--gallery-border);

    color: #666;

    font-size: 14px;

    text-decoration: none;
}


/* =========================================================
   COMMENT
========================================================= */

.gallery_comment {
    margin-top: 80px;

    padding-top: 55px;

    border-top: 1px solid var(--gallery-text);
}

.gallery_comment_header {
    margin-bottom: 25px;
}

.gallery_comment_header_en {
    display: block;

    margin-bottom: 8px;

    color: var(--gallery-primary);

    font-size: 14px;
    font-weight: 700;

    letter-spacing: .07em;
}

.gallery_comment_header h2 {
    margin: 0;

    color: var(--gallery-text);

    font-size: 24px;
    font-weight: 600;
}

.gallery_comment_header h2 strong {
    margin-left: 5px;

    color: var(--gallery-primary);

    font-size: 16px;
}


/* =========================================================
   COMMENT ITEM
========================================================= */

.gallery_comment_list {
    border-top: 1px solid var(--gallery-border);
}

.gallery_comment_item {
    border-bottom: 1px solid var(--gallery-border);
}

.gallery_comment_item.is_reply {
    background: #fafafa;
}

.gallery_comment_item_inner {
    position: relative;

    padding: 24px 18px;
}

.gallery_comment_item_header {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;

    margin-bottom: 15px;
}

.gallery_comment_author {
    display: flex;
    align-items: center;
    flex-wrap: wrap;

    gap: 7px 12px;
}

.gallery_comment_author strong {
    color: #333;

    font-size: 15px;
    font-weight: 600;
}

.gallery_comment_author time,
.gallery_comment_ip {
    color: #999;

    font-size: 14px;
}

.gallery_comment_content {
    color: #555;

    font-size: 15px;
    line-height: 1.75;

    word-break: break-word;
}

.gallery_comment_secret {
    display: inline-block;

    margin-bottom: 8px;

    padding: 4px 8px;

    border-radius: 3px;

    background: var(--gallery-gray);

    color: #888;

    font-size: 14px;
}

.gallery_comment_text {
    min-height: 24px;
}


/* =========================================================
   COMMENT OPTION
========================================================= */

.gallery_comment_option {
    position: relative;

    flex: 0 0 auto;
}

.gallery_comment_option_btn {
    display: flex;
    align-items: center;
    justify-content: center;

    gap: 3px;

    width: 34px;
    height: 34px;

    padding: 0;

    border: 1px solid var(--gallery-border);
    border-radius: 50%;

    background: #fff;

    cursor: pointer;
}

.gallery_comment_option_btn span {
    display: block;

    width: 3px;
    height: 3px;

    border-radius: 50%;

    background: #777;
}

.gallery_comment_option_menu {
    position: absolute;

    z-index: 30;

    right: 0;
    top: calc(100% + 5px);

    display: none;

    width: 80px;

    padding: 5px;

    border: 1px solid var(--gallery-border);

    background: #fff;

    box-shadow:
        0 7px 20px rgba(0,0,0,.08);
}

.gallery_comment_option_menu.is_open {
    display: block;
}

.gallery_comment_option_menu a {
    display: block;

    padding: 8px 9px;

    color: #555;

    font-size: 14px;

    text-decoration: none;
}

.gallery_comment_option_menu a:hover {
    background: var(--gallery-gray);
}


/* =========================================================
   COMMENT EMPTY
========================================================= */

.gallery_comment_empty {
    padding: 45px 20px;

    border-bottom: 1px solid var(--gallery-border);

    color: #999;

    font-size: 14px;

    text-align: center;
}


/* =========================================================
   COMMENT WRITE
========================================================= */

.gallery_comment_write {
    margin-top: 45px;
}

.gallery_comment_write_header {
    margin-bottom: 18px;
}

.gallery_comment_write_header > span {
    display: block;

    margin-bottom: 6px;

    color: var(--gallery-primary);

    font-size: 14px;
    font-weight: 700;

    letter-spacing: .07em;
}

.gallery_comment_write_header h2 {
    margin: 0;

    color: var(--gallery-text);

    font-size: 21px;
    font-weight: 600;
}

.gallery_comment_write_content {
    position: relative;
}

.gallery_comment_write textarea {
    display: block;

    width: 100%;
    min-height: 130px;

    padding: 17px 18px 38px;

    border: 1px solid var(--gallery-border);

    background: #fff;

    color: #444;

    font-size: 15px;
    line-height: 1.7;

    resize: vertical;

    outline: none;
}

.gallery_comment_count {
    position: absolute;

    right: 15px;
    bottom: 12px;

    color: #aaa;

    font-size: 14px;
}

.gallery_comment_write_bottom {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;

    gap: 20px;

    margin-top: 10px;
}

.gallery_comment_write_info {
    display: flex;
    align-items: center;
    flex-wrap: wrap;

    gap: 10px 15px;
}

.gallery_comment_guest {
    display: flex;

    gap: 5px;
}

.gallery_comment_guest .frm_input {
    width: 180px;
}

.gallery_comment_secret_check {
    display: inline-flex;
    align-items: center;

    gap: 6px;

    color: #666;

    font-size: 14px;

    cursor: pointer;
}

.gallery_comment_secret_check input {
    width: 16px;
    height: 16px;

    accent-color: var(--gallery-primary);
}

.gallery_comment_submit {
    flex: 0 0 auto;

    min-width: 100px;
    height: 46px;

    padding: 0 18px;

    border: 1px solid var(--gallery-text);
    border-radius: 3px;

    background: var(--gallery-text);

    color: #fff;

    font-family: inherit;
    font-size: 14px;
    font-weight: 600;

    cursor: pointer;
}

.gallery_comment_submit:hover {
    border-color: var(--gallery-primary);

    background: var(--gallery-primary);
}

.gallery_comment_form_position:empty {
    display: none;
}


/* =========================================================
   CAPTCHA
========================================================= */

.gallery_comment_captcha {
    width: 100%;
}


/* =========================================================
   TABLET
========================================================= */

@media all and (max-width:1024px) {

    #bo_gall.gallery_board,
    #bo_w.gallery_write,
    #bo_v.gallery_view {
        padding-top: 60px;
        padding-bottom: 80px;
    }


    /* LIST */

    .gallery_list {
        gap: 45px 22px;
    }


    /* WRITE */

    .gallery_write_row {
        grid-template-columns: 150px minmax(0,1fr);
    }

    .gallery_write_label {
        padding-left: 20px;
        padding-right: 20px;
    }

    .gallery_write_field {
        padding-left: 20px;
        padding-right: 20px;
    }


    /* VIEW */

    .gallery_view_content {
        padding-top: 50px;
        padding-bottom: 60px;
    }

}


/* =========================================================
   MOBILE
========================================================= */

@media all and (max-width:767px) {

    #bo_gall.gallery_board,
    #bo_w.gallery_write,
    #bo_v.gallery_view {
        padding-top: 50px;
        padding-bottom: 70px;
    }


    /* =====================================================
       LIST
    ====================================================== */

    .gallery_list_top {
        align-items: flex-end;

        margin-bottom: 28px;
        padding-bottom: 16px;
    }

    .gallery_list_top_buttons {
        gap: 5px;
    }

    .gallery_list_btn {
        min-width: 0;
        height: 36px;

        padding: 0 11px;

        font-size: 14px;
    }

    .gallery_list_category {
        gap: 6px;

        margin-bottom: 30px;
    }

    .gallery_list_category a {
        min-width: 0;
        height: 38px;

        padding: 0 15px;

        font-size: 14px;
    }

    .gallery_list_admin {
        align-items: flex-start;
        flex-direction: column;

        gap: 12px;
    }

    .gallery_list_admin_buttons {
        width: 100%;
    }

    .gallery_list_admin_buttons button {
        flex: 1;
    }


    /*
     * 모바일은 2열.
     * 이미지 비율 자체는 여전히 관리자 설정값 사용.
     */
    .gallery_list {
        grid-template-columns:
            repeat(2,minmax(0,1fr));

        gap: 35px 14px;
    }

    .gallery_list_info {
        padding-top: 14px;
    }

    .gallery_list_title strong {
        font-size: 15px;
        line-height: 1.45;
    }

    .gallery_list_cate {
        margin-bottom: 6px;

        font-size: 14px;
    }

    .gallery_list_hover {
        display: none;
    }

    .gallery_list_no_image,
    .gallery_list_notice {
        min-height: 180px;
    }

    .gallery_list_checkbox {
        left: 8px;
        top: 8px;

        width: 30px;
        height: 30px;
    }

    .gallery_list_paging {
        margin-top: 50px;
    }

    .gallery_list_search {
        margin-top: 40px;
    }

    .gallery_list_search_inner {
        grid-template-columns: 100px minmax(0,1fr) 46px;
    }

    .gallery_list_search select,
    .gallery_list_search input,
    .gallery_list_search button {
        height: 46px;
    }

    .gallery_list_search button {
        width: 46px;
    }


    /* =====================================================
       WRITE
    ====================================================== */

    .gallery_write_header {
        margin-bottom: 35px;
        padding-bottom: 25px;
    }

    .gallery_write_header_en {
        margin-bottom: 10px;

        font-size: 14px;
    }

    .gallery_write_header h1 {
        font-size: 28px;
    }

    .gallery_write_header p {
        margin-top: 10px;

        font-size: 14px;
    }

    .gallery_write_row {
        display: block;

        min-height: 0;
    }

    .gallery_write_label {
        padding: 18px 15px 8px;

        background: #fff;
    }

    .gallery_write_label label,
    .gallery_write_label_text {
        font-size: 14px;
    }

    .gallery_write_label > p {
        margin-top: 5px;
    }

    .gallery_write_field {
        padding: 0 15px 18px;
    }

    .gallery_write_field > .frm_input,
    .gallery_write_field select {
        max-width: 100%;
    }

    .gallery_write_inline {
        display: grid;

        grid-template-columns: 1fr 1fr;
    }

    .gallery_write_inline .frm_input {
        width: 100%;
        max-width: none;
    }

    .gallery_write_options {
        min-height: 40px;
    }

    .gallery_write_editor textarea,
    .gallery_write textarea#wr_content {
        min-height: 230px;

        padding: 14px;

        font-size: 14px;
    }

    .gallery_write_filebox {
        max-width: 100%;
    }

    .gallery_write_filebox > label {
        width: 95px;
    }

    .gallery_write_existing {
        align-items: flex-start;
        flex-direction: column;

        gap: 8px;

        max-width: 100%;
    }

    .gallery_write_buttons {
        margin-top: 30px;
    }

    .gallery_write_cancel,
    .gallery_write_submit {
        flex: 1;

        min-width: 0;
    }


    /* =====================================================
       VIEW
    ====================================================== */

    .gallery_view_header {
        padding-bottom: 27px;
    }

    .gallery_view_category {
        margin-bottom: 10px;
    }

    .gallery_view_title {
        font-size: 28px;
    }

    .gallery_view_actions {
        align-items: flex-start;

        padding: 14px 0;
    }

    .gallery_view_actions_right {
        flex-wrap: wrap;
        justify-content: flex-end;
    }

    .gallery_view_content {
        padding: 40px 0 50px;
    }

    .gallery_view_images {
        gap: 25px;
    }

    .gallery_view_body {
        margin-top: 40px;

        font-size: 16px;
    }

    .gallery_view_section {
        padding: 40px 0;
    }

    .gallery_view_files > a {
        align-items: flex-start;
        flex-direction: column;

        gap: 8px;
    }

    .gallery_view_file_meta {
        width: 100%;

        justify-content: space-between;
    }

    .gallery_view_navigation_item {
        grid-template-columns: 65px minmax(0,1fr) 20px;

        min-height: 62px;

        padding: 0 10px;
    }

    .gallery_view_navigation_item strong {
        font-size: 14px;
    }

    .gallery_view_bottom {
        align-items: flex-start;
        flex-direction: column;
    }

    .gallery_view_bottom_actions {
        width: 100%;
    }

    .gallery_view_bottom_actions a {
        flex: 1;
    }


    /* =====================================================
       COMMENT
    ====================================================== */

    .gallery_comment {
        margin-top: 60px;
        padding-top: 40px;
    }

    .gallery_comment_header h2 {
        font-size: 21px;
    }

    .gallery_comment_item.is_reply {
        margin-left: 15px !important;
    }

    .gallery_comment_item_inner {
        padding: 20px 10px;
    }

    .gallery_comment_item_header {
        align-items: flex-start;
    }

    .gallery_comment_author {
        gap: 5px 9px;
    }

    .gallery_comment_content {
        font-size: 14px;
    }

    .gallery_comment_write {
        margin-top: 35px;
    }

    .gallery_comment_write_bottom {
        align-items: stretch;
        flex-direction: column;
    }

    .gallery_comment_write_info {
        width: 100%;
    }

    .gallery_comment_guest {
        width: 100%;
    }

    .gallery_comment_guest .frm_input {
        width: 50%;
    }

    .gallery_comment_submit {
        width: 100%;
        height: 48px;
    }

}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media all and (max-width:480px) {

    .gallery_list {
        gap: 30px 10px;
    }

    .gallery_list_title strong {
        font-size: 14px;
    }

    .gallery_list_comment {
        min-width: 20px;
        height: 20px;

        font-size: 14px;
    }

    .gallery_list_search_inner {
        grid-template-columns: 90px minmax(0,1fr) 44px;
    }

    .gallery_list_search select {
        padding-left: 9px;
        padding-right: 5px;
    }

    .gallery_list_search input {
        padding-left: 10px;
        padding-right: 10px;
    }

    .gallery_write_inline {
        grid-template-columns: 1fr;
    }

    .gallery_view_btn {
        min-width: 0;

        padding-left: 9px;
        padding-right: 9px;
    }

}

/* 관리자: 메인페이지 노출 체크박스 */
.gallery_write_main_option label {
    font-weight: 600;
}
.gallery_write_main_option input[type="checkbox"] {
    accent-color: var(--gallery-primary);
}
