/* Keep the announcement and its image inside the same centered box. */
.mfp-wrap.k6-popup .mfp-container {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  position: absolute !important;
  inset: 0 0 auto !important;
  width: 100% !important;
  min-height: 100% !important;
  height: auto !important;
  padding: 24px 12px !important;
}

.mfp-wrap.k6-popup .mfp-container:before {
  display: none !important;
}

.mfp-wrap.k6-popup .mfp-content {
  width: fit-content !important;
  max-width: 92vw !important;
  max-height: none !important;
  display: block !important;
  margin: auto !important;
  flex: 0 1 auto !important;
}

.mfp-wrap.k6-popup .mfp-content .popup-content {
  width: fit-content !important;
  max-width: 100% !important;
  margin: 0 auto !important;
}

.k6-popup .popup-content p {
  margin: 0 !important;
  padding: 0 !important;
}

.k6-popup .popup-content img {
  display: block !important;
  margin: 0 auto !important;
  max-width: 100% !important;
  max-height: 82vh !important;
  width: auto !important;
  height: auto !important;
  object-fit: contain !important;
}

.mfp-wrap.k6-popup .mfp-close {
  width: 56px !important;
  height: 56px !important;
  line-height: 52px !important;
  font-size: 42px !important;
  font-weight: 900 !important;
  background: rgba(0, 0, 0, .85) !important;
  color: #fff !important;
  border: 2px solid rgba(255, 255, 255, .9) !important;
  border-radius: 50% !important;
  opacity: 1 !important;
  cursor: pointer !important;
  top: 12px !important;
  right: 12px !important;
  box-shadow: 0 10px 25px rgba(0, 0, 0, .35) !important;
}

@media (max-width: 768px) {
  .mfp-wrap.k6-popup .mfp-close {
    width: 46px !important;
    height: 46px !important;
    line-height: 42px !important;
    font-size: 34px !important;
    top: 8px !important;
    right: 8px !important;
  }
}

/* The editor adds a trailing line break after the announcement image. */
.k6-popup .popup-content img + br:last-child {
  display: none !important;
}
