/* Kafelki i album pod tagami — tylko pojedyncze wpisy */
body.single-post .entry-content a.uc-hashtag-chip,
body.single-post .wp-block-post-content a.uc-hashtag-chip {float:none!important;position:relative;}
/* Każdy obraz pod znacznikami zaczyna oddzielny rząd, zamiast zawijać się przy tagach. */
body.single-post .entry-content figure.wp-block-image,
body.single-post .wp-block-post-content figure.wp-block-image,
body.single-post .entry-content > p:has(> img),
body.single-post .wp-block-post-content > p:has(> img),
body.single-post .entry-content > p:has(> a > img),
body.single-post .wp-block-post-content > p:has(> a > img),
body.single-post .entry-content .wp-block-gallery,
body.single-post .wp-block-post-content .wp-block-gallery {
    clear:both!important;
    float:none!important;
    display:flow-root;
    margin:24px 0 24px!important;
    max-width:100%;
    text-align:left!important;
}
body.single-post .entry-content figure.wp-block-image img,
body.single-post .wp-block-post-content figure.wp-block-image img,
body.single-post .entry-content > p > img,
body.single-post .wp-block-post-content > p > img,
body.single-post .entry-content > p > a > img,
body.single-post .wp-block-post-content > p > a > img {
    margin-left:0!important;
    margin-right:auto!important;
    max-width:100%;
    height:auto;
}
body.single-post .uc-post-gallery {
  clear:both!important;display:grid!important;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:12px;width:100%;margin:22px 0 30px!important;
}
body.single-post .uc-post-gallery figure{margin:0!important;min-width:0;max-width:100%!important;}
body.single-post .uc-post-gallery img{display:block;width:100%!important;height:170px!important;max-height:none!important;object-fit:cover!important;object-position:center;border-radius:15px;transition:transform .25s ease,filter .25s ease;}
body.single-post .uc-post-gallery a,body.single-post .uc-post-gallery button {display:block;width:100%;overflow:hidden;border-radius:15px;cursor:zoom-in}
body.single-post .uc-post-gallery a:hover img,body.single-post .uc-post-gallery button:hover img{transform:scale(1.055);filter:brightness(1.05)}
body.single-post .uc-zoomable-image{cursor:zoom-in;transition:transform .22s ease,filter .22s ease;transform-origin:left center}
body.single-post .uc-zoomable-image:hover{transform:scale(1.025);filter:brightness(1.04)}
.uc-gallery-dialog{border:0;padding:0;background:#fffdf9;color:#202b30;border-radius:18px;max-width:min(96vw,1200px);max-height:94vh;box-shadow:0 25px 80px #0007}
.uc-gallery-dialog::backdrop{background:#19151bdc}
.uc-gallery-dialog .uc-dialog-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 14px;font:600 14px system-ui,sans-serif}
.uc-gallery-dialog button{min-height:42px;padding:8px 15px;border:1px solid #5a0060;background:#5a0060;color:white;border-radius:22px;cursor:pointer}
.uc-gallery-dialog img{display:block;max-width:96vw;max-height:calc(94vh - 64px);object-fit:contain;margin:auto}
@media(max-width:720px){body.single-post .uc-post-gallery{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}body.single-post .uc-post-gallery img{height:140px!important}}
@media(max-width:420px){body.single-post .uc-post-gallery{grid-template-columns:1fr 1fr}body.single-post .uc-post-gallery img{height:116px!important}}
@media(prefers-reduced-motion:reduce){body.single-post .uc-zoomable-image,body.single-post .uc-post-gallery img{transition:none!important;transform:none!important}}

/* 2.1.13: skute layout separation, not floats or pseudo-elements */
body.single-post .entry-content .uc-post-tags,
body.single-post .wp-block-post-content .uc-post-tags {
  display:block!important; clear:both!important; width:100%!important;
  margin:24px 0 0!important; padding:0!important;
}
body.single-post .uc-post-tags-heading{
  font:700 11px/1.4 Arial,sans-serif;letter-spacing:.13em;color:#687a64;margin:0 0 12px;
}
body.single-post .uc-post-tags-row{
 display:flex!important;flex-wrap:wrap;align-items:center;justify-content:flex-start;
 gap:9px 10px;width:100%;margin:0!important;padding:0!important;
}
body.single-post .uc-post-tags-row .uc-hashtag-chip{
 display:inline-flex!important;float:none!important;position:static!important;
 flex:0 0 auto;margin:0!important;white-space:normal;max-width:100%;
}
body.single-post .uc-post-trailing-gallery{
 display:flex!important;clear:both!important;align-items:flex-start;justify-content:flex-start;
 flex-wrap:wrap;gap:16px;width:100%;margin:22px 0 36px!important;
 padding:0!important;float:none!important;text-align:left!important;
}
body.single-post .uc-post-trailing-gallery > figure,
body.single-post .uc-post-trailing-gallery > p{
 flex:0 1 auto;max-width:min(100%,340px)!important;margin:0!important;
 text-align:left!important;float:none!important;clear:none!important;
}
body.single-post .uc-post-trailing-gallery > .wp-block-gallery{
 flex:1 1 100%;width:100%;max-width:100%;margin:0!important;
}
body.single-post .uc-post-trailing-gallery img{
 display:block!important;max-width:100%!important;max-height:440px;
 width:auto!important;height:auto!important;margin:0!important;object-fit:contain;
}
body.single-post .uc-post-trailing-gallery figure img{margin-left:0!important}
