.ny-media-grid {
    display: grid;
    gap: 20px;
    padding: 10px 0;
    /* Valeur par défaut mobile */
    grid-template-columns: repeat(var(--ny-mobile-cols), 1fr);
}

/* Tablette (ex: iPad) */
@media (min-width: 768px) {
    .ny-media-grid {
        grid-template-columns: repeat(var(--ny-tablet-cols), 1fr);
    }
}

/* Ordinateur */
@media (min-width: 1024px) {
    .ny-media-grid {
        grid-template-columns: repeat(var(--ny-desktop-cols), 1fr);
    }
}

.ny-card {
    background: #f9f9f9;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.ny-card:hover { transform: translateY(-5px); }

.ny-card h3 {
    padding: 15px;
    font-size: 16px;
    margin: 0;
    color: #333;
}

.ny-video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* Ratio 16:9 */
    height: 0;
}

.ny-video-wrapper iframe {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
}


/* Style spécifique pour la carte Podcast */


.ny-podcast-card {
    display: flex; /* Aligne l'image et le texte côte à côte */
    align-items: center;
    background: #fff;
    padding: 10px;
    gap: 15px;
}

.ny-podcast-thumb {
    flex: 0 0 100px; /* Largeur fixe de 100px pour l'image */
    height: 100px;
    overflow: hidden;
    border-radius: 4px;
}

.ny-podcast-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* L'image remplit le carré sans se déformer */
}

.ny-podcast-content {
    flex: 1; /* Prend tout l'espace restant */
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.ny-podcast-content h3 {
    padding: 0 0 10px 0 !important;
    font-size: 15px;
    line-height: 1.3;
}

.ny-podcast-content audio {
    width: 100%;
    height: 35px; /* Lecteur plus fin pour mieux s'intégrer */
}

/* Ajustement pour mobile */
@media (max-width: 480px) {
    .ny-podcast-card {
        flex-direction: column; /* On repasse en pile sur petit téléphone */
        text-align: center;
    }
    .ny-podcast-thumb {
        flex: 0 0 150px;
        width: 150px;
        height: 150px;
    }
}