/* kboard-gallery-latest.css */
.kboard-gallery-latest-posts {
    margin: 20px 0;
}

.kboard-gallery-latest-posts ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 20px;
}

.kboard-gallery-latest-posts .post-item {
    transition: transform 0.2s;
}

.kboard-gallery-latest-posts .post-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.kboard-gallery-latest-posts .post-thumbnail {
    width: 100%;
    padding-bottom: 75%; /* 4:3 비율 */
    position: relative;
    overflow: hidden;
    background: #f5f5f5;
}

.kboard-gallery-latest-posts .post-thumbnail img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.kboard-gallery-latest-posts .no-thumbnail {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    background: #f5f5f5;
}

.kboard-gallery-latest-posts .post-content {
    padding: 15px;
}

.kboard-gallery-latest-posts .post-title {
    margin: 0 0 10px 0;
    line-height: 1;
}

.kboard-gallery-latest-posts .post-title a {
    text-decoration: none;
    color: #333;
    font-size: 15px !important;
    font-weight: normal;
}

.kboard-gallery-latest-posts .post-meta {
    font-size: 0.9em;
    color: #666;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

/* 태블릿 (768px 이상) */
@media screen and (min-width: 768px) {
    .kboard-gallery-latest-posts ul {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* PC (1024px 이상) */
@media screen and (min-width: 1024px) {
    .kboard-gallery-latest-posts ul {
        grid-template-columns: repeat(4, 1fr);
    }
}
