.paragraph--type--cpt-gallery .gallery-wrapper-1er>a:nth-child(n+6) {
  display: none;
}

.gallery-modal-wrapper {
  display: none;
}

.paragraph--type--cpt-gallery {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  margin-bottom: 40px;
}

.paragraph--type--cpt-gallery .gallery-wrapper-1er {
  display: grid;
  gap: 10px;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  margin-bottom: 20px;
}

.paragraph--type--cpt-gallery .gallery-wrapper-1er a:first-child {
  grid-row-start: 1;
  grid-row-end: 3;
  grid-column: span 2;
}

.paragraph--type--cpt-gallery .gallery-wrapper-1er a {
  aspect-ratio: 1 / 1;
  width: 100%;
  height: 100%;
}

.paragraph--type--cpt-gallery .gallery-wrapper-1er a img {
  width: 100%;
  height: 100%;
  margin: 0;
  border-radius: 20px;
  object-fit: cover;
}

.gallery-modal-wrapper {
  width: 100%;
}

.header-modal {
  margin-bottom: 40px;
}

.header-modal .back-link {
  text-decoration: none;
  outline: 0;
  display: flex;
  align-items: center;
  gap: 15px;
}

.header-modal .back-link:hover:before {
  background-color: var(--color-primary-highlight-hover);
}

.header-modal .back-link:before {
  content: '';
  height: 40px;
  width: 40px;
  background-image: url(../../air_liquide_mde/img/icons/arrow-left.svg);
  background-repeat: no-repeat;
  background-size: 15px;
  border-radius: 50%;
  background-color: var(--color-primary-highlight);
  background-position: center;
  display: inline-block;
  transition: all .3s;
}

.header-modal .share .sharing__text {
  font-size: 16px;
  line-height: 20px;
  font-weight: 500;
}

.gallery-modal-wrapper .content {
  font-size: 16px;
  line-height: 20px;
  font-weight: 500;
  display: grid;
  gap: 10px;
  grid-template-columns: 1fr 1fr;
  max-width: 842px;
  margin: 0 auto;
}

.gallery-modal-wrapper .content a:nth-child(3n+1) {
  grid-column: span 2;
  height: 200px;
}

.gallery-modal-wrapper .content a {
  aspect-ratio: 1 / 1;
  width: 100%;
  height: 100%;
}

.gallery-modal-wrapper .content a img {
  width: 100%;
  height: 100%;
  margin: 0;
  border-radius: 20px;
  object-fit: cover;
}

.gallery-modal-wrapper .is-close-btn {
  display: none;
}

.modal-gallery {
  z-index: 10002;
}

.modal-gallery .fancybox__slide {
  padding: 0 !important;
}

@media screen and (min-width: 768px) {
  .paragraph--type--cpt-gallery {
    margin-bottom: 60px;
  }

  .header-modal {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 80px;
  }

  .gallery-modal-wrapper .content a:nth-child(3n+1) {
    height: 500px;
  }
}

@media screen and (min-width: 1200px) {
  .paragraph--type--cpt-gallery {
    margin-left: -110px;
    margin-right: -110px;
  }
}

@media screen and (max-width: 767px) {
  .modal-gallery .fancybox__content {
    padding: 20px 20px 40px;
  }

  .header-modal .back-link {
    margin-bottom: 10px;
  }
}

.modal-slider .fancybox__toolbar {
  animation: none;
}

.modal-slider .fancybox__infobar {
  position: fixed;
  left: 50%;
  bottom: 40px;
  transform: translateX(-50%);
  padding: 4px 15px;
  background-color: #fff;
  border-radius: 40px;
  color: #000;
  text-shadow: none;
  font-size: 14px;
  line-height: 23px;
  font-weight: 500;
}

.modal-slider .fancybox__toolbar__column.is-right {
  display: none;
}

.modal-slider .fancybox__nav button {
  height: 40px;
  width: 40px;
  background-image: url(../../air_liquide_mde/img/icons/arrow-left.svg);
  background-repeat: no-repeat;
  background-size: 15px;
  border-radius: 50%;
  background-color: var(--color-primary-highlight);
  background-position: center;
  display: inline-block;
}

.modal-slider .fancybox__nav button:hover {
  background-color: var(--color-primary-highlight-hover);
}

.modal-slider .fancybox__nav .is-next {
  background-image: url(../../air_liquide_mde/img/icons/arrow-right.svg);
}

.modal-slider .fancybox__nav button svg {
  display: none;
}

.modal-slider .fancybox__slide {
  background-color: var(--color-primary-dark);
}

.modal-slider .fancybox__content {
  max-height: 80vh;
}

@media screen and (min-width: 1200px) {
  .modal-slider .fancybox__nav .f-button.is-prev {
    left: 50px;
  }

  .modal-slider .fancybox__nav .f-button.is-next {
    right: 50px;
  }
}

.modal-slider img {
  border-radius: 20px;
  object-fit: cover;
}

.header-slider {
  display: none;
  position: fixed;
  top: 20px;
  left: 20px;
  right: 20px;
  justify-content: space-between;
}

.header-slider .back-link .text {
  color: #fff;
}

.with-fancybox .header-slider {
  display: block;
}

@media screen and (min-width: 768px) {
  .header-slider {
    top: 40px;
    left: 50px;
    right: 50px;
  }

  .with-fancybox .header-slider {
    display: flex;
  }
}

.header-slider .share .sharing__text {
  color: #fff;
}

.header-slider .sharing .sharing__list .sharing__list__item a {
  background-color: #fff;
}

.header-slider .sharing .sharing__list .sharing__list__item a:hover {
  background-color: var(--color-primary-highlight);
}

.header-slider .sharing .sharing__list .sharing__list__item.sharing__facebook a {
  background-image: url(../img/icons/social-facebook-blue-new.svg);
}

.header-slider .sharing .sharing__list .sharing__list__item.sharing__twitter a {
  background-image: url(../img/icons/social-twitter-blue-new.svg);
}

.header-slider .sharing .sharing__list .sharing__list__item.sharing__linkedin a {
  background-image: url(../img/icons/social-linkedin-blue-new.svg);
}

.header-slider .sharing .sharing__list .sharing__list__item.sharing__whatsapp a {
  background-image: url(../img/icons/social-whatsapp-blue-new.svg);
}