/* Photo posts like on X / Twitter (work version): sharp photo inside the card, rounded, own proportions up to ~4:5. */
.profile-post-photo.pp-preview{display:block;width:100%;margin:4px 0 0;padding:0;border:1px solid var(--line,#d6e0e3);border-radius:18px;overflow:hidden;background:var(--soft,#eef3f4)}
.profile-post-photo.pp-preview img.pp-photo{display:block;width:100%;height:auto;max-height:min(125vw,640px);aspect-ratio:auto;object-fit:cover;object-position:center top}

/* Square and portrait images: compact display only; original files and ratios are kept. */
/* 01/12/2026: full card width, the photo centred on a blurred, darkened copy of itself (no grey band), limited to 320 px in the feed. */
.profile-post-photo.pp-preview.pp-compact-photo{position:relative;isolation:isolate;display:grid!important;place-items:center;width:100%!important;max-width:100%;margin-inline:0;background:#1d2b30;cursor:zoom-in}
.profile-post-photo.pp-preview.pp-compact-photo::before{content:"";position:absolute;inset:-24px;z-index:-1;background:var(--pp-backdrop,none) center/cover no-repeat;filter:blur(22px) brightness(.72) saturate(1.1)}
.profile-post-photo.pp-preview.pp-compact-photo img.pp-photo{position:relative;width:auto;max-width:100%;height:auto;max-height:min(50svh,320px);object-fit:contain;object-position:center;box-shadow:0 4px 18px rgba(0,0,0,.25)}
.pp-compact-carousel.pm-carousel:not(.is-full){width:min(100%,calc(min(50svh,320px) * var(--pm-ratio,1)));margin-inline:auto;cursor:zoom-in}
.pp-compact-carousel .pm-slide:focus-visible{outline:2px solid var(--accent);outline-offset:-3px}

/* Publication view keeps the warm card surface instead of the blue page background. */
dialog.community-media-view,.community-media-view .community-discussion-scroll,.community-media-view .community-post-subject{background:var(--surface,#fffdfa)}
[data-pp-card-key]{cursor:pointer}[data-pp-card-key]:focus-visible{outline:2px solid var(--accent,#a5522e);outline-offset:-3px}
