﻿/* PBRP image polish */
img { image-rendering: auto; }
.pbrp-zoomable { cursor: zoom-in; transition: filter .2s, box-shadow .2s; }
.pbrp-zoomable:hover, .pbrp-zoomable:focus-visible { filter: brightness(1.08); box-shadow: 0 0 0 2px var(--accent-light); outline: none; }
.wiki-fig img, .wiki-info img { border-radius: var(--r-sm); }
html.pbrp-zoomed, html.pbrp-zoomed body { overflow: hidden; }
.pbrp-lightbox { position: fixed; inset: 0; z-index: 2147482000; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 24px; background: rgba(10, 12, 9, .92); cursor: zoom-out; animation: pbrpfade .18s ease; }
.pbrp-lightbox img { max-width: min(96vw, 1400px); max-height: 82vh; width: auto; height: auto; object-fit: contain; border: 1px solid var(--accent-border); border-radius: var(--r-sm); box-shadow: 0 20px 70px rgba(0, 0, 0, .7); background: #0d0f0c; }
.pbrp-lightbox p { margin: 0; max-width: 80ch; text-align: center; color: var(--muted); font-size: 14px; }
.pbrp-lightbox-x { position: absolute; top: 14px; right: 16px; width: 44px; height: 44px; font-size: 30px; line-height: 1; color: var(--bright); background: rgba(0, 0, 0, .5); border: 1px solid var(--line2); border-radius: 50%; cursor: pointer; }
.pbrp-lightbox-x:hover, .pbrp-lightbox-x:focus-visible { border-color: var(--accent-light); outline: none; }
@keyframes pbrpfade { from { opacity: 0; } to { opacity: 1; } }
.lite .pbrp-lightbox { animation: none; }
