.video-gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.video-card {
    display: block;
    text-decoration: none; /* Entfernt die Link-Unterstreichung */
    color: inherit; /* Verwendet die Standard-Textfarbe */
    transition: transform 0.2s ease-in-out;
    margin-bottom: 10px;
}

.video-card:hover {
    transform: scale(1.03);
}

a.video-card:hover {
    color: #333;
    text-decoration: none;
}

.video-thumbnail-wrapper {
    position: relative;
    border-radius: 8px; /* Schöne abgerundete Ecken */
    overflow: hidden;   /* Stellt sicher, dass das Bild die Ecken nicht überragt */
    aspect-ratio: 16 / 9;
    background-color: #f0f0f0; 
}

.video-thumbnail-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover; 
}

.video-card-title {
    font-size: 15px; /* Passende Schriftgröße */
    font-weight: 600;
    line-height: 1.4;
    margin-top: 10px; /* Abstand zwischen Bild und Titel */    
}

/* Fallback-Styling */
.placeholder-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #aaa;
    font-size: 14px;
}

/* Das Badge für die Dauer */
.video-duration-badge {
    position: absolute;
    bottom: 8px; /* Abstand von unten */
    right: 8px;  /* Abstand von rechts */
    
    background-color: rgba(0, 0, 0, 0.75); /* Dunkler, halbtransparenter Hintergrund */
    color: #ffffff; /* Weiße Schrift */
    padding: 3px 6px;
    font-size: 0.8rem;
    font-weight: 500;
    border-radius: 4px;
    
    /* Verhindert, dass der Nutzer den Text im Badge auswählt */
    user-select: none; 
}

/* Tablet: 2 Spalten */
@media (max-width: 900px) {
    .video-gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile: 1 Spalte */
@media (max-width: 600px) {
    .video-gallery-grid {
        grid-template-columns: 1fr;
    }
}