/* Keep each parish's selected palette and its typefaces. The compact entries below
   separate directories, photograph collections and time-based information. */
body.pfv-sebastian { --b-tone:#e6bb79; --b-line:#536275; --b-wash:#25364b; --b-shape:2px; --b-thumb:4.4rem; }
body.pfv-jerozolimski { --b-tone:var(--pf-brand,#604238); --b-line:color-mix(in srgb,var(--b-tone) 30%,transparent); --b-wash:color-mix(in srgb,var(--b-tone) 5%,var(--pf-paper,#faf6ee)); --b-shape:0; --b-thumb:3.7rem; }
body.pfv-dwunastu { --b-tone:var(--pf-brand,#215963); --b-line:color-mix(in srgb,var(--b-tone) 28%,transparent); --b-wash:color-mix(in srgb,var(--b-tone) 9%,var(--pf-paper,#fff)); --b-shape:3px; --b-thumb:4rem; }
body.pfv-franciszek { --b-tone:var(--pf-brand,#395537); --b-line:color-mix(in srgb,var(--b-tone) 27%,transparent); --b-wash:color-mix(in srgb,var(--b-tone) 7%,var(--pf-paper,#f8f7ec)); --b-shape:52% 48% 49% 51% / 52% 43% 57% 48%; --b-thumb:4.6rem; }
body.pfv-panteon { --b-tone:var(--pf-brand,#424740); --b-line:color-mix(in srgb,var(--b-tone) 42%,transparent); --b-wash:color-mix(in srgb,var(--b-tone) 6%,var(--pf-paper,#f6f1e7)); --b-shape:0; --b-thumb:4.1rem; }

/* A sacrament is a destination with a title and preparation information.
   Both the home link and the section index work without a photograph. */
body:is(.pfv-sebastian,.pfv-jerozolimski,.pfv-dwunastu,.pfv-franciszek,.pfv-panteon) .pfx-home .pfx-sacraments,
body:is(.pfv-sebastian,.pfv-jerozolimski,.pfv-dwunastu,.pfv-franciszek,.pfv-panteon) .pmd-rites {
    display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,15rem),1fr));
    gap:.25rem clamp(1rem,2.3vw,2rem);
}
body:is(.pfv-sebastian,.pfv-jerozolimski,.pfv-dwunastu,.pfv-franciszek,.pfv-panteon) .pfx-home .pfx-sacraments .pfx-tile,
body:is(.pfv-sebastian,.pfv-jerozolimski,.pfv-dwunastu,.pfv-franciszek,.pfv-panteon) .pmd-rite {
    border:0; border-block-start:1px solid var(--b-line); box-shadow:none; padding:.72rem .12rem;
    background:transparent; border-radius:0; min-width:0;
}
body:is(.pfv-sebastian,.pfv-jerozolimski,.pfv-dwunastu,.pfv-franciszek,.pfv-panteon) .pfx-home .pfx-sacraments .pfx-tile {
    display:flex; align-items:center; flex-wrap:nowrap; gap:.7rem; color:inherit; min-height:4rem;
}
body:is(.pfv-sebastian,.pfv-jerozolimski,.pfv-dwunastu,.pfv-franciszek,.pfv-panteon) .pfx-home .pfx-sacraments .pfx-tile > span {padding:0;min-width:0;width:auto;flex:1}
body:is(.pfv-sebastian,.pfv-jerozolimski,.pfv-dwunastu,.pfv-franciszek,.pfv-panteon) .pfx-home .pfx-sacraments .pfx-tile > svg {flex:none;margin:0;width:1rem}
body:is(.pfv-sebastian,.pfv-jerozolimski,.pfv-dwunastu,.pfv-franciszek,.pfv-panteon) .pfx-home .pfx-sacraments .pfx-tile small {line-height:1.4;margin-top:.24em}
body:is(.pfv-sebastian,.pfv-jerozolimski,.pfv-dwunastu,.pfv-franciszek,.pfv-panteon) .pmd-rites .pmd-rite h2 {margin:0;font-size:clamp(1.15rem,1.55vw,1.48rem);line-height:1.2}
body:is(.pfv-sebastian,.pfv-jerozolimski,.pfv-dwunastu,.pfv-franciszek,.pfv-panteon) .pmd-rites .pmd-rite p {margin:.4rem 0 0}
body:is(.pfv-sebastian,.pfv-jerozolimski,.pfv-dwunastu,.pfv-franciszek,.pfv-panteon) .pmd-rites .pmd-rite h2 a {display:flex;min-height:44px;align-items:center;gap:.8rem;text-decoration:none}
body:is(.pfv-sebastian,.pfv-jerozolimski,.pfv-dwunastu,.pfv-franciszek,.pfv-panteon) :is(.pfx-home .pfx-sacraments .pfx-tile,.pmd-rites .pmd-rite h2 a) > img {
    width:var(--b-thumb);height:var(--b-thumb);min-height:0;max-height:none;aspect-ratio:1;object-fit:cover;object-position:center;flex:none;border-radius:var(--b-shape);margin:0;
}
body:is(.pfv-sebastian,.pfv-jerozolimski,.pfv-dwunastu,.pfv-franciszek,.pfv-panteon) :is(.pmd-rite a:hover span,.pfx-sacraments a:hover strong) {text-decoration:underline;text-underline-offset:.18em}

/* Homes and archives: separate practical lists from editorial cards. */
body:is(.pfv-sebastian,.pfv-jerozolimski,.pfv-dwunastu,.pfv-franciszek,.pfv-panteon) :is(.pfx-week-intentions,.pfx-week-obituaries) .pfx-row {border-color:var(--b-line)}
body:is(.pfv-sebastian,.pfv-jerozolimski,.pfv-dwunastu,.pfv-franciszek,.pfv-panteon) .pfx-week-intentions .pfx-intention time strong {font-variant-numeric:tabular-nums;color:var(--b-tone)}
body:is(.pfv-sebastian,.pfv-jerozolimski,.pfv-dwunastu,.pfv-franciszek,.pfv-panteon) .pfx-week-obituaries .pfx-row h3 {display:flex;align-items:baseline;gap:.55em}
body:is(.pfv-sebastian,.pfv-jerozolimski,.pfv-dwunastu,.pfv-franciszek,.pfv-panteon) .pfx-week-obituaries .pfx-row h3 svg {flex:none;align-self:center;width:.9em;height:1.15em}
body:is(.pfv-sebastian,.pfv-jerozolimski,.pfv-dwunastu,.pfv-franciszek,.pfv-panteon) .page-main .post-grid:has(>.type-mass_intention) {display:block}
body:is(.pfv-sebastian,.pfv-jerozolimski,.pfv-dwunastu,.pfv-franciszek,.pfv-panteon) .page-main .post-card.type-mass_intention {
    display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;column-gap:1rem;
    padding:1rem .1rem;border:0;border-bottom:1px solid var(--b-line);box-shadow:none;
}
body:is(.pfv-sebastian,.pfv-jerozolimski,.pfv-dwunastu,.pfv-franciszek,.pfv-panteon) .page-main .type-mass_intention :is(h2,.text-link) {margin:0}
body:is(.pfv-sebastian,.pfv-jerozolimski,.pfv-dwunastu,.pfv-franciszek,.pfv-panteon) .page-main .type-mass_intention .entry-content {grid-column:1/-1;grid-row:2}
body:is(.pfv-sebastian,.pfv-jerozolimski,.pfv-dwunastu,.pfv-franciszek,.pfv-panteon) .page-main .type-mass_intention .entry-content p {margin:.5rem 0 0;max-width:72ch}
body:is(.pfv-sebastian,.pfv-jerozolimski,.pfv-dwunastu,.pfv-franciszek,.pfv-panteon) .page-main .type-mass_intention .text-link {grid-column:2;grid-row:1;display:inline-flex;align-items:center;min-height:42px}
body:is(.pfv-sebastian,.pfv-jerozolimski,.pfv-dwunastu,.pfv-franciszek,.pfv-panteon) .pfw-schedule :is(dt,dd){font-variant-numeric:tabular-nums}
body:is(.pfv-sebastian,.pfv-jerozolimski,.pfv-dwunastu,.pfv-franciszek,.pfv-panteon) .pfw-latest-notice {background:var(--b-wash);border-color:var(--b-line);border-radius:0;padding:clamp(1rem,3vw,2rem)}
body:is(.pfv-sebastian,.pfv-jerozolimski,.pfv-dwunastu,.pfv-franciszek,.pfv-panteon) .pfw-older-notices li {border-color:var(--b-line)}
body:is(.pfv-sebastian,.pfv-jerozolimski,.pfv-dwunastu,.pfv-franciszek,.pfv-panteon) .pfx-group-archive .parafeo-people article {min-width:0}
body:is(.pfv-sebastian,.pfv-jerozolimski,.pfv-dwunastu,.pfv-franciszek,.pfv-panteon) .post-card :is(h2,a),body:is(.pfv-sebastian,.pfv-jerozolimski,.pfv-dwunastu,.pfv-franciszek,.pfv-panteon) .pfx-tile h3 {overflow-wrap:break-word}

/* Sebastian — an illuminated news lead and a directory marked by a narrow beam. */
body.pfv-sebastian .pfx-news .pfx-grid {grid-template-columns:repeat(2,minmax(0,1fr));align-items:start}
body.pfv-sebastian .pfx-news .pfx-tile {border:0;background:transparent}
body.pfv-sebastian .pfx-news .pfx-tile:first-child {background:linear-gradient(135deg,#2d4155,#1d2c40)}
body.pfv-sebastian .pfx-news .pfx-tile:first-child h3 {font-size:clamp(1.4rem,2.5vw,2.35rem)}
body.pfv-sebastian .pfx-groups .pfx-grid {grid-template-columns:repeat(auto-fit,minmax(min(100%,17rem),1fr));gap:1rem}
body.pfv-sebastian .pfx-groups .pfx-grid > article.pfx-tile:has(>img) {display:flex;flex-direction:column;align-items:start;grid-row:auto;padding:1rem;border:0;border-inline-start:2px solid var(--b-tone);background:linear-gradient(110deg,var(--b-wash),transparent)}
body.pfv-sebastian .pfx-groups .pfx-grid > article.pfx-tile > img {width:4.2rem;height:4.2rem;min-height:0;max-height:none;border-radius:50%;object-fit:cover}
body.pfv-sebastian .pfx-groups .pfx-grid > article.pfx-tile > div {padding:.7rem 0 0}
body.pfv-sebastian .pfx-albums .pfx-grid {grid-template-columns:repeat(3,minmax(0,1fr));gap:.85rem}
body.pfv-sebastian .pfx-albums .pfx-grid > article.pfx-tile:has(>img) {display:block;grid-row:auto;background:transparent;border:0}
body.pfv-sebastian .pfx-albums .pfx-grid > article.pfx-tile > img {width:100%;height:auto;min-height:0;max-height:none;aspect-ratio:1.55;object-fit:cover}
body.pfv-sebastian .pfx-albums .pfx-tile > div {padding:.65rem .15rem;border-top:2px solid var(--b-tone)}
body.pfv-sebastian .pfw-latest-notice {border-top:3px solid var(--b-tone)}
body.pfv-sebastian .pfx-group-archive .parafeo-people article {border-left:2px solid var(--b-tone);padding-inline-start:1.1rem}
body.pfv-sebastian .page-main .post-card.type-post {border-top:2px solid var(--b-tone);background:linear-gradient(145deg,var(--b-wash),transparent)}
/* Link ink on the navy canvas must stay distinct from the selected brand background.
   The pale funeral notices and filled map controls have their own ink. */
body.pfv-sebastian :is(.page-main,.pfx-archive) a:not(:where(.pfo-klepsydra a,.pfm-actions a,.wp-element-button)),
body.pfv-sebastian .pfx-week-intentions > p a {color:#f3d59e}
body.pfv-sebastian .pfw-today {border:0;border-inline-start:3px solid var(--b-tone);background:var(--b-wash);color:#fff0d7}
body.pfv-sebastian .pfw-today .pfw-lines {color:inherit}
body.pfv-sebastian .pmd-lectionary {
    --pmd-ink:#fff0d6;
    --pmd-accent:#e6bb79;
    --pmd-rule:#667284;
    --pmd-surface:color-mix(in srgb,var(--pf-brand,#1c2c45) 66%,#111b2a);
}
body.pfv-sebastian .pmd-heading-symbol {color:var(--b-tone)}
body:is(.pfv-sebastian,.pfv-jerozolimski,.pfv-dwunastu,.pfv-franciszek,.pfv-panteon) dialog.pfr-dialog {
    --b-reader-bg:var(--pf-paper,#fcfaf6);
    --b-reader-ink:var(--b-tone);
    color:var(--b-reader-ink);background:var(--b-reader-bg);border-radius:4px;
}
body.pfv-sebastian dialog.pfr-dialog {--b-reader-bg:#1b2b40;--b-reader-ink:#fff0d6}
body.pfv-franciszek dialog.pfr-dialog {border-radius:1.8rem 4px 1.8rem 4px}
body.pfv-panteon dialog.pfr-dialog {border-top:4px double var(--b-tone)}
body:is(.pfv-sebastian,.pfv-jerozolimski,.pfv-dwunastu,.pfv-franciszek,.pfv-panteon) .pfr-dialog .pfr-dialog-head {
    color:var(--b-reader-ink);background:var(--b-wash);border-bottom:1px solid var(--b-line);flex-wrap:wrap;
}
body:is(.pfv-sebastian,.pfv-jerozolimski,.pfv-dwunastu,.pfv-franciszek,.pfv-panteon) .pfr-dialog .pfr-dialog-body {
    width:min(100%,70ch);margin-inline:auto;box-sizing:border-box;
}
body:is(.pfv-sebastian,.pfv-jerozolimski,.pfv-dwunastu,.pfv-franciszek,.pfv-panteon) .pfr-dialog :is(.pfr-dialog-body h3,.pfr-dialog-body footer) {color:var(--b-reader-ink)}
body:is(.pfv-sebastian,.pfv-jerozolimski,.pfv-dwunastu,.pfv-franciszek,.pfv-panteon) .pfr-dialog button {border-color:var(--b-line);color:var(--b-reader-ink)}
body:is(.pfv-sebastian,.pfv-jerozolimski,.pfv-dwunastu,.pfv-franciszek,.pfv-panteon) .pfr-dialog button[aria-pressed="true"] {background:var(--b-reader-ink);color:var(--b-reader-bg)}

/* Święty Krzyż z Jerozolimy — generous paper margins and measured reading columns. */
body.pfv-jerozolimski .pfv-news-stream .pfv-stories article:first-child:has(.pfv-story-photo) {display:block}
body.pfv-jerozolimski .pfv-news-stream .pfv-stories article:first-child .pfv-story-photo {display:block;height:auto;aspect-ratio:2.5;width:100%;margin:0 0 .8rem}
body.pfv-jerozolimski .pfv-news-stream .pfv-stories article:first-child h3 {font-size:clamp(1.22rem,1.9vw,1.75rem)}
body.pfv-jerozolimski .pfx-groups .pfx-grid {grid-template-columns:repeat(auto-fit,minmax(min(100%,21rem),1fr));gap:1.3rem}
body.pfv-jerozolimski .pfx-groups .pfx-grid article:has(>img) {display:grid;grid-template-columns:3.8rem minmax(0,1fr);align-items:start;gap:1rem;border:0;border-top:1px solid var(--b-line);padding-top:.95rem}
body.pfv-jerozolimski .pfx-groups .pfx-grid article > img {width:3.8rem;height:4.65rem;object-fit:cover;aspect-ratio:auto}
body.pfv-jerozolimski .pfx-groups .pfx-grid article > div {border:0;padding:0}
body.pfv-jerozolimski .pfx-albums .pfx-tile {background:transparent;border:0}
body.pfv-jerozolimski .pfx-albums .pfx-tile img {height:auto;aspect-ratio:1.65;object-fit:cover}
body.pfv-jerozolimski .pfx-albums .pfx-tile > div {padding:.8rem 0;border-bottom:1px solid var(--b-line)}
body.pfv-jerozolimski .pfw-latest-notice {border:0;border-block:1px solid var(--b-line)}
body.pfv-jerozolimski .pfx-obit-grid .pfo-klepsydra {border:0;border-block:1px solid var(--b-line);box-shadow:none}
body.pfv-jerozolimski .page-main .post-card.type-post {box-shadow:none;border:0;border-bottom:1px solid var(--b-line);padding-bottom:1rem}
body.pfv-jerozolimski .pfx-group-archive .parafeo-people article {background:transparent;border:0;border-top:1px solid var(--b-line);padding-top:1.2rem}
body.pfv-jerozolimski .pfw-today {border:0;border-block:1px solid var(--b-line);border-radius:0;background:var(--b-wash)}

/* Dwunastu Apostołów — a community mosaic, separate from its photo albums. */
body.pfv-dwunastu .pfx-groups .pfx-grid {grid-template-columns:repeat(3,minmax(0,1fr));gap:.7rem}
body.pfv-dwunastu .pfx-groups .pfx-grid article {border:0;background:var(--b-wash);display:grid;grid-template-columns:4.25rem minmax(0,1fr);gap:.8rem;align-content:start;padding:1rem}
body.pfv-dwunastu .pfx-groups .pfx-grid article:nth-child(even){background:color-mix(in srgb,var(--pf-accent,#ba8758) 16%,var(--pf-paper,#fff))}
body.pfv-dwunastu .pfx-groups .pfx-grid article > img {width:4.25rem;height:4.25rem;object-fit:cover;border-radius:2px}
body.pfv-dwunastu .pfx-groups .pfx-grid article > div {padding:0}
body.pfv-dwunastu .pfx-groups .pfx-grid article > div:only-child {grid-column:1/-1}
body.pfv-dwunastu .pfx-albums .pfx-grid {grid-template-columns:1.45fr 1fr 1fr;gap:.75rem}
body.pfv-dwunastu .pfx-albums .pfx-tile {background:transparent;border:0}
body.pfv-dwunastu .pfx-albums .pfx-tile img {aspect-ratio:1.48;object-fit:cover}
body.pfv-dwunastu .pfx-albums .pfx-tile > div {padding:.7rem 0}
body.pfv-dwunastu .pfv-news-stream .pfv-stories article:first-child {background:var(--b-wash);padding:.85rem;grid-template-columns:32% minmax(0,1fr)}
body.pfv-dwunastu .pfv-news-stream .pfv-stories article:first-child .pfv-story-photo {height:auto;aspect-ratio:1;align-self:start}
body.pfv-dwunastu .pfx-home .pfx-sacraments .pfx-tile,.pfv-dwunastu .pmd-rites .pmd-rite {border:0;background:var(--b-wash);padding:.65rem}
body.pfv-dwunastu :is(.pfx-home .pfx-sacraments,.pmd-rites){gap:.6rem}
body.pfv-dwunastu .pfx-group-archive .parafeo-people article:nth-child(2n+1),body.pfv-dwunastu .page-main .type-post:nth-child(3n+1) {background:var(--b-wash)}
body.pfv-dwunastu .pfw-latest-notice {border:0;border-inline-start:.35rem solid var(--b-tone)}
body.pfv-dwunastu .pfw-today {background:var(--b-wash);border:0;border-block-start:4px solid var(--b-tone);border-radius:2px}
/* When modules move into the first mosaic panel its background switches to the
   brand color. The hour and its heading mark must follow the panel's own ink. */
body.pfv-dwunastu .pfx-home .pfx-week-intentions .pfx-intention time strong,
body.pfv-dwunastu .pfx-home .pfx-week .pmd-heading-symbol {color:inherit}

/* Franciszek — portraits and leaf-like corners for groups, broad landscapes for albums. */
body.pfv-franciszek .pfx-groups .pfx-grid {grid-template-columns:repeat(auto-fit,minmax(min(100%,18rem),1fr));align-items:start;gap:clamp(1rem,2.5vw,2rem)}
body.pfv-franciszek .pfx-groups .pfx-grid article:has(>img) {display:grid;grid-template-columns:4.75rem minmax(0,1fr);align-items:start;gap:1rem;border-top:1px solid var(--b-line);padding-top:1rem}
body.pfv-franciszek .pfx-groups .pfx-grid article > img {border-radius:var(--b-shape);width:4.75rem;height:4.75rem;object-fit:cover}
body.pfv-franciszek .pfx-groups .pfx-grid article > div {padding:0}
body.pfv-franciszek .pfx-albums .pfx-tile {border:0;background:transparent}
body.pfv-franciszek .pfx-albums .pfx-tile img {height:auto;aspect-ratio:1.65;object-fit:cover;border-radius:1.9rem 3px 1.9rem 3px}
body.pfv-franciszek .pfx-albums .pfx-tile > div {padding:.7rem .1rem}
body.pfv-franciszek .pfv-news-stream .pfv-stories article:first-child {display:grid;grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr);gap:1rem;align-items:center}
body.pfv-franciszek .pfv-news-stream .pfv-stories article:first-child .pfv-story-photo {height:auto;aspect-ratio:1.08;overflow:hidden;border-radius:2.4rem 3px 2.4rem 3px}
body.pfv-franciszek .pfw-latest-notice {border:0;border-radius:2.3rem 4px 2.3rem 4px}
body.pfv-franciszek .page-main .post-card.type-post > a > img {border-radius:1.8rem 3px 1.8rem 3px}
body.pfv-franciszek .pfx-group-archive .parafeo-people article > img {border-radius:1.7rem 3px 1.7rem 3px}
body.pfv-franciszek .pfw-today {border:0;border-radius:1.8rem 3px 1.8rem 3px;background:var(--b-wash)}

/* Panteon — interval, line and column rather than another set of framed cards. */
body.pfv-panteon .pfx-groups .pfx-grid {display:block;border-top:2px solid var(--b-tone)}
body.pfv-panteon .pfx-groups .pfx-grid article.pfx-tile:has(>img) {display:grid;grid-template-columns:clamp(4.5rem,8vw,7.5rem) minmax(0,1fr);gap:clamp(1rem,3vw,2.7rem);align-items:center;border:0;border-bottom:1px solid var(--b-line);background:transparent;padding:.8rem 0}
body.pfv-panteon .pfx-groups .pfx-grid article > img {width:100%;height:auto;aspect-ratio:1.4;object-fit:cover}
body.pfv-panteon .pfx-groups .pfx-grid article > div {padding:0}
body.pfv-panteon .pfx-albums .pfx-grid {grid-template-columns:repeat(3,minmax(0,1fr));gap:clamp(1rem,2.3vw,1.75rem)}
body.pfv-panteon .pfx-albums .pfx-tile {padding:0;border:0;background:transparent}
body.pfv-panteon .pfx-albums .pfx-tile img {height:auto;aspect-ratio:1.4;border-radius:0;object-fit:cover}
body.pfv-panteon .pfx-albums .pfx-tile > div {padding:.7rem 0;border-top:3px double var(--b-tone)}
body.pfv-panteon .pfv-news-stream .pfv-stories article {grid-template-columns:clamp(4rem,6.8vw,6.5rem) minmax(0,1fr);align-items:start;border-top:1px solid var(--b-line);padding-top:.7rem}
body.pfv-panteon .pfv-news-stream .pfv-story-photo {height:auto;aspect-ratio:1.15}
body.pfv-panteon :is(.pfw-latest-notice,.pfx-obit-grid .pfo-klepsydra) {border:0;border-block:3px double var(--b-line);box-shadow:none}
body.pfv-panteon .page-main .post-card.type-post {border:0;border-bottom:3px double var(--b-line);padding-bottom:1rem}
body.pfv-panteon .pmd-rites .pmd-rite {border-block-start:3px double var(--b-line)}
body.pfv-panteon .pfw-today {border:0;border-block:3px double var(--b-line);border-radius:0;background:transparent}

@media(min-width:800px) {
    body.pfv-sebastian .pfx-news .pfx-grid:has(>article:nth-child(2)) > article:first-child {grid-row:span 2}
    body.pfv-sebastian .pfx-news .pfx-grid > article:not(:first-child):has(>img) {display:grid;grid-template-columns:32% minmax(0,1fr);align-items:start;border-bottom:1px solid var(--b-line)}
    body.pfv-sebastian .pfx-news .pfx-grid > article:not(:first-child) > img {width:100%;height:auto;aspect-ratio:1;object-fit:cover}
    body.pfv-sebastian .pfx-news .pfx-grid > article:not(:first-child) > div {padding:.25rem 0 .8rem .85rem}
    body.pfv-jerozolimski .pfx-albums .pfx-grid:has(>article:nth-child(3)) {grid-template-columns:repeat(2,minmax(0,1fr))}
    body.pfv-jerozolimski .pfx-albums .pfx-tile:first-child {grid-row:span 2}
    body.pfv-jerozolimski .pfx-albums .pfx-tile:not(:first-child):has(>img) {display:grid;grid-template-columns:38% minmax(0,1fr);gap:1rem;align-items:center}
    body.pfv-jerozolimski .pfx-albums .pfx-tile:not(:first-child) > img {aspect-ratio:1.35}
    body.pfv-panteon .pfx-groups .pfx-grid article > div {display:grid;grid-template-columns:minmax(0,.8fr) minmax(0,1.3fr);align-items:baseline;gap:1.5rem}
}
@media(max-width:800px) {
    body.pfv-dwunastu .pfx-groups .pfx-grid {grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:640px) {
    body:is(.pfv-sebastian,.pfv-dwunastu,.pfv-panteon) :is(.pfx-albums,.pfx-news,.pfx-groups) .pfx-grid {grid-template-columns:1fr}
    body:is(.pfv-sebastian,.pfv-jerozolimski,.pfv-dwunastu,.pfv-franciszek,.pfv-panteon) .page-main .post-card.type-mass_intention {grid-template-columns:1fr;gap:.45rem}
    body:is(.pfv-sebastian,.pfv-jerozolimski,.pfv-dwunastu,.pfv-franciszek,.pfv-panteon) .page-main .type-mass_intention .text-link {grid-column:1;grid-row:auto;justify-self:start}
    body.pfv-franciszek .pfv-news-stream .pfv-stories article:first-child {grid-template-columns:33% minmax(0,1fr)}
    body.pfv-sebastian .pfx-groups .pfx-grid article.pfx-tile:has(>img) {flex-direction:row;gap:1rem}
    body.pfv-sebastian .pfx-groups .pfx-grid article.pfx-tile > div {padding:0}
}

