.wmg-video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}

/* Fixed column count (shortcode columns="N"), still responsive: N columns
   on desktop, steps down at tablet and mobile widths instead of squeezing
   N tiny columns into a narrow screen. */
.wmg-video-grid.wmg-fixed-cols {
    grid-template-columns: repeat(var(--wmg-cols, 3), 1fr);
}

@media (max-width: 900px) {
    .wmg-video-grid.wmg-fixed-cols {
        grid-template-columns: repeat(min(var(--wmg-cols, 3), 2), 1fr);
    }
}

@media (max-width: 560px) {
    .wmg-video-grid.wmg-fixed-cols {
        grid-template-columns: 1fr;
    }
}

.wmg-video-card {
    display: block;
    text-decoration: none;
    color: inherit;
}

.wmg-video-thumb {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
    overflow: hidden;
    border-radius: 8px;
}

.wmg-video-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.wmg-video-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    filter: drop-shadow(0 1px 4px rgba(0, 0, 0, 0.35));
}

.wmg-video-play svg {
    width: 100%;
    height: 100%;
    fill: rgba(255, 255, 255, 0.85);
}

.wmg-video-title {
    margin-top: 10px;
    font-weight: 600;
    font-size: 15px;
}

.wmg-video-description {
    margin-top: 4px;
    font-size: 13px;
    color: #666;
}
