/* ===================================
   Boot Gallery Skin - 카드형 갤러리 스타일
   =================================== */

/* 갤러리 리스트 영역 */
#gallery-list {
    margin-top: 2rem;
}

/* ===================================
   검색 영역
   =================================== */
.gallery-search-area {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 24px;
}

.gallery-search-form {
    display: flex;
    align-items: center;
    gap: 8px;
    max-width: 500px;
    width: 100%;
}

.gallery-search-form .form-select {
    width: auto;
    min-width: 120px;
    height: 40px;
    font-size: 14px;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 0 30px 0 12px;
    background-color: #fff;
    flex-shrink: 0;
}

.gallery-search-form .form-control {
    flex: 1;
    height: 40px;
    font-size: 14px;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 0 12px;
    display: block;
}

.gallery-search-form .btn {
    height: 40px;
    padding: 0 20px;
    font-size: 14px;
    border-radius: 6px;
    white-space: nowrap;
    flex-shrink: 0;
}

/* 공지사항 영역 */
.gallery-notice {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 12px 16px;
    background: #fafafa;
}

.gallery-notice-item {
    padding: 6px 0;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.gallery-notice-item + .gallery-notice-item {
    border-top: 1px solid #eee;
}

.gallery-notice-item a {
    color: #333;
    text-decoration: none;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.gallery-notice-item a:hover {
    color: #000;
    text-decoration: underline;
}

.gallery-notice-date {
    color: #999;
    font-size: 12px;
    white-space: nowrap;
}

/* ===================================
   카드 그리드 레이아웃
   =================================== */
#gallery-list .gallery-grid {
    display: grid !important;
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    gap: 20px !important;
}

/* ===================================
   카드 스타일
   =================================== */
#gallery-list .gallery-card-wrap {
    position: relative;
    height: 262px !important;
    min-height: 262px !important;
    max-height: 262px !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
}

#gallery-list .gallery-card-check {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
}

#gallery-list .gallery-card-check .form-check-input {
    width: 18px;
    height: 18px;
}

#gallery-list .gallery-card {
    display: block !important;
    height: 262px !important;
    text-decoration: none !important;
    color: inherit !important;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    overflow: hidden !important;
    background: #fff;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

#gallery-list .gallery-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
    color: inherit;
    text-decoration: none;
}

/* 카드 이미지 - 고정 180px */
#gallery-list .gallery-card-img {
    position: relative !important;
    width: 100% !important;
    height: 180px !important;
    padding: 0 !important;
    overflow: hidden !important;
    background: #f5f5f5;
}

#gallery-list .gallery-card-img img {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    max-width: none !important;
}

#gallery-list .gallery-no-img {
    width: 100% !important;
    height: 100% !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    background: #f0f0f0;
    color: #ccc;
}

/* 카드 상단 태그 (To. 강사이름) */
#gallery-list .gallery-card-instructor {
    position: absolute !important;
    top: 8px !important;
    left: 8px !important;
    background: rgba(34, 197, 94, 0.9) !important;
    color: #fff !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    padding: 3px 10px !important;
    border-radius: 4px !important;
    z-index: 1 !important;
    line-height: 1.4 !important;
}

/* 카드 하단 태그 (카테고리/리뷰태그) */
#gallery-list .gallery-card-tag {
    position: absolute !important;
    bottom: 8px !important;
    left: 8px !important;
    background: rgba(255, 255, 255, 0.92) !important;
    color: #555 !important;
    font-size: 11px !important;
    font-weight: 500 !important;
    padding: 3px 10px !important;
    border-radius: 4px !important;
    border: 1px solid rgba(221, 221, 221, 0.8) !important;
    z-index: 1 !important;
    line-height: 1.4 !important;
}

/* 카드 바디 - 고정 82px */
#gallery-list .gallery-card-body {
    height: 82px !important;
    padding: 12px 14px !important;
    overflow: hidden !important;
}

/* 별점 */
.gallery-card-stars {
    margin-bottom: 6px;
    font-size: 0;
    line-height: 1;
}

.gallery-card-stars .star {
    font-size: 14px;
    letter-spacing: 1px;
}

.gallery-card-stars .star.filled {
    color: #f5a623;
}

.gallery-card-stars .star.empty {
    color: #ddd;
}

/* 제목 */
.gallery-card-title {
    font-size: 14px;
    font-weight: 500;
    color: #333;
    margin: 0 0 6px 0;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* 메타 정보 (작성자 | 날짜) */
.gallery-card-meta {
    font-size: 12px;
    color: #999;
    margin: 0;
    white-space: nowrap;
}

/* 빈 목록 */
.gallery-empty {
    text-align: center;
    padding: 60px 20px;
    color: #999;
    font-size: 15px;
}

/* ===================================
   페이지네이션
   =================================== */
.gallery-pagination {
    margin-top: 30px;
    margin-bottom: 15px;
    text-align: center;
}

.gallery-pagination .pg_wrap {
    display: inline-block;
    float: none;
}

/* ===================================
   하단 버튼 영역
   =================================== */
.gallery-btn-area {
    margin-bottom: 40px;
    padding-top: 10px;
    border-top: 1px solid #eee;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.gallery-btn-area .btn {
    font-size: 13px;
    padding: 6px 14px;
    border-radius: 6px;
    border: 1px solid #ddd;
    color: #555;
    background: #fff;
    transition: background 0.15s, border-color 0.15s;
}

.gallery-btn-area .btn:hover {
    background: #f5f5f5;
    border-color: #bbb;
    color: #333;
}

.gallery-btn-area .btn i {
    margin-right: 4px;
}

/* ===================================
   반응형 레이아웃
   =================================== */

/* 1440px 이하: 4열 */
@media (max-width: 1440px) {
    #gallery-list .gallery-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
        gap: 18px !important;
    }
}

/* 1024px 이하: 3열 */
@media (max-width: 1024px) {
    #gallery-list .gallery-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        gap: 16px !important;
    }
}

/* 768px 이하: 2열 */
@media (max-width: 768px) {
    #gallery-list .gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 14px !important;
    }

    #gallery-list .gallery-card {
        height: 236px !important;
    }

    #gallery-list .gallery-card-img {
        height: 160px !important;
    }

    #gallery-list .gallery-card-body {
        height: 76px !important;
        padding: 10px 12px !important;
    }

    .gallery-card-title {
        font-size: 13px;
    }

    .gallery-card-meta {
        font-size: 11px;
    }

    .gallery-search-area {
        justify-content: center;
    }

    .gallery-search-form {
        max-width: 100%;
    }

    .gallery-search-form .form-select {
        min-width: 90px;
    }

    .gallery-btn-area {
        justify-content: center;
    }
}

/* 480px 이하 */
@media (max-width: 480px) {
    #gallery-list .gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 10px !important;
    }

    #gallery-list .gallery-card {
        height: 210px !important;
    }

    #gallery-list .gallery-card-img {
        height: 140px !important;
    }

    #gallery-list .gallery-card-body {
        height: 70px !important;
        padding: 8px 10px !important;
    }

    .gallery-card-stars .star {
        font-size: 12px;
    }

    .gallery-card-title {
        font-size: 12px;
    }

    .gallery-search-form {
        flex-wrap: wrap;
    }

    .gallery-search-form .form-select {
        min-width: 100%;
    }

    .gallery-search-form .form-control {
        flex: 1;
        min-width: 0;
    }
}


/* ===================================
   View / Write 공통 스타일 (boot_board 동일)
   =================================== */

.h5 {
    font-size: 18px;
    font-weight: bold;
}

#autosave_wrapper {
    position: relative;
}

#autosave_pop {
    display: none;
    z-index: 10;
    position: absolute !important;
    top: 34px;
    right: 0;
    width: 350px;
    height: auto !important;
    height: 180px;
    max-height: 180px;
    border: 1px solid #565656;
    background: #fff;
    box-shadow: 2px 2px 3px 0px rgba(0, 0, 0, 0.2);
}

#autosave_pop:before {
    content: "";
    position: absolute;
    top: -8px;
    right: 45px;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 6px 8px 6px;
    border-color: transparent transparent #000 transparent;
}

#autosave_pop:after {
    content: "";
    position: absolute;
    top: -7px;
    right: 45px;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 6px 8px 6px;
    border-color: transparent transparent #fff transparent;
}

#autosave_pop strong {
    position: absolute;
    font-size: 0;
    line-height: 0;
    overflow: hidden;
}

#autosave_pop div {
    text-align: center;
    margin: 0 !important;
}

#autosave_pop button {
    margin: 0;
    padding: 0;
    border: 0;
}

#autosave_pop ul {
    padding: 15px;
    border-top: 1px solid #e9e9e9;
    list-style: none;
    overflow-y: scroll;
    height: 130px;
    border-bottom: 1px solid #e8e8e8;
}

#autosave_pop li {
    padding: 8px 5px;
    border-bottom: 1px solid #fff;
    background: #eee;
    zoom: 1;
}

#autosave_pop li:after {
    display: block;
    visibility: hidden;
    clear: both;
    content: "";
}

#autosave_pop a {
    display: block;
    float: left;
}

#autosave_pop span {
    display: block;
    float: right;
    font-size: 0.92em;
    font-style: italic;
    color: #999;
}

.autosave_close {
    cursor: pointer;
    width: 100%;
    height: 30px;
    background: none;
    color: #888;
    font-weight: bold;
    font-size: 0.92em;
}

.autosave_close:hover {
    background: #f3f3f3;
    color: #3597d9;
}

.autosave_content {
    display: none;
}

.autosave_del {
    background: url(./img/close_btn.webp) no-repeat 50% 50%;
    text-indent: -999px;
    overflow: hidden;
    height: 20px;
    width: 20px;
}

.mb15 {
    margin-bottom: 15px;
    margin-top: 15px;
}

.mb30 {
    margin-bottom: 30px;
    margin-top: 30px;
}

/* view.skin */
#mj-board-view-head {
    margin-top: 1rem;
}

#mj-board-view-head .mj-board-view-head-content img {
    width: 30px;
    border-radius: 50%;
}

#mj-board-view-body .mj-body-img {
    margin-bottom: 2rem;
}

/* 댓글 */
.board-comment .media-left {
    float: left;
}

.board-comment {
    margin-top: 30px;
}

.board-comment .media-list {
    margin-bottom: 30px;
    border: 1px solid rgba(0, 0, 0, .125);
    border-radius: 3px;
    padding: 10px 20px;
}

.board-comment .media-list li {
    border-bottom: 1px solid rgba(0, 0, 0, .125);
    padding-top: 10px;
}

.board-comment .media-list li:last-child {
    border-bottom: none;
}

.board-comment .media-body img {
    width: 30px;
    border-radius: 50%;
}

.board-comment .media-left {
    float: left;
}

.media img {
    border-radius: 50%;
    width: 28px;
}

.media-body {
    margin-left: 20px;
}

.txt-left {
    text-align: left !important;
}

.txt-right {
    text-align: right !important;
}

@media (max-width: 767px) {
    .txt-left {
        text-align: left !important;
    }

    .txt-right {
        text-align: left !important;
    }
}


/* ===================================
   View Page - Gallery View (#gallery-view)
   =================================== */

#gallery-view {
    margin-top: 2rem !important;
    margin-bottom: 3rem !important;
}

/* 카드 컨테이너 */
#gallery-view .gv-card {
    background: #fff !important;
    border: 1px solid #e5e5e5 !important;
    border-radius: 10px !important;
    overflow: hidden !important;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04) !important;
}

/* ===================================
   View - Header (제목 + 메타)
   =================================== */
#gallery-view .gv-header {
    padding: 28px 32px 20px !important;
    border-bottom: 1px solid #eee !important;
}

#gallery-view .gv-category {
    display: inline-block !important;
    font-size: 12px !important;
    color: #666 !important;
    background: #f5f5f5 !important;
    border: 1px solid #e0e0e0 !important;
    border-radius: 4px !important;
    padding: 3px 10px !important;
    margin-bottom: 10px !important;
}

#gallery-view .gv-title {
    font-size: 22px !important;
    font-weight: 700 !important;
    color: #222 !important;
    line-height: 1.4 !important;
    margin: 0 0 10px 0 !important;
    word-break: keep-all !important;
}

#gallery-view .gv-stars {
    margin-bottom: 14px !important;
    font-size: 0 !important;
    line-height: 1 !important;
}

#gallery-view .gv-stars .star {
    font-size: 18px !important;
    letter-spacing: 2px !important;
}

#gallery-view .gv-stars .star.filled {
    color: #f5a623 !important;
}

#gallery-view .gv-stars .star.empty {
    color: #ddd !important;
}

#gallery-view .gv-meta {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    flex-wrap: wrap !important;
    gap: 10px !important;
}

#gallery-view .gv-meta-author {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    font-size: 14px !important;
    color: #555 !important;
}

#gallery-view .gv-meta-author img {
    width: 32px !important;
    height: 32px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
}

#gallery-view .gv-author-name {
    font-weight: 600 !important;
    color: #333 !important;
}

#gallery-view .gv-ip {
    font-size: 12px !important;
    color: #999 !important;
}

#gallery-view .gv-meta-info {
    display: flex !important;
    align-items: center !important;
    gap: 14px !important;
    flex-wrap: wrap !important;
}

#gallery-view .gv-meta-item {
    font-size: 13px !important;
    color: #999 !important;
    white-space: nowrap !important;
}

#gallery-view .gv-meta-item i {
    margin-right: 3px !important;
    font-size: 12px !important;
}

/* ===================================
   View - Button Area
   =================================== */
#gallery-view .gv-btn-area {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    flex-wrap: wrap !important;
    padding: 12px 32px !important;
    border-bottom: 1px solid #eee !important;
    background: #fafafa !important;
}

#gallery-view .gv-btn-area .btn {
    font-size: 13px !important;
    padding: 6px 14px !important;
    border-radius: 6px !important;
    border: 1px solid #ddd !important;
    color: #555 !important;
    background: #fff !important;
    text-decoration: none !important;
    transition: background 0.15s, border-color 0.15s, color 0.15s !important;
    line-height: 1.5 !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
}

#gallery-view .gv-btn-area .btn:hover {
    background: #f0f0f0 !important;
    border-color: #bbb !important;
    color: #333 !important;
    text-decoration: none !important;
}

#gallery-view .gv-btn-area .btn i {
    font-size: 13px !important;
}

/* ===================================
   View - Body (본문)
   =================================== */
#gallery-view .gv-body {
    padding: 28px 32px !important;
    min-height: 200px !important;
}

#gallery-view .gv-images {
    margin-bottom: 20px !important;
}

#gallery-view .gv-images img {
    max-width: 100% !important;
    height: auto !important;
    border-radius: 6px !important;
    margin-bottom: 8px !important;
}

#gallery-view .gv-content {
    font-size: 15px !important;
    line-height: 1.8 !important;
    color: #333 !important;
    word-break: break-word !important;
}

#gallery-view .gv-content img {
    max-width: 100% !important;
    height: auto !important;
}

#gallery-view .gv-content p {
    margin-bottom: 0.8em !important;
}

#gallery-view .gv-signature {
    margin-top: 24px !important;
    padding-top: 16px !important;
    border-top: 1px dashed #ddd !important;
    font-size: 13px !important;
    color: #888 !important;
}

/* ===================================
   View - Vote (추천 / 비추천)
   =================================== */
#gallery-view .gv-vote {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 16px !important;
    padding: 24px 32px 28px !important;
    flex-wrap: wrap !important;
}

#gallery-view .gv-vote-btn {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    padding: 10px 24px !important;
    border-radius: 24px !important;
    font-size: 15px !important;
    text-decoration: none !important;
    transition: all 0.2s ease !important;
    cursor: pointer !important;
}

#gallery-view .gv-vote-good {
    border: 1px solid #c8d6e5 !important;
    color: #2e86de !important;
    background: #f0f6ff !important;
}

#gallery-view .gv-vote-good:hover {
    background: #daeaff !important;
    border-color: #2e86de !important;
    text-decoration: none !important;
}

#gallery-view .gv-vote-nogood {
    border: 1px solid #e5c8c8 !important;
    color: #e74c3c !important;
    background: #fff0f0 !important;
}

#gallery-view .gv-vote-nogood:hover {
    background: #ffe0e0 !important;
    border-color: #e74c3c !important;
    text-decoration: none !important;
}

#gallery-view .gv-vote-disabled {
    cursor: default !important;
    opacity: 0.7 !important;
}

#gallery-view .gv-vote-btn strong {
    font-weight: 700 !important;
}

#gallery-view .gv-vote-msg {
    display: none !important;
    font-size: 13px !important;
    color: #666 !important;
    margin-left: 4px !important;
}

/* ===================================
   View - Prev / Next Navigation
   =================================== */
#gallery-view .gv-prev-next {
    margin-top: 20px !important;
    border: 1px solid #e5e5e5 !important;
    border-radius: 10px !important;
    overflow: hidden !important;
    background: #fff !important;
}

#gallery-view .gv-pn-item {
    display: flex !important;
    align-items: center !important;
    padding: 14px 20px !important;
    gap: 14px !important;
    font-size: 14px !important;
}

#gallery-view .gv-pn-item + .gv-pn-item {
    border-top: 1px solid #eee !important;
}

#gallery-view .gv-pn-label {
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    color: #555 !important;
    white-space: nowrap !important;
    min-width: 70px !important;
    flex-shrink: 0 !important;
}

#gallery-view .gv-pn-label i {
    font-size: 12px !important;
}

#gallery-view .gv-pn-link {
    flex: 1 !important;
    color: #333 !important;
    text-decoration: none !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    transition: color 0.15s !important;
}

#gallery-view .gv-pn-link:hover {
    color: #000 !important;
    text-decoration: underline !important;
}

#gallery-view .gv-pn-date {
    font-size: 12px !important;
    color: #999 !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
}

#gallery-view .gv-pn-none {
    color: #bbb !important;
    font-size: 13px !important;
}

#gallery-view .gv-pn-empty {
    background: #fafafa !important;
}

/* ===================================
   View - Attachments (첨부파일)
   =================================== */
#gallery-view .gv-attach {
    margin-top: 20px !important;
    border: 1px solid #e5e5e5 !important;
    border-radius: 10px !important;
    overflow: hidden !important;
    background: #fff !important;
}

#gallery-view .gv-attach-header {
    padding: 14px 20px !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    color: #333 !important;
    border-bottom: 1px solid #eee !important;
    background: #fafafa !important;
}

#gallery-view .gv-attach-header i {
    margin-right: 4px !important;
    color: #888 !important;
}

#gallery-view .gv-attach-count {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 22px !important;
    height: 22px !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    color: #fff !important;
    background: #888 !important;
    border-radius: 11px !important;
    padding: 0 6px !important;
    margin-left: 6px !important;
}

#gallery-view .gv-attach-list {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

#gallery-view .gv-attach-item {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 12px 20px !important;
    font-size: 14px !important;
    transition: background 0.15s !important;
}

#gallery-view .gv-attach-item + .gv-attach-item {
    border-top: 1px solid #f0f0f0 !important;
}

#gallery-view .gv-attach-item:hover {
    background: #f8f8f8 !important;
}

#gallery-view .gv-attach-item a {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    color: #333 !important;
    text-decoration: none !important;
    flex: 1 !important;
    min-width: 0 !important;
}

#gallery-view .gv-attach-item a:hover {
    color: #111 !important;
}

#gallery-view .gv-attach-item a i {
    font-size: 16px !important;
    color: #888 !important;
    flex-shrink: 0 !important;
}

#gallery-view .gv-attach-name {
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}

#gallery-view .gv-attach-desc {
    font-size: 12px !important;
    color: #999 !important;
    flex-shrink: 0 !important;
}

#gallery-view .gv-attach-size {
    font-size: 12px !important;
    color: #aaa !important;
    flex-shrink: 0 !important;
}

#gallery-view .gv-attach-dl {
    font-size: 12px !important;
    color: #999 !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
    margin-left: 12px !important;
}

/* ===================================
   View - Related Links (관련링크)
   =================================== */
#gallery-view .gv-links {
    margin-top: 16px !important;
    border: 1px solid #e5e5e5 !important;
    border-radius: 10px !important;
    overflow: hidden !important;
    background: #fff !important;
}

#gallery-view .gv-links-header {
    padding: 14px 20px !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    color: #333 !important;
    border-bottom: 1px solid #eee !important;
    background: #fafafa !important;
}

#gallery-view .gv-links-header i {
    margin-right: 4px !important;
    color: #888 !important;
}

#gallery-view .gv-links-list {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

#gallery-view .gv-links-item {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 12px 20px !important;
    font-size: 14px !important;
    transition: background 0.15s !important;
}

#gallery-view .gv-links-item + .gv-links-item {
    border-top: 1px solid #f0f0f0 !important;
}

#gallery-view .gv-links-item:hover {
    background: #f8f8f8 !important;
}

#gallery-view .gv-links-item a {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    color: #2e86de !important;
    text-decoration: none !important;
    flex: 1 !important;
    min-width: 0 !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}

#gallery-view .gv-links-item a:hover {
    text-decoration: underline !important;
}

#gallery-view .gv-links-item a i {
    font-size: 12px !important;
    flex-shrink: 0 !important;
}

#gallery-view .gv-links-hit {
    font-size: 12px !important;
    color: #999 !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
    margin-left: 12px !important;
}

/* ===================================
   View - Comment Area
   =================================== */
#gallery-view .gv-comment-area {
    margin-top: 24px !important;
}

/* ===================================
   View - Responsive
   =================================== */

/* Tablet Landscape (1024px ~ 1279px) */
@media (min-width: 1024px) and (max-width: 1279px) {
    #gallery-view .gv-header {
        padding: 24px 28px 18px !important;
    }

    #gallery-view .gv-title {
        font-size: 20px !important;
    }

    #gallery-view .gv-btn-area {
        padding: 10px 28px !important;
    }

    #gallery-view .gv-body {
        padding: 24px 28px !important;
    }

    #gallery-view .gv-vote {
        padding: 20px 28px 24px !important;
    }
}

/* Tablet Portrait (768px ~ 1023px) */
@media (min-width: 768px) and (max-width: 1023px) {
    #gallery-view .gv-header {
        padding: 22px 24px 16px !important;
    }

    #gallery-view .gv-title {
        font-size: 19px !important;
    }

    #gallery-view .gv-btn-area {
        padding: 10px 24px !important;
    }

    #gallery-view .gv-body {
        padding: 22px 24px !important;
    }

    #gallery-view .gv-vote {
        padding: 18px 24px 22px !important;
    }

    #gallery-view .gv-meta {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 8px !important;
    }
}

/* Mobile (360px ~ 767px) */
@media (min-width: 360px) and (max-width: 767px) {
    #gallery-view {
        margin-top: 1rem !important;
        margin-bottom: 2rem !important;
    }

    #gallery-view .gv-card {
        border-radius: 8px !important;
    }

    #gallery-view .gv-header {
        padding: 18px 16px 14px !important;
    }

    #gallery-view .gv-title {
        font-size: 17px !important;
    }

    #gallery-view .gv-stars .star {
        font-size: 16px !important;
    }

    #gallery-view .gv-meta {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 6px !important;
    }

    #gallery-view .gv-meta-info {
        gap: 10px !important;
    }

    #gallery-view .gv-meta-item {
        font-size: 12px !important;
    }

    #gallery-view .gv-btn-area {
        padding: 10px 16px !important;
        gap: 5px !important;
    }

    #gallery-view .gv-btn-area .btn {
        font-size: 12px !important;
        padding: 5px 10px !important;
    }

    #gallery-view .gv-body {
        padding: 18px 16px !important;
        min-height: 120px !important;
    }

    #gallery-view .gv-content {
        font-size: 14px !important;
        line-height: 1.7 !important;
    }

    #gallery-view .gv-vote {
        padding: 16px 16px 20px !important;
        gap: 10px !important;
    }

    #gallery-view .gv-vote-btn {
        padding: 8px 18px !important;
        font-size: 14px !important;
    }

    #gallery-view .gv-prev-next {
        border-radius: 8px !important;
        margin-top: 16px !important;
    }

    #gallery-view .gv-pn-item {
        padding: 12px 14px !important;
        gap: 10px !important;
        font-size: 13px !important;
    }

    #gallery-view .gv-pn-label {
        font-size: 12px !important;
        min-width: 60px !important;
    }

    #gallery-view .gv-pn-date {
        display: none !important;
    }

    #gallery-view .gv-attach {
        margin-top: 16px !important;
        border-radius: 8px !important;
    }

    #gallery-view .gv-attach-header {
        padding: 12px 14px !important;
        font-size: 14px !important;
    }

    #gallery-view .gv-attach-item {
        padding: 10px 14px !important;
        font-size: 13px !important;
    }

    #gallery-view .gv-attach-item a {
        flex-wrap: wrap !important;
    }

    #gallery-view .gv-links {
        margin-top: 12px !important;
        border-radius: 8px !important;
    }

    #gallery-view .gv-links-header {
        padding: 12px 14px !important;
        font-size: 14px !important;
    }

    #gallery-view .gv-links-item {
        padding: 10px 14px !important;
        font-size: 13px !important;
    }
}

/* Fold/Flip (~359px) */
@media (max-width: 359px) {
    #gallery-view {
        margin-top: 0.5rem !important;
        margin-bottom: 1.5rem !important;
    }

    #gallery-view .gv-card {
        border-radius: 6px !important;
    }

    #gallery-view .gv-header {
        padding: 14px 12px 12px !important;
    }

    #gallery-view .gv-title {
        font-size: 15px !important;
    }

    #gallery-view .gv-stars .star {
        font-size: 14px !important;
    }

    #gallery-view .gv-meta {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 4px !important;
    }

    #gallery-view .gv-meta-author {
        font-size: 13px !important;
    }

    #gallery-view .gv-meta-info {
        gap: 8px !important;
    }

    #gallery-view .gv-meta-item {
        font-size: 11px !important;
    }

    #gallery-view .gv-btn-area {
        padding: 8px 12px !important;
        gap: 4px !important;
    }

    #gallery-view .gv-btn-area .btn {
        font-size: 11px !important;
        padding: 4px 8px !important;
    }

    #gallery-view .gv-body {
        padding: 14px 12px !important;
        min-height: 80px !important;
    }

    #gallery-view .gv-content {
        font-size: 13px !important;
    }

    #gallery-view .gv-vote {
        padding: 14px 12px 16px !important;
        gap: 8px !important;
    }

    #gallery-view .gv-vote-btn {
        padding: 6px 14px !important;
        font-size: 13px !important;
        border-radius: 20px !important;
    }

    #gallery-view .gv-prev-next {
        border-radius: 6px !important;
        margin-top: 12px !important;
    }

    #gallery-view .gv-pn-item {
        padding: 10px 12px !important;
        gap: 8px !important;
        font-size: 12px !important;
        flex-wrap: wrap !important;
    }

    #gallery-view .gv-pn-label {
        font-size: 11px !important;
        min-width: auto !important;
    }

    #gallery-view .gv-pn-date {
        display: none !important;
    }

    #gallery-view .gv-attach,
    #gallery-view .gv-links {
        margin-top: 12px !important;
        border-radius: 6px !important;
    }

    #gallery-view .gv-attach-header,
    #gallery-view .gv-links-header {
        padding: 10px 12px !important;
        font-size: 13px !important;
    }

    #gallery-view .gv-attach-item,
    #gallery-view .gv-links-item {
        padding: 8px 12px !important;
        font-size: 12px !important;
    }

    #gallery-view .gv-comment-area {
        margin-top: 16px !important;
    }
}
