CSS Center Modal verticalement

.yourElement{
  position: relative;
  top: 50%;
  transform: translateY(-50%);
}
Weary Wildebeest