/* The mhe-modal (background) */
.mhe-modal {
  display: none;
  /* Hidden by default */
  position: fixed;
  /* Stay in place */
  z-index: 150;
  /* Sit on top */
  left: 0;
  top: 0;
  width: 100%;
  /* Full width */
  height: 100%;
  /* Full height */
  overflow: auto;
  /* Enable scroll if needed */
  background-color: rgb(0, 0, 0);
  /* Fallback color */
  background-color: rgba(0, 0, 0, 0.5);
  /* Black w/ opacity */
}

body.mhe-modal-open {
  overflow: hidden;
}



/* The Close Button */
.mhe-modal .close {
  /* color: white; */
  color: inherit;
  float: right;
  font-size: 28px;
  font-weight: bold;
}

.mhe-modal.no-title .close {
  position: absolute;
  top: -5px;
  right: 5px;
}

.mhe-modal .close:hover,
.mhe-modal .close:focus {
  color: #C7C7C7;
  text-decoration: none;
  cursor: pointer;
}

/* mhe-modal Header */
.mhe-modal-header {
  padding: 10px 16px;
  background-color: #3d5d83;
  color: white;
}

.mhe-modal-header h3 {
  margin: 0;
}

.mhe-modal-header span,
.mhe-modal-header h3 span.close,
.mhe-modal-header h3 {
  color: white;
  line-height: 23px;
}

/* mhe-modal Body */
.mhe-modal-body {
  padding: 2px 16px;
}

/* mhe-modal Footer */
.mhe-modal-footer {
  padding: 2px 16px;
  /* background-color: #5cb85c; */
  color: white;
}

/* mhe-modal Content */
.mhe-modal-content {
  position: relative;
  background-color: #fefefe;
  margin: auto;
  padding: 0;
  border: 1px solid #888;
  width: 90%;
  max-width: 900px;
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
  animation-name: animatetop;
  animation-duration: 0.4s;
  background-color: #fefefe;
  margin: 150px auto;
  max-height: calc(100vh - 300px);
  overflow-y: auto;
  /* margin: 10% auto; */
  /* 15% from the top and centered */
  padding: 20px;
  border: 1px solid #888;
  /* Could be more or less, depending on screen size */
  border-radius: 6px;
}

.video-mhe-modal .mhe-modal-content {
  padding: 25px 10px 10px 10px;
}

.image-mhe-modal .mhe-modal-body {
  padding: 0;
}

.image-mhe-modal .mhe-modal-content {
  padding: 20px 0 0 0;
  max-width: 100%;
}

.video-mhe-modal .mhe-modal-body {
  position: relative;
  padding: 0;
  padding-bottom: 56.25%;
  padding-top: 30px;
  height: 0;
  overflow: hidden;

}

.video-mhe-modal iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* Add Animation */
/* @keyframes animatetop {
  from {top: -300px; opacity: 0}
  to {top: 150px; opacity: 1}
} */

@media screen and (max-width:1280px) {
  .mhe-modal-content {
    margin: 10% auto;
    max-height: calc(100vh - 20%);
  }
}

@media screen and (max-width: 540px) {
  .mhe-modal-content {
    width: 94%;
    margin: 20px auto;
    max-height: calc(100vh - 40px);
    border-radius: 3px;
  }
}

@media screen and (max-width: 400px) {
  .mhe-modal-content {
    width: calc(100% - 20px);
    padding: 10px;
  }
}