title: Vertically centering modal-lg Bootstrap Modal makes it small
body: <p>I use modal-lg class for a large modal but when I use <a href="https://stackoverflow.com/a/25160044/3935156">this SO answer</a> to vertically center my modal it makes the modal small:</p>
  
  <p><a href="https://i.stack.imgur.com/14lnT.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/14lnT.jpg" alt="enter image description here"></a></p>
  
  <p>this vertical centering causes it to be small</p>
  
  <pre><code>.modal {
    text-align: center;
  }
  
  @media screen and (min-width: 768px) { 
    .modal:before {
      display: inline-block;
      vertical-align: middle;
      content: " ";
      height: 100%;
    }
  }
  
  .modal-dialog {
    display: inline-block;
    text-align: left;
    vertical-align: middle;
  }
  </code></pre>
  
  <p>html:</p>
  
  <pre><code>&lt;div class="modal fade" id="result-details-modal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true"&gt;
     &lt;div class="modal-dialog modal-lg" role="document"&gt;
        &lt;div class="modal-content"&gt;
           &lt;div class="modal-header"&gt;
              &lt;button type="button" class="close" data-dismiss="modal" aria-label="Close"&gt;
            &lt;span aria-hidden="true"&gt;&amp;times;&lt;/span&gt;
          &lt;/button&gt;
              &lt;h4 id="result-details-title" class="modal-title"&gt;&lt;/h4&gt;
           &lt;/div&gt;
           &lt;div class="modal-body"&gt;
              ...
           &lt;/div&gt;
           &lt;div class="modal-footer"&gt;
              &lt;button type="button" class="btn btn-secondary" data-dismiss="modal"&gt;Close&lt;/button&gt;
              &lt;button type="button" class="btn btn-primary"&gt;Save changes&lt;/button&gt;
           &lt;/div&gt;
        &lt;/div&gt;
     &lt;/div&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>How do I keep it large when it is vertically centered?</p>