.liked-posts {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 기본 4열 */
    gap: 20px;
    justify-content: center;
    margin-top: 20px;
}

/* 좋아요한 게시물 아이템 */
.liked-post-item {
    width: 100%;
    max-width: 240px; /* 썸네일 박스 크기 고정 */
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    text-align: center;
    padding: 10px;
}

.liked-post-item .thumbnail {
    width: 100%;
    height: 0;
    padding-top: 75%; /* 4:3 비율 유지 */
    position: relative;
}

.liked-post-item .thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* 이미지 비율 유지 */
    border-radius: 8px;
}

.liked-post-item .title {
    font-size: 14px;
    margin-top: 10px;
    font-weight: bold;
}

/* 반응형 - 태블릿 */
@media screen and (max-width: 1024px) {
    .liked-posts {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* 반응형 - 모바일 */
@media screen and (max-width: 768px) {
    .liked-posts {
        grid-template-columns: repeat(2, 1fr);
    }
}
