/* STORYMAKER Threads feed */
.threads-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.threads-card {
  min-width: 0;
  border: 1px solid #e8e8e8;
  background: #fff;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  transition: transform .35s ease, border-color .35s ease;
}

.threads-card:hover {
  transform: translateY(-4px);
  border-color: #c9c9c9;
}

.threads-media {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #f3f3f3;
}

.threads-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .7s cubic-bezier(.16,1,.3,1);
}

.threads-card:hover .threads-media img { transform: scale(1.035); }

.threads-copy {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 1;
  min-height: 210px;
}

.threads-date {
  font-size: .7rem;
  text-transform: uppercase;
  letter-spacing: .14em;
  opacity: .45;
  font-weight: 600;
}

.threads-text {
  font-size: .98rem;
  line-height: 1.58;
  font-weight: 300;
  display: -webkit-box;
  -webkit-line-clamp: 7;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.threads-arrow {
  margin-top: auto;
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  font-weight: 600;
}

.threads-card.text-only .threads-copy {
  min-height: 340px;
  justify-content: flex-start;
}

.threads-loading,
.threads-empty {
  grid-column: 1 / -1;
  padding: 42px 0;
  border-top: 1px solid #e8e8e8;
  color: rgba(0,0,0,.5);
  font-size: .9rem;
}

@media (max-width: 1024px) {
  .threads-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 600px) {
  .threads-grid { grid-template-columns: 1fr; }
  .threads-card.text-only .threads-copy { min-height: 250px; }
}
