/* ================================================================
   갤러리 스킨 5 - 썸네일 + 텍스트 혼합형
   ================================================================ */

.gallery_skin5 {
    width: 100%;
    background: #fff;
    font-family: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* 섹션 헤더 */
.gallery5_header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #0066cc;
}

.gallery5_title {
    margin: 0;
    padding: 0;
    font-size: 20px;
    font-weight: 700;
    color: #000;
    letter-spacing: -0.5px;
    position: relative;
}

.gallery5_more {
    display: inline-block;
    padding: 6px 16px;
    background: #fff;
    color: #333;
    text-decoration: none;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.gallery5_more:hover {
    background: #f5f5f5;
    border-color: #ccc;
    color: #000;
}

/* 상단 썸네일 영역 (2개 나란히) */
.gallery5_thumb_area {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}

/* 처음 2개만 표시 */
.gallery5_thumb_item:nth-child(n+3) {
    display: none;
}

.gallery5_thumb_item {
    width: 100%;
    display: flex;
    flex-direction: column;
}

/* 썸네일 이미지 */
.gallery5_thumb_link {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #f5f5f5;
    margin-bottom: 12px;
    border-radius: 4px;
    position: relative;
    transition: transform 0.3s ease;
}

.gallery5_thumb_link:hover {
    transform: scale(1.02);
}

.gallery5_thumb_link img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.gallery5_thumb_link:hover img {
    transform: scale(1.05);
}

/* 썸네일 제목 */
.gallery5_thumb_title {
    margin: 0;
    padding: 0;
}

.gallery5_thumb_title a {
    color: #222;
    text-decoration: none;
    font-size: 16px;
    line-height: 1.5;
    font-weight: 600;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    word-break: break-word;
    transition: color 0.2s ease;
}

.gallery5_thumb_title a:hover {
    color: #0066cc;
    text-decoration: underline;
}

/* 하단 텍스트 리스트 */
.gallery5_text_list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* 처음 2개는 숨김 (썸네일 영역에 표시되므로) */
.gallery5_text_item:nth-child(-n+2) {
    display: none;
}

.gallery5_text_item {
    padding: 0;
    margin: 0;
}

.gallery5_text_item a {
    color: #222;
    text-decoration: none;
    font-size: 15px;
    line-height: 1.6;
    font-weight: 400;
    display: block;
    transition: color 0.2s ease;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.gallery5_text_item a:hover {
    color: #0066cc;
    text-decoration: underline;
}

/* 반응형 - 태블릿 */
@media (max-width: 768px) {
    .gallery5_header {
        margin-bottom: 15px;
        padding-bottom: 10px;
    }
    
    .gallery5_title {
        font-size: 18px;
    }
    
    .gallery5_more {
        padding: 5px 14px;
        font-size: 12px;
    }
    
    .gallery5_thumb_area {
        gap: 15px;
        margin-bottom: 15px;
    }
    
    .gallery5_thumb_title a {
        font-size: 15px;
    }
    
    .gallery5_text_list {
        gap: 10px;
    }
    
    .gallery5_text_item a {
        font-size: 14px;
    }
}

/* 반응형 - 모바일 */
@media (max-width: 480px) {
    .gallery5_header {
        margin-bottom: 12px;
        padding-bottom: 8px;
        border-bottom-width: 1px;
    }
    
    .gallery5_title {
        font-size: 16px;
    }
    
    .gallery5_more {
        padding: 4px 12px;
        font-size: 11px;
    }
    
    .gallery5_thumb_area {
        gap: 12px;
        margin-bottom: 12px;
    }
    
    .gallery5_thumb_title a {
        font-size: 14px;
    }
    
    .gallery5_text_list {
        gap: 8px;
    }
    
    .gallery5_text_item a {
        font-size: 13px;
    }
}

