.wd_center_wrapper {
    display: table;
    width: 100%;
    height: 100%;
}

.wd_center_wrapper > *:first-child {
    display: table-cell;
    height: inherit;
    vertical-align: middle;
    text-align: center;
}

.wd_center_wrapper > *:first-child > * {
    max-width: 100%;
    max-height: 100%;
}