@charset "utf-8";

/* ✨ Gallery Latest Widget - Modern Card Style */

:root {
    --gal-primary:    #3b6ef5;
    --gal-accent:     #ff5e7e;
    --gal-bg:         #ffffff;
    --gal-surface:    #f7f9fc;
    --gal-border:     #FFBFBF;
    --gal-text:       #1e2535;
    --gal-sub:        #6b7a99;
    --gal-muted:      #aab4cc;
    --gal-hover-bg:   #eef2ff;
    --gal-shadow-sm:  0 2px 10px rgba(59,110,245,0.08);
    --gal-shadow-md:  0 6px 24px rgba(59,110,245,0.13);
    --gal-radius:     18px;
    --gal-radius-sm:  11px;
    --gal-transition: all 0.24s cubic-bezier(.4,0,.2,1);
}

/* ── 전체 래퍼 ── */
.lt_gal {
    clear: both;
    position: relative;
    margin-bottom: 48px;
    border: 1.5px solid var(--gal-border);
    border-radius: var(--gal-radius);
    background: var(--gal-bg);
    box-shadow: var(--gal-shadow-sm);
    padding: 22px 20px 18px;
    overflow: hidden;
}

.lt_gal::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--gal-primary), var(--gal-accent));
    border-radius: var(--gal-radius) var(--gal-radius) 0 0;
}

.lt_gal:after {
    display: block;
    visibility: hidden;
    clear: both;
    content: "";
}

/* ── 타이틀 ── */
.lt_gal .lt_title {
    display: block;
    margin-bottom: 18px;
    font-size: 16px;
    font-weight: 700;
    color: var(--gal-text);
    letter-spacing: -0.3px;
}

.lt_gal .lt_title a {
    color: inherit;
    text-decoration: none;
    transition: var(--gal-transition);
}

.lt_gal .lt_title a:hover {
    color: var(--gal-primary);
}

/* ── 갤러리 박스 ── */
.lt_gal_box {
    padding-top: 4px;
}

.lt_gal_box:after,
.lt_gal_box ul:after {
    display: block;
    visibility: hidden;
    clear: both;
    content: "";
}

.lt_gal_box ul {
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

/* ── 리스트 아이템 카드 ── */
.lt_gal_box ul li {
    list-style: none;
    float: none;
    width: calc(25% - 9px);
    margin: 0;
    background: var(--gal-surface);
    border: 1px solid var(--gal-border);
    border-radius: var(--gal-radius-sm);
    overflow: hidden;
    transition: var(--gal-transition);
    position: relative;
}

.lt_gal_box ul li:hover {
    box-shadow: var(--gal-shadow-md);
    transform: translateY(-3px);
    border-color: var(--gal-primary);
}

.lt_gal_box ul li:last-child {
    margin-right: 0;
}

/* ── 빈 목록 ── */
.lt_gal_box ul li.empty_li {
    width: 100%;
    text-align: center;
    padding: 48px 0;
    font-size: 15px;
    color: var(--gal-muted);
    background: none;
    border: none;
}

.lt_gal_box ul li.empty_li:hover {
    transform: none;
    box-shadow: none;
}

/* ── 썸네일 이미지 링크 ── */
.lt_gal_box ul li .lt_image {
    display: block;
    overflow: hidden;
    text-decoration: none;
    background: var(--gal-border);
    aspect-ratio: 4 / 3;
}

.lt_gal_box ul li .lt_image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.32s ease;
}

.lt_gal_box ul li:hover .lt_image img {
    transform: scale(1.06);
}

/* ── no image ── */
.lt_gal_box ul li .no_img {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 100% !important;
    height: 100% !important;
    aspect-ratio: 4 / 3;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--gal-muted);
    background: var(--gal-surface);
    line-height: 1 !important;
    vertical-align: unset !important;
}

/* ── 제목 텍스트 ── */
.lt_gal_box ul li .lt_tit {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    padding: 8px 10px 10px;
    font-size: 13px;
    font-weight: 600;
    color: var(--gal-text);
    line-height: 1.45;
    text-decoration: none;
    overflow: hidden;
    transition: var(--gal-transition);
}

.lt_gal_box ul li .lt_tit:hover {
    color: var(--gal-primary);
}

/* ── 새글 뱃지 ── */
.new_icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 8px;
    right: 8px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--gal-accent);
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    line-height: 1;
    box-shadow: 0 2px 6px rgba(255,94,126,0.4);
    z-index: 2;
}

/* ── 더보기 버튼 ── */
.lt_gal_more {
    margin-top: 16px;
    text-align: right;
}

.lt_gal_more a {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    font-weight: 600;
    color: var(--gal-primary);
    text-decoration: none;
    padding: 5px 14px;
    border-radius: 20px;
    border: 1.5px solid var(--gal-primary);
    transition: var(--gal-transition);
    background: none;
}

.lt_gal_more a::after {
    content: ' →';
}

.lt_gal_more a:hover {
    background: var(--gal-primary);
    color: #fff;
    box-shadow: 0 3px 10px rgba(59,110,245,0.25);
}
