@charset "utf-8";

/* 최신글 (이미지 카드) */
.g7-pic {
    margin: 0;
    padding: 20px;
    border: 1px solid var(--m-border);
    border-radius: var(--m-radius);
    background: var(--m-surface);
    box-shadow: var(--m-shadow-xs);
    transition: box-shadow .2s ease, transform .2s ease;
}
.g7-pic:hover {
    box-shadow: var(--m-shadow);
    transform: translateY(-2px);
}
.g7-pic-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 12px;
}
.g7-pic-title {
    margin: 0;
    font-size: 16px;
    font-weight: 800;
    letter-spacing: -0.02em;
}
.g7-pic-title a { color: var(--m-text); }
.g7-pic-title a:hover { color: var(--m-primary); }
.g7-pic-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--m-surface-2);
    color: var(--m-muted);
    font-size: 12px;
}
.g7-pic-more:hover {
    background: var(--m-primary-soft);
    color: var(--m-primary);
}
.g7-pic-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.g7-pic-item {
    overflow: hidden;
    border: 1px solid var(--m-border);
    border-radius: var(--m-radius-sm);
    background: var(--m-surface);
    transition: border-color .18s ease;
}
.g7-pic-item:hover { border-color: var(--m-primary); }
.g7-pic-thumb {
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--m-surface-2);
}
.g7-pic-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .3s ease;
}
.g7-pic-item:hover .g7-pic-thumb img { transform: scale(1.04); }
/* 이미지(썸네일)가 없는 글 : 자리표시자 없이 본문만 표시 */
.g7-pic-item.no-thumb .g7-pic-body {
    min-height: 82px;
    padding: 14px;
}
.g7-pic-body {
    padding: 10px 12px 12px;
    font-size: 14px;
}
.g7-pic-subject {
    display: block;
    overflow: hidden;
    color: var(--m-text-soft);
    text-decoration: none;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.g7-pic-subject:hover { color: var(--m-primary); }
.g7-pic-meta {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    margin-top: 6px;
    color: var(--m-muted);
    font-size: 12px;
}
.g7-lock { color: var(--m-muted); font-size: 12px; }
.g7-cmt,
.g7-new {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 18px;
    padding: 0 6px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    vertical-align: middle;
}
.g7-cmt { background: var(--m-surface-2); color: var(--m-muted); }
.g7-new { background: var(--m-danger); color: #fff; }
.g7-empty {
    grid-column: 1 / -1;
    color: var(--m-muted);
}
