/* ==========================================================================
   Codejaka Gallery Board Skin - Custom Styles
   인라인 CSS 사용 금지 원칙에 따라 모든 스타일을 이 파일에서 관리
   ========================================================================== */

/* --------------------------------------------------------------------------
   Wrapper
   -------------------------------------------------------------------------- */
.board-codejaka-gallery {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* --------------------------------------------------------------------------
   Category Nav
   -------------------------------------------------------------------------- */
.gallery-category-nav {
    gap: 0.25rem;
}

.gallery-category-nav .nav-link {
    border-radius: 2rem;
    padding: 0.3rem 0.85rem;
    font-size: 0.8125rem;
    font-weight: 500;
    color: #677788;
    border: 1px solid transparent;
    transition: all 0.2s ease;
}

.gallery-category-nav .nav-link:hover {
    color: #377dff;
    background-color: rgba(55, 125, 255, 0.06);
    border-color: rgba(55, 125, 255, 0.15);
}

.gallery-category-nav .nav-link.active {
    color: #fff;
    background-color: #377dff;
    border-color: #377dff;
}

/* --------------------------------------------------------------------------
   Read 화면 하단: 목록 영역 (본문과 시각적 구분)
   -------------------------------------------------------------------------- */
.gallery-list-below-read {
    margin-top: 2rem;
    padding: 1.25rem 1.25rem 1.5rem;
    background: #f8fafd;
    border: 1px solid #e7eaf3;
    border-radius: 0.75rem;
}

.gallery-list-section-head {
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #e7eaf3;
}

.gallery-list-section-title {
    font-size: 1rem;
    font-weight: 700;
    color: #1e2022;
    margin: 0;
    letter-spacing: -0.02em;
}

.gallery-list-section-desc {
    font-size: 0.8125rem;
    color: #8c98a4;
    margin: 0.35rem 0 0;
    line-height: 1.4;
}

@media (max-width: 575.98px) {
    .gallery-list-below-read {
        margin-top: 1.5rem;
        padding: 1rem 0.875rem 1.25rem;
    }
}

/* --------------------------------------------------------------------------
   Gallery Grid - Cards
   -------------------------------------------------------------------------- */
.gallery-card {
    border: 1px solid #e7eaf3;
    border-radius: 0.75rem;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    background: #fff;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.gallery-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 0.375rem 1rem rgba(0, 0, 0, 0.09);
    border-color: #d0d5e0;
    color: inherit;
    text-decoration: none;
}

.gallery-card-img-wrap {
    position: relative;
    border-radius: 0.75rem 0.75rem 0 0;
}

.gallery-card-img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-card:hover .gallery-card-img {
    transform: scale(1.05);
}

.gallery-card-placeholder {
    width: 100%;
    height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f8fafd;
    color: #c1c7d0;
    font-size: 3rem;
}

.gallery-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-card:hover .gallery-card-overlay {
    opacity: 1;
}

.gallery-card-zoom-icon {
    color: #fff;
    font-size: 1.5rem;
}

.gallery-card-body {
    padding: 0.75rem 0.875rem 0.625rem;
}

.gallery-card-title {
    font-size: 0.8125rem;
    font-weight: 600;
    color: #1e2022;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    line-height: 1.35;
    margin-bottom: 0.375rem;
}

/* 목록 카드: 닉네임 왼쪽 · 날짜·아이콘통계 오른쪽(날짜와 통계 사이만 가운데 점) */
.gallery-card-meta {
    display: flex;
    flex-wrap: nowrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.5rem;
    font-size: 0.6875rem;
    line-height: 1.35;
    color: #97a4af;
}

.gallery-card-meta-nick {
    flex: 1 1 auto;
    min-width: 0;
    text-align: left;
    font-weight: 500;
    color: #677788;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.gallery-card-meta-rest {
    flex: 0 1 auto;
    margin-left: auto;
    text-align: right;
    color: #8c98a4;
    letter-spacing: -0.02em;
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 0.25rem 0.35rem;
    max-width: 100%;
}

.gallery-card-stat-icons {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 0.35rem 0.5rem;
}

.gallery-card-stat {
    display: inline-flex;
    align-items: center;
    gap: 0.15rem;
    white-space: nowrap;
}

/* Bootstrap Icons (.bi) */
.gallery-card-stat .bi {
    font-size: 0.75rem;
    color: #8c98a4;
    line-height: 1;
    vertical-align: -0.05em;
}

.gallery-card-stat-val {
    font-variant-numeric: tabular-nums;
}

/* 목록: 글별 댓글 허용 여부 */
.gallery-card-comment-policy {
    margin-top: 0.25rem;
}

.gallery-card-comment-badge {
    display: inline-block;
    font-size: 0.625rem;
    font-weight: 600;
    line-height: 1;
    padding: 0.175rem 0.4rem;
    border-radius: 2rem;
    letter-spacing: -0.02em;
    vertical-align: middle;
}

.gallery-card-comment-badge--on {
    color: #0f5132;
    background: rgba(25, 135, 84, 0.12);
    border: 1px solid rgba(25, 135, 84, 0.25);
}

.gallery-card-comment-badge--off {
    color: #664d03;
    background: rgba(255, 193, 7, 0.12);
    border: 1px solid rgba(255, 193, 7, 0.35);
}

.gallery-card-comment-badge--na {
    color: #6c757d;
    background: #f1f3f5;
    border: 1px solid #e9ecef;
}

/* 카드 내 확장변수(사용자정의) 표시 */
.gallery-card-extra {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem 0.625rem;
    margin-top: 0.5rem;
    padding-top: 0.4rem;
    border-top: 1px solid #eef2f7;
}

.gallery-card-extra:not(:has(.gallery-card-extra-item)) {
    display: none;
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

.gallery-card-extra-item {
    display: inline-flex;
    align-items: baseline;
    gap: 0.25rem;
    margin: 0;
    font-size: 0.6875rem;
    line-height: 1.35;
    min-width: 0;
}

.gallery-card-extra-item dt {
    flex-shrink: 0;
    font-weight: 600;
    color: #97a4af;
    white-space: nowrap;
}

.gallery-card-extra-item dd {
    margin: 0;
    color: #1e2022;
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.gallery-card-extra-empty {
    color: #c1c7d0;
    font-weight: 400;
}

.gallery-card-check {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    z-index: 2;
}

/* Responsive card image heights */
@media (max-width: 575.98px) {
    .gallery-card-img,
    .gallery-card-placeholder {
        height: 220px;
    }
}

@media (min-width: 576px) and (max-width: 767.98px) {
    .gallery-card-img,
    .gallery-card-placeholder {
        height: 240px;
    }
}

/* --------------------------------------------------------------------------
   Gallery Empty State
   -------------------------------------------------------------------------- */
.gallery-empty {
    padding: 3rem 1rem;
}

.gallery-empty-icon {
    font-size: 3.5rem;
    color: #d0d5e0;
}

/* --------------------------------------------------------------------------
   Gallery Read (Detail View)
   -------------------------------------------------------------------------- */
.gallery-read {
    background: #fff;
    border-radius: 0.75rem;
    padding: 2rem;
    border: 1px solid #e7eaf3;
}

.gallery-read-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e2022;
    line-height: 1.4;
}

.gallery-read-title a {
    color: inherit;
    text-decoration: none;
}

.gallery-read-info {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.875rem;
    color: #8c98a4;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e7eaf3;
}

.gallery-read-info a {
    color: inherit;
    text-decoration: none;
}

/* Read: 확장변수(사용자정의) 테이블 */
.gallery-read-extra {
    margin-bottom: 1.5rem;
    padding: 1rem 1.25rem;
    background: #f8fafd;
    border-radius: 0.5rem;
    border: 1px solid #eef2f7;
}

.gallery-read-extra-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 2rem;
    margin: 0;
}

.gallery-read-extra-item {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    min-width: 0;
}

.gallery-read-extra-item dt {
    flex-shrink: 0;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #8c98a4;
    white-space: nowrap;
}

.gallery-read-extra-item dd {
    margin: 0;
    font-size: 0.875rem;
    color: #1e2022;
    word-break: break-word;
}

.gallery-read-content {
    line-height: 1.8;
    color: #1e2022;
}

.gallery-read-content img {
    max-width: 100%;
    height: auto;
    border-radius: 0.5rem;
}

.gallery-read-footer {
    padding-top: 1.5rem;
    border-top: 1px solid #e7eaf3;
    margin-top: 1.5rem;
}

.gallery-secret-form p {
    color: #677788;
}

.gallery-password-input {
    max-width: 200px;
}

/* --------------------------------------------------------------------------
   Lightbox Grid (Read View - Attached Images)
   -------------------------------------------------------------------------- */
.gallery-lightbox-item {
    display: block;
    overflow: hidden;
    border-radius: 0.5rem;
}

.gallery-lightbox-thumb {
    width: 100%;
    height: 120px;
    object-fit: cover;
    transition: transform 0.3s ease;
    border-radius: 0.5rem;
}

.gallery-lightbox-item:hover .gallery-lightbox-thumb {
    transform: scale(1.05);
}

@media (min-width: 768px) {
    .gallery-lightbox-thumb {
        height: 160px;
    }
}

/* --------------------------------------------------------------------------
   Comments
   -------------------------------------------------------------------------- */
.gallery-comments-section {
    margin-top: 1.5rem;
}

.gallery-comments-card {
    background: #fff;
    border: 1px solid #e7eaf3;
    border-radius: 0.75rem;
    padding: 1.25rem 1.5rem;
}

.gallery-comments-title {
    font-size: 0.9375rem;
    font-weight: 600;
    color: #1e2022;
    margin: 0 0 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #f0f2f5;
}

.gallery-comments-count {
    font-weight: 700;
    color: #377dff;
}

.gallery-comment-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.gallery-comment-item {
    padding: 0.875rem 0;
    border-bottom: 1px solid #f0f2f5;
}

.gallery-comment-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.gallery-comment-inner {
    padding-inline-start: calc(var(--comment-depth, 0) * 1.25rem);
}

.gallery-comment-inner[data-depth]:not([data-depth="0"]) {
    border-inline-start: 2px solid #e2e5ec;
    padding-inline-start: calc(var(--comment-depth, 0) * 1.25rem + 0.75rem);
}

.gallery-comment-head {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    margin-bottom: 0.5rem;
}

.gallery-comment-avatar-wrap {
    flex-shrink: 0;
}

.gallery-comment-avatar,
.gallery-comment-avatar-fallback {
    width: 2rem;
    height: 2rem;
    object-fit: cover;
}

.gallery-comment-avatar-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(55, 125, 255, 0.1);
    color: #377dff;
    font-weight: 600;
    font-size: 0.8125rem;
}

.gallery-comment-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    min-width: 0;
}

.gallery-comment-author {
    font-size: 0.8125rem;
    font-weight: 600;
    color: #1e2022;
}

.gallery-comment-author a {
    color: inherit;
    text-decoration: none;
}

.gallery-comment-author a:hover {
    color: #377dff;
}

.gallery-comment-date {
    font-size: 0.75rem;
    color: #97a4af;
}

.gallery-comment-secret-badge {
    font-size: 0.6875rem;
    padding: 0.15em 0.4em;
}

.gallery-comment-body {
    font-size: 0.875rem;
    line-height: 1.6;
    color: #1e2022;
}

.gallery-comment-body p:first-child { margin-top: 0; }
.gallery-comment-body p:last-child { margin-bottom: 0; }

.gallery-comment-actions {
    display: flex;
    align-items: center;
    gap: 0.125rem;
    margin-top: 0.375rem;
}

.gallery-comment-act {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    font-size: 0.75rem;
    color: #97a4af;
    text-decoration: none;
    padding: 0.15rem 0.35rem;
    border-radius: 0.25rem;
    transition: color 0.15s, background 0.15s;
}

.gallery-comment-act:hover {
    color: #377dff;
    background: rgba(55, 125, 255, 0.06);
}

.gallery-comment-act--active {
    color: #377dff;
}

.gallery-comment-act--active-danger {
    color: #de4437;
}

.gallery-comment-pagination .pagination {
    gap: 0.125rem;
}

.gallery-comment-pagination .page-link {
    font-size: 0.75rem;
    padding: 0.2rem 0.5rem;
    border-radius: 0.25rem;
}

/* Comment Write Form */
.gallery-comment-write {
    border-top: 1px solid #f0f2f5;
    padding-top: 1rem;
}

.gallery-comment-write-title {
    font-size: 0.8125rem;
    font-weight: 600;
    color: #1e2022;
    margin: 0 0 0.625rem;
}

.gallery-comment-editor-wrap {
    margin-bottom: 0.75rem;
}

.gallery-comment-write-options {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.gallery-comment-write-options .form-label {
    font-size: 0.75rem;
    color: #677788;
    margin-bottom: 0.2rem;
}

.gallery-comment-write-options .form-control {
    max-width: 140px;
}

.gallery-comment-write-options .form-check-label {
    font-size: 0.8125rem;
}

.gallery-comment-write-submit {
    display: flex;
    justify-content: flex-end;
    margin-top: 0.5rem;
}

.gallery-comment-write-submit .btn {
    font-size: 0.8125rem;
    padding: 0.375rem 1rem;
}

/* --------------------------------------------------------------------------
   Buttons: consistent outline style for secondary actions
   -------------------------------------------------------------------------- */
.gallery-footer .btn-outline-secondary {
    border-color: #d0d5e0;
    color: #677788;
}

.gallery-footer .btn-outline-secondary:hover {
    border-color: #377dff;
    color: #377dff;
    background-color: rgba(55, 125, 255, 0.04);
}

.gallery-read-footer .btn-sm {
    font-size: 0.8125rem;
}

/* --------------------------------------------------------------------------
   Footer: toolbar (search + actions) + pagination
   -------------------------------------------------------------------------- */
.gallery-footer {
    padding-bottom: 1rem;
}

/* Row 1: search left, actions right */
.gallery-footer-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

/* Search form: inline row of select + input-group */
.gallery-search-form {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0.35rem;
}

.gallery-search-select {
    width: auto;
    min-width: 100px;
    flex-shrink: 0;
}

.gallery-search-input-group {
    min-width: 0;
    flex: 1 1 auto;
    max-width: 240px;
}

.gallery-search-input-group .form-control {
    min-width: 0;
}

/* Actions */
.gallery-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem;
    flex-shrink: 0;
}

/* Row 2: Pagination - always centered */
.gallery-pagination {
    display: flex;
    justify-content: center;
    margin-top: 1.25rem;
}

/* --------------------------------------------------------------------------
   Pagination: rounded active + clean borders
   -------------------------------------------------------------------------- */
.gallery-pagination .pagination {
    gap: 0.25rem;
}

.gallery-pagination .page-link {
    border: none;
    border-radius: 0.375rem;
    padding: 0.35rem 0.7rem;
    font-size: 0.8125rem;
    font-weight: 500;
    color: #677788;
    background: transparent;
    transition: all 0.15s ease;
    min-width: 2rem;
    text-align: center;
}

.gallery-pagination .page-link:hover {
    color: #377dff;
    background-color: rgba(55, 125, 255, 0.06);
}

.gallery-pagination .page-item.active .page-link {
    color: #fff;
    background-color: #377dff;
    border-radius: 0.375rem;
    min-width: 2rem;
}

.gallery-pagination .page-item.disabled .page-link {
    color: #c1c7d0;
    background: transparent;
}

/* Comment pagination: smaller */
.gallery-comment-pagination .pagination {
    gap: 0.2rem;
}

.gallery-comment-pagination .page-link {
    border: none;
    border-radius: 0.375rem;
    padding: 0.25rem 0.55rem;
    font-size: 0.75rem;
    font-weight: 500;
    color: #677788;
    background: transparent;
    min-width: 1.6rem;
    text-align: center;
}

.gallery-comment-pagination .page-link:hover {
    color: #377dff;
    background-color: rgba(55, 125, 255, 0.06);
}

.gallery-comment-pagination .page-item.active .page-link {
    color: #fff;
    background-color: #377dff;
    border-radius: 0.375rem;
}

.gallery-comment-pagination .page-item.disabled .page-link {
    color: #c1c7d0;
}

/* --------------------------------------------------------------------------
   Form Widths (legacy, kept for non-write pages)
   -------------------------------------------------------------------------- */
.gallery-select-auto {
    width: auto;
}

.gallery-input-short {
    width: 120px;
}

.gallery-input-medium {
    width: 180px;
}

.gallery-input-long {
    width: 220px;
}

/* --------------------------------------------------------------------------
   Write Form
   -------------------------------------------------------------------------- */
.gallery-write {
    background: #fff;
    border: 1px solid #e7eaf3;
    border-radius: 0.75rem;
    padding: 1.75rem;
}

@media (max-width: 767.98px) {
    .gallery-write {
        padding: 1.25rem 1rem;
    }
}

.gallery-write-header {
    margin-bottom: 1.25rem;
}

/* 왼쪽: 카테고리·공지 select / 오른쪽: 제목 */
.gallery-write-title-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 0.75rem;
}

.gallery-write-selects {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    flex: 0 0 auto;
    align-items: center;
}

.gallery-write-selects:empty {
    display: none;
}

.gallery-write-title-wrap {
    flex: 1 1 12rem;
    min-width: 0;
}

/* select·제목 동일 높이 (form-select-sm 제거 후 공통 치수) */
.gallery-write-title-row .gallery-write-category,
.gallery-write-title-row .gallery-write-notice-select,
.gallery-write-title-row .gallery-write-title {
    min-height: 2.875rem;
    padding: 0.5rem 0.75rem;
    font-size: 1rem;
    line-height: 1.5;
    border-radius: 0.5rem;
    box-sizing: border-box;
}

.gallery-write-title-row .gallery-write-category,
.gallery-write-title-row .gallery-write-notice-select {
    width: auto;
    min-width: 7rem;
    max-width: 11rem;
    padding-right: 2.25rem;
}

.gallery-write-title-row .gallery-write-title {
    font-weight: 600;
    width: 100%;
}

.gallery-write-title:focus {
    border-color: #377dff;
    box-shadow: 0 0 0 0.2rem rgba(55, 125, 255, 0.15);
}

@media (max-width: 575.98px) {
    .gallery-write-title-row {
        flex-direction: column;
        align-items: stretch;
    }

    .gallery-write-selects {
        max-width: 100%;
    }

    .gallery-write-category,
    .gallery-write-notice-select {
        max-width: none;
        flex: 1 1 auto;
    }
}

.gallery-write-extra {
    margin-bottom: 1.25rem;
}

.gallery-write-extra .table {
    font-size: 0.8125rem;
}

.gallery-write-extra .table th {
    background: #f8fafd;
    font-weight: 600;
    white-space: nowrap;
    width: 1%;
    vertical-align: middle;
}

.gallery-write-caption {
    font-size: 0.75rem;
    color: #8c98a4;
}

.gallery-write-caption em {
    color: #de4437;
    font-style: normal;
}

.gallery-write-editor {
    margin-bottom: 1.25rem;
}

.gallery-write-options {
    padding: 0.75rem 0;
    border-top: 1px solid #f0f0f0;
    margin-bottom: 1rem;
}

.gallery-write-checks {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.25rem 0.75rem;
}

.gallery-write-checks .form-check-label {
    font-size: 0.8125rem;
    color: #677788;
}

.gallery-write-fields {
    margin-bottom: 1rem;
}

.gallery-write-fields .form-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: #677788;
    margin-bottom: 0.25rem;
}

.gallery-write-fields .form-control-sm {
    min-width: 120px;
}

/* 태그: 라벨 + 입력 한 줄 */
.gallery-write-tag-inline {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0.5rem 0.75rem;
}

.gallery-write-tag-inline .form-label {
    flex-shrink: 0;
    margin-bottom: 0;
    font-size: 0.75rem;
    font-weight: 600;
    color: #677788;
}

.gallery-write-tag-inline .form-control {
    flex: 1 1 auto;
    min-width: 0;
}

@media (max-width: 575.98px) {
    .gallery-write-tag-inline {
        flex-wrap: wrap;
    }

    .gallery-write-tag-inline .form-control {
        width: 100%;
    }
}

.gallery-write-captcha {
    margin-bottom: 1rem;
}

.gallery-write-submit {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 0.5rem;
    padding-top: 1rem;
    border-top: 1px solid #f0f0f0;
}

.gallery-write-submit .btn-primary {
    min-width: 6rem;
}

/* --------------------------------------------------------------------------
   Notice
   -------------------------------------------------------------------------- */
.gallery-notice .alert {
    border-radius: 0.5rem;
    font-size: 0.875rem;
}

.gallery-notice .alert .badge {
    font-size: 0.7rem;
    font-weight: 600;
}

/* --------------------------------------------------------------------------
   Tag List
   -------------------------------------------------------------------------- */
.board-codejaka-gallery .tagList .rank1 { font-size: 1.5rem; font-weight: 700; }
.board-codejaka-gallery .tagList .rank2 { font-size: 1.25rem; font-weight: 600; }
.board-codejaka-gallery .tagList .rank3 { font-size: 1.125rem; font-weight: 500; }
.board-codejaka-gallery .tagList .rank4 { font-size: 1rem; }
.board-codejaka-gallery .tagList .rank5 { font-size: 0.875rem; color: #8c98a4; }

.board-codejaka-gallery .tagList a {
    display: inline-block;
    margin: 0.25rem 0.5rem;
    text-decoration: none;
    color: #1e2022;
    transition: color 0.2s ease;
}

.board-codejaka-gallery .tagList a:hover {
    color: #377dff;
}

/* --------------------------------------------------------------------------
   Vote Button Active State
   -------------------------------------------------------------------------- */
.board-codejaka-gallery .vote_btn_active {
    background-color: #377dff;
    color: #fff;
    border-color: #377dff;
}

/* --------------------------------------------------------------------------
   File List
   -------------------------------------------------------------------------- */
.gallery-file-list a {
    color: #377dff;
    text-decoration: none;
}

.gallery-file-list a:hover {
    text-decoration: underline;
}

/* --------------------------------------------------------------------------
   삭제 확인 (문서 / 댓글) — 쓰기 화면과 동일 톤
   -------------------------------------------------------------------------- */
.gallery-delete {
    max-width: 32rem;
    margin: 0 auto;
}

.gallery-delete-preview {
    background: #fff;
    border: 1px solid #e7eaf3;
    border-radius: 0.75rem;
    padding: 1.25rem 1.5rem;
    margin-bottom: 1rem;
}

.gallery-delete-preview-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin: 0 0 0.5rem;
    color: #1e2022;
    line-height: 1.4;
}

.gallery-delete-preview-meta {
    margin: 0;
    font-size: 0.875rem;
    color: #8c98a4;
}

.gallery-delete-preview-author {
    font-size: 0.875rem;
    font-weight: 600;
    color: #677788;
    margin: 0;
}

.gallery-delete-preview--comment .gallery-delete-comment-body {
    font-size: 0.9375rem;
    line-height: 1.55;
    color: #1e2022;
    max-height: 14rem;
    overflow: auto;
    padding: 0.75rem;
    background: #f8fafd;
    border-radius: 0.5rem;
    border: 1px solid #eef2f7;
}

.gallery-delete-preview--comment .gallery-delete-comment-body p:first-child {
    margin-top: 0;
}

.gallery-delete-preview--comment .gallery-delete-comment-body p:last-child {
    margin-bottom: 0;
}

.gallery-delete-form {
    background: #fff;
    border: 1px solid #e7eaf3;
    border-radius: 0.75rem;
    padding: 1.5rem;
}

.gallery-delete-lead {
    font-size: 1rem;
    font-weight: 600;
    color: #1e2022;
    margin: 0 0 1.25rem;
    line-height: 1.55;
}

.gallery-delete-options {
    margin: -0.25rem 0 1.25rem;
}

.gallery-delete-options .form-check-label {
    font-size: 0.8125rem;
    color: #677788;
}

.gallery-delete-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: center;
    gap: 0.5rem;
}

.gallery-delete-actions .btn-danger {
    min-width: 4.5rem;
}

.gallery-delete-actions .btn-outline-secondary {
    border-color: #d0d5e0;
    color: #677788;
}

.gallery-delete-actions .btn-outline-secondary:hover {
    border-color: #377dff;
    color: #377dff;
    background-color: rgba(55, 125, 255, 0.04);
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 767.98px) {
    .gallery-read {
        padding: 1.25rem;
    }

    .gallery-read-title {
        font-size: 1.25rem;
    }

    .gallery-footer-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .gallery-actions {
        justify-content: flex-end;
    }

    .gallery-search-input-group {
        max-width: 100%;
    }
}
