/* NPC 1.1.176 — Desktop Stage captions: visible until slide is clicked.
   Opt-in only. Never applies to tablet/touch layout. */
@media screen and (min-width: 1025px) and (hover: hover) and (pointer: fine) {
  body .post-gallery-wrap.stage .stage-slider > .panel.current .caption-wrap.caption-hover {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: translate3d(0,0,0) !important;
    animation: none !important;
    filter: none !important;
    pointer-events: none !important;
    transition: transform var(--npce-desktop-caption-speed, 1200ms) cubic-bezier(.25,.8,.25,1) !important;
  }
  body .post-gallery-wrap.stage .stage-slider > .panel.current .caption-wrap.caption-hover > .title.caption,
  body .post-gallery-wrap.stage .stage-slider > .panel.current .caption-wrap.caption-hover > .content.caption {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: translate3d(0,0,0) !important;
    animation: none !important;
    filter: none !important;
    pointer-events: none !important;
  }
  /* Before each entrance, position caption completely offscreen right.
     On next frame, remove the pre-enter class to transition it into view. */
  body .post-gallery-wrap.stage .stage-slider > .panel.current.npce-desktop-caption-preenter .caption-wrap.caption-hover {
    transform: translate3d(calc(100vw + 100%),0,0) !important;
    transition: none !important;
  }
  body .post-gallery-wrap.stage .stage-slider > .panel.current.npce-desktop-caption-entering:not(.npce-desktop-caption-preenter):not(.npce-desktop-caption-dismissed) .caption-wrap.caption-hover {
    transform: translate3d(0,0,0) !important;
    transition: transform var(--npce-desktop-caption-entrance-speed, 1200ms) cubic-bezier(.22,1,.36,1) !important;
  }
  /* Image-click return uses the same adjustable ease as the initial slide entrance.
     Keep the adjustable dismissal duration unchanged. */
  body .post-gallery-wrap.stage .stage-slider > .panel.current.npce-desktop-caption-returning:not(.npce-desktop-caption-dismissed) .caption-wrap.caption-hover {
    transform: translate3d(0,0,0) !important;
    transition: transform var(--npce-desktop-caption-entrance-speed, 1200ms) cubic-bezier(.22,1,.36,1) !important;
  }
  body .post-gallery-wrap.stage .stage-slider > .panel.current.npce-desktop-caption-dismissed:not(.npce-desktop-caption-preenter) .caption-wrap.caption-hover {
    /* Only travel as far as the visible viewport edge + 24px. In the old
       100vw-plus-caption-width exit, almost all easing happened OFFSCREEN. */
    opacity: 1 !important;
    transform: translate3d(var(--npce-caption-exit-x, calc(100% + 24px)),0,0) !important;
    visibility: visible !important;
    transition: transform var(--npce-desktop-caption-speed, 1200ms) cubic-bezier(.25,.8,.25,1) !important;
  }
}
@media screen and (min-width: 1025px) and (hover: hover) and (pointer: fine) and (prefers-reduced-motion: reduce) {
  body .post-gallery-wrap.stage .stage-slider > .panel.current .caption-wrap.caption-hover { transition: none !important; }
  body .post-gallery-wrap.stage .stage-slider > .panel.current.npce-desktop-caption-entering .caption-wrap.caption-hover { transition: none !important; }
  body .post-gallery-wrap.stage .stage-slider > .panel.current.npce-desktop-caption-returning .caption-wrap.caption-hover { transition: none !important; }
  body .post-gallery-wrap.stage .stage-slider > .panel.current.npce-desktop-caption-dismissed .caption-wrap.caption-hover { transition: none !important; }
}

/* v1.1.207 — Only caption hyperlinks receive pointer events. The rest of
   the ribbon remains click-through for the existing slide dismissal handler. */
@media screen and (min-width: 1025px) and (hover: hover) and (pointer: fine) {
  body .post-gallery-wrap.stage .stage-slider > .panel.current .caption-wrap.caption-hover > .content.caption a[href],
  body .post-gallery-wrap.stage .stage-slider > .panel.current .caption-wrap.caption-hover > .content.caption a[href]:visited,
  body .post-gallery-wrap.stage .stage-slider > .panel.current .caption-wrap.caption-hover > .content.caption a[href]:hover,
  body .post-gallery-wrap.stage .stage-slider > .panel.current .caption-wrap.caption-hover > .content.caption a[href]:focus {
    cursor: pointer !important;
  }
  body .post-gallery-wrap.stage .stage-slider > .panel.current:not(.npce-desktop-caption-dismissed):not(.npce-desktop-caption-preenter) .caption-wrap.caption-hover > .content.caption a[href] {
    pointer-events: auto !important;
  }
  body .post-gallery-wrap.stage .stage-slider > .panel.current:is(.npce-desktop-caption-dismissed,.npce-desktop-caption-preenter) .caption-wrap.caption-hover > .content.caption a[href] {
    pointer-events: none !important;
  }
}
