/* 
Gallery carousel 
*/
.gallery-carousel-wrapper {
  position: relative;
  padding-inline: 20px;
  margin-block-end: 70px;
}

.wp-block-gallery.gallery-carousel {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  gap: 0;
  /* masque la scrollbar mais garde le scroll natif fonctionnel */
  scrollbar-width: none;
}

.wp-block-gallery.gallery-carousel::-webkit-scrollbar {
  display: none;
}

.wp-block-gallery.gallery-carousel .wp-block-image {
  flex: 0 0 82%;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.gallery-carousel-controls {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 12px;
}
.gallery-carousel-btn[disabled] {
    display: none;
}
.gallery-carousel-btn {
  cursor: pointer;
  border: none;
  background: transparent;
  padding: 0;
  font-size: .9375rem;
  color: var(--brun);
  font-family: 'Selecta', sans-serif;
}

.gallery-carousel-btn:focus-visible {
  outline: 2px solid;
  outline-offset: 2px;
}
@media screen and (min-width: 80em) {
    .wp-block-gallery.has-nested-images figure.wp-block-image {
        max-width: 62%;
    }
}
