.pny-clickable-image { cursor: zoom-in; }
.pny-clickable-image:focus-visible { outline: 3px solid #ffd84d; outline-offset: 4px; }
.pny-image-viewer { position: fixed; inset: 0; width: 100%; height: 100%; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: transparent; color: #fff; overflow: hidden; }
.pny-image-viewer::backdrop { background: rgba(0, 0, 0, .96); }
.pny-image-viewer[open] { display: block; }
.pny-viewer-panel { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; padding: 0; box-sizing: border-box; overflow: auto; overscroll-behavior: contain; }
.pny-viewer-close { position: fixed; right: max(8px, env(safe-area-inset-right)); top: 50%; bottom: auto; transform: translateY(-50%); z-index: 2; display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 8px 16px; border: 2px solid #111; border-radius: 999px; background: #fff; color: #111; box-shadow: 0 0 0 3px #ffd84d, 0 2px 12px #0006; font: 600 16px/1.2 Arial, sans-serif; cursor: pointer; }
.pny-viewer-close span { font-size: 26px; line-height: 1; }
.pny-viewer-close:focus-visible { outline: 3px solid #fff; outline-offset: 6px; }
.pny-image-viewer .pny-viewer-image { display: block; flex: 0 1 auto; width: auto; height: auto; max-width: 100%; max-height: 100%; object-fit: contain; margin: 0; padding: 0; border: 0; border-radius: 0; transform: none; cursor: default; }
/* On phones the screenshot fills the width, retaining its proportions.
   The panel scrolls vertically; Close stays fixed over the image. */
@media (max-width: 767px), (pointer: coarse) and (max-height: 600px) {
  .pny-viewer-panel { display: block; scrollbar-width: none; }
  .pny-viewer-panel::-webkit-scrollbar { display: none; }
  .pny-image-viewer .pny-viewer-image { width: 100%; height: auto; max-width: none; max-height: none; }
}
