/* Patch mobile / tablette pour les frises interactives */

#serie .ln-timeline-scroll,
#making-of .ln-timeline-scroll {
  width: 100%;
  max-width: 100%;
}

#serie .section-content,
#making-of .section-content {
  overflow: visible !important;
}

@media (max-width: 1024px) {

  #serie .ln-timeline-scroll,
  #making-of .ln-timeline-scroll {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 18px;
  }

  #serie .ln-timeline-scroll .containerEP,
  #making-of .ln-timeline-scroll .containerMO {
    min-width: 900px;
    margin-left: 0;
    margin-right: 0;
    background-repeat: no-repeat;
    background-size: 900px auto;
  }
}

@media (max-width: 767px) {

  /* largeur réelle de la popup */
  .smallipop,
  .smallipop-instance,
  .smallipop-content,
  .smallipop-main,
  .codenegar-tooltip,
  .codenegar-tooltip-content {
    width: min(92vw, 320px) !important;
    max-width: min(92vw, 320px) !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
  }

  /* contenu interne */
  .smallipopHint,
  .data-cn-cct,
  .smallipop-content p,
  .smallipop-content div {
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  /* image de preview dans le tooltip */
  .smallipop img,
  .smallipop-instance img,
  .smallipop-content img,
  .data-cn-cct img {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  /* texte un peu plus compact */
  .smallipop,
  .smallipop-instance,
  .smallipop-content {
    font-size: 14px !important;
    line-height: 1.4 !important;
  }
}