/* ═══════════════════════════════════════════════
   콘텐츠 갤러리 — 지역팀 이미지/동영상 미니 뷰
   Ver 1.0.0 · 2026-04-21
   ═══════════════════════════════════════════════ */

.cg-wrap {
    padding: 12px;
    height: 100%;
    overflow-y: auto;
}
.cg-hdr {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 10px;
    border-bottom: 1px solid #f0e8e0;
    margin-bottom: 10px;
}
.cg-hdr-title {
    font-size: 14px;
    font-weight: 800;
    color: #5a3a20;
}
.cg-hdr-sub {
    font-size: 10px;
    color: #a08670;
}

/* ─── 세로 리스트: 미니 썸네일 + 텍스트 ─── */
.cg-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.cg-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px;
    background: #fff;
    border: 1px solid #f0e4d4;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.15s;
}
.cg-item:hover {
    border-color: #c9a86a;
    background: #fffdf6;
    transform: translateX(2px);
    box-shadow: 0 2px 6px rgba(201, 168, 106, 0.12);
}
.cg-thumb {
    width: 72px;
    height: 54px;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
    background: #f5ecdf;
    position: relative;
}
.cg-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.cg-type-badge {
    position: absolute;
    top: 3px;
    left: 3px;
    font-size: 8px;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 4px;
    letter-spacing: 0.05em;
    color: #fff;
}
.cg-type-badge.image { background: #6a9e6e; }
.cg-type-badge.video { background: #c9534a; }
.cg-play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 24px;
    height: 24px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 10px;
}
.cg-meta {
    flex: 1;
    min-width: 0;
}
.cg-region {
    font-size: 10px;
    font-weight: 700;
    color: #b8956a;
    margin-bottom: 2px;
}
.cg-author {
    font-size: 12px;
    font-weight: 700;
    color: #5a3a20;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.cg-date {
    font-size: 10px;
    color: #a08670;
    margin-top: 2px;
}

.cg-empty {
    padding: 40px 20px;
    text-align: center;
    color: #a88e70;
    font-size: 12px;
    line-height: 1.7;
}

/* ─── 이미지 확대 모달 ─── */
.cg-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    z-index: 10001;
    align-items: center;
    justify-content: center;
    padding: 20px;
    cursor: zoom-out;
}
.cg-modal-overlay.show {
    display: flex;
}
.cg-modal-img {
    max-width: 95%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}
.cg-modal-close {
    position: absolute;
    top: 20px;
    right: 24px;
    width: 40px;
    height: 40px;
    border: none;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: #fff;
    font-size: 22px;
    cursor: pointer;
    backdrop-filter: blur(8px);
}
.cg-modal-caption {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    font-size: 13px;
    background: rgba(0, 0, 0, 0.5);
    padding: 6px 14px;
    border-radius: 16px;
}
