.mblog-embed-wrap {
  position: relative;
  width: 100%;
  margin: 1.5em 0;
}
.mblog-embed-source {
  position: absolute;
  top: 6px;
  right: 8px;
  z-index: 10;
  font-size: 11px;
  line-height: 1.4;
  color: rgba(128, 128, 128, .75);
  text-decoration: none;
  white-space: nowrap;
  transition: color .15s ease;
}
.mblog-embed-source:hover { color: rgba(128, 128, 128, 1); }
.mblog-embed-iframe {
  display: block;
  width: 100%;
  border: none;
  background: transparent;
  transition: height .15s ease;
}

/* ── Lightbox：渲染在 WordPress 页面自身的 DOM 里 ──
   这样 position:fixed 天然就能正确覆盖整个浏览器视口，
   不受任何 iframe 自身尺寸限制。 */
#mblog-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .92);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s;
  z-index: 2147483647;
  overscroll-behavior: contain;
}
#mblog-lightbox.mblog-lb-open { opacity: 1; pointer-events: auto; }
#mblog-lightbox img {
  max-width: 92vw;
  max-height: 92vh;
  object-fit: contain;
  touch-action: none;
  cursor: grab;
  user-select: none;
  -webkit-user-drag: none;
  transition: opacity .15s ease;
}
#mblog-lightbox img.mblog-lb-loading { opacity: 0; }
.mblog-lb-error {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-width: 80vw;
  text-align: center;
  color: rgba(255, 255, 255, .85);
  font-size: 14px;
  line-height: 1.9;
  display: none;
}
.mblog-lb-error.mblog-lb-show { display: block; }
.mblog-lb-error a { color: #7fb8ff; text-decoration: underline; }
.mblog-lb-spinner {
  position: fixed;
  top: 50%;
  left: 50%;
  width: 32px;
  height: 32px;
  margin: -16px 0 0 -16px;
  border: 3px solid rgba(255, 255, 255, .25);
  border-top-color: #fff;
  border-radius: 50%;
  opacity: 0;
  pointer-events: none;
  transition: opacity .15s ease .1s;
}
.mblog-lb-spinner.mblog-lb-show {
  opacity: 1;
  animation: mblog-lb-spin .7s linear infinite;
}
@keyframes mblog-lb-spin { to { transform: rotate(360deg); } }
.mblog-lb-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 2.5px;
  background: transparent;
  z-index: 2147483647;
  opacity: 0;
  transition: opacity .2s ease;
  pointer-events: none;
}
.mblog-lb-progress.mblog-lb-show { opacity: 1; }
.mblog-lb-progress-fill {
  height: 100%;
  width: 0%;
  background: #fff;
  box-shadow: 0 0 6px rgba(255, 255, 255, .6);
  transition: width .2s ease;
}
.mblog-lb-counter,
.mblog-lb-zoom {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, .7);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  background: rgba(0, 0, 0, .4);
  padding: 3px 10px;
  border-radius: 99px;
  pointer-events: none;
}
.mblog-lb-counter { top: 16px; }
.mblog-lb-zoom { bottom: 20px; opacity: 0; transition: opacity .2s; }
.mblog-lb-zoom.mblog-lb-show { opacity: 1; }
body.mblog-lb-noscroll { overflow: hidden; }
