/* 갤러리 스킨 1 - 카드형 세로 리스트 */

.gallery1_skin {
    width: 100%;
}

/* col-small 안에서는 세로 배치 (기본) */
.gallery1_card {
    width: 100%;
    margin-bottom:20px;
    border-radius: 5px 5px 0 0;
    overflow: hidden;
    transition: box-shadow 0.3s;
}


/* 마지막 카드는 margin-bottom 없음 */
.gallery1_card:last-child {
    margin-bottom: 0;
}

/* 헤더 (Teal 배경) */
.gallery1_header {
    background: #2d8b8b;
    background: linear-gradient(135deg, #2d8b8b 0%, #1a7070 100%);
}

.gallery1_header_link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 20px;
    text-decoration: none;
    transition: background 0.2s;
}

.gallery1_header_link:hover {
    background: rgba(0, 0, 0, 0.1);
}

.gallery1_header_title {
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: -0.3px;
}

.gallery1_header_arrow {
    color: #fff;
    font-size: 24px;
    font-weight: 300;
    opacity: 0.9;
}

/* 이미지 영역 */
.gallery1_image {
    width: 100%;
    height: 165px; /* 고정 높이 */
    position: relative;
    overflow: hidden;
    background: #f5f5f5;
}

.gallery1_image a {
    display: block;
    width: 100%;
    height: 100%;
    line-height: 0;
}

.gallery1_image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover; /* 이미지 비율 유지하며 영역 채우기 */
    object-position: center; /* 중앙 정렬 */
    transition: transform 0.3s ease;
}

/* 텍스트 영역 */
.gallery1_text {
    padding: 15px 20px 18px;
    background: #fff;
    min-height: 70px;
}

.gallery1_title {
    display: block;
    font-size: 15px;
    line-height: 1.65;
    color: #222;
    font-weight: 500;
    text-decoration: none;
    word-break: keep-all;
    transition: color 0.2s;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.gallery1_title:hover {
    color: #2d8b8b;
    text-decoration: none;
}

/* 반응형 */
@media (max-width: 768px) {
    .gallery1_card {
        margin-bottom: 15px;
    }
    
    .gallery1_header {
        padding: 10px 15px;
    }
    
    .gallery1_header_title {
        font-size: 14px;
    }
    
    .gallery1_text {
        padding: 12px 15px;
    }
    
    .gallery1_title {
        font-size: 14px;
        line-height: 1.5;
    }
}

/* 여러 카드가 나란히 배치될 때 (옵션) */
.gallery1_skin.grid-layout {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.gallery1_skin.grid-layout .gallery1_card {
    margin-bottom: 0;
}

