/* --- AMUM Video List Styling --- */

/* 1. Grid Container: Sets up a two-column responsive grid */
.amum-video-grid {
    display: grid;
    /* Two columns by default on larger screens, adjusting for spacing */
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); 
    gap: 30px; /* Space between grid items */
    margin: 20px 0;
}

/* 2. Individual Video Item Styling */
.amum-video-item {
    background: #f9f9f9;
    border: 1px solid #eee;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    overflow: hidden; /* Ensures player stays within bounds */
}

/* 3. Video Player Container Styling (for the [video] shortcode output) */
.amum-video-item .wp-video {
    /* Make video player take up full width of the item container */
    width: 100% !important; 
    height: auto !important; 
    max-width: 100%;
    margin-bottom: 15px;
    border-radius: 6px;
    /* Standard WordPress video player output */
}

/* 4. Details Section Styling */
.amum-video-details {
    padding-top: 10px;
}

/* Title Styling */
.amum-video-details h4 {
    font-size: 1.25em;
    margin-top: 0;
    margin-bottom: 10px;
    color: #333;
}

/* Metadata Paragraph Styling */
.amum-video-details p {
    font-size: 0.9em;
    margin: 5px 0;
    color: #666;
    line-height: 1.4;
}

/* --- Mobile Responsiveness --- */
@media (max-width: 768px) {
    .amum-video-grid {
        /* On small screens, stack the videos in a single column */
        grid-template-columns: 1fr;
    }
}