.animation-container-cover {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: unset;
  width: 100%;
}

.animation-modal-cover {
  display: grid;
  place-items: center;
  position: relative;
  height: unset;
  z-index: 1;
  background: #fff;
}

.cover,
.inlay {
  grid-area: 1 / 1;
  height: unset;
  box-sizing: border-box;
  cursor: pointer;
}

.cover {
  animation: cover-animation-left 2s forwards ease-in-out;
  z-index: 2;
  filter: brightness(95%);
}

.inlay {
  animation: inlay-animation-right 2s forwards ease-in-out;
  z-index: 1;
}

@keyframes cover-animation-left {
  from {
    transform: translate(0, 0);
  }
  to {
    transform: translate(-50%, 0);
  }
}

@keyframes inlay-animation-right {
  from {
    transform: translate(0, 0);
  }
  to {
    transform: translate(50%, 0);
  }
}

@media (max-width: 1048px) {
  .animation-modal-cover {
    max-width: 300px;
    width: 80%;
    height: unset;
  }

  .animation-modal-cover.height {
    height: 150px;
  }

  .cover,
  .inlay {
    animation: none !important;
    transform: none !important;
  }
}
