/* ================================================================
   갤러리 스킨 4 - 2x2 그리드 레이아웃
   ================================================================ */

.gallery_skin4 {
    width: 100%;
    background: #fff;
    font-family: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* 섹션 헤더 */
.gallery4_header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
}

.gallery4_title {
    margin: 0;
    padding: 0;
    font-size: 20px;
    font-weight: 700;
    color: #000;
    letter-spacing: -0.5px;
}

.gallery4_more {
    display: inline-block;
    padding: 6px 16px;
    background: #f5f5f5;
    color: #666;
    text-decoration: none;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.gallery4_more:hover {
    background: #e8e8e8;
    color: #333;
}

/* 2x2 그리드 */
.gallery4_grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    width: 100%;
}

/* 각 아이템 */
.gallery4_item {
    width: 100%;
    display: flex;
    flex-direction: column;
}

/* 썸네일 */
.gallery4_thumb {
    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;
}

.gallery4_thumb:hover {
    transform: scale(1.02);
}

.gallery4_thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.gallery4_thumb:hover img {
    transform: scale(1.05);
}

/* 제목 */
.gallery4_title_text {
    margin: 0;
    padding: 0;
}

.gallery4_title_text a {
    color: #222;
    text-decoration: none;
    font-size: 15px;
    line-height: 1.5;
    font-weight: 500;
    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;
}

.gallery4_title_text a:hover {
    color: #0066cc;
    text-decoration: underline;
}

/* 반응형 - 태블릿 */
@media (max-width: 768px) {
    .gallery4_header {
        margin-bottom: 15px;
    }
    
    .gallery4_title {
        font-size: 18px;
    }
    
    .gallery4_more {
        padding: 5px 14px;
        font-size: 12px;
    }
    
    .gallery4_grid {
        gap: 15px;
    }
    
    .gallery4_thumb {
        margin-bottom: 10px;
    }
    
    .gallery4_title_text a {
        font-size: 14px;
    }
}

/* 반응형 - 모바일 */
@media (max-width: 480px) {
    .gallery4_header {
        margin-bottom: 12px;
    }
    
    .gallery4_title {
        font-size: 16px;
    }
    
    .gallery4_more {
        padding: 4px 12px;
        font-size: 11px;
    }
    
    .gallery4_grid {
        gap: 12px;
    }
    
    .gallery4_thumb {
        margin-bottom: 8px;
    }
    
    .gallery4_title_text a {
        font-size: 13px;
        line-height: 1.4;
    }
}

