/* Grille 2x5 (5 colonnes, 2 lignes) */
.rss-slides-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
  margin: 0 auto;
  align-items: stretch;
}

/* Message d'information */
.rss-slides-notice {
  padding: 12px 14px;
  border: 1px solid #ddd;
  background: #fffaf0;
  border-radius: 6px;
  text-align: center;
}

/* Cadre diapositive argentique */
.slide-frame {
  margin: 0;                      /* reset du margin par défaut de <figure> */
  border: 1px solid #bebebe;
  border-radius: 8px;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.02) inset;
  height: 230px;                  /* hauteur FIXE */
  overflow: hidden;               /* ne pas laisser le contenu gonfler la rangée */
  box-sizing: border-box;         /* bordure incluse dans le calcul total */
}

/* Zone intérieure */
.slide-inner {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;            /* centrage vertical */
  justify-content: center;        /* centrage horizontal */
  box-sizing: border-box;
  padding: 28px;                  /* marge minimale uniforme */
  min-width: 0;                   /* fix overflow en grid */
  min-height: 0;
}

/* Image: ratio respecté, jamais déformée */
.slide-inner img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  display: block;
  object-fit: contain;            /* au cas où */
  border-radius : 4px;
}

/* Responsive (optionnel) */
@media (max-width: 900px) {
  .rss-slides-grid { grid-template-columns: repeat(1, minmax(0, 1fr)); }
  
  .slide-inner {padding: 48px;}
}
