.video-grid {
    display: grid;

    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));

    gap: 5px;

    padding: 20px;
}

.video-card {

    padding: 10px;
    border-radius:10px;
    position: relative;
    background-color: inherit;
    transition: background-color 240ms ease, border-color 240ms ease, box-shadow 240ms ease;
}

.video-card:hover {
    background-color: #e9e9e9
}

.video-title {
    font-size: 16px;
    margin: 10px 0 6px;
    color: black;
    text-decoration: none;
}
.video-title:hover {
    text-decoration: none;
}

.video-text-card {
    display: flex;
    align-items: center;
    margin-top: 6px;
    gap: 8px;
    justify-content: space-between;
}

.thumbnail {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;

    border-radius: 12px;
}

.youtube-video-link {
    flex: 1;
    min-width: 0;
    text-decoration: none;
}

.youtube-video-link:hover {
    text-decoration: none;
}

@media (max-width: 768px) {
    .video-grid {
        padding: 0px;
        display: block;
    }

    .video-card {
        width: 100%;
    }
}