/* Experiencia de lectura e imagenes embebidas en notas */
.anqn-reading-progress {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  height: 4px;
  z-index: 12050;
  overflow: hidden;
  pointer-events: none;
  background: rgba(17, 19, 24, .12);
}

.anqn-reading-progress span {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, #111318 0%, #555f70 100%);
  box-shadow: 0 0 10px rgba(17, 19, 24, .28);
  transition: width .08s linear;
  transform-origin: left center;
}

.single-post-page .post-body .anqn-story-media-block {
  width: 100%;
  margin: 34px auto !important;
  text-align: center;
}

.single-post-page .post-body .anqn-story-embedded-image {
  display: block;
  width: auto !important;
  max-width: 100% !important;
  height: auto !important;
  max-height: 720px !important;
  margin: 0 auto !important;
  object-fit: contain !important;
  object-position: center !important;
  border-radius: 12px;
  background: #f4f5f7;
  box-shadow: 0 18px 46px rgba(17, 19, 24, .12);
  transition: transform .3s ease, box-shadow .3s ease;
}

.single-post-page .post-body .anqn-story-embedded-image--document {
  max-width: min(100%, 620px) !important;
  max-height: 780px !important;
  padding: 10px;
  border: 1px solid #e0e4e9;
  background: #fff;
}

.single-post-page .post-body .anqn-story-embedded-image--wide {
  width: 100% !important;
  max-width: 760px !important;
}

@media (hover: hover) and (pointer: fine) {
  .single-post-page .post-body .anqn-story-embedded-image:hover {
    transform: translateY(-3px) scale(1.008);
    box-shadow: 0 24px 58px rgba(17, 19, 24, .17);
  }
}

@media (max-width: 700px) {
  .anqn-reading-progress {
    height: 5px;
    background: rgba(255, 255, 255, .45);
  }

  .anqn-reading-progress span {
    background: linear-gradient(90deg, #111318 0%, #3d4655 72%, #737d8e 100%);
    box-shadow: 0 0 8px rgba(17, 19, 24, .38);
  }

  .single-post-page .post-body .anqn-story-media-block {
    width: calc(100vw - 32px);
    max-width: none;
    margin: 28px 50% !important;
    transform: translateX(-50%);
  }

  .single-post-page .post-body .anqn-story-embedded-image,
  .single-post-page .post-body .anqn-story-embedded-image--document,
  .single-post-page .post-body .anqn-story-embedded-image--wide {
    display: block;
    width: auto !important;
    max-width: 100% !important;
    height: auto !important;
    max-height: none !important;
    padding: 0;
    border: 0;
    border-radius: 10px;
    object-fit: contain !important;
    background: transparent;
    box-shadow: 0 12px 30px rgba(17, 19, 24, .10);
  }
}

@media (prefers-reduced-motion: reduce) {
  .anqn-reading-progress span,
  .single-post-page .post-body .anqn-story-embedded-image {
    transition: none !important;
  }

  .single-post-page .post-body .anqn-story-embedded-image:hover {
    transform: none !important;
  }
}