Spaces:
Running
Running
| /* Custom styles */ | |
| body { | |
| font-family: 'Be Vietnam Pro', sans-serif; | |
| min-height: 100vh; | |
| display: flex; | |
| flex-direction: column; | |
| } | |
| .news-card { | |
| transition: transform 0.3s ease, box-shadow 0.3s ease; | |
| height: 100%; | |
| display: flex; | |
| flex-direction: column; | |
| } | |
| .news-card:hover { | |
| transform: translateY(-5px); | |
| box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1); | |
| } | |
| .news-card img { | |
| transition: transform 0.3s ease; | |
| } | |
| .news-card:hover img { | |
| transform: scale(1.05); | |
| } | |
| #news-modal { | |
| opacity: 0; | |
| transition: opacity 0.3s ease; | |
| display: none; | |
| } | |
| #news-modal.show { | |
| opacity: 1; | |
| display: block; | |
| } | |
| .line-clamp-2 { | |
| display: -webkit-box; | |
| -webkit-line-clamp: 2; | |
| -webkit-box-orient: vertical; | |
| overflow: hidden; | |
| } | |
| .line-clamp-3 { | |
| display: -webkit-box; | |
| -webkit-line-clamp: 3; | |
| -webkit-box-orient: vertical; | |
| overflow: hidden; | |
| } | |
| #modal-content img { | |
| max-height: 400px; | |
| object-fit: cover; | |
| } | |
| @media (max-width: 640px) { | |
| #modal-content img { | |
| max-height: 250px; | |
| } | |
| } | |