/* Lumière Proofing Lightbox 1.8.6: display-only visible watermarks.
   Always ignore pointer input and keep markers out of the accessibility tree. */
.lpl-watermark-host{position:relative!important}
.lpl-watermark-overlay{
  position:absolute!important;inset:0!important;z-index:4!important;
  display:block!important;overflow:hidden!important;isolation:isolate;
  pointer-events:none!important;user-select:none!important;-webkit-user-select:none!important;
  direction:ltr!important;color:var(--lpl-wm-color,#fff)!important;
  font:600 var(--lpl-wm-font-size,26px)/1.2 system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif!important;
}
.lpl-watermark-overlay .lpl-watermark-mark{
  position:absolute;display:flex;align-items:center;justify-content:center;
  max-width:calc(100% - 2 * var(--lpl-wm-inset,5%));max-height:calc(100% - 2 * var(--lpl-wm-inset,5%));
  text-align:center;overflow-wrap:anywhere;white-space:normal;
  opacity:var(--lpl-wm-opacity,.35);transform:rotate(var(--lpl-wm-angle,0deg));
  text-shadow:0 1px 4px rgba(0,0,0,.65),0 0 1px rgba(0,0,0,.5);
}
.lpl-watermark-overlay .lpl-watermark-mark img{
  display:block!important;max-width:min(100%,var(--lpl-wm-logo-width,150px))!important;
  max-height:100%!important;width:auto!important;height:auto!important;
  object-fit:contain!important;opacity:1!important;transform:none!important;
  border:0!important;box-shadow:none!important;filter:drop-shadow(0 1px 2px rgba(0,0,0,.3));
}
.lpl-watermark-overlay[data-position^="top-"] .lpl-watermark-mark{top:var(--lpl-wm-inset,5%)}
.lpl-watermark-overlay[data-position^="bottom-"] .lpl-watermark-mark{bottom:var(--lpl-wm-inset,5%)}
.lpl-watermark-overlay[data-position^="center-"] .lpl-watermark-mark{top:50%;translate:0 -50%}
.lpl-watermark-overlay[data-position="center"] .lpl-watermark-mark{top:50%;left:50%;translate:-50% -50%}
.lpl-watermark-overlay[data-position$="-left"] .lpl-watermark-mark{left:var(--lpl-wm-inset,5%)}
.lpl-watermark-overlay[data-position$="-right"] .lpl-watermark-mark{right:var(--lpl-wm-inset,5%)}
.lpl-watermark-overlay[data-position$="-center"] .lpl-watermark-mark{left:50%;translate:-50% 0}
.lpl-watermark-overlay[data-position="center"] .lpl-watermark-mark{translate:-50% -50%}
/* For nine tiled marks, prioritize the grid over the single-anchor rules. */
.lpl-watermark-overlay[data-repeat="1"]{
  display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));
  grid-template-rows:repeat(3,minmax(0,1fr));place-items:center;
}
.lpl-watermark-overlay[data-repeat="1"] .lpl-watermark-mark{
  position:relative!important;inset:auto!important;top:auto!important;left:auto!important;
  bottom:auto!important;right:auto!important;translate:none!important;
  max-width:96%;max-height:96%;font-size:min(1em,4vw)
}
/* Modern image and visible watermark share a transform, so pinch zoom moves both. */
.lpl-modern .lpl-layer .lpl-watermark-frame{
  position:relative!important;display:inline-flex;flex:0 0 auto;
  max-width:100%;max-height:100%;line-height:0;
  justify-content:center;align-items:center;transform-origin:center center;
  will-change:transform;
}
.lpl-modern .lpl-layer .lpl-watermark-frame > img{
  display:block;max-width:100%;max-height:100%;width:100%!important;height:100%!important;object-fit:contain;
  transform:none!important;user-select:none
}
.lpl-modern .lpl-layer .lpl-watermark-frame > .lpl-watermark-overlay{z-index:2!important}
/* Smaller overlays on preview thumbnails instead of obscuring the entire image. */
.lpl-watermark-thumbnail .lpl-watermark-overlay{
  --lpl-wm-font-size:clamp(9px,1.5vw,16px)!important;
  --lpl-wm-logo-width:clamp(28px,7vw,72px)!important
}
/* Admin live preview. */
.lpl-wm-preview{height:260px;width:min(100%,560px);position:relative;overflow:hidden;isolation:isolate;
  background:linear-gradient(155deg,#809da6 10%,#476778 55%,#283f55 100%);border-radius:7px;border:1px solid #c3c4c7}
.lpl-wm-demo-label{position:absolute;left:16px;top:14px;color:#fff;font:13px system-ui,sans-serif;opacity:.7}
.lpl-wm-preview .lpl-watermark-overlay{z-index:2!important}
@media(prefers-reduced-motion:reduce){.lpl-watermark-overlay *{transition:none!important}}

/* The marker belongs to the thumbnail link, not the entire grid cell. */
.mkdf-pgs-gallery-image-inner > a.lpl-watermark-host{position:relative!important}
