.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 24px; margin-top: 24px; } .card { display: flex; flex-direction: column; gap: 8px; color: inherit; text-decoration: none; min-width: 0; border-radius: 16px; padding: 12px; background: var(--surface, #ffffff08); } .card > :first-child { aspect-ratio: 1; border-radius: 12px; } .card strong { overflow-wrap: anywhere; } .card span { font-size: 13px; } .card:hover { background: #ffffff10; } .description { white-space: pre-wrap; overflow-wrap: anywhere; } .card .description { overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; } .actions { display: flex; align-items: center; } .actions button { min-width: 44px; min-height: 44px; border: 0; background: transparent; color: inherit; cursor: pointer; font-size: 20px; } .actions button:disabled { opacity: .3; cursor: default; } .hero { overflow-wrap: anywhere; } @media (max-width: 600px) { .hero { flex-direction: column; align-items: flex-start; gap: 16px; } .hero > div { width: 100%; } } @media (max-width: 600px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; } .card { padding: 8px; } }