@charset "utf-8";

/* 기존 pic_lt 구조를 새로운 갤러리 스타일로 변경 */
.pic_lt {
    position: relative;
    margin-bottom: 20px;
}

.pic_lt .lat_title {
    text-align: center;
    margin-bottom: 20px;
    font-size: 1.5em;
    color: #333;
}

.pic_lt ul {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    width: 100%;
    height: 300px;
    overflow: hidden;
    padding: 0;
    margin: 0;
}

.pic_lt li.gallery_li {
    flex: 1;
    width: calc((100% - 60px) / 7);
    height: 100%;
    position: relative;
    transition: all 0.8s ease;
    border-radius: 15px;
    overflow: hidden;
}

.pic_lt li.gallery_li:hover {
    flex: 5.5;
    transform: scale(1);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.pic_lt li .lt_img {
    width: 100%;
    height: 100%;
    display: block;
}

.pic_lt li .lt_img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.lt_info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(0,0,0,0.5);
    color: white;
    padding: 10px;
    text-align: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.pic_lt li.gallery_li:hover .lt_info {
    opacity: 1;
}

.lt_info .lt_nick {
    display: block;
    margin-bottom: 5px;
}

.lt_info .lt_date {
    font-size: 0.8em;
}

.pic_lt li .lt_cmt {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255,255,255,0.7);
    color: #333;
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 0.8em;
}

.pic_lt .lt_more {
    display: none; /* 새 스타일에서는 더보기 버튼 숨김 */
}

/* 반응형 스타일 */
@media (max-width: 1200px) {
    .pic_lt ul {
        flex-wrap: wrap;
        height: auto;
    }
    
    .pic_lt li.gallery_li {
        width: calc((100% - 40px) / 4);
        height: 200px;
        margin-bottom: 10px;
    }

    .pic_lt li.gallery_li:hover {
        flex: 1.5;
    }
}

@media (max-width: 768px) {
    .pic_lt li.gallery_li {
        width: calc((100% - 20px) / 2);
    }
}

@media (max-width: 480px) {
    .pic_lt li.gallery_li {
        width: 100%;
    }
}