@charset "utf-8";
/* 모던 그리드 갤러리 스킨 */
.pic_lt {
    position: relative;
    overflow: hidden;
    background: #fff;
    border: none;
}
.pic_lt ul {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 4px !important;
    padding: 0 !important;
    margin: 0 !important;
    list-style: none !important;
}
.pic_lt ul:after { display: none !important; }
.pic_lt li {
    float: none !important;
    width: auto !important;
    padding: 0 !important;
    overflow: hidden;
    background: #fff;
    aspect-ratio: 16/9 !important;
    border-radius: 12px;
}
.pic_lt li .lt_img {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
    margin: 0;
    cursor: pointer;
}
.pic_lt li .lt_img img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block;
    transition: transform 0.3s ease;
    filter: brightness(1.3);
}
.pic_lt li:hover .lt_img img {
    transform: scale(1.05);
}
.pic_lt li .lt_overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 5px 5px 4px;
    background: rgba(0,0,0,0.35);
    opacity: 0;
    transition: opacity 0.3s ease;
}
.pic_lt li:hover .lt_overlay {
    opacity: 1;
}
.pic_lt li .lt_overlay span {
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    display: block;
    text-align: center;
    word-break: keep-all;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
    overflow: visible;
    white-space: normal;
    text-overflow: unset;
}
.pic_lt li.empty_li {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px;
    color: #999;
    aspect-ratio: auto;
}

/* 라이트박스 */
.lb_overlay {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    background: rgba(255,255,255,0.95);
    z-index: 999999;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}
.lb_overlay.active { display: flex; }
.lb_overlay .lb_close {
    position: absolute;
    top: 20px; right: 30px;
    color: #333;
    font-size: 40px;
    cursor: pointer;
    z-index: 1000000;
    line-height: 1;
    font-weight: 300;
}
.lb_overlay .lb_prev,
.lb_overlay .lb_next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: #333;
    font-size: 50px;
    cursor: pointer;
    z-index: 1000000;
    user-select: none;
    padding: 20px;
    line-height: 1;
    font-weight: 300;
}
.lb_overlay .lb_prev { left: 20px; }
.lb_overlay .lb_next { right: 20px; }
.lb_overlay .lb_prev:hover,
.lb_overlay .lb_next:hover,
.lb_overlay .lb_close:hover { color: #ec77ab; }
.lb_overlay .lb_content {
    text-align: center;
    max-width: 900px;
    max-height: 90%;
    cursor: default;
}
.lb_overlay .lb_content img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
}
.lb_overlay .lb_title {
    color: #333;
    font-size: 15px;
    margin-top: 12px;
    font-weight: 500;
}
.lb_overlay .lb_count {
    color: #999;
    font-size: 12px;
    margin-top: 5px;
}

@media (max-width: 768px) {
    .pic_lt ul {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 2px;
    }
    .pic_lt li .lt_overlay span { font-size: 10px; }
    .lb_overlay {
        z-index: 999999 !important;
    }
    .lb_overlay .lb_content {
        max-width: 95%;
        padding: 10px;
    }
    .lb_overlay .lb_content img {
        max-width: 100%;
        max-height: 70vh;
    }
    .lb_overlay .lb_prev { left: 5px; font-size: 30px; padding: 10px; }
    .lb_overlay .lb_next { right: 5px; font-size: 30px; padding: 10px; }
    .lb_overlay .lb_close { top: 10px; right: 15px; font-size: 30px; z-index: 1000000; }
    .lb_overlay .lb_title { font-size: 13px; }
}
