.gallery-image {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  min-width: min(100px, 100%);
  max-width: 100%;
  vertical-align: middle;
}

.gallery-image img,
.gallery-image > a:not(.image-download) {
  max-width: 100%;
}

.gallery-image > .image-download,
#menu .gallery-image > .image-download,
.menu .gallery-image > .image-download,
.offres .gallery-image > .image-download,
.contenant .gallery-image > .image-download {
  padding: 4px;
  border: 0;
  background: none;
  color: #004d9f;
  font: normal 16px sans-serif;
  text-decoration: underline;
  white-space: nowrap;
}

.native-image-preview {
  position: fixed;
  z-index: 9999;
  width: auto;
  height: auto;
  max-width: calc(100vw - 24px);
  max-height: calc(100vh - 24px);
  pointer-events: none;
}

.native-image-preview[hidden] {
  display: none;
}

@media (max-width: 1100px) {
  img {
    max-width: 100%;
    height: auto;
  }

  nav > a {
    min-width: 0;
  }

  #entete {
    box-sizing: border-box;
    width: 100%;
    height: auto;
    min-width: 0;
  }

  #menu,
  .menu,
  .logo,
  .logo1,
  .contenant,
  .pied {
    box-sizing: border-box;
    max-width: calc(100% - 24px);
    min-width: 0;
    overflow-wrap: anywhere;
  }
}

@media (max-width: 800px) {
  body {
    margin-top: 0;
  }

  #entete {
    padding: 1px 8px 12px;
  }

  #menu,
  .menu,
  .logo,
  .logo1,
  .contenant,
  .pied {
    width: calc(100% - 24px);
  }

  #menu h4,
  .menu h4 {
    padding: 10px;
  }

  .offres {
    padding: 15px;
  }

  .offres .offres-cartes .carte {
    box-sizing: border-box;
    max-width: 100%;
    margin-right: 0;
  }

  .offres .offres-cartes .carte img {
    height: auto;
    max-height: 100px;
  }
}
