main {
  max-width: none;
}

.reading-list-container {
  padding: 1rem;
  max-width: 1400px;
  margin: 0 auto;
}

.reading-list {
  list-style: none;
  padding: 0;
  margin: 0;
  
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem 1.25rem;
}

.reading-item {
  display: flex;
  flex-direction: column;
  height: 100%;
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.13s ease, box-shadow 0.13s ease;
}

.reading-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0,0,0,0.4);
}

.reading-card {
  flex: 1;
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* Text-only card */
.reading-card--text-only {
  padding: 1.25rem;
  justify-content: center;
}

.reading-title {
  margin: 0 0 0.75rem 0;
  font-size: 1.15rem;
  line-height: 1.35;
  font-weight: 600;
}

.reading-title a {
  color: #eee;
  text-decoration: none;
}

.reading-title a:hover {
  color: #ccc;
  text-decoration: underline;
}

.reading-author {
  font-size: 0.9rem;
  color: #888;
  font-weight: 500;
}

/* Image cards */
.reading-image-wrapper {
  position: relative;
  flex: 1;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  min-height: 220px;
}

.reading-preview {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.reading-item:hover .reading-preview {
  transform: scale(1.06);
}

.reading-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.25) 60%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.25rem;
}

.reading-overlay .reading-title {
  margin: 0 0 0.6rem 0;
  font-size: 1.1rem;
  line-height: 1.3;
}

.reading-overlay .reading-author {
  font-size: 0.85rem;
  color: #ccc;
}

/* Text-only card (smaller, simpler) */
.reading-card--text-only {
  padding: 1.25rem;
  text-align: center;
  min-height: 120px; /* Keeps consistent height with image cards if desired */
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.reading-card--text-only .reading-title {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
}

.reading-card--text-only .reading-author {
  font-size: 0.85rem;
  opacity: 0.8;
}

/* Optional: Make no-image items visually distinct */
.reading-item.no-image .reading-card {
  border: 2px solid #e0e0e0;
  border-radius: 8px;
}


/* Responsive adjustments */
@media (max-width: 1024px) {
  .reading-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .reading-list {
    grid-template-columns: 1fr;
  }
  
  .reading-image-wrapper {
    aspect-ratio: 16 / 10;
    min-height: 200px;
  }
}