/* Lightspeed Related Posts CSS */
.lsp-related-posts {
    margin: 2rem 0;
    padding: 2rem 0;
    border-top: 1px solid #e0e0e0;
}

.lsp-title {
    /*margin-bottom: 1.5rem;*/
}

.lsp-posts-grid {
    display: grid;
    gap: 1rem;
    margin-top: 1rem;
}

/* Default: 3 columns */
.lsp-posts-grid.lsp-cols-1 {
    grid-template-columns: 1fr;
}

.lsp-posts-grid.lsp-cols-2 {
    grid-template-columns: repeat(2, 1fr);
}

.lsp-posts-grid.lsp-cols-3 {
    grid-template-columns: repeat(3, 1fr);
}

.lsp-posts-grid.lsp-cols-4 {
    grid-template-columns: repeat(4, 1fr);
}

.lsp-posts-grid.lsp-cols-5 {
    grid-template-columns: repeat(5, 1fr);
}

.lsp-posts-grid.lsp-cols-6 {
    grid-template-columns: repeat(6, 1fr);
}

.lsp-post-item {
    background: #fff;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.lsp-post-item:hover {
    transform: translateY(-2px);
}

.lsp-thumbnail {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/9;
    border-radius: 4px;
}

.lsp-thumbnail a {
    display: block;
    height: 100%;
}

.lsp-thumb-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.lsp-post-item:hover .lsp-thumb-img {
    transform: scale(1.05);
}

.lsp-content {
    padding: 0.75rem 0.25rem;
}

.lsp-post-title {
    margin: 0 0 0.75rem 0;
    font-size: 1.1rem;
    line-height: 1.4;
}

.lsp-post-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.lsp-post-title a:hover {
    color: #0073aa;
}

.lsp-date {
    display: block;
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 0.5rem;
}

.lsp-excerpt {
    font-size: 0.9rem;
    color: #555;
    line-height: 1.5;
    margin-top: 0.75rem;
}

/* Mobile responsive - always single column on mobile */
@media (max-width: 768px) {
    .lsp-posts-grid,
    .lsp-posts-grid.lsp-cols-1,
    .lsp-posts-grid.lsp-cols-2,
    .lsp-posts-grid.lsp-cols-3,
    .lsp-posts-grid.lsp-cols-4,
    .lsp-posts-grid.lsp-cols-5,
    .lsp-posts-grid.lsp-cols-6 {
        grid-template-columns: 1fr !important;
        gap: 1rem;
    }

    .lsp-related-posts {
        margin: 1.5rem 0;
        padding: 1.5rem 0;
    }

    .lsp-title {
        font-size: 1.3rem;
        margin-bottom: 1rem;
    }

    .lsp-content {
        padding: 1rem;
    }
}

/* Tablet responsive - max 2 columns on tablets */
@media (min-width: 769px) and (max-width: 1024px) {
    .lsp-posts-grid.lsp-cols-3,
    .lsp-posts-grid.lsp-cols-4,
    .lsp-posts-grid.lsp-cols-5,
    .lsp-posts-grid.lsp-cols-6 {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

/* Large tablet/small desktop - max 3 columns */
@media (min-width: 1025px) and (max-width: 1200px) {
    .lsp-posts-grid.lsp-cols-4,
    .lsp-posts-grid.lsp-cols-5,
    .lsp-posts-grid.lsp-cols-6 {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}
