/* Shared image/attachment modal (#msgModalPopup). Dedicated CSS for image_popup + attachment_modal. */

#msgModalPopup .close {
  color: #ffffff;
}

.msg-modal {
  display: none;
  position: fixed;
  z-index: 9999999;
  padding-top: 100px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgb(0, 0, 0);
  background-color: rgba(0, 0, 0, 0.9);
}

.msg-modal .close {
  position: relative;
  z-index: 1;
}

.msg-modal-content,
#msg_attachment {
  margin: auto;
  display: block !important;
  width: 80%;
  max-width: 700px;
  min-height: 200px;
  position: relative;
  z-index: 1;
  background: transparent;
  visibility: visible !important;
  opacity: 1 !important;
}

.msg-modal-ref-loading {
  margin: 40px auto 0;
  max-width: 700px;
  text-align: center;
  color: #e0e0e0;
  padding: 48px 24px;
  position: relative;
  z-index: 1;
}

.msg-modal-ref-loading-spinner {
  width: 48px;
  height: 48px;
  margin: 0 auto 20px;
  border: 4px solid rgba(255, 255, 255, 0.25);
  border-top-color: #2a9d8f;
  border-radius: 50%;
  animation: msg-modal-ref-spin 0.7s linear infinite;
}

.msg-modal-ref-loading-text {
  margin: 0;
  font-size: 16px;
  color: #ccc;
}

@keyframes msg-modal-ref-spin {
  to {
    transform: rotate(360deg);
  }
}

#caption {
  margin: auto;
  display: block;
  width: 80%;
  max-width: 700px;
  text-align: center;
  color: #ccc;
  padding: 10px 0;
  height: 150px;
}

.msg-modal-content,
#caption {
  animation-name: zoom;
  animation-duration: 0.6s;
}

@keyframes zoom {
  from {
    transform: scale(0);
  }
  to {
    transform: scale(1);
  }
}
