dialog {
  position: fixed;
  right: 0;
  left: 0;
  margin: auto;
  max-height: 85vh;
  /* height: 100%; */
  width: 50vw;
  border: none;
  box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.5);
  animation: 0.3s fadeModal ease-out forwards;
}

dialog[open] {
  display: flex;
  flex-flow: row-reverse;
}

dialog .modal-close {
  /*position: absolute;*/
  width: 35px;
  height: 35px;
  top: 25px;
  right: 25px;
  background: url("/_front/images/colorbox/colorboxclose.svg") no-repeat center;
  filter: invert(1);
  background-size: contain;
}

dialog .modal-close:hover {
  cursor: pointer;
}

dialog .modal {
  width: 100%;
  padding-right: 35px;
  display: flex;
  flex-flow: column;
  position: relative;
}

dialog .modal__title {
  text-align: center;
  flex: 0 0 auto;
}

dialog .modal__body {
  padding: 15px;
  height: auto;
  /* overflow: auto; */
  flex: 1 1 auto;
}

/*dialog .modal__content {*/
/*  padding-right: 40px;*/
/*  padding-top: 40px;*/
/*}*/

dialog::backdrop {
  background: rgba(0, 0, 0, 0.5);
  animation: 0.3s fadeModal ease-out forwards;
}