/* Posts Grid Styles */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin: 0;
}
.post-card-wrap {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}
.post-card-wrap:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}
.post-card-top-wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0.75rem;
    background: rgba(0,0,0,0.05);
    flex-shrink: 0;
}
.post-card-girl-name a {
    font-weight: bold;
    color: #333;
    text-decoration: none;
    font-size: 0.8rem;
}
.post-card-girl-name a:hover {
    color: #007bff;
}
.post-card-date {
    font-size: 0.65rem;
    color: #666;
}
.cp-post-media {
    flex: 1;
    position: relative;
    overflow: hidden;
    min-height: 150px;
}
.cp-post-media img,
.cp-post-media video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.post-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.post-carousel {
    height: 100%;
}
.post-carousel .splide__slide {
    height: 100%;
}
.post-carousel .splide__slide img,
.post-carousel .splide__slide video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.post-carousel .splide__arrow {
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border-radius: 50%;
    width: 25px;
    height: 25px;
    transition: all 0.3s ease;
}
.post-carousel .splide__arrow:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: scale(1.1);
}
.post-carousel .splide__arrow--prev {
    left: 5px;
}
.post-carousel .splide__arrow--next {
    right: 5px;
}
.post-card-content-wrap {
    padding: 0.5rem 0.75rem;
    flex-shrink: 0;
    background: #fff;
}
.post-card-text {
    font-size: 0.75rem;
    line-height: 1.3;
    color: #333;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
/* Responsive adjustments */
@media (max-width: 1200px) {
    .posts-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
@media (max-width: 768px) {
    .posts-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
    
    .post-card-top-wrap {
        padding: 0.4rem 0.6rem;
    }
    
    .post-card-content-wrap {
        padding: 0.4rem 0.6rem;
    }
    
    .post-card-girl-name a {
        font-size: 0.75rem;
    }
    
    .post-card-date {
        font-size: 0.6rem;
    }
    
    .post-card-text {
        font-size: 0.7rem;
        -webkit-line-clamp: 2;
    }
    
    .post-carousel .splide__arrow {
        width: 20px;
        height: 20px;
    }
}
@media (max-width: 480px) {
    .posts-grid {
        grid-template-columns: 1fr;
    }
}
