dialog {
  position: fixed;
  inset: 0;
  margin: auto;
  border: none;
  outline: none;
  width: 500px;
  max-width: 90vw;
  height: 500px;
  max-height: 90vw;
  overflow: hidden;
  transition: all .5s allow-discrete;
  opacity: 0;
}
dialog[open] {
  opacity: 1;
}
@starting-style {
  dialog[open] {
    opacity: 0;
  }
}
dialog::backdrop {
  transition: all 1.5s allow-discrete;
  background-color: rgb(0 0 0 / 0%);
}
dialog[open]::backdrop {
  background: rgba(0 0 0 / 20%);
}
@starting-style {
  dialog[open]::backdrop {
    background-color: rgb(0 0 0 / 0%);
  }
}
dialog img {
  width: 100%;
  height: 100%;
}
img[src$="-s.jpg"] {
  cursor: pointer;
}
