#myWrapper {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: 100%;
  margin: auto;
}

#myWrapper > * {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

#myViewport {
    cursor: grab;
    display: flex;
    align-items: center;
    justify-content: center;
}

#myContent img {
    width: auto;
    height: auto;
    margin: auto;
    max-width: none !important;
}

#myContent div {
    position: absolute;
    font-size: 80px;
}

.modal-buttons {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
}

.modal-buttons .btn {
  padding: 0;
}

.btn-open-modal-zoom {
  background: transparent;
  box-shadow: none;
  border: 0;
  position: absolute;
  top: 0px;
  cursor: pointer;
  z-index: 10; /* pour être sûr que ça soit au-dessus */
}


.btn-close-modal-zoom {
  background: transparent;
  box-shadow: none;
  border: 0;
}

/* Modal */
dialog {
    display: block;
    inset: 0;
    z-index: 100;
    overflow: hidden;
    transition: opacity .5s;
    animation: scale-down .5s cubic-bezier(.25,0,.3,1) forwards;
    animation-timing-function: cubic-bezier(.5,-.5,.1,1.5);
    padding: 0;
    margin: 0;
    border: 0;
    width: 100vw;
    height: 100vh;
    max-width: 100vw;
    max-height: 100vh;
    border-radius: 0;
    background: #000;
}

dialog[open] {
    animation: slide-in-up .5s cubic-bezier(.25,0,.3,1) forwards;
}

dialog:not([open]) {
    pointer-events: none;
    opacity: 0;
}

dialog header {
    margin: 0;
    background-color: #f3f3f3;
    padding: 1rem 2rem;
}

dialog footer {
    display: flex;
    justify-content: flex-end;
    padding: 1rem 2rem;
}




