/** default styles **/
html.no-scroll,
body.no-scroll {
  position: fixed;
  overflow: hidden;
  width: 100%;
  cursor: pointer;
}

.close-modal {
  display: none;
  border: 0;
  margin-top: 10px;
}

.close-modal:focus {
  outline: 1px dashed skyblue;
  border-radius: 5px;
}

.modal-wrapper {
  display: none; /* Hidden by default */
  position: fixed; /* Stay in place */
  z-index: 9999; /* Sit on top */
  left: 0;
  top: 0;
  width: 100%; /* Full width */
  height: 100%; /* Full height */
  overflow: auto; /* Enable scroll if needed */
}

.wp-post-modal {
  display: none;
}

/** activate modal **/
.modal-wrapper.show,
.wp-post-modal.show,
.wp-post-modal.show .close-modal {
  display: block !important;
}

/** styled modal **/
.modal-wrapper.styled {
  background-color: rgb(0, 0, 0); /* Fallback color */
  background-color: rgba(0, 0, 0, 0.9); /* Black w/ opacity */
}

.modal-wrapper.styled .wp-post-modal {
  position: relative;
  background-color: #fefefe;
  margin: 10vh auto; /* 10vh from the top and centered */
  padding: 20px;
  border: 1px solid #888;
  width: 70%; /* Could be more or less, depending on screen size */
  max-width: 1200px;
  transition: all 2s ease;
}

.modal-wrapper.styled .wp-post-modal .close-modal {
  background: transparent;
  position: absolute;
  top: -6px;
  right: 10px;
  font-size: 2em;
  color: #333;
  cursor: pointer;
  z-index: 1;
}

.modal-wrapper.styled .wp-post-modal .loading {
  display: block;
  width: 100px;
  margin: auto;
  padding: 25vh 0;
}



.modal-wrapper.styled .modal-content {
  padding: 0 0.7em 0 0.5em;
}
