.lps-slider-wrapper {
    width: 100%;
    overflow: hidden;
    position: relative;
}

/* Force the scrolling behavior to be LTR so autoplay + drag همیشه درست کار کنه */
.lps-slider {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    padding: 10px 4px 10px 4px;
    -webkit-overflow-scrolling: touch;
    direction: ltr !important;
}

.lps-slider::-webkit-scrollbar {
    height: 6px;
}

.lps-slider::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.lps-slider::-webkit-scrollbar-thumb {
    background: #ccc;
}

.lps-slide {
    flex: 0 0 calc(25% - 12px); /* 4 items per row on desktop */
    max-width: calc(25% - 12px);
    scroll-snap-align: start;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
    /* محتوا RTL و راست‌چین */
    direction: rtl;
    text-align: right;
}

.lps-thumb img,
.lps-thumb-placeholder {
    display: block;
    width: 100%;
    height: 180px;
    object-fit: cover;
    background: #eee;
}

.lps-thumb-placeholder {
    background: #e5e5e5;
}

.lps-meta {
    padding: 10px 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.lps-cats {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    font-size: 11px;
}

.lps-cats a {
    text-decoration: none;
    padding: 2px 6px;
    border-radius: 999px;
    background: #f4f4f4;
    color: #555;
}

.lps-cats a:hover {
    background: #ddd;
}

.lps-title {
    margin: 0;
    font-size: 14px;
    line-height: 1.4;
}

.lps-title a {
    text-decoration: none;
    color: #222;
}

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

/* Tablet: 3 per row */
@media (max-width: 1024px) {
    .lps-slide {
        flex: 0 0 calc(33.333% - 11px);
        max-width: calc(33.333% - 11px);
    }
}

/* Mobile: 2 per row */
@media (max-width: 768px) {
    .lps-slide {
        flex: 0 0 calc(50% - 10px);
        max-width: calc(50% - 10px);
    }
}

.lps-dragging {
    cursor: grabbing;
    cursor: -webkit-grabbing;
}
