1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59
|
.case-card-container { display: grid; grid-template-columns: repeat(auto-fill, 380px); justify-content: center; gap: 20px; padding: 20px; max-width: 1260px; margin: 0 auto; max-height: 1770px; overflow: hidden; }
.case-card { width: 380px; height: 420px; box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); overflow: hidden; display: flex; flex-direction: column; }
.case-card img { width: 100%; height: 48%; object-fit: cover; } .case-card .card-content{ max-height: 300px; flex: 1; }
.case-card .card-content h2{ line-height: 2.25rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; font-size: 18px; overflow: hidden; text-overflow: ellipsis; }
.case-card .card-content .sub-title{ line-height: 2rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; text-overflow: ellipsis; font-size: 14px; }
.case-card .card-footer{ display: flex; justify-content: space-between; align-items: center; }
|