/* 갤러리 스킨 3 - 컴팩트 카드형 스타일 */
.gallery3_skin {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
}

.gallery3_card {
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
}

/* 헤더 (초록 라벨 스타일) */
.gallery3_header {
    padding: 6px 2px 6px 2px;
}

.gallery3_header_link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #11998e; /* teal/green */
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
}

.gallery3_header_icon {
    display: inline-flex;
}

.gallery3_header_title {
    line-height: 1;
}

/* 이미지 - 고정 높이 */
.gallery3_image {
    position: relative;
    width: 100%;
    height: 165px; /* 고정 높이 */
    overflow: hidden;
    background: #f5f5f5;
}

.gallery3_image a {
    display: block;
    width: 100%;
    height: 100%;
    line-height: 0;
}

.gallery3_image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover; /* 이미지 비율 유지하며 영역 채우기 */
    object-position: center; /* 중앙 정렬 */
    transition: transform 0.3s ease;
}

.gallery3_image a:hover img {
    transform: scale(1.05);
}

/* 제목 - 2줄 말줄임 */
.gallery3_text {
    padding: 8px 2px 10px 2px;
}

.gallery3_title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #111;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.35;
    text-decoration: none;
}

.gallery3_title:hover {
    text-decoration: underline;
}

/* 반응형 */
@media (max-width: 768px) {
    .gallery3_image {
        height: 180px; /* 태블릿/모바일에서 이미지 높이 조정 */
    }
    
    .gallery3_title {
        font-size: 14px;
    }
}

@media (min-width: 480px) {
    .gallery3_skin {
        gap: 16px;
    }
}

@media (max-width: 360px) {
    .gallery3_image {
        height: 150px; /* 작은 화면에서 이미지 높이 줄임 */
    }
    
    .gallery3_title {
        font-size: 13px;
    }
    
    .gallery3_header_link {
        font-size: 13px;
    }
}


