/* ════════════════════════════════════════
   gallery 스킨 — 게시판 (썸네일 그리드)
   ════════════════════════════════════════ */

.board-container.skin-gallery {
    max-width: 1280px;
    margin: 0 auto;
    padding: 24px 16px;
}

.board-container.skin-gallery .board-search {
    display: flex;
    gap: 6px;
    margin-bottom: 24px;
    justify-content: flex-end;
}
.board-container.skin-gallery .board-search input[type=text] {
    padding: 9px 13px;
    border: 1px solid #d6dce3;
    border-radius: 22px;
    width: 280px;
}
.board-container.skin-gallery .board-search button {
    padding: 9px 20px;
    background: #1abc9c;
    color: #fff;
    border: 0;
    border-radius: 22px;
    cursor: pointer;
    font-weight: 600;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 22px;
}
.gallery-empty {
    grid-column: 1 / -1;
    text-align: center;
    color: #95a5a6;
    padding: 40px 0;
}

.g2-card {
    display: block;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    transition: transform .2s, box-shadow .2s;
    text-decoration: none;
    color: inherit;
}
.g2-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0,0,0,0.12);
}
/* ── 공지 카드 강조 ── */
.g2-card.is-notice {
    border: 3px solid #e74c3c;
    box-shadow: 0 4px 14px rgba(231, 76, 60, 0.18);
}
.g2-card.is-notice:hover {
    box-shadow: 0 12px 28px rgba(231, 76, 60, 0.30);
}

.g2-thumb {
    position: relative;
    aspect-ratio: 16 / 10;
    background: linear-gradient(135deg, #ecf0f1 0%, #bdc3c7 100%) center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.g2-placeholder {
    font-size: 48px;
    opacity: 0.4;
}

/* 일반 배지 (혹시 다른 용도로 쓸 수 있게 기본형 유지) */
.g2-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #e74c3c;
    color: #fff;
    padding: 6px 14px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
    z-index: 2;
}

/* 공지 카드의 배지 — 약간의 깜빡임 강조 + 더 큼 */
.g2-card.is-notice .g2-badge {
    background: #e74c3c;
    font-size: 14px;
    padding: 7px 16px;
    animation: g2-notice-pulse 2.5s ease-in-out infinite;
}

/* 공지 카드의 썸네일 위쪽에 그라디언트 어둠 — 배지 가독성 보장 */
.g2-card.is-notice .g2-thumb::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 70px;
    background: linear-gradient(to bottom, rgba(0,0,0,0.45) 0%, rgba(0,0,0,0) 100%);
    z-index: 1;
    pointer-events: none;
}

@keyframes g2-notice-pulse {
    0%, 100% { box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25); }
    50%      { box-shadow: 0 2px 18px rgba(231, 76, 60, 0.85); }
}

.g2-meta { padding: 16px; position: relative; }
.g2-title {
    font-size: 16px;
    margin: 0 0 8px;
    font-weight: 700;
    color: #2c3e50;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
}
.g2-info {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #95a5a6;
}
.g2-cmt {
    position: absolute;
    bottom: 10px;
    right: 14px;
    background: #1abc9c;
    color: #fff;
    padding: 2px 10px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 600;
}

/* ── 페이지네이션 ── */
.board-container.skin-gallery .board-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 32px;
}
.board-container.skin-gallery .pagination a,
.board-container.skin-gallery .pagination span {
    display: inline-block;
    padding: 7px 13px;
    margin: 0 2px;
    border: 1px solid transparent;
    color: #2c3e50;
    text-decoration: none;
    border-radius: 50%;
}
.board-container.skin-gallery .pagination .current {
    background: #1abc9c;
    color: #fff;
}
.board-container.skin-gallery .btn-write {
    background: #1abc9c;
    color: #fff;
    padding: 10px 24px;
    border-radius: 22px;
    text-decoration: none;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(26,188,156,0.3);
}

/* ── 보기/쓰기 (default 폴백 사용 시 색상만 다르게) ── */
.board-view-wrap.skin-gallery,
.board-write-wrap.skin-gallery {
    max-width: 1000px;
    margin: 0 auto;
    padding: 24px 16px;
}
.board-view-wrap.skin-gallery .board-view-head {
    border-bottom: 3px solid #1abc9c;
}
.board-write-wrap.skin-gallery .btn-submit {
    background: #1abc9c;
    color: #fff;
    padding: 11px 28px;
    border: 0;
    border-radius: 22px;
    cursor: pointer;
    font-weight: 600;
}
