Bootstrap 3 modal vertical position center

By adding this css modal will be on vertically centre
.modal-dialog {
height: 100vh !important;
display: flex;
}

.modal-content {
margin: auto !important;
height: fit-content !important;
}