/**
 * Lot 013 - hero du listing et galerie unitaire des fiches actualite.
 */

.moliner-news-gallery-slider {
  display: none;
}

@media only screen and (max-width: 690px) {
  /* Le container retrouve sa largeur native : aucune gouttiere sur le hero. */
  body.page-id-2922
    #ajax-content-wrap
    .container.main-content
    > .row {
    width: 100% !important;
    max-width: 100% !important;
    margin-right: 0 !important;
    margin-left: 0 !important;
  }

  /* Hero plein ecran, sans modifier sa zone de texte interne. */
  body.page-id-2922
    #ajax-content-wrap
    .container.main-content
    > .row
    > .wpb_row.full-width-content:not(:has(.blogfree-plugin)) {
    position: relative;
    left: 50% !important;
    width: 100vw !important;
    max-width: none !important;
    margin-right: 0 !important;
    margin-left: -50vw !important;
  }

  body.page-id-2922
    #ajax-content-wrap
    .container.main-content
    > .row
    > .wpb_row.full-width-content:not(:has(.blogfree-plugin))
    > .row_col_wrap_12 {
    width: 100% !important;
    padding-right: 10vw !important;
    padding-left: 10vw !important;
  }

  /* Seule la liste des actualites conserve la gouttiere de 5vw. */
  body.page-id-2922
    #ajax-content-wrap
    .container.main-content
    > .row
    > .wpb_row:has(.blogfree-plugin) {
    position: relative;
    left: auto !important;
    width: 90vw !important;
    max-width: none !important;
    margin-right: calc(50% - 45vw) !important;
    margin-left: calc(50% - 45vw) !important;
  }

  /* La galerie Flickity historique est remplacee uniquement lorsque le JS est pret. */
  body.single-blog_post .moliner-news-gallery-source {
    display: none !important;
  }

  body.single-blog_post .moliner-news-gallery-slider {
    position: relative;
    display: block;
    width: 100%;
    max-width: 100%;
    margin: 0 0 22px;
    overflow: hidden;
  }

  body.single-blog_post .moliner-news-gallery-track {
    display: flex;
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-x;
  }

  body.single-blog_post .moliner-news-gallery-track::-webkit-scrollbar {
    display: none;
  }

  body.single-blog_post .moliner-news-gallery-slide {
    display: block;
    flex: 0 0 100%;
    width: 100%;
    min-width: 100%;
    margin: 0;
    padding: 0;
    scroll-snap-align: start;
    scroll-snap-stop: always;
  }

  body.single-blog_post .moliner-news-gallery-slide .img-with-aniamtion-wrap,
  body.single-blog_post .moliner-news-gallery-slide .inner,
  body.single-blog_post .moliner-news-gallery-slide .hover-wrap,
  body.single-blog_post .moliner-news-gallery-slide .hover-wrap-inner {
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    transform: none !important;
  }

  body.single-blog_post .moliner-news-gallery-slide img {
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    object-position: center;
    opacity: 1 !important;
    transform: none !important;
  }

  body.single-blog_post .moliner-news-gallery-button {
    position: absolute;
    z-index: 3;
    top: 50%;
    display: inline-flex;
    width: 40px;
    height: 40px;
    margin: 0;
    padding: 0;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 50%;
    color: #222;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 3px 14px rgba(0, 0, 0, 0.16);
    font-size: 25px;
    line-height: 1;
    transform: translateY(-50%);
  }

  body.single-blog_post .moliner-news-gallery-button--prev {
    left: 10px;
  }

  body.single-blog_post .moliner-news-gallery-button--next {
    right: 10px;
  }

  body.single-blog_post .moliner-news-gallery-button:disabled {
    opacity: 0.35;
  }

  body.single-blog_post .moliner-news-gallery-status {
    position: absolute;
    z-index: 3;
    right: 10px;
    bottom: 10px;
    min-width: 48px;
    padding: 5px 9px;
    border-radius: 999px;
    color: #fff;
    background: rgba(0, 0, 0, 0.62);
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    text-align: center;
  }
}
