.psp-grid-wrapper {
  width: 100%;
  overflow-x: auto;
  padding: 20px 0;
}

.psp-grid-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px,1fr));
  gap: 20px;
  padding: 0 15px;
}

@media (max-width: 768px) {
  .psp-grid-container {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
  }
  .psp-post-card {
    flex: 0 0 auto;
    scroll-snap-align: start;
    width: 85vw;
    max-width: 320px;
  }
}

.psp-post-card {
  display: block;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 3px 8px rgba(0,0,0,0.15);
  transition: transform .3s ease, box-shadow .3s ease;
  background: #fff;
}

.psp-post-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.2);
}

.psp-image {
  position: relative;
  background-size: cover;
  background-position: center;
  aspect-ratio: 16 / 9;
}

/* ناحیه اطلاعات عنوان و متا در پایین تصویر */
.psp-info-box {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  padding: 10px 12px;
  box-sizing: border-box;
}

.psp-info-title {
  font-size: 1rem;
  font-weight: bold;
  line-height: 1.3;
  margin-bottom: 6px;
  white-space: normal;
}

.psp-info-meta {
  font-size: 0.85rem;
  opacity: 0.8;
}

