.modal {
    display: none;
  }

  .modal.is-open {
    display: block;
  }

  .modal__overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(0,0,0,0.65);
    z-index: 30;
    padding: 20px;
  }

  .modal__container {
    box-sizing: border-box;
    overflow-y: auto;
    max-height: 100vh;
    padding: 40px;
    background-color: #fff;
    border-radius: 32px;
  }

  .modal[aria-hidden="false"] .modal__overlay {
    animation: modalFadeIn .2s cubic-bezier(0.0, 0.0, 0.2, 1);
  }

  .modal[aria-hidden="false"] .modal__container {
    animation: modalSlideIn .2s cubic-bezier(0, 0, .2, 1);
  }

  .modal .modal__container,
  .modal .modal__overlay {
    will-change: transform;
  }

  @keyframes modalFadeIn {
      from { opacity: 0; }
        to { opacity: 1; }
  }

  @keyframes modalSlideIn {
    from { transform: translateY(15%); }
      to { transform: translateY(0); }
  }