/* Shared content-photo radius, matching the featured image in post template 183. */
:root { --kpim-image-radius:16px; }
body :is(main,#tresc-glowna) img,
body .kpim-gallery-dialog img {
  border-radius:var(--kpim-image-radius);
}
body :is(main,#tresc-glowna) .kpim-news-card img {
  border-radius:var(--kpim-image-radius) var(--kpim-image-radius) 0 0;
}
/* Only the homepage hero slideshow has square photographs on mobile. */
@media (max-width:767px) {
  body :is(main,#tresc-glowna) .kpim-cover .kpim-cover-gallery img.kpim-cover-image { border-radius:0; }
}

/* Greeting cards convey text across the whole artwork, so preserve the full canvas. */
body.kpim-greeting-article img.kpim-post-image { height:auto; max-height:none; aspect-ratio:auto; object-fit:contain; }
body.kpim-full-image-article img.kpim-post-image { height:auto; max-height:none; aspect-ratio:auto; object-fit:contain; }
.kpim-letter-text { margin-block:2rem; }
body .kpim-greeting-text { margin-block:1.5rem; }
body .kpim-greeting-text p { overflow-wrap:anywhere; }
body .kpim-document-alternative { display:inline-block; max-width:100%; margin-block:.25rem; overflow-wrap:anywhere; }
body .kpim-file-info { overflow-wrap:anywhere; }

/* The full site map is a usable alternative to keyword search. */
.kpim-site-map section { margin-block:2rem; }
.kpim-site-map a { display:inline-flex; align-items:center; min-height:44px; max-width:100%; overflow-wrap:anywhere; }
.kpim-site-map-years { display:flex; flex-wrap:wrap; gap:.5rem 1rem; list-style:none; padding:0; }
/* YouTube requires a viewport at least 200px high for its own controls. */
.kpim-post-body iframe[src*="youtube"] { display:block; width:100%; height:auto; min-height:200px; aspect-ratio:16/9; }
