@charset "utf-8";

/* 최신글 (웹진형) : 대표 이미지 + 썸네일 목록 */
.g7-wz {
    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-wz:hover {
    box-shadow: var(--m-shadow);
    transform: translateY(-2px);
}
.g7-wz-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 12px;
}
.g7-wz-title {
    margin: 0;
    font-size: 16px;
    font-weight: 800;
    letter-spacing: -0.02em;
}
.g7-wz-title a { color: var(--m-text); }
.g7-wz-title a:hover { color: var(--m-primary); }
.g7-wz-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-wz-more:hover {
    background: var(--m-primary-soft);
    color: var(--m-primary);
}

/* 목록 */
.g7-wz-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

/* 개별 글 : 왼쪽 썸네일 + 오른쪽 본문 */
.g7-wz-item {
    display: grid;
    grid-template-columns: 132px minmax(0, 1fr);
    gap: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--m-border);
}
.g7-wz-item:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}
/* 썸네일이 없으면 본문만 표시 */
.g7-wz-item.no-thumb {
    grid-template-columns: minmax(0, 1fr);
}

.g7-wz-thumb {
    display: block;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    border: 1px solid var(--m-border);
    border-radius: var(--m-radius-sm);
    background: var(--m-surface-2);
}
.g7-wz-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .3s ease;
}
.g7-wz-item:hover .g7-wz-thumb img { transform: scale(1.04); }

.g7-wz-body {
    display: flex;
    flex-direction: column;
    min-width: 0;
    gap: 4px;
    font-size: 14px;
}
.g7-wz-subject {
    display: block;
    overflow: hidden;
    color: var(--m-text-soft);
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.g7-wz-subject:hover { color: var(--m-primary); }
.g7-wz-summary {
    display: -webkit-box;
    overflow: hidden;
    margin: 0;
    color: var(--m-muted);
    font-size: 13px;
    line-height: 1.5;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.g7-wz-meta {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    margin-top: auto;
    color: var(--m-muted);
    font-size: 12px;
}

/* 대표(첫번째) 글 : 큰 이미지로 강조 */
.g7-wz-featured {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
}
.g7-wz-featured .g7-wz-thumb { aspect-ratio: 16 / 9; }
.g7-wz-featured .g7-wz-subject {
    font-size: 15px;
    white-space: normal;
}
.g7-wz-featured .g7-wz-summary { -webkit-line-clamp: 3; }

.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 { color: var(--m-muted); }

/* 좁은 화면에서는 썸네일 폭을 줄여 본문 가독성을 확보 */
@media (max-width: 420px) {
    .g7-wz-item { grid-template-columns: 104px minmax(0, 1fr); }
    .g7-wz-featured { grid-template-columns: minmax(0, 1fr); }
}
