/* Styles specific to the Video Project Overview */

/* Responsive Grid: Mobile 1 column, Laptop 2 columns */
.video-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px;
    max-width: 1400px;
    /* Wider max-width to allow 2 columns to breathe */
    margin-left: auto;
    margin-right: auto;
    grid-auto-rows: auto;
}

@media (min-width: 900px) {
    .video-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.video-grid .projekt-karte {
    position: relative;
    display: block;
    aspect-ratio: 16/9;
    overflow: hidden;
    border-radius: 12px;
    text-decoration: none;
    color: white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 0 !important;
}

.video-grid .projekt-karte:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

/* Background Image */
.video-grid .card-bg-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    transition: transform 0.5s ease;
}

.video-grid .projekt-karte:hover .card-bg-img {
    transform: scale(1.05);
}

/* Content Overlay */
.video-grid .card-content-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    /* Gradient from transparent to dark at bottom */
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.6) 40%, rgba(0, 0, 0, 0) 100%);
    padding: 80px 20px 20px 20px;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    box-sizing: border-box;
}

.video-grid h3 {
    margin: 0 0 5px 0;
    font-size: 1.5rem;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    font-family: "Bodoni Moda", serif;
    font-weight: 400;
}

.video-grid p {
    margin: 0;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.4;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Optional: Hide role list or style it minimally if needed */
.video-grid ul {
    list-style: none;
    padding: 0;
    margin: 8px 0 0 0;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}