﻿.board-theme .board-pages > span.prev,
.board-theme .board-pages > span.next {
    cursor: pointer;
    color: #666;
    padding: 10px;
}

/* board-list s */
.board-theme .theme-list {
    font-family: 'NanumSquare',san-serif ;
    overflow: hidden;
    width: 100%;
}

    .board-theme .theme-list .list-categories {
        margin-bottom: 12px;
    }

        .board-theme .theme-list .list-categories .category-group {
            vertical-align: top;
        }

            .board-theme .theme-list .list-categories .category-group:hover button {
                background-color: #e6e6e6;
                border-color: #adadad;
            }

            .board-theme .theme-list .list-categories .category-group .category-btn {
                margin-bottom: 2px;
            }

            .board-theme .theme-list .list-categories .category-group .addon-btn {
                padding-left: 5px;
                padding-right: 5px;
            }

            .board-theme .theme-list .list-categories .category-group ul {
                min-width: 100%;
                padding: 0;
                margin: 0;
                border-radius: 0;
            }

                .board-theme .theme-list .list-categories .category-group ul li:last-child {
                    border-bottom: 0;
                }

                .board-theme .theme-list .list-categories .category-group ul li a {
                    cursor: pointer;
                    font-size: 12px;
                    padding: 6px 12px;
                }

                .board-theme .theme-list .list-categories .category-group ul li.selected a {
                    background: #eee;
                }

    .board-theme .theme-list table {
        border-top-width: 1px;
    }

        .board-theme .theme-list table th,
        .board-theme .theme-list table td {
            font-size: 14px;
            text-align: center;
            padding: 14px;
        }

        .board-theme .theme-list table th {
            background: #fcfcfc;
            border-bottom-width: 1px;
            min-width: 70px;
            font-size:17px;
        }

            .board-theme .theme-list table th.document-title {
                width: 50%;
            }

        .board-theme .theme-list table td.document-title {
            text-align: left;
        }

        .board-theme .theme-list table tr.notice td.document-no,
        .board-theme .theme-list table tr.notice td.document-title {
            font-weight: 600;
        }

        .board-theme .theme-list table tr td.document-added_file {
            padding-top: 5px;
            padding-bottom: 5px;
        }

            .board-theme .theme-list table tr td.document-added_file .file-ico {
                display: inline-block;
                width: 30px;
                height: 30px;
                background: #333;
                margin-top: 5px;
            }

        .board-theme .theme-list table th input,
        .board-theme .theme-list table td input {
            margin: 0;
        }

        .board-theme .theme-list table thead th.title {
            width: 50%;
        }

        .board-theme .theme-list table tbody td.document-title a {
            color: #333;
            text-align: left;
            font-size:17px;
        }

            .board-theme .theme-list table tbody td.document-title a:hover {
                text-decoration: underline;
            }

            .board-theme .theme-list table tbody td.document-title a.comment-count {
                color: #333;
                margin-left: 6px;
                text-decoration: none;
                font-weight: 600;
            }

        .board-theme .theme-list table tbody td.document-title span.file {
            color: #000;
            vertical-align: middle;
        }

        .board-theme .theme-list table tbody td.document-title span.reserved {
            background: #444;
            color: #fff;
            padding: 2px 4px;
            margin-left: 6px;
        }

    .board-theme .theme-list .document-title a.active {
        text-decoration: underline;
    }

    .board-theme .theme-list .no-document {
        text-align: center;
        padding: 21px 0;
    }

.board-theme.list .board-pages {
    padding: 21px 0 30px 0;
    text-align: center;
    max-width: 1040px;
    margin: 0 auto;
}

    .board-theme.list .board-pages > span {
        padding-left: 11px;
        padding-right: 11px;
    }

        .board-theme.list .board-pages > span.page {
            margin-bottom: 5px;
            cursor: pointer;
            font-size: 13px;
            border-radius: 0;
        }

.board-theme.gallery .theme-list table {
    margin-bottom: 15px;
}

.GalleryType{display: grid;grid-template-columns: repeat(auto-fill,minmax(min(100%,var(--width)),1fr));gap: var(--gap);align-items: start;--gap: 30px;--width: 30%;}
.board-theme.gallery .theme-list .GalleryType > .each-document {
    display: inline-block;
    vertical-align: top;
}
    /* 썸네일: background-image 대신 실제 <img> 를 사용해 원본 비율 그대로 출력 */
    .board-theme.gallery .theme-list .GalleryType > .each-document > a.title-image {
        display: block;
        width: 100%;
        height: auto;
        position: relative;
        border: 1px solid #ddd;
        background: none;
        overflow: hidden;
        float: none;
    }

        .board-theme.gallery .theme-list .GalleryType > .each-document > a.title-image > img.thumb {
            display: block;
            width: 100%;
            height: auto;
            object-fit: contain;
        }

        /* 이미지가 없을 때만 기본 비율(3:4) 박스를 사용 */
        .board-theme.gallery .theme-list .GalleryType > .each-document > a.title-image > .no-image {
            position: relative;
            display: block;
            left: 0;
            top: 0;
            width: 100%;
            height: 0;
            padding-top: 133%;
            text-align: center;
            color: #333;
            margin-top: 0;
            background: #eee;
        }

            .board-theme.gallery .theme-list .GalleryType > .each-document > a.title-image > .no-image span {
                position: absolute;
                top: 50%;
                left: 0;
                width: 100%;
                margin-top: -9px;
                font-size: 15px;
                line-height: 1.4;
            }

        .board-theme.gallery .theme-list .GalleryType > .each-document > a.title-image > .list-items {
            position: absolute;
            left: 0;
            top: 0;
            right: 0;
            bottom: 0;
            width: auto;
            height: auto;
            background: rgba(0,0,0,0.63);
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            line-height: 1.5;
            transition: opacity 0.21s;
            opacity: 0;
        }

        .board-theme.gallery .theme-list .GalleryType > .each-document > a.title-image:hover > .list-items {
            opacity: 1;
        }

        .board-theme.gallery .theme-list .GalleryType > .each-document > a.title-image > .list-items .items-wrapper {
            display: block;
            width: 100%;
            color: #fff;
            padding: 10px 14px;
            line-height: 1.5;
            word-break: keep-all;
            overflow-wrap: break-word;
            word-wrap: break-word;
        }

            .board-theme.gallery .theme-list .GalleryType > .each-document > a.title-image > .list-items .items-wrapper > .list-item {
                font-size: 15px;
                line-height: 1.5;
                display: block;
                position: static;
                float: none;
                text-align: center;
                margin: 3px 0;
                max-width: 100%;
                word-break: keep-all;
                overflow-wrap: break-word;
                word-wrap: break-word;
            }

                .board-theme.gallery .theme-list .GalleryType > .each-document > a.title-image > .list-items .items-wrapper > .list-item.title {
                    font-size: 16px;
                    margin-bottom: 4px;
                }

    .board-theme.gallery .theme-list .GalleryType > .each-document > a.title {
        width: 100%;
        display: block;
        overflow: hidden;
        text-align: center;
        color: #333;
        line-height:2;
        text-overflow: ellipsis;
        white-space: nowrap;
        font-size:20px;
        text-decoration:none;color:inherit;
    }

.board-theme.webzine .each-document {
    display: block;
    text-decoration: none;
    border: 1px solid #ddd;
    color: #333;
    position: relative;
    height: 172px;
    transition: border 0.4s;
    margin-top: 15px;
    display: inline-block;
    width: 100%;
}

    .board-theme.webzine .each-document:first-child {
        margin-top: 0;
    }

    .board-theme.webzine .each-document:hover {
        border-color: #07c;
    }

    .board-theme.webzine .each-document span {
        display: block;
    }

    .board-theme.webzine .each-document > span {
        height: 100%;
    }

    .board-theme.webzine .each-document .list-img {
        height: 100%;
        background-size: auto 100%;
        background-repeat: no-repeat;
        background-position: 50% 50%;
        background-color: #eee;
        height: 170px;
    }

    .board-theme.webzine .each-document .list-content .top {
        color: #333;
        font-weight: bold;
        padding: 15px;
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
    }

        .board-theme.webzine .each-document .list-content .top .title {
            font-size: 16px;
            display: inline-block;
            width: 50%;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

        .board-theme.webzine .each-document .list-content .top .date {
            float: right;
        }

        .board-theme.webzine .each-document .list-content .top .writer {
            float: right;
            margin-right: 10px;
        }

    .board-theme.webzine .each-document .list-content .content {
        padding: 50px 0 15px 0;
        height: 100%;
    }

        .board-theme.webzine .each-document .list-content .content .wrapper {
            height: 100%;
            display: block;
            overflow: hidden;
            width: 100%;
            display: -webkit-box;
            -webkit-line-clamp: 6;
            -webkit-box-orient: vertical;
        }

            .board-theme.webzine .each-document .list-content .content .wrapper img {
                display: none;
            }
/* board-list e */
/* board-detail s */
.board-theme .theme-detail .detail-top {
    background: #fbfbfb;
    padding: 14px;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    display: inline-block;
    width: 100%;
}

    .board-theme .theme-detail .detail-top .document-title {
        float: left;
        color: #333;
        overflow: hidden;
        font-weight: 600;
        font-size:17px;
    }

        .board-theme .theme-detail .detail-top .document-title .category {
            margin-right: 3px;
        }

    .board-theme .theme-detail .detail-top .document-regdate {
        float: right;
        font-size:17px;
    }

.board-theme .theme-detail .detail-upper {
    padding: 8px 14px;
    border-bottom: 1px solid #eee;
    display: inline-block;
    width: 100%;
}

    .board-theme .theme-detail .detail-upper .document-writer {
        float: left;
        font-size:17px;
    }

    .board-theme .theme-detail .detail-upper .document-readed_count {
        float: right;
        font-size:17px;
    }

.board-theme .theme-detail .detail-video > * {
    margin-top: 12px;
}
.board-theme .theme-detail .donw-pdf{padding: 15px;font-size: 38px;cursor: pointer;
text-align: center;background-color: #fff;color: #fff;margin: 10px 0;border:2px solid #adadad;}
.board-theme .theme-detail .donw-pdf a{color:#000;text-decoration:none;}

.board-theme .theme-detail .detail-video > a.video-button {
    display: block;
    width: 100%;
    text-align: center;
    background: #4e4e4e;
    color: #fff;
    padding: 16px 0;
    border-radius: 2px;
    font-size: 14px;
    text-decoration: none;
}

.board-theme .theme-detail .detail-video .video-js {
    width: 100%;
    height: auto;
}

    .board-theme .theme-detail .detail-video .video-js .vjs-tech {
        height: auto;
        position: relative;
    }

.board-theme .theme-detail .detail-video iframe {
    width: 100%;
    height: 540px;
}

.board-theme .theme-detail .detail-audio > * {
    margin-top: 12px;
}

.board-theme .theme-detail .detail-audio-downlad {
    text-align: center;
    margin: 12px 0 21px 0;
}

    .board-theme .theme-detail .detail-audio-downlad > a {
        font-size: 14px;
        background: #07c;
        color: #fff;
        text-decoration: none;
        padding: 12px 24px;
        display: inline-block;
    }

.board-theme .theme-detail .detail-pdf iframe {
    width: 100%;
    height: 550px;
}

.board-theme .theme-detail .detail-content {
    padding: 14px;
    word-break: break-all;
    font-size: 17px;
}
.board-theme .theme-detail .detail-content .pdfHF{display: inline-block;width: 100%;padding: 15px;text-align: center;font-size: 24px;
color: #fff;background-color: #000;text-decoration: none;font-weight: bold;letter-spacing: 1px;}

    .board-theme .theme-detail .detail-content img {
        cursor: pointer;
    }
/* board-detail e */

/* board-write s */
.board-theme .theme-write {
    padding: 21px 21px 0 21px;
    background: #eee;
}

    .board-theme .theme-write .title-category {
        padding: 0;
    }

    .board-theme .theme-write .title-content {
        padding: 0;
    }

    .board-theme .theme-write .document-title {
        margin: 0;
    }

    .board-theme .theme-write .document-extended_keys {
        margin-top: 12px;
        padding: 1px;
    }

        .board-theme .theme-write .document-extended_keys table {
            border: 1px solid #ccc;
        }

            .board-theme .theme-write .document-extended_keys table tr {
                background: #f9f9f9;
            }

                .board-theme .theme-write .document-extended_keys table tr th {
                    font-size: 11px;
                    vertical-align: middle;
                }

                .board-theme .theme-write .document-extended_keys table tr td select,
                .board-theme .theme-write .document-extended_keys table tr td input {
                    font-size: 12px;
                }

                .board-theme .theme-write .document-extended_keys table tr td textarea {
                    width: 100% !important;
                    height: 120px;
                    min-height: 70px;
                }

        .board-theme .theme-write .document-extended_keys select {
            max-width: 210px;
        }

    .board-theme .theme-write .document-content {
        margin-top: 12px;
    }

        .board-theme .theme-write .document-content #cke_content {
            margin: 0 auto;
        }
/* board-write e */

.lightbox-modal{padding: 0 8%;}
@media(min-width:768px) {
    .board-theme .theme-write .title-category {
        padding-right: 15px;
    }
}
@media (max-width:1199px) {
	.GalleryType{--width: 30%;}
}
@media (max-width:992px) {
	.GalleryType{--width: 40%;}
}

@media(max-width:767px) {

        .board-theme .theme-list table td.document-category,
        .board-theme .theme-list table td.document-title {
            display: table-cell;
        }

    .board-theme .theme-detail .detail-top .document-title {
        width: 100%;
    }

    .board-theme.gallery {
        text-align: center;
    }
     .board-theme .theme-list table thead {
        display: none;
    }

    .board-theme .theme-list table td {
        display: none;
    }

        .board-theme .theme-list table td.document-category,
        .board-theme .theme-list table td.document-title {
            display: table-cell;
        }

    .board-theme .theme-detail .detail-top .document-title {
        width: 100%;
    }

    .board-theme.gallery {
        text-align: center;
    }
	.GalleryType{--width: 100%;}
	.board-theme .theme-detail .detail-content {font-size: 15px;}
    .board-theme .theme-detail .detail-content .pdfHF{font-size:17px;}
    .board-theme .theme-detail .detail-content .pdfVW iframe{height:400px!important;}
}

/* ============================================================
   태블릿 / 모바일 (~1024px)
   이북(한 장씩 넘기기) 보기 → 첫 장부터 순서대로 아래로 나열하기
   ============================================================ */
@media (max-width: 1024px) {

    .board-theme .lightbox-modal,
    #myModal.lightbox-modal {
        display: block !important;
        position: static !important;
        left: 0 !important;
        top: 0 !important;
        width: 100% !important;
        height: auto !important;
        padding: 0 !important;
        padding-top: 0 !important;
        overflow: visible !important;
        background-color: transparent !important;
    }

    /* 상단 썸네일 스트립 · 캡션 · 닫기 버튼 · 좌우 화살표 숨김 */
    .lightbox-modal .lightbox-column,
    .lightbox-modal .caption-container,
    .lightbox-modal .lightbox-close,
    .lightbox-modal .a-prev,
    .lightbox-modal .a-next {
        display: none !important;
    }

    .lightbox-modal .lightbox-modal-content {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        background-color: transparent !important;
    }

    /* 모든 페이지를 순서대로 표시 (JS 의 inline display:none 무효화) */
    .lightbox-modal .lightbox-mySlides {
        display: block !important;
        position: relative;
        margin: 0 0 12px 0;
    }

        .lightbox-modal .lightbox-mySlides:last-of-type {
            margin-bottom: 0;
        }

        .lightbox-modal .lightbox-mySlides > img {
            display: block;
            width: 100% !important;
            height: auto !important;
        }

        .lightbox-modal .lightbox-mySlides .numbertext {
            position: absolute;
            top: 8px;
            left: 8px;
            z-index: 2;
            padding: 4px 10px;
            border-radius: 14px;
            background: rgba(0,0,0,0.55);
            color: #fff;
            font-size: 12px;
        }
}

/* ======================================================================
   주보(Jubo) 테마 리뉴얼  2026
   1) 목록 : 카드형 썸네일 + 첨부 PDF 버튼(.jubo-btns)
   2) 상세 : 내용 최상단 PDF 바로가기 바(.jubo-file-bar)
   3) 상세 헤더 / 뷰어 / 라이트박스 썸네일 정리
   * 포인트 색상 : #e03131 (PDF 레드) / #22303f (다크)
   ====================================================================== */

/* ---------- 1. 목록 : 카드형 썸네일 ---------- */
.GalleryType {
    --gap: 34px;
}

.board-theme.gallery .theme-list .GalleryType > .each-document {
    position: relative;
    padding-bottom: 6px;
}

.board-theme.gallery .theme-list .GalleryType > .each-document > a.title-image {
    border: 1px solid #e9e9e9;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 4px 14px rgba(0,0,0,0.07);
    transition: box-shadow 0.25s ease;
}

/* 카드 전체를 함께 띄워야 PDF 버튼이 썸네일과 어긋나지 않음 */
.board-theme.gallery .theme-list .GalleryType > .each-document {
    transition: transform 0.25s ease;
}

.board-theme.gallery .theme-list .GalleryType > .each-document:hover {
    transform: translateY(-5px);
}

.board-theme.gallery .theme-list .GalleryType > .each-document:hover > a.title-image {
    box-shadow: 0 12px 26px rgba(0,0,0,0.16);
}

.board-theme.gallery .theme-list .GalleryType > .each-document > a.title-image > .list-items {
    background: linear-gradient(to bottom, rgba(0,0,0,0.35), rgba(0,0,0,0.72));
}

.board-theme.gallery .theme-list .GalleryType > .each-document > a.title {
    margin-top: 12px;
    padding: 0 4px;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.5;
    color: #222;
    letter-spacing: -0.3px;
    transition: color 0.2s ease;
}

.board-theme.gallery .theme-list .GalleryType > .each-document:hover > a.title {
    color: #e03131;
}

/* ---------- 1-1. 썸네일 위 PDF 버튼 ---------- */
/* height:0 으로 배치해 레이아웃을 밀지 않고 썸네일 우측 하단에 겹쳐 표시 */
.board-theme.gallery .theme-list .GalleryType > .each-document > .jubo-btns {
    position: relative;
    z-index: 5;
    height: 0;
    padding-right: 12px;
    text-align: right;
    line-height: 0;
}

.jubo-btns .jubo-btn {
    position: relative;
    top: -50px;
    display: inline-block;
    height: 34px;
    line-height: 34px;
    padding: 0 14px;
    border-radius: 34px;
    background: rgba(20,20,20,0.62);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-decoration: none;
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.25);
    transition: 0.2s all ease;
}

.jubo-btns .jubo-btn i {
    margin-right: 5px;
    font-size: 15px;
    vertical-align: -1px;
}

.jubo-btns .jubo-btn:hover,
.jubo-btns .jubo-btn:focus {
    background: #e03131;
    color: #fff;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(224,49,49,0.45);
}

/* ---------- 2. 상세 : 상단 PDF 바로가기 바 ---------- */
.board-theme .theme-detail .detail-content .jubo-file-bar {
    margin: 0 0 24px;
}

.board-theme .theme-detail .detail-content .jubo-file-row {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-align: center;
    align-items: center;
    -ms-flex-pack: justify;
    justify-content: space-between;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    gap: 14px;
    padding: 18px 22px;
    margin-bottom: 10px;
    background: #f8f9fa;
    border: 1px solid #e8eaed;
    border-left: 4px solid #e03131;
    border-radius: 10px;
}

.board-theme .theme-detail .detail-content .jubo-file-row:last-child {
    margin-bottom: 0;
}

.board-theme .theme-detail .detail-content .jubo-file-info {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-align: center;
    align-items: center;
    -ms-flex: 1 1 260px;
    flex: 1 1 260px;
    min-width: 0;
}

.board-theme .theme-detail .detail-content .jubo-file-ico {
    -ms-flex: 0 0 auto;
    flex: 0 0 auto;
    width: 44px;
    height: 44px;
    margin-right: 14px;
    border-radius: 10px;
    background: #e03131;
    color: #fff;
    font-size: 21px;
    line-height: 44px;
    text-align: center;
}

.board-theme .theme-detail .detail-content .jubo-file-text {
    min-width: 0;
}

.board-theme .theme-detail .detail-content .jubo-file-name {
    display: block;
    font-size: 17px;
    font-weight: 700;
    color: #222;
    line-height: 1.4;
    word-break: break-all;
}

.board-theme .theme-detail .detail-content .jubo-file-desc {
    display: block;
    margin-top: 2px;
    font-size: 13px;
    font-style: normal;
    color: #8a9099;
}

.board-theme .theme-detail .detail-content .jubo-file-btns {
    -ms-flex: 0 0 auto;
    flex: 0 0 auto;
    white-space: nowrap;
}

.board-theme .theme-detail .detail-content .jubo-file-btn {
    display: inline-block;
    height: 44px;
    line-height: 42px;
    padding: 0 20px;
    margin-left: 8px;
    border: 1px solid #dcdfe3;
    border-radius: 44px;
    background: #fff;
    color: #444;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: 0.2s all ease;
}

.board-theme .theme-detail .detail-content .jubo-file-btn:hover,
.board-theme .theme-detail .detail-content .jubo-file-btn:focus {
    background: #f1f2f4;
    border-color: #cdd1d6;
    color: #222;
    text-decoration: none;
}

.board-theme .theme-detail .detail-content .jubo-file-btn.primary {
    background: #e03131;
    border-color: #e03131;
    color: #fff;
    box-shadow: 0 3px 10px rgba(224,49,49,0.30);
}

.board-theme .theme-detail .detail-content .jubo-file-btn.primary:hover,
.board-theme .theme-detail .detail-content .jubo-file-btn.primary:focus {
    background: #c42828;
    border-color: #c42828;
    color: #fff;
}

/* ---------- 3. 상세 헤더 / 뷰어 정리 ---------- */
.board-theme .theme-detail .detail-top {
    background: #fafbfc;
    border-top: 2px solid #22303f;
    border-bottom: 1px solid #eceef0;
    padding: 20px 18px;
}

.board-theme .theme-detail .detail-top .document-title {
    font-size: 20px;
    letter-spacing: -0.3px;
}

.board-theme .theme-detail .detail-top .document-title .category {
    display: inline-block;
    margin-right: 8px;
    padding: 2px 10px;
    border-radius: 20px;
    background: #22303f;
    color: #fff;
    font-size: 13px;
    font-weight: 500;
    vertical-align: 2px;
}

.board-theme .theme-detail .detail-top .document-regdate {
    color: #8a9099;
    font-size: 15px;
    padding-top: 4px;
}

.board-theme .theme-detail .detail-upper {
    padding: 12px 18px;
    background: #fff;
}

.board-theme .theme-detail .detail-upper .document-writer {
    font-size: 15px;
    color: #444;
    font-weight: 600;
}

.board-theme .theme-detail .detail-upper .document-readed_count {
    font-size: 15px;
    color: #8a9099;
}

.board-theme .theme-detail .detail-content {
    padding: 24px 18px;
}

/* PDF 뷰어 iframe */
.board-theme .theme-detail .detail-content .pdfVW {
    border: 1px solid #e8eaed;
    border-radius: 10px;
    overflow: hidden;
    background: #f4f5f6;
}

.board-theme .theme-detail .detail-content .pdfVW iframe {
    display: block;
}

/* ---------- 4. 라이트박스(이미지 주보) 정리 ---------- */
.board-theme .theme-detail .detail-content .caption-container {
    display: none;
}

.board-theme .theme-detail .detail-content #myModal .lightbox-column {
    width: auto;
    padding: 0 8px 10px 0;
}

.board-theme .theme-detail .detail-content #myModal .lightbox-column > img.lightbox-demo {
    width: 74px !important;
    height: auto;
    border: 1px solid #e2e4e7;
    border-radius: 6px;
    opacity: 0.55;
    transition: 0.2s all ease;
}

.board-theme .theme-detail .detail-content #myModal .lightbox-column > img.lightbox-demo:hover {
    opacity: 1;
    border-color: #e03131;
    box-shadow: 0 3px 10px rgba(0,0,0,0.18);
}

/* 좌우 화살표(.a-prev/.a-next)는 이 박스 바깥(-100px)에 놓이므로
   overflow:hidden 을 주면 화살표가 잘려서 사라진다 → overflow 는 건드리지 않는다 */
.board-theme .theme-detail .detail-content #myModal .lightbox-modal-content {
    clear: both;
    border: 1px solid #e8eaed;
    overflow: visible;
}

/* 좌우 넘김 화살표 : 원형 버튼으로 정리 */
.board-theme .theme-detail .detail-content #myModal .a-prev,
.board-theme .theme-detail .detail-content #myModal .a-next {
    width: 54px;
    height: 54px;
    margin-top: -27px;
    padding: 0;
    border-radius: 50%;
    background: #fff;
    border: 1px solid #e5e7ea;
    box-shadow: 0 3px 12px rgba(0,0,0,0.14);
    color: #555;
    font-size: 30px;
    font-weight: 400;
    line-height: 52px;
    text-align: center;
    text-decoration: none;
    transition: 0.2s all ease;
    z-index: 10;
}

.board-theme .theme-detail .detail-content #myModal .a-prev {
    left: -74px;
}

.board-theme .theme-detail .detail-content #myModal .a-next {
    right: -74px;
}

.board-theme .theme-detail .detail-content #myModal .a-prev:hover,
.board-theme .theme-detail .detail-content #myModal .a-next:hover {
    background: #e03131;
    border-color: #e03131;
    color: #fff;
    box-shadow: 0 5px 16px rgba(224,49,49,0.40);
}

/* ---------- 5. 반응형 ---------- */
@media (max-width:767px) {
    .GalleryType {
        --gap: 24px;
    }

    .board-theme.gallery .theme-list .GalleryType > .each-document > a.title {
        font-size: 17px;
    }

    .jubo-btns .jubo-btn {
        top: -46px;
        height: 32px;
        line-height: 32px;
        padding: 0 12px;
        font-size: 12px;
    }

    .board-theme .theme-detail .detail-content .jubo-file-row {
        padding: 16px;
        border-radius: 8px;
    }

    .board-theme .theme-detail .detail-content .jubo-file-btns {
        width: 100%;
        white-space: normal;
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
        gap: 8px;
    }

    .board-theme .theme-detail .detail-content .jubo-file-btn {
        -ms-flex: 1 1 0;
        flex: 1 1 0;
        margin-left: 0;
        padding: 0 10px;
        height: 46px;
        line-height: 44px;
        font-size: 14px;
        text-align: center;
    }

    .board-theme .theme-detail .detail-top {
        padding: 16px 14px;
    }

    .board-theme .theme-detail .detail-top .document-title {
        font-size: 17px;
    }

    .board-theme .theme-detail .detail-top .document-regdate {
        float: left;
        font-size: 13px;
    }

    .board-theme .theme-detail .detail-content {
        padding: 18px 14px;
    }
}

/* 화면이 좁아 화살표가 이미지 밖으로 나가는 경우 안쪽으로 들여서 표시 */
@media (max-width:1400px) {
    .board-theme .theme-detail .detail-content #myModal .a-prev {
        left: 10px;
    }

    .board-theme .theme-detail .detail-content #myModal .a-next {
        right: 10px;
    }

    .board-theme .theme-detail .detail-content #myModal .a-prev,
    .board-theme .theme-detail .detail-content #myModal .a-next {
        background: rgba(255,255,255,0.92);
    }
}
