#ecran {
  width: 100%;
  max-width: 50rem;
  min-height: 25rem;
  background-color: #ffffff;
  transition: all 500ms;
  -webkit-transition: all 500ms;
  -moz-transition: all 500ms;
  -ms-transition: all 500ms;
  -o-transition: all 500ms;
  position: relative;
  display: flex;
  flex-direction: column-reverse;
  align-items: center;
  justify-content: center;
}

#ecran img {
  width: 25rem;
  max-width: calc(100vw - 1rem * 5);
  height: 25rem;
  object-fit: cover;
  position: absolute;
  background-color: #ffffff;
  inset: 0;
  transition: all 1000ms;
  -webkit-transition: all 1000ms;
  -moz-transition: all 1000ms;
  -ms-transition: all 1000ms;
  -o-transition: all 1000ms;
}

.leave {
  opacity: 0.7;
  transform: scale(0);
  -webkit-transform: scale(0);
  -moz-transform: scale(0);
  -ms-transform: scale(0);
  -o-transform: scale(0);
}

.top {
  z-index: 2;
}

#description {
  font-size: larger;
  margin-bottom: 0;
  color: #ffffff;
}

@media screen and (max-width: 400px) {
  #ecran img {
    max-width: calc(100vw - 1rem * 2);
  }
}
