.media-modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1049;
  display: table;
  width: 100%;
  height: 100%;
  background-color: var(--mediamanager-modal-backdrop-color);

  .modal {
    display: flex;
    align-items: center;
    justify-content: center;
    animation: .5s ease 0s normal none 1 running fadeIn;
  }

  .modal-body {
    width: auto;
    padding: 15px;
  }

  .modal-content {
    box-shadow: var(--mediamanager-modal-box-shadow);
  }

}

.media-preview-modal {
  color: var(--mediamanager-modal-preview-text-color);

  .modal-dialog {
    max-width: 70vw;
    max-height: 70vh;
  }
  .modal-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    background-color: transparent;
    border: 0;
    box-shadow: none;
  }
  .modal-header {
    padding: 0;
    border: 0;
  }
  .modal-body {
    padding: 0;
    background-color: #fff;
    box-shadow: var(--mediamanager-modal-box-shadow);
    img {
      max-width: 100%;
    }
  }
  .modal-footer {
    display: none;
  }
}

.media-preview-close {
  position: absolute;
  top: 0;
  inset-inline-end: 0;
  margin: 5px 20px;
  font-size: 3rem;
  background: none;
  border: 0;
  color: inherit;
  opacity: .7;
  &:hover {
    cursor: pointer;
    opacity: 1;
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transition: transform .3s ease-out;
    transform: translate(0, -25%);
  }

  to {
    opacity: 1;
    transform: none;
  }
}
