/* The archive, cloister and piazza use the active parish palette and its own photographs. */
body:is(.pfv-klemens,.pfv-sabina,.pfv-nmpzatybrze) {
  --pmd-c-ink: color-mix(in srgb, var(--pf-brand) 83%, #211b16);
  --pmd-c-line: color-mix(in srgb, var(--pf-brand) 24%, var(--pf-paper));
  --pmd-c-tint: color-mix(in srgb, var(--pf-brand) 6%, var(--pf-paper));
}
body:is(.pfv-klemens,.pfv-sabina,.pfv-nmpzatybrze) .pmd-week-range {display:inline-block;color:var(--pmd-c-ink);font-variant-numeric:tabular-nums;line-height:1.5}
body:is(.pfv-klemens,.pfv-sabina,.pfv-nmpzatybrze) .post-grid:has(.mass_intention) {
  display:grid;grid-template-columns:minmax(0,1fr);gap:0;max-width:60rem;
}
body:is(.pfv-klemens,.pfv-sabina,.pfv-nmpzatybrze) .post-grid .mass_intention {
  display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:.25rem 1.4rem;
  border:0;border-top:1px solid var(--pmd-c-line);box-shadow:none;padding-block:1rem;margin:0;
}
body:is(.pfv-klemens,.pfv-sabina,.pfv-nmpzatybrze) .post-grid .mass_intention h2 {margin:0;font-size:clamp(1.25rem,1.9vw,1.75rem);line-height:1.24}
body:is(.pfv-klemens,.pfv-sabina,.pfv-nmpzatybrze) .post-grid .mass_intention .entry-content {grid-column:1;margin:0}
body:is(.pfv-klemens,.pfv-sabina,.pfv-nmpzatybrze) .post-grid .mass_intention .entry-content p {margin:0}
body:is(.pfv-klemens,.pfv-sabina,.pfv-nmpzatybrze) .post-grid .mass_intention > .text-link {
  grid-column:2;grid-row:1 / span 2;align-self:center;margin:0;min-height:44px;display:inline-flex;align-items:center;text-decoration:underline;text-underline-offset:.25em;
}
body:is(.pfv-klemens,.pfv-sabina,.pfv-nmpzatybrze) .pfx-week-intentions .pfx-row time {
  display:flex;flex-direction:column;justify-content:center;align-items:flex-start;font-variant-numeric:tabular-nums;line-height:1.25
}
body:is(.pfv-klemens,.pfv-sabina,.pfv-nmpzatybrze) .pfx-week-intentions .pfx-row time span {font-size:.84rem}
body:is(.pfv-klemens,.pfv-sabina,.pfv-nmpzatybrze) .pfx-week-intentions .pfx-row time strong {font-size:1.18rem;color:var(--pmd-c-ink)}
body:is(.pfv-klemens,.pfv-sabina,.pfv-nmpzatybrze) .pmd-rites .pmd-rite {min-width:0}
body:is(.pfv-klemens,.pfv-sabina,.pfv-nmpzatybrze) .pmd-rites .pmd-rite h2 {margin:0;border:0;padding:0}
body:is(.pfv-klemens,.pfv-sabina,.pfv-nmpzatybrze) .pmd-rites .pmd-rite h2 a {
  display:flex;align-items:center;gap:1rem;min-height:52px;overflow-wrap:anywhere;text-decoration:none;
}
body:is(.pfv-klemens,.pfv-sabina,.pfv-nmpzatybrze) .pmd-rites .pmd-rite h2 a:hover {text-decoration:underline;text-underline-offset:.18em}
body:is(.pfv-klemens,.pfv-sabina,.pfv-nmpzatybrze) .pmd-rites .pmd-rite h2 img {flex:none;object-fit:cover;margin:0}
body:is(.pfv-klemens,.pfv-sabina,.pfv-nmpzatybrze) .pmd-rites .pmd-rite p {margin:.4rem 0 0;font-size:1rem}

/* Klemens. A chronological reading column and loose photographic plates. */
body.pfv-klemens .pfv-home .pfv-news-stream .pfv-stories {display:grid;gap:0}
body.pfv-klemens .pfv-home .pfv-news-stream .pfv-stories article {
  display:grid;grid-template-columns:minmax(90px,28%) minmax(0,1fr);align-items:center;gap:clamp(1rem,2vw,1.7rem);
  padding:1rem 0;border-top:1px solid var(--pmd-c-line);
}
body.pfv-klemens .pfv-home .pfv-news-stream .pfv-story-photo {width:100%;height:auto;aspect-ratio:1.4;border-radius:3px;overflow:hidden}
body.pfv-klemens .pfv-home .pfv-news-stream .pfv-story-photo img {display:block;width:100%;height:100%;object-fit:cover}
body.pfv-klemens .pfv-home .pfv-news-stream .pfv-story-copy time {font-variant-numeric:tabular-nums;font-weight:600;color:var(--pmd-c-ink)}
body.pfv-klemens .pfv-notice .pfv-notice-list article {border-inline-start:2px solid var(--pmd-c-line);padding-inline-start:.75rem}
body.pfv-klemens .pfv-notice .pfv-notice-list article:first-child {border-inline-start-color:var(--pf-brand)}
body.pfv-klemens .pmd-rites {display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,16rem),1fr));gap:.8rem}
body.pfv-klemens .pmd-rites .pmd-rite {padding:.7rem;background:linear-gradient(110deg,var(--pmd-c-tint),transparent);border-inline-start:2px solid var(--pmd-c-line)}
body.pfv-klemens .pmd-rites .pmd-rite h2 img {width:3.5rem;height:4.3rem;border-radius:2px}
body.pfv-klemens .pfx-rites .pfx-sacraments {display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,15rem),1fr));gap:.45rem 1.4rem}
body.pfv-klemens .pfx-rites .pfx-sacraments > .pfx-tile {
  display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:.6rem;
  border:0;border-top:1px solid var(--pmd-c-line);background:none;box-shadow:none;padding:.7rem 0;color:var(--pmd-c-ink);
}
body.pfv-klemens .pfx-rites .pfx-sacraments > .pfx-tile:has(>img) {grid-template-columns:3.4rem minmax(0,1fr) auto}
body.pfv-klemens .pfx-rites .pfx-sacraments > .pfx-tile >img {height:3.85rem;width:3.4rem;aspect-ratio:auto;object-fit:cover;margin:0;border-radius:2px}
body.pfv-klemens .pfx-rites .pfx-sacraments > .pfx-tile >span {margin:0;min-width:0;padding:0;border:0;background:none}
body.pfv-klemens .pfx-groups .pfx-grid {display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,19rem),1fr));gap:1.3rem}
body.pfv-klemens .pfx-groups article.pfx-tile {display:block;padding:.8rem 0;border:0;border-block:1px solid var(--pmd-c-line);background:transparent;box-shadow:none}
body.pfv-klemens .pfx-groups article.pfx-tile:has(>img) {display:grid;grid-template-columns:clamp(4.3rem,7vw,6.6rem) minmax(0,1fr);align-items:start;gap:1rem}
body.pfv-klemens .pfx-groups article.pfx-tile >img {width:100%;height:auto;aspect-ratio:4/5;object-fit:cover;border-radius:2px;margin:0}
body.pfv-klemens .pfx-groups article.pfx-tile >div {margin:0;padding:0;border:0;background:none}
body.pfv-klemens .pfx-albums .pfx-grid article.pfx-tile {padding:.5rem;background:color-mix(in srgb, var(--pf-paper) 84%,white);border:1px solid var(--pmd-c-line);box-shadow:2px 4px 0 var(--pmd-c-tint)}
body.pfv-klemens .pfx-albums .pfx-grid article.pfx-tile >div {padding:.75rem .35rem .25rem;background:none;margin:0;border:0}
body.pfv-klemens .pfx-albums .pfx-grid article.pfx-tile >img {height:auto;width:100%;aspect-ratio:1.65;object-fit:cover}
body.pfv-klemens .pfw-latest-notice {background:linear-gradient(120deg,var(--pmd-c-tint),transparent);border-inline-start:3px solid var(--pf-brand);padding:clamp(1rem,2.5vw,2rem)}
body.pfv-klemens .post-grid .mass_intention {border-inline-start:2px solid var(--pmd-c-line);padding-inline:1rem}
body.pfv-klemens .post-grid .mass_intention:nth-child(odd) {background:var(--pmd-c-tint)}

/* Sabina. A quiet, unboxed directory with a single arched portrait. */
body.pfv-sabina .pfv-home .pfv-news-stream .pfv-stories article {border-top:1px solid var(--pmd-c-line);padding-block:.95rem}
body.pfv-sabina .pfv-home .pfv-news-stream .pfv-stories article:first-child:has(.pfv-story-photo) {
  grid-template-columns:minmax(6rem,32%) minmax(0,1fr);gap:clamp(1rem,3vw,2.5rem);align-items:center;
}
body.pfv-sabina .pfv-home .pfv-news-stream .pfv-stories article:first-child .pfv-story-photo {
  width:100%;height:auto;max-height:none;min-height:0;aspect-ratio:1;border-radius:49% 49% 0 0;overflow:hidden
}
body.pfv-sabina .pfv-home .pfv-news-stream .pfv-stories article:first-child .pfv-story-photo img {width:100%;height:100%;object-fit:cover}
body.pfv-sabina .pfv-home .pfv-news-stream .pfv-stories article:first-child h3 {font-size:clamp(1.35rem,2.15vw,2rem)}
body.pfv-sabina .pmd-rites {display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,19rem),1fr));column-gap:2.5rem}
body.pfv-sabina .pmd-rites .pmd-rite {padding:.8rem 0;border-top:1px solid var(--pmd-c-line)}
body.pfv-sabina .pmd-rites .pmd-rite h2 img {width:3.2rem;height:3.8rem;border-radius:3rem 3rem 0 0}
body.pfv-sabina .pfx-rites .pfx-sacraments {display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,14rem),1fr));gap:.2rem 1.5rem}
body.pfv-sabina .pfx-rites .pfx-sacraments > .pfx-tile {display:flex;align-items:center;gap:.7rem;padding:.7rem 0;margin:0;border:0;border-top:1px solid var(--pmd-c-line);background:none;box-shadow:none}
body.pfv-sabina .pfx-rites .pfx-sacraments > .pfx-tile >img {height:3.4rem;width:2.9rem;flex:none;object-fit:cover;border-radius:3rem 3rem 0 0}
body.pfv-sabina .pfx-rites .pfx-sacraments > .pfx-tile >span {min-width:0;flex:1;margin:0;padding:0;border:0;background:none}
body.pfv-sabina .pfx-albums .pfx-grid .pfx-tile {background:none;border:0;box-shadow:none}
body.pfv-sabina .pfx-albums .pfx-grid .pfx-tile >img {border-radius:0;aspect-ratio:1.8;width:100%;height:auto;object-fit:cover}
body.pfv-sabina .pfx-albums .pfx-grid .pfx-tile >div {border:0;border-inline-start:1px solid var(--pmd-c-line);padding:.4rem 0 .15rem .75rem;margin:.65rem 0 0;background:none}
body.pfv-sabina .pfw-latest-notice {padding-inline:clamp(1rem,2.5vw,2rem);border:0;border-inline-start:2px solid var(--pf-brand);background:none}
body.pfv-sabina .pfx-week-obituaries .pfx-row {border:0;border-top:1px solid var(--pmd-c-line);padding-block:.8rem}
body.pfv-sabina .pfx-week-obituaries .pfx-row h3 {font-family:Georgia,serif}

/* Zatybrze. A photo mosaic for parish life and a compact programme for worship. */
body.pfv-nmpzatybrze .pfv-home .pfv-news-stream .pfv-stories {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1.2rem}
body.pfv-nmpzatybrze .pfv-home .pfv-news-stream .pfv-stories article {display:block;padding:0;background:transparent;border:0;box-shadow:none}
body.pfv-nmpzatybrze .pfv-home .pfv-news-stream .pfv-story-photo {width:100%;height:auto;max-height:none;min-height:0;aspect-ratio:1.7;border-radius:.7rem;overflow:hidden;display:block}
body.pfv-nmpzatybrze .pfv-home .pfv-news-stream .pfv-story-photo img {width:100%;height:100%;object-fit:cover}
body.pfv-nmpzatybrze .pfv-home .pfv-news-stream .pfv-story-copy {padding:.65rem 0 0;margin:0}
body.pfv-nmpzatybrze .pfv-home .pfv-news-stream .pfv-stories article:first-child {grid-column:1/-1}
body.pfv-nmpzatybrze .pfv-home .pfv-news-stream .pfv-stories article:first-child .pfv-story-photo {aspect-ratio:2.5}
body.pfv-nmpzatybrze .pfv-home .pfv-news-stream .pfv-stories article:first-child h3 {font-size:clamp(1.35rem,2.2vw,2rem)}
body.pfv-nmpzatybrze .pmd-rites {display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,13.5rem),1fr));gap:.75rem}
body.pfv-nmpzatybrze .pmd-rites .pmd-rite {padding:.65rem;border-radius:.65rem;background:var(--pmd-c-tint)}
body.pfv-nmpzatybrze .pmd-rites .pmd-rite h2 img {width:3.4rem;height:3.4rem;border-radius:.55rem}
body.pfv-nmpzatybrze .pfx-week-intentions .pfx-row time {border-radius:.45rem;padding:.45rem .55rem;background:var(--pmd-c-tint)}
body.pfv-nmpzatybrze .pfw-latest-notice {padding:clamp(1rem,3vw,2.1rem);border-radius:1rem;background:var(--pmd-c-tint);border:0}
body.pfv-nmpzatybrze .post-grid .mass_intention {padding:1rem;border:0;border-radius:.65rem;background:var(--pmd-c-tint);margin:0 0 .65rem}
body.pfv-nmpzatybrze .pfx-albums .pfx-grid .pfx-tile {box-shadow:none;background:none;border:0}
body.pfv-nmpzatybrze .pfx-albums .pfx-grid .pfx-tile >img {width:100%;height:auto;aspect-ratio:1.45;object-fit:cover;border-radius:.65rem}
body.pfv-nmpzatybrze .pfx-albums .pfx-grid .pfx-tile >div {padding:.65rem .1rem 0;background:none;border:0;margin:0}

/* Paweł's established directory and Piotr's liturgical calendar. */
body.pfv-klemens main .post-grid:has(> .type-galeria) {grid-template-columns:repeat(auto-fit,minmax(min(100%,17rem),1fr));gap:1.35rem}
body.pfv-klemens main .post-grid .type-galeria {padding:.7rem .7rem 1rem;background:color-mix(in srgb,var(--pf-paper) 74%,white);box-shadow:2px 4px 0 var(--pmd-c-line);border:1px solid var(--pmd-c-line)}
body.pfv-klemens main .post-grid .type-galeria > a:first-child img {display:block;width:100%;height:auto;aspect-ratio:1.6;object-fit:cover}
body.pfv-klemens .pfx-group-archive .parafeo-people > article {border:0;border-top:2px solid var(--pmd-c-line);background:none;box-shadow:none}
body.pfv-klemens main .pfw-today {border-inline-start:3px solid var(--pf-brand);background:linear-gradient(90deg,var(--pmd-c-tint),transparent)}
body.pfv-sabina main .post-grid:has(> .type-galeria) {grid-template-columns:repeat(auto-fit,minmax(min(100%,21rem),1fr));gap:1.6rem 2.4rem}
body.pfv-sabina main .post-grid .type-galeria {border:0;border-bottom:1px solid var(--pmd-c-line);padding:0 0 1rem;background:none;box-shadow:none}
body.pfv-sabina main .post-grid .type-galeria > a:first-child img {display:block;width:100%;height:auto;aspect-ratio:1.9;object-fit:cover;border-radius:0}
body.pfv-sabina .pfx-group-archive .parafeo-people > article > img {border-radius:6rem 6rem 0 0}
body.pfv-sabina main .pfw-today {border:0;border-block:1px solid var(--pmd-c-line);background:none}
body.pfv-nmpzatybrze main .post-grid:has(> .type-galeria) {grid-template-columns:repeat(auto-fit,minmax(min(100%,16rem),1fr));gap:1.25rem}
body.pfv-nmpzatybrze main .post-grid .type-galeria {background:var(--pmd-c-tint);padding:.65rem 1rem 1rem;border:0;border-radius:.9rem;overflow:hidden;box-shadow:none}
body.pfv-nmpzatybrze main .post-grid .type-galeria > a:first-child {display:block;margin:-.65rem -1rem .7rem}
body.pfv-nmpzatybrze main .post-grid .type-galeria > a:first-child img {display:block;width:100%;height:auto;aspect-ratio:1.6;object-fit:cover}
body.pfv-nmpzatybrze main .pfw-today {border:0;border-radius:.7rem;background:var(--pmd-c-tint)}
body:is(.pfv-klemens,.pfv-sabina,.pfv-nmpzatybrze) main .pfw-today .pfw-lines {color:var(--pmd-c-ink);font-variant-numeric:tabular-nums}
body:is(.pfv-klemens,.pfv-sabina,.pfv-nmpzatybrze) main .pfw-schedule dd {font-variant-numeric:tabular-nums}
body.pp-subject-sakramenty #main .parafeo-module .pmd-paul-rite {border-block-start:1px solid color-mix(in srgb,var(--pa-ink,#0d4744) 24%,transparent);padding:.45rem 0}
body.pp-subject-sakramenty #main .parafeo-module .pmd-paul-rite h2 {padding:0;margin:0;border:0;line-height:1.25}
body.pp-subject-sakramenty #main .parafeo-module .pmd-paul-rite a {
  display:flex;min-height:46px;align-items:center;gap:.75rem;text-decoration:none;color:var(--pa-ink,#0d4744);font:400 clamp(1.2rem,1.6vw,1.5rem)/1.25 Georgia,serif
}
body.pp-subject-sakramenty #main .pmd-paul-rite a:hover span {text-decoration:underline;text-underline-offset:.2em}
body.pp-subject-sakramenty #main .pmd-paul-rite .pawel-symbol {width:1.8rem;height:1.8rem;flex:none}
body.pp-subject-sakramenty #main .pmd-paul-rite p {font-size:1rem;line-height:1.5;margin:.4rem 0}
body.pfe-theme-pawel .pp-memorial-list .pp-memorial-entry:focus-visible {outline:2px solid var(--pa-ink,#0d4744);outline-offset:3px}
body.pfv-piotr .pfv-home .pfv-events-list .pfv-event-date {
  padding:.45rem .3rem;min-width:2.9rem;border-block:2px solid var(--pf-brand);background:color-mix(in srgb,var(--pf-brand) 7%, var(--pf-paper));font-variant-numeric:tabular-nums;
}
body.pfv-piotr .pfv-home .pfv-events-list article {grid-template-columns:minmax(3.2rem,max-content) minmax(0,1fr);align-items:start}
body.pfv-piotr .pfv-home .pfv-events-list a.pfw-calendar-download {display:inline-flex;align-items:center;min-height:40px;line-height:1.3;text-underline-offset:.2em}
body.pfv-piotr .pfx-week-intentions .pfx-intention time {font-variant-numeric:tabular-nums;color:var(--pf-brand)}
body.pfv-piotr .pfx-week-obituaries .pfx-row {border-block-start:1px solid var(--pt-rule);padding-block:.8rem}
@media(max-width:660px) {
  body:is(.pfv-klemens,.pfv-sabina,.pfv-nmpzatybrze) .post-grid .mass_intention {display:block}
  body:is(.pfv-klemens,.pfv-sabina,.pfv-nmpzatybrze) .post-grid .mass_intention .text-link {margin-top:.15em}
  body.pfv-nmpzatybrze .pfv-home .pfv-news-stream .pfv-stories {grid-template-columns:1fr;gap:.9rem}
  body.pfv-nmpzatybrze .pfv-home .pfv-news-stream .pfv-stories article:not(:first-child):has(.pfv-story-photo) {
    display:grid;grid-template-columns:minmax(4rem,25%) minmax(0,1fr);gap:.8rem;padding-top:.8rem;border-top:1px solid var(--pmd-c-line)
  }
  body.pfv-nmpzatybrze .pfv-home .pfv-news-stream .pfv-stories article:not(:first-child) .pfv-story-photo {aspect-ratio:1}
  body.pfv-nmpzatybrze .pfv-home .pfv-news-stream .pfv-stories article:not(:first-child) .pfv-story-copy {padding:0}
  body.pfv-klemens .pfv-home .pfv-news-stream .pfv-stories article,body.pfv-sabina .pfv-home .pfv-news-stream .pfv-stories article:first-child:has(.pfv-story-photo) {grid-template-columns:minmax(4rem,25%) minmax(0,1fr);gap:.85rem}
}

