/* =============================================
   갤러리 리스트 페이지
   ============================================= */

/* 갤러리 툴바 */
.gd-gallery-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
    /*border-bottom: 2px solid #222;*/
    margin-bottom: 24px;
    gap: 16px;
}

.gd-gallery-total {
    font-size: 14px;
    color: #555;
    white-space: nowrap;
}

.gd-gallery-total strong {
    color: #ED3820;
    font-weight: 700;
}

.gd-gallery-search-form {
    display: flex;
    align-items: center;
    gap: 0;
}

.gd-gallery-search-form select {
    height: 40px;
    padding: 0 12px;
    border: 1px solid #ddd;
    border-radius: 0;
    border-right: none;
    font-size: 13px;
    color: #333;
    background-color: #fff;
    cursor: pointer;
    min-width: 100px;
}

.gd-gallery-search-form input[type="text"] {
    height: 40px;
    padding: 0 14px;
    border: 1px solid #ddd;
    border-radius: 0;
    border-right: none;
    border-left: none;
    font-size: 13px;
    color: #333;
    flex: 1;
    min-width: 150px;
}

.gd-gallery-search-form input[type="text"]:focus {
    outline: none;
    /*border-color: #2c5aa0;*/
    border-left: none;
    border-right: none;
}

.gd-gallery-search-form button {
    height: 40px;
    padding: 0 20px;
    width: 100px;
    background-color: #ED3820;
    color: #fff;
    border: 1px solid #ED3820;
    border-radius: 0;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
    white-space: nowrap;
    border-top-right-radius: 15px;
    border-bottom-right-radius: 15px;
}

.gd-gallery-search-form button:hover {
    background-color: #ce412f;
}

/* 갤러리 그리드 */
.gd-gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-bottom: 40px;
}

.gd-gallery-empty {
    grid-column: 1 / -1;
    padding: 80px 0;
    text-align: center;
    font-size: 15px;
    color: #999;
}

/* 갤러리 카드 */
.gd-gallery-card {
    display: flex;
    flex-direction: column;
    background-color: #fff;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border-radius: 20px;
}

.gd-gallery-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.gd-gallery-thumb-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
    background-color: #f0f0f0;
}

.gd-gallery-thumb-wrap::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.38);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
    pointer-events: none;
}

.gd-gallery-thumb-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.gd-gallery-card:hover .gd-gallery-thumb-image {
    transform: scale(1.05);
}

.gd-gallery-zoom-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    width: auto;
    height: auto;
    padding: 10px 18px;
    background-color: rgba(255, 255, 255, 0.96);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: -0.01em;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translate(-50%, -50%) translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease, background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
    z-index: 2;
    color: #222;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}

.gd-gallery-thumb-wrap:hover::after {
    opacity: 1;
}

.gd-gallery-thumb-wrap:hover .gd-gallery-zoom-btn {
    opacity: 1;
    transform: translate(-50%, -50%) translateY(0);
}

.gd-gallery-zoom-btn:hover {
    background-color: #ed3820;
    border-color: #ed3820;
    color: #fff;
}

.gd-gallery-no-image {
    width: 100%;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f0f0f0;
    font-size: 13px;
    color: #bbb;
    letter-spacing: 1px;
}

.gd-gallery-card-body {
    padding: 18px 18px 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.gd-gallery-category {
    font-size: 13px;
    color: #7b8797;
    font-weight: 600;
    line-height: 1.4;
}

.gd-gallery-title {
    font-size: 17px;
    font-weight: 700;
    color: #222;
    text-decoration: none;
    line-height: 1.55;
    letter-spacing: -0.01em;
    display: -webkit-box;
    line-clamp: 2;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.2s;
}

.gd-gallery-title:hover {
    color: #2c5aa0;
}

.gd-gallery-date {
    font-size: 13px;
    color: #8c98a8;
    line-height: 1.4;
}


/* =============================================
   브로셔 리스트 전용
   ============================================= */
.brochure-page .gd-gallery-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 28px 24px;
}

.brochure-page .gd-gallery-card {
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #e6e0d9;
    box-shadow: 0 10px 24px rgba(40, 28, 17, 0.08);
    background: linear-gradient(180deg, #fbf8f3 0%, #ffffff 30%);
}

.brochure-page .gd-gallery-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 30px rgba(40, 28, 17, 0.12);
}

.brochure-page .gd-gallery-thumb-wrap,
.brochure-page .gd-gallery-no-image {
    aspect-ratio: 3 / 4.35;
    background: linear-gradient(180deg, #f6efe3 0%, #fffdf9 100%);
}

.brochure-page .gd-gallery-thumb-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
}

.brochure-page .gd-gallery-thumb-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center top;
    filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.14));
    background-color: transparent;
}

.brochure-page .gd-gallery-card:hover .gd-gallery-thumb-image {
    transform: translateY(-2px) scale(1.01);
}

.brochure-page .gd-gallery-card-body {
    padding: 16px 18px 18px;
    gap: 8px;
    border-top: 1px solid rgba(133, 104, 72, 0.08);
}

.brochure-page .gd-gallery-category {
    color: #9a6f45;
    font-size: 12px;
}

.brochure-page .gd-gallery-title {
    font-size: 16px;
    line-height: 1.5;
}

.brochure-page .gd-gallery-date {
    color: #9b948a;
}

/* 갤러리 페이지네이션 */
.gd-gallery-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 40px 0;
}

.gd-gallery-pagination .page-arrow,
.gd-gallery-pagination .page-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    padding: 0 6px;
    border: 1px solid #ddd;
    border-radius: 3px;
    font-size: 14px;
    color: #555;
    text-decoration: none;
    transition: all 0.2s;
    background-color: #fff;
}

.gd-gallery-pagination .page-arrow:hover,
.gd-gallery-pagination .page-num:hover {
    border-color: #2c5aa0;
    color: #2c5aa0;
}

.gd-gallery-pagination .page-num.active {
    background-color: #ED3820;
    border-color: #ED3820;
    color: #fff;
    font-weight: 700;
}

.gd-gallery-pagination .page-arrow.disabled {
    color: #ccc;
    border-color: #eee;
    pointer-events: none;
    cursor: default;
}


/* =============================================
   영상 게시판 리스트 (mov.html)
   ============================================= */
.gd-board-wrap .gd-gallery-toolbar {
    padding: 0 0 20px;
    margin-bottom: 0;
    /*border-bottom: 1px solid #d8d8d8;*/
}

.gd-board-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.gd-board-list-item {
    border-bottom: 1px solid #d8d8d8;
}

.gd-board-list-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 20px 10px;
    text-decoration: none;
    color: #222;
    transition: background-color 0.2s ease;
}

.gd-board-list-title:hover {
    background-color: #fafafa;
}

.gd-board-list-title-text {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 20px;
    font-weight: 600;
    line-height: 1.45;
    letter-spacing: -0.01em;
    min-width: 0;
}

.gd-board-list-title.is-notice .gd-board-list-title-text::before {
    content: "공지";
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 56px;
    height: 28px;
    padding: 0 12px;
    border-radius: 999px;
    background-color: #ed3820;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.02em;
    flex-shrink: 0;
}

.gd-board-list-date {
    flex-shrink: 0;
    font-size: 19px;
    color: #8a96a3;
    line-height: 1;
    letter-spacing: -0.01em;
}

.gd-board-list-empty {
    padding: 80px 0;
    text-align: center;
    color: #999;
    font-size: 15px;
    border-bottom: 1px solid #d8d8d8;
}

.gd-board-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 40px 0;
}

.gd-board-pagination .page-arrow,
.gd-board-pagination .page-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    padding: 0 6px;
    border: 1px solid #ddd;
    border-radius: 3px;
    background-color: #fff;
    color: #555;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s;
}

.gd-board-pagination .page-arrow:hover,
.gd-board-pagination .page-num:hover {
    border-color: #2c5aa0;
    color: #2c5aa0;
}

.gd-board-pagination .page-num.active {
    background-color: #ED3820;
    border-color: #ED3820;
    color: #fff;
    font-weight: 700;
}

.gd-board-pagination .page-arrow.disabled {
    color: #ccc;
    border-color: #eee;
    pointer-events: none;
    cursor: default;
}


/* =============================================
   라이트박스
   ============================================= */
.gd-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.gd-lightbox[aria-hidden="false"] {
    display: flex;
}

.gd-lightbox-close {
    position: absolute;
    top: 16px;
    right: 20px;
    width: 44px;
    height: 44px;
    background: none;
    border: none;
    color: #fff;
    font-size: 36px;
    cursor: pointer;
    line-height: 1;
    opacity: 0.8;
    transition: opacity 0.2s;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gd-lightbox-close:hover {
    opacity: 1;
}

.gd-lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.15);
    border: none;
    border-radius: 50%;
    color: #fff;
    font-size: 28px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s;
    z-index: 10;
}

.gd-lightbox-nav:hover {
    background: rgba(44, 90, 160, 0.7);
}

.gd-lightbox-nav.prev {
    left: 16px;
}

.gd-lightbox-nav.next {
    right: 16px;
}

.gd-lightbox-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 1000px;
    width: 90%;
    max-height: calc(100vh - 160px);
}

.gd-lightbox-inner img {
    max-width: 100%;
    max-height: calc(100vh - 240px);
    object-fit: contain;
    display: block;
}

.gd-lightbox-meta {
    width: 100%;
    padding: 20px 0;
    color: #fff;
    text-align: center;
}

.gd-lightbox-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
}

.gd-lightbox-sub {
    font-size: 12px;
    color: #aaa;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 10px;
}

.gd-lightbox-view-link {
    display: inline-block;
    padding: 6px 16px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 3px;
    font-size: 12px;
    color: #fff;
    text-decoration: none;
    transition: all 0.2s;
}

.gd-lightbox-view-link:hover {
    border-color: #2c5aa0;
    background-color: rgba(44, 90, 160, 0.2);
}

.gd-lightbox-thumbs {
    display: flex;
    gap: 8px;
    padding: 12px 20px 0;
    overflow-x: auto;
    max-width: 1000px;
    width: 90%;
    justify-content: center;
    scrollbar-width: thin;
    scrollbar-color: #555 transparent;
}

.gd-lightbox-thumbs::-webkit-scrollbar {
    height: 4px;
}

.gd-lightbox-thumbs::-webkit-scrollbar-thumb {
    background-color: #555;
    border-radius: 2px;
}

.gd-lightbox-thumbs button {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    padding: 0;
    border: 2px solid transparent;
    border-radius: 3px;
    overflow: hidden;
    cursor: pointer;
    background-color: transparent;
    transition: border-color 0.2s;
    opacity: 0.6;
}

.gd-lightbox-thumbs button img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.gd-lightbox-thumbs button.active {
    border-color: #2c5aa0;
    opacity: 1;
}

.gd-lightbox-thumbs button:hover {
    border-color: #fff;
    opacity: 0.9;
}


/* =============================================
   반응형
   ============================================= */
@media (max-width: 1200px) {
    .gd-gallery-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .gd-gallery-toolbar {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .gd-gallery-search-form {
        width: 100%;
        gap: 0;
    }

    .gd-gallery-search-form select {
        border-radius: 0;
        border-right: none;
    }

    .gd-gallery-search-form input[type="text"] {
        flex: 1;
        min-width: 0;
        border-radius: 0;
        border-left: none;
        border-right: none;
    }

    .gd-gallery-search-form button {
        border-radius: 0;
    }

    .gd-gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .gd-gallery-card-body {
        padding: 16px 14px 18px;
    }

    .gd-gallery-title {
        font-size: 15px;
        line-height: 1.5;
    }

    .gd-gallery-category,
    .gd-gallery-date {
        font-size: 12px;
    }

    .brochure-page .gd-gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px 16px;
    }

    .brochure-page .gd-gallery-thumb-wrap,
    .brochure-page .gd-gallery-no-image {
        aspect-ratio: 3 / 4.2;
    }

    .brochure-page .gd-gallery-thumb-wrap {
        padding: 14px;
    }

    .brochure-page .gd-gallery-title {
        font-size: 15px;
    }

    .gd-lightbox-nav.prev {
        left: 8px;
    }

    .gd-lightbox-nav.next {
        right: 8px;
    }

    .gd-lightbox-nav {
        width: 44px;
        height: 44px;
        font-size: 24px;
    }

    .gd-lightbox-inner {
        width: 95%;
    }

    .gd-lightbox-thumbs {
        width: 95%;
    }

    .gd-board-wrap .gd-gallery-toolbar {
        padding-bottom: 14px;
    }

    .gd-board-list-title {
        padding: 14px 6px;
        gap: 12px;
    }

    .gd-board-list-title-text {
        font-size: 17px;
        gap: 10px;
    }

    .gd-board-list-title.is-notice .gd-board-list-title-text::before {
        min-width: 52px;
        height: 26px;
        padding: 0 10px;
        font-size: 13px;
    }

    .gd-board-list-date {
        font-size: 16px;
    }

    .gd-board-pagination .page-arrow,
    .gd-board-pagination .page-num {
        min-width: 34px;
        height: 34px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .gd-gallery-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .gd-gallery-total {
        font-size: 12px;
    }

    .gd-gallery-search-form {
        display: grid;
        grid-template-columns: 1fr;
        gap: 8px;
        width: 100%;
    }

    .gd-gallery-search-form select,
    .gd-gallery-search-form input[type="text"],
    .gd-gallery-search-form button {
        width: 100%;
        min-width: 0;
        height: 40px;
        border-radius: 4px;
        border: 1px solid #cfd3d8;
        box-sizing: border-box;
        font-size: 13px;
    }

    .gd-gallery-search-form select {
        padding: 0 12px;
        border-right: 1px solid #cfd3d8;
        appearance: auto;
        background-color: #fff;
    }

    .gd-gallery-search-form input[type="text"] {
        padding: 0 12px;
        border-left: 1px solid #cfd3d8;
        border-right: 1px solid #cfd3d8;
    }

    .gd-gallery-search-form input[type="text"]:focus,
    .gd-gallery-search-form select:focus {
        outline: none;
        border-color: #ed3820;
    }

    .gd-gallery-card-body {
        padding: 14px 12px 16px;
        gap: 8px;
    }

    .gd-gallery-title {
        font-size: 14px;
    }

    .gd-gallery-category,
    .gd-gallery-date {
        font-size: 11px;
    }

    .brochure-page .gd-gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px 12px;
    }

    .brochure-page .gd-gallery-thumb-wrap,
    .brochure-page .gd-gallery-no-image {
        aspect-ratio: 3 / 4.35;
    }

    .brochure-page .gd-gallery-thumb-wrap {
        padding: 10px;
    }

    .brochure-page .gd-gallery-card-body {
        padding: 12px 12px 14px;
    }

    .brochure-page .gd-gallery-title {
        font-size: 14px;
    }

    .gd-gallery-search-form button {
        border: 1px solid #ed3820;
        background-color: #ed3820;
        color: #fff;
        font-weight: 700;
        border-radius: 4px;
    }

    .gd-gallery-pagination {
        padding: 30px 0;
    }

    .gd-lightbox-close {
        width: 40px;
        height: 40px;
        font-size: 28px;
    }

    .gd-lightbox-thumbs button {
        width: 50px;
        height: 50px;
    }

    .gd-board-list-title {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
        padding: 12px 2px;
    }

    .gd-board-list-title-text {
        font-size: 15px;
        line-height: 1.5;
        gap: 8px;
    }

    .gd-board-list-title.is-notice .gd-board-list-title-text::before {
        min-width: 56px;
        height: 28px;
        padding: 0 10px;
        font-size: 12px;
    }

    .gd-board-list-date {
        font-size: 12px;
        color: #9aa4af;
        padding-left: 2px;
    }

    .gd-board-pagination {
        padding: 30px 0;
    }

    .gd-board-pagination .page-arrow,
    .gd-board-pagination .page-num {
        min-width: 34px;
        height: 34px;
        font-size: 12px;
    }
}


/* =============================================
   YouTube 갤러리 (mov.html)
   ============================================= */
.gd-board-wrap .gd-gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-bottom: 40px;
}

.gd-board-wrap .gd-gallery-card {
    display: flex;
    flex-direction: column;
    background-color: #fff;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    text-decoration: none;
    color: inherit;
    border-radius: 20px;
}

.gd-board-wrap .gd-gallery-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.gd-board-wrap .gd-gallery-thumb-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background-color: #f0f0f0;
}

.gd-board-wrap .gd-gallery-thumb-wrap::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.38);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
    pointer-events: none;
}

.gd-board-wrap .gd-gallery-thumb-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.gd-board-wrap .gd-gallery-card:hover .gd-gallery-thumb-image {
    transform: scale(1.05);
}

.gd-board-wrap .gd-gallery-zoom-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    width: auto;
    height: auto;
    padding: 10px 18px;
    background-color: rgba(255, 255, 255, 0.96);
    color: #222;
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: -0.01em;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translate(-50%, -50%) translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease, background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
    z-index: 2;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}

.gd-board-wrap .gd-gallery-thumb-wrap:hover::after {
    opacity: 1;
}

.gd-board-wrap .gd-gallery-thumb-wrap:hover .gd-gallery-zoom-btn {
    opacity: 1;
    transform: translate(-50%, -50%) translateY(0);
}

.gd-board-wrap .gd-gallery-zoom-btn:hover {
    background-color: #ed3820;
    border-color: #ed3820;
    color: #fff;
}

.gd-board-wrap .gd-gallery-no-image {
    width: 100%;
    aspect-ratio: 16 / 9;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f0f0f0;
    font-size: 13px;
    color: #bbb;
    letter-spacing: 1px;
}

.gd-board-wrap .gd-gallery-card-body {
    padding: 18px 18px 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.gd-board-wrap .gd-gallery-title {
    font-size: 17px;
    font-weight: 700;
    color: #222;
    text-decoration: none;
    line-height: 1.55;
    letter-spacing: -0.01em;
    display: -webkit-box;
    line-clamp: 2;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.2s;
}

.gd-board-wrap .gd-gallery-title:hover {
    color: #2c5aa0;
}

.gd-board-wrap .gd-gallery-date {
    font-size: 13px;
    color: #8c98a8;
    line-height: 1.4;
}

.gd-board-wrap .gd-gallery-card.is-notice .gd-gallery-title::before {
    content: "공지 ";
    color: #ed3820;
    font-weight: 700;
}

.gd-video-lightbox .gd-lightbox-inner {
    max-width: 1200px;
}

.gd-video-lightbox-player {
    width: 100%;
    max-width: 1200px;
    aspect-ratio: 16 / 9;
    background: #000;
    border-radius: 4px;
    overflow: hidden;
}

.gd-video-lightbox-player iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

.gd-video-lightbox .gd-lightbox-thumbs button {
    width: 84px;
    height: 48px;
}

/* YouTube 갤러리 반응형 */
@media (max-width: 1200px) {
    .gd-board-wrap .gd-gallery-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .gd-board-wrap .gd-gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .gd-board-wrap .gd-gallery-card-body {
        padding: 16px 14px 18px;
    }

    .gd-board-wrap .gd-gallery-title {
        font-size: 15px;
        line-height: 1.5;
    }

    .gd-board-wrap .gd-gallery-date {
        font-size: 12px;
    }

    .gd-video-lightbox .gd-lightbox-inner,
    .gd-video-lightbox .gd-lightbox-thumbs {
        width: 95%;
    }
}

@media (max-width: 480px) {
    .gd-board-wrap .gd-gallery-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .gd-board-wrap .gd-gallery-card-body {
        padding: 14px 12px 16px;
    }

    .gd-board-wrap .gd-gallery-title {
        font-size: 14px;
    }

    .gd-board-wrap .gd-gallery-date {
        font-size: 11px;
    }

    .gd-video-lightbox .gd-lightbox-thumbs button {
        width: 72px;
        height: 42px;
    }
}


/* =============================================
   갤러리 상세 페이지
   ============================================= */

/* 뷰 래퍼 */
.gd-gallery-view-wrap {
    width: 100%;
    background-color: #fff;
}

/* 목록 돌아가기 버튼 */
.gd-gallery-view-bottom {
    margin-bottom: 20px;
}

.gd-gallery-back {
    display: inline-block;
    padding: 8px 18px;
    border: 1px solid #ccc;
    border-radius: 3px;
    font-size: 13px;
    color: #555;
    text-decoration: none;
    background-color: #fff;
    transition: all 0.2s;
}

.gd-gallery-back:hover {
    border-color: #2c5aa0;
    color: #2c5aa0;
}

/* 뷰 헤더 */
.gd-gallery-view-head {
    padding: 24px 0 28px;
    border-bottom: 1px solid #e0e0e0;
    margin-bottom: 30px;
}

.gd-gallery-view-head .gd-gallery-category {
    display: inline-block;
    padding: 3px 10px;
    background-color: #f5f5f5;
    color: #999;
    font-size: 11px;
    font-weight: 600;
    border-radius: 2px;
    margin-bottom: 12px;
}

.gd-gallery-view-title {
    font-size: 24px;
    font-weight: 700;
    color: #222;
    line-height: 1.5;
    margin-bottom: 14px;
}

.gd-gallery-view-date {
    font-size: 13px;
    color: #999;
}

/* 뷰 이미지 */
.gd-gallery-view-images {
    margin-bottom: 40px;
}

.gd-gallery-view-images figure {
    margin: 0 0 20px;
    padding: 0;
}

.gd-gallery-view-images figure img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 4px;
}

/* 뷰 본문 */
.gd-gallery-view-content {
    font-size: 15px;
    line-height: 1.8;
    color: #444;
    padding: 10px 0 40px;
    /*border-bottom: 1px solid #e0e0e0;*/
    word-break: break-word;
}

.gd-gallery-view-content img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
}

.gd-gallery-view-content p {
    margin-bottom: 1em;
}

.gd-gallery-view-content br {
    display: block;
    line-height: 0.5;
}

/* 첨부파일 섹션 */
.gd-board-file-section {
    border-top: 1px solid #e8e8e8;
    padding: 20px 0;
    margin-top: 24px;
}

.gd-board-file-title {
    font-size: 15px;
    font-weight: 700;
    color: #333;
    margin-bottom: 12px;
}

.gd-board-file-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 0;
    margin: 0;
}

.gd-board-file-item {
    display: flex;
    align-items: center;
}

.gd-board-file-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: #f7f8f9;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    color: #333;
    font-size: 14px;
    text-decoration: none;
    transition: background 0.15s;
}

.gd-board-file-link svg {
    flex-shrink: 0;
}

.gd-board-file-link:hover {
    background: #eef2ff;
    border-color: #aab4e8;
    color: #2a3fa0;
}

.gd-board-file-name {
    word-break: break-all;
}

.gd-board-file-size {
    flex-shrink: 0;
    color: #888;
    font-size: 13px;
}

/* 리스트 첨부파일 아이콘 */
.gd-board-file-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #888;
}

.gd-view-video-wrap {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 22px;
}

.gd-view-video-wrap iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

.gd-view-video-desc {
    margin-top: 12px;
    line-height: 1.7;
    color: #333;
}

.gd-view-video-link {
    margin-top: 16px;
}

.gd-view-video-link a {
    color: #ed3820;
    text-decoration: underline;
}

/* 첨부파일 다운로드 */
.gd-download-section {
    margin: 0 0 36px;
    padding: 26px 28px;
    border: 1px solid #f2d8d3;
    border-radius: 10px;
    background: linear-gradient(180deg, #fff9f7 0%, #fff4f1 100%);
}

.gd-download-title {
    margin: 0 0 16px;
    font-size: 18px;
    font-weight: 700;
    color: #8f2418;
    letter-spacing: -0.01em;
}

.gd-download-list {
    margin: 0;
    padding: 0;
    list-style: none;
    border-top: 1px solid rgba(190, 45, 26, 0.16);
}

.gd-download-item {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 14px;
    padding: 16px 0;
    border-bottom: 1px solid rgba(190, 45, 26, 0.1);
}

.gd-download-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: #fdeae6;
    color: #be2d1a;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    line-height: 1;
}

.gd-download-info {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.gd-download-filename {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: #243447;
    line-height: 1.5;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.gd-download-meta,
.gd-download-count {
    font-size: 12px;
    color: #7d8896;
    line-height: 1.4;
}

.gd-download-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 96px;
    height: 38px;
    padding: 0 16px;
    border-radius: 999px;
    background-color: #ed3820;
    border: 1px solid #ed3820;
    color: #fff;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    transition: background-color 0.2s, border-color 0.2s, transform 0.2s;
}

.gd-download-link:hover {
    background-color: #be2d1a;
    border-color: #be2d1a;
    transform: translateY(-1px);
}

/* 이전/다음 글 네비게이션 */
.gd-gallery-nav {
    border-top: 1px solid #e0e0e0;
    margin-top: 10px;
}

.gd-gallery-nav-item {
    display: flex;
    align-items: center;
    padding: 18px 12px;
    border-bottom: 1px solid #f0f0f0;
    text-decoration: none;
    color: #333;
    gap: 20px;
    transition: background-color 0.2s;
}

a.gd-gallery-nav-item:hover {
    background-color: #fafafa;
}

.gd-gallery-nav-item.disabled {
    cursor: default;
    color: #bbb;
}

.gd-gallery-nav-label {
    font-size: 12px;
    font-weight: 600;
    color: #2c5aa0;
    white-space: nowrap;
    min-width: 40px;
}

.gd-gallery-nav-item.disabled .gd-gallery-nav-label {
    color: #bbb;
}

.gd-gallery-nav-title {
    font-size: 14px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
}


/* =============================================
   갤러리 뷰 반응형
   ============================================= */
@media (max-width: 768px) {
    .gd-gallery-view-title {
        font-size: 20px;
    }

    .gd-gallery-view-images {
        margin-bottom: 30px;
    }

    .gd-gallery-view-content {
        font-size: 14px;
        line-height: 1.7;
    }

    .gd-gallery-nav-item {
        padding: 16px 10px;
    }

    .gd-download-section {
        padding: 22px 20px;
        margin-bottom: 30px;
    }

    .gd-download-item {
        grid-template-columns: 40px minmax(0, 1fr) auto;
        gap: 12px;
    }

    .gd-download-count {
        grid-column: 2 / -1;
        margin-top: -2px;
    }
}

@media (max-width: 480px) {
    .gd-gallery-view-head {
        padding: 16px 0 20px;
        margin-bottom: 20px;
    }

    .gd-gallery-view-title {
        font-size: 16px;
        margin-bottom: 10px;
    }

    .gd-gallery-view-content {
        font-size: 13px;
        line-height: 1.6;
        padding: 8px 0 30px;
    }

    .gd-gallery-nav-item {
        padding: 14px 8px;
        gap: 12px;
    }

    .gd-gallery-nav-title {
        font-size: 13px;
    }

    .gd-download-section {
        padding: 18px 14px;
        border-radius: 8px;
    }

    .gd-download-title {
        font-size: 16px;
        margin-bottom: 12px;
    }

    .gd-download-item {
        grid-template-columns: 36px minmax(0, 1fr);
        gap: 10px;
        padding: 14px 0;
    }

    .gd-download-icon {
        width: 36px;
        height: 36px;
        border-radius: 10px;
        font-size: 16px;
    }

    .gd-download-filename {
        font-size: 14px;
        white-space: normal;
        word-break: break-word;
    }

    .gd-download-link {
        grid-column: 2;
        justify-self: start;
        min-width: 88px;
        height: 34px;
        padding: 0 14px;
        font-size: 12px;
        margin-top: 4px;
    }

    .gd-download-count {
        grid-column: 2;
        margin-top: 0;
    }
}