/* Full-width container specifically for the video page */
.video-page-width {
    width: 98%;
    max-width: 100%;
    margin: 0 auto;
}

/* Force the header to push content down and stay solid white */
.vid-header {
    position: sticky !important;
    top: 0;
    background-color: #ffffff;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    padding: 15px 20px;
    border-bottom: 4px solid #212529;
    margin-bottom: 40px; /* This creates the gap between the header and the videos */
}

/* Responsive Grid spanning the whole screen */
.video-grid {
    display: grid;
    /* Auto-fill creates as many columns as will fit at a 350px minimum width */
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 25px;
    padding-bottom: 40px;
}

/* Video Card Styling */
.video-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
    cursor: pointer;
    background-color: white; 
}

.video-card:hover {
    transform: translateY(-5px);
    text-decoration: none;
    box-shadow: 8px 8px 0px rgba(33, 37, 41, 0.3);
}

.video-card img {
    width: 100%;
    height: 220px; /* Taller thumbnail for wider screens */
    object-fit: cover;
    border: 4px solid #212529;
    margin-bottom: 15px;
    image-rendering: pixelated;
}

.video-card .video-description {
    font-size: 0.9rem;
    line-height: 1.4;
    color: #212529;
    margin: 0;
}