/* Filter IMG pixels, not their parent: typography, logos and controls keep their colours. */
.pke-photo-tools[hidden] { display:none!important; }
.pke-photo-tools { display:flex; flex-wrap:wrap; align-items:center; justify-content:flex-end; gap:.5rem; margin:.7rem 0 1rem; }
.pke-photo-tools .pke-photo-original-button {
  appearance:none; box-sizing:border-box; display:inline-flex; align-items:center; justify-content:center;
  gap:.6em; min-height:44px; max-width:100%; padding:.65em 1em; margin:0; border:1px solid #a5cde4;
  border-radius:999px; background:#fff; color:#005b91; font:inherit; font-size:14px; font-weight:650;
  line-height:1.4; text-transform:none; letter-spacing:normal; white-space:normal; cursor:pointer;
}
.pke-photo-tools .pke-photo-original-button:hover { background:#eaf6ff; border-color:#0076b5; }
.pke-photo-tools .pke-photo-original-button:focus-visible { outline:3px solid #0075b4; outline-offset:3px; }
.pke-color-dot { width:15px; height:15px; flex:0 0 15px; border-radius:50%; background:conic-gradient(#ffbe45,#f36c54,#9956bb,#38a2d6,#5ca55a,#ffbe45); box-shadow:inset 0 0 0 1px #0002; }
.pke-photo-original-button[aria-pressed="true"] .pke-color-dot { background:linear-gradient(135deg,#082f50,#01aaf1,#e1f5ff); }
@media screen {
  html[data-pke-skin="blue"] img[data-pke-photo] {
    filter:grayscale(1) sepia(1) hue-rotate(165deg) saturate(1.7) contrast(1.03)!important;
  }
  html[data-pke-skin="blue"][data-pke-photo-engine="svg"] img[data-pke-photo="listing"] { filter:var(--pke-photo-duotone)!important; }
  html[data-pke-skin="blue"][data-pke-photo-engine="svg"] img[data-pke-photo="single"] { filter:var(--pke-photo-soft)!important; }
  html[data-pke-skin="blue"][data-pke-photos-original="true"] img[data-pke-photo="single"] { filter:none!important; }
}
/* Optional reveal on a pointer or keyboard focus does not hijack the recipe link. */
@media screen and (hover:hover) and (pointer:fine) {
  html[data-pke-skin="blue"] a:hover img[data-pke-photo="listing"],
  html[data-pke-skin="blue"] a:focus-visible img[data-pke-photo="listing"] { filter:none!important; }
}
@media (prefers-reduced-motion:reduce) { img[data-pke-photo],.pke-photo-tools * { transition:none!important; animation:none!important; } }
@media print { .pke-photo-tools,#pke-photo-defs { display:none!important; } img[data-pke-photo] { filter:none!important; } }
