:root {
  --bg: #f4f1ea;
  --paper: #fffdf8;
  --paper-soft: #faf7f0;
  --paper-rgb: 255, 253, 248;
  --ink: #242424;
  --muted: #6e685f;
  --blue: #24384d;
  --blue-rgb: 36, 56, 77;
  --blue-soft: #eef2f5;
  --line: #ddd4c7;
  --line-dark: #c9bead;
  --gold: #9f8454;
  --max: 1160px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }

.container {
  width: min(var(--max), calc(100% - 36px));
  margin: 0 auto;
}

.site-header {
  position: relative;
  z-index: 10;
  background: rgba(255, 253, 248, 0.96);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  width: min(var(--max), calc(100% - 36px));
  min-height: 78px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  min-width: 0;
  color: var(--blue);
  font-weight: 720;
  letter-spacing: -0.012em;
  line-height: 1.18;
}

.brand-logo {
  width: auto;
  height: 54px;
  max-width: 62px;
  object-fit: contain;
  flex: 0 0 auto;
}

.brand-title {
  display: block;
  max-width: 520px;
  color: var(--blue);
  font-size: clamp(0.92rem, 1.18vw, 1.08rem);
  line-height: 1.22;
}

.brand small {
  display: none;
}

.nav {
  display: flex;
  gap: 16px;
  align-items: center;
  color: var(--muted);
  font-size: 0.91rem;
  font-weight: 650;
  flex: 0 0 auto;
}

.nav a:hover { color: var(--blue); }

.menu-toggle {
  display: none;
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid var(--line-dark);
  border-radius: 5px;
  background: var(--paper);
  color: var(--blue);
  font-weight: 700;
}

.section-head { margin-bottom: 18px; }

.section-title {
  margin: 0;
  color: var(--ink);
  font-size: clamp(1.45rem, 2.1vw, 1.95rem);
  line-height: 1.2;
  letter-spacing: -0.015em;
  font-weight: 720;
}

/* HERO */
.hero { background: var(--bg); }

.slider {
  position: relative;
  width: 100%;
  height: clamp(360px, 58vh, 620px);
  overflow: hidden;
  background: #111;
}

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  animation: fade 18s infinite;
  background-position: center center;
  background-size: cover;
}

.slide-1 {
  animation-delay: 0s;
  background-image: url("https://awsd.szczecin.pl/wp-content/uploads/2026/02/IMG-20260213-WA0031.jpg");
}

.slide-2 {
  animation-delay: 6s;
  background-image: url("https://awsd.szczecin.pl/wp-content/uploads/2026/03/20260301_132735-scaled.jpg");
}

.slide-3 {
  animation-delay: 12s;
  background-image: url("https://awsd.szczecin.pl/wp-content/uploads/2026/04/20260403_202525-scaled.jpg");
}

@keyframes fade {
  0% { opacity: 0; }
  7% { opacity: 1; }
  33% { opacity: 1; }
  40% { opacity: 0; }
  100% { opacity: 0; }
}

.slider-dots {
  position: absolute;
  right: max(18px, calc((100vw - var(--max)) / 2));
  bottom: 18px;
  z-index: 2;
  display: flex;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(6px);
}

.slider-dots span {
  width: 28px;
  height: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
}

.hero-identity-wrap {
  position: relative;
  z-index: 3;
  margin-top: -18px;
  padding-bottom: 16px;
}

.hero-identity {
  width: min(var(--max), calc(100% - 36px));
  margin: 0 auto;
  padding: 22px 26px 20px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 253, 248, 0.985);
  box-shadow: 0 6px 16px rgba(37, 32, 26, 0.035);
  text-align: center;
}

.hero-title {
  margin: 0 auto;
  color: var(--ink);
  font-size: clamp(1.35rem, 2.1vw, 2rem);
  line-height: 1.22;
  letter-spacing: -0.015em;
  font-weight: 720;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hero-invite {
  width: min(420px, 100%);
  margin: 12px auto 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 13px;
  color: var(--gold);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.08rem;
  font-style: italic;
  line-height: 1;
}

.hero-invite::before,
.hero-invite::after {
  content: "";
  height: 1px;
  background: linear-gradient(90deg, rgba(159,132,84,0), rgba(159,132,84,.48));
}

.hero-invite::after { transform: rotate(180deg); }

.hero-actions-row {
  margin-top: 16px;
  display: flex;
  justify-content: center;
  gap: 9px;
  flex-wrap: wrap;
}

.hero-link {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border: 1px solid var(--line-dark);
  border-radius: 5px;
  color: var(--blue);
  background: #fff;
  font-size: 0.91rem;
  font-weight: 650;
  white-space: nowrap;
  transition: background .15s ease, border-color .15s ease;
}

.hero-link:hover,
.hero-link.primary {
  background: var(--blue-soft);
  border-color: #aeb8c2;
}

/* NEWS / ARCHIVE CARDS */
.news-section,
.faithful-section,
.follow-section,
.vocation-section {
  padding: 34px 0 38px;
  background: linear-gradient(180deg, rgba(255,253,248,.36), rgba(255,253,248,0)), var(--bg);
}

.news-section { padding-top: 34px; }

.news-grid,
.archive-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.news-card,
.archive-card {
  overflow: hidden;
  display: grid;
  grid-template-rows: 180px 1fr;
  min-height: 430px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
  box-shadow: 0 12px 28px rgba(37,32,26,.055);
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}

.news-card:hover,
.archive-card:hover {
  transform: translateY(-2px);
  border-color: var(--line-dark);
  box-shadow: 0 16px 34px rgba(37,32,26,.08);
}

.news-image,
.archive-thumb {
  position: relative;
  overflow: hidden;
  background: #e5ded3;
  border-bottom: 1px solid var(--line);
}

.news-image img,
.archive-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .24s ease;
}

.news-card:hover .news-image img,
.archive-card:hover .archive-thumb img { transform: scale(1.025); }

.news-body,
.archive-content {
  display: flex;
  flex-direction: column;
  padding: 18px 18px 17px;
}

.news-date,
.archive-date {
  display: block;
  margin: 0 0 8px;
  color: var(--gold);
  font-size: .82rem;
  font-weight: 760;
}

.news-title,
.archive-card h2 {
  margin: 0 0 10px;
  color: var(--ink);
  font-size: 1.08rem;
  line-height: 1.32;
  font-weight: 720;
  letter-spacing: -0.01em;
}

.news-excerpt,
.archive-card p {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: .94rem;
  line-height: 1.55;
}

.read-more {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: auto;
  padding-top: 16px;
  color: var(--blue);
  font-size: .91rem;
  font-weight: 720;
}

.read-more::after {
  content: "→";
  transform: translateY(-1px);
}

.news-bottom {
  display: flex;
  justify-content: center;
  margin-top: 22px;
}

.all-news-link,
.back-link,
.word-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 16px;
  border: 1px solid var(--line-dark);
  border-radius: 5px;
  background: var(--paper);
  color: var(--blue);
  font-size: .91rem;
  font-weight: 650;
  white-space: nowrap;
  transition: background .15s ease, border-color .15s ease;
}

.all-news-link:hover,
.back-link:hover,
.word-button:hover {
  background: var(--blue-soft);
  border-color: #aeb8c2;
}


/* HOMEPAGE SECTION SURFACES */
.news-section > .container,
.faithful-section > .container,
.follow-section > .container,
.contact-section > .container {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 253, 248, 0.72);
  box-shadow: 0 8px 22px rgba(37,32,26,.035);
}

.contact-section > .container {
  margin-bottom: 34px;
}

    /* VOCATIONS */
.vocation-hero {
  position: relative;
  min-height: 430px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background:
    linear-gradient(90deg, rgba(var(--blue-rgb),.72) 0%, rgba(var(--blue-rgb),.46) 34%, rgba(var(--blue-rgb),.14) 64%, rgba(var(--blue-rgb),.02) 100%),
    linear-gradient(0deg, rgba(20,18,15,.54) 0%, rgba(20,18,15,.16) 45%, rgba(20,18,15,.04) 100%),
    url("https://awsd.szczecin.pl/wp-content/uploads/2024/05/is_powolanie.jpg") center center / cover;
  box-shadow: 0 14px 34px rgba(37,32,26,.08);
}

.vocation-hero::after {
  content: "";
  position: absolute;
  inset: 16px;
  border: 1px solid rgba(255,255,255,.24);
  border-radius: 10px;
  pointer-events: none;
}

.vocation-content {
  position: relative;
  z-index: 1;
  min-height: inherit;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 34px;
}

.vocation-heading {
  max-width: 520px;
  color: #fff;
}

.vocation-heading h2 {
  margin: 0;
  font-size: clamp(1.55rem, 2.25vw, 2.05rem);
  line-height: 1.2;
  letter-spacing: -.015em;
  font-weight: 720;
}

.vocation-quote {
  width: max-content;
  max-width: 100%;
  margin: 13px 0 0;
  padding: 8px 13px;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 999px;
  background: rgba(255,255,255,.12);
  color: rgba(255,255,255,.9);
  backdrop-filter: blur(8px);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.02rem;
  font-style: italic;
}

.vocation-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 70px;
}

.vocation-card {
  min-height: 126px;
  padding: 17px 17px 16px;
  border: 1px solid rgba(221,212,199,.92);
  border-radius: 12px;
  background: rgba(var(--paper-rgb),.94);
  box-shadow: 0 12px 26px rgba(20,18,15,.16);
  backdrop-filter: blur(10px);
  transition: transform .16s ease, background .16s ease, border-color .16s ease;
}

.vocation-card:hover {
  transform: translateY(-2px);
  background: var(--paper);
  border-color: var(--line-dark);
}

.vocation-card span,
.small-label,
.tile-title span,
.panel-head span,
.word-label,
.contact-row span,
.aside-head span {
  display: block;
  color: var(--gold);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.vocation-card span { margin-bottom: 8px; }

.vocation-card h3 {
  margin: 0 0 7px;
  color: var(--ink);
  font-size: 1.05rem;
  line-height: 1.28;
  font-weight: 720;
}

.vocation-card p {
  margin: 0;
  color: var(--muted);
  font-size: .9rem;
  line-height: 1.45;
}

.vocation-card strong {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 12px;
  color: var(--blue);
  font-size: .89rem;
}

.vocation-card strong::after { content: "→"; transform: translateY(-1px); }

.vocation-card.is-primary {
  background: rgba(238,242,245,.96);
  border-color: rgba(184,194,204,.95);
}

/* FAITHFUL */
.faithful-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.faithful-tile {
  position: relative;
  min-height: 248px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #ddd;
  box-shadow: 0 12px 28px rgba(37,32,26,.055);
  transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
}

.faithful-tile:hover {
  transform: translateY(-2px);
  border-color: var(--line-dark);
  box-shadow: 0 16px 34px rgba(37,32,26,.08);
}

.faithful-tile::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0,0,0,.56) 0%, rgba(0,0,0,.26) 42%, rgba(0,0,0,.04) 76%);
  z-index: 1;
}

.faithful-tile::after {
  content: "";
  position: absolute;
  inset: 12px;
  z-index: 2;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 9px;
  pointer-events: none;
}

.faithful-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .22s ease;
}

.faithful-tile:hover img { transform: scale(1.025); }

.tile-title {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 21px;
  z-index: 3;
  color: #fff;
}

.tile-title span {
  margin-bottom: 5px;
  color: rgba(255,255,255,.76);
}

.tile-title h3 {
  margin: 0;
  font-size: clamp(1.15rem, 1.8vw, 1.45rem);
  line-height: 1.18;
  font-weight: 720;
  letter-spacing: -.01em;
}

/* FOLLOW */
.follow-grid {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr) 260px;
  gap: 16px;
  align-items: stretch;
}

.panel,
.aside-card,
.contact-panel,
.post-card,
.page-card,
.archive-head {
  border: 1px solid var(--line);
  background: var(--paper);
  box-shadow: 0 12px 28px rgba(37,32,26,.055);
}

.panel {
  overflow: hidden;
  border-radius: 12px;
}

.panel-head,
.aside-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  background: rgba(255,253,248,.96);
}

.panel-head h3,
.aside-head h2 {
  margin: 0;
  color: var(--ink);
  font-size: 1.04rem;
  line-height: 1.25;
  font-weight: 720;
}

.recommend-panel {
  display: flex;
  flex-direction: column;
  min-height: 430px;
}

.poster-slider {
  position: relative;
  flex: 1;
  min-height: 330px;
  padding: 16px;
  background: radial-gradient(circle at 50% 28%, rgba(159,132,84,.12), rgba(159,132,84,0) 56%), var(--paper-soft);
}

.poster-slide {
  position: absolute;
  inset: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  animation: posterFade 18s infinite;
}

.poster-slide:nth-child(1) { animation-delay: 0s; }
.poster-slide:nth-child(2) { animation-delay: 6s; }
.poster-slide:nth-child(3) { animation-delay: 12s; }

.poster-slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 8px;
  filter: drop-shadow(0 14px 20px rgba(37,32,26,.16));
}

@keyframes posterFade {
  0% { opacity: 0; }
  7% { opacity: 1; }
  33% { opacity: 1; }
  40% { opacity: 0; }
  100% { opacity: 0; }
}

.poster-dots {
  position: absolute;
  left: 50%;
  bottom: 12px;
  z-index: 3;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
}

.poster-dots span {
  width: 18px;
  height: 3px;
  border-radius: 999px;
  background: rgba(36,56,77,.28);
}

.recommend-foot {
  padding: 13px 16px 15px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .9rem;
  line-height: 1.45;
}

.inline-link {
  display: inline-flex;
  margin-top: 7px;
  color: var(--blue);
  font-weight: 720;
}

.inline-link::after { content: " →"; }

.word-panel {
  min-height: 430px;
  display: flex;
  flex-direction: column;
}

.word-content {
  flex: 1;
  padding: 28px 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.word-label { margin-bottom: 9px; }

.word-content h3 {
  margin: 0 0 14px;
  color: var(--ink);
  font-size: clamp(1.24rem, 1.8vw, 1.55rem);
  line-height: 1.25;
  font-weight: 720;
  letter-spacing: -.012em;
}

.word-content blockquote,
.word-widget blockquote {
  margin: 0 0 16px;
  padding-left: 16px;
  border-left: 3px solid var(--gold);
  color: #37332e;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.04rem;
  line-height: 1.55;
  font-style: italic;
}

.word-content p,
.word-widget p {
  margin: 0;
  color: var(--muted);
  font-size: .94rem;
  line-height: 1.58;
}

.word-actions { margin-top: 18px; }

.social-stack {
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: 16px;
  min-height: 430px;
}

.social-tile {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 0;
  padding: 18px;
  color: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 12px 28px rgba(37,32,26,.055);
  background: #222;
}

.social-tile::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(0deg, rgba(0,0,0,.66) 0%, rgba(0,0,0,.30) 48%, rgba(0,0,0,.06) 100%);
}

.social-tile::after {
  content: "";
  position: absolute;
  inset: 12px;
  z-index: 2;
  border: 1px solid rgba(255,255,255,.24);
  border-radius: 9px;
  pointer-events: none;
}

.social-tile.facebook {
  background: url("https://awsd.szczecin.pl/wp-content/uploads/2026/05/Swiecenia-diakonackie-2026-224-e1779570117269.jpg") center center / cover;
}

.social-tile.instagram {
  background: url("https://awsd.szczecin.pl/wp-content/uploads/2026/04/20260403_202525-scaled.jpg") center center / cover;
}

.social-tile > * {
  position: relative;
  z-index: 3;
}

.social-tile .small-label {
  margin-bottom: 5px;
  color: rgba(255,255,255,.76);
}

.social-tile h3 {
  margin: 0;
  font-size: 1.16rem;
  line-height: 1.2;
  font-weight: 720;
  letter-spacing: -.01em;
}

.social-tile p {
  margin: 7px 0 0;
  color: rgba(255,255,255,.84);
  font-size: .9rem;
  line-height: 1.42;
}

/* CONTACT SECTION + CONTACT PAGE */
.contact-section {
  padding: 34px 0 0;
  background: linear-gradient(180deg, rgba(255,253,248,.38), rgba(255,253,248,0)), var(--bg);
}

.contact-panel {
  overflow: hidden;
  border-radius: 14px;
  box-shadow: 0 14px 34px rgba(37,32,26,.08);
}

.contact-hero {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(360px, 1.05fr);
  min-height: 320px;
  border-bottom: 1px solid var(--line);
}

.contact-address,
.address-block {
  position: relative;
  padding: 32px;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background:
    linear-gradient(90deg, rgba(20,28,38,.82) 0%, rgba(20,28,38,.72) 48%, rgba(20,28,38,.52) 100%),
    linear-gradient(0deg, rgba(0,0,0,.42), rgba(0,0,0,.18)),
    url("https://awsd.szczecin.pl/wp-content/uploads/2024/05/slider1.jpg") center center / cover;
}

.contact-address::after,
.address-block::after {
  content: "";
  position: absolute;
  inset: 16px;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 10px;
  pointer-events: none;
}

.contact-address > *,
.address-block > * {
  position: relative;
  z-index: 1;
}

.contact-address .small-label,
.address-block .small-label {
  margin-bottom: 10px;
  color: rgba(255,255,255,.72);
}

.contact-address h3,
.address-block h2 {
  max-width: 560px;
  margin: 0 0 16px;
  font-size: clamp(1.35rem, 2vw, 1.75rem);
  line-height: 1.25;
  letter-spacing: -.015em;
  font-weight: 650;
}

.address-line,
.address-block address {
  margin: 0;
  color: rgba(255,255,255,.88);
  font-style: normal;
  font-size: 1rem;
  line-height: 1.58;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 22px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid rgba(255,255,255,.34);
  border-radius: 5px;
  background: rgba(255,255,255,.1);
  color: #fff;
  font-size: .9rem;
  font-weight: 650;
  white-space: nowrap;
  transition: background .15s ease, border-color .15s ease;
}

.button:hover {
  background: rgba(255,255,255,.17);
  border-color: rgba(255,255,255,.5);
}

.button.light {
  background: #fff;
  border-color: #fff;
  color: var(--blue);
}

.map-card,
.map-block {
  min-height: 320px;
  background: #e9dfcf;
}

.map-card iframe,
.map-block iframe {
  width: 100%;
  height: 100%;
  min-height: 320px;
  border: 0;
  display: block;
  filter: grayscale(.12) saturate(.85);
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.contact-card {
  min-height: 178px;
  padding: 24px;
  border-right: 1px solid var(--line);
  background: var(--paper);
}

.contact-card:last-child { border-right: 0; }

.contact-card h3 {
  margin: 0 0 13px;
  color: var(--ink);
  font-size: 1.08rem;
  line-height: 1.28;
  font-weight: 720;
}

.contact-row { margin-top: 9px; }

.contact-row span { margin-bottom: 2px; }

.contact-row a {
  color: var(--blue);
  font-size: .96rem;
  font-weight: 680;
  word-break: break-word;
}

.site-footer {
  margin-top: 34px;
  padding: 24px 0;
  background: #1f2f41;
  color: rgba(255,255,255,.76);
  font-size: .9rem;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

.footer-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-links a:hover { color: #fff; }


/* ARCHIVE SURFACE */
.archive-panel {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 253, 248, 0.72);
  box-shadow: 0 8px 22px rgba(37,32,26,.035);
}

.archive-panel .archive-head {
  margin-bottom: 18px;
  box-shadow: none;
}

.archive-panel .pagination-wrap {
  margin-top: 24px;
}

    
/* WORDPRESS GALLERIES */
.post-body .gallery,
.page-content .gallery {
  display: grid !important;
  gap: 12px;
  margin: 24px 0;
}

.post-body .gallery-columns-1,
.page-content .gallery-columns-1 { grid-template-columns: 1fr; }

.post-body .gallery-columns-2,
.page-content .gallery-columns-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.post-body .gallery-columns-3,
.page-content .gallery-columns-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.post-body .gallery-columns-4,
.page-content .gallery-columns-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.post-body .gallery-columns-5,
.page-content .gallery-columns-5,
.post-body .gallery-columns-6,
.page-content .gallery-columns-6,
.post-body .gallery-columns-7,
.page-content .gallery-columns-7,
.post-body .gallery-columns-8,
.page-content .gallery-columns-8,
.post-body .gallery-columns-9,
.page-content .gallery-columns-9 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.post-body .gallery-item,
.page-content .gallery-item {
  width: auto !important;
  max-width: none !important;
  margin: 0 !important;
}

.post-body .gallery-icon,
.page-content .gallery-icon {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper-soft);
}

.post-body .gallery img,
.page-content .gallery img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  border: 0 !important;
}

.post-body .gallery-caption,
.page-content .gallery-caption {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.35;
}

/* Block editor gallery */
.post-body .wp-block-gallery,
.page-content .wp-block-gallery {
  margin: 24px 0;
}

.post-body .wp-block-gallery.has-nested-images,
.page-content .wp-block-gallery.has-nested-images,
.post-body .blocks-gallery-grid,
.page-content .blocks-gallery-grid {
  display: grid !important;
  gap: 12px !important;
}

.post-body .wp-block-gallery.has-nested-images.columns-1,
.page-content .wp-block-gallery.has-nested-images.columns-1,
.post-body .blocks-gallery-grid.columns-1,
.page-content .blocks-gallery-grid.columns-1 { grid-template-columns: 1fr; }

.post-body .wp-block-gallery.has-nested-images.columns-2,
.page-content .wp-block-gallery.has-nested-images.columns-2,
.post-body .blocks-gallery-grid.columns-2,
.page-content .blocks-gallery-grid.columns-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.post-body .wp-block-gallery.has-nested-images.columns-3,
.page-content .wp-block-gallery.has-nested-images.columns-3,
.post-body .blocks-gallery-grid.columns-3,
.page-content .blocks-gallery-grid.columns-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.post-body .wp-block-gallery.has-nested-images.columns-4,
.page-content .wp-block-gallery.has-nested-images.columns-4,
.post-body .blocks-gallery-grid.columns-4,
.page-content .blocks-gallery-grid.columns-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.post-body .wp-block-gallery.has-nested-images figure.wp-block-image,
.page-content .wp-block-gallery.has-nested-images figure.wp-block-image,
.post-body .blocks-gallery-item,
.page-content .blocks-gallery-item {
  width: auto !important;
  margin: 0 !important;
}

.post-body .wp-block-gallery.has-nested-images figure.wp-block-image img,
.page-content .wp-block-gallery.has-nested-images figure.wp-block-image img,
.post-body .blocks-gallery-item img,
.page-content .blocks-gallery-item img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 10px;
}


    
.page-card .page-head {
  border: 0;
  border-bottom: 1px solid var(--line);
  box-shadow: none;
}

    /* SINGLE / PAGE */
.post-page,
.page-shell,
.archive-page,
.contact-page {
  padding: 40px 0 58px;
  background: linear-gradient(180deg, rgba(255,253,248,.42), rgba(255,253,248,0)), var(--bg);
}

.breadcrumbs {
  margin-bottom: 14px;
  color: var(--muted);
  font-size: .88rem;
}

.breadcrumbs a {
  color: var(--blue);
  font-weight: 650;
}

.post-layout,
.page-layout {
  display: grid;
  grid-template-columns: minmax(0, 780px) minmax(260px, 1fr);
  gap: 24px;
  align-items: start;
}

.post-card,
.page-card {
  overflow: hidden;
  border-radius: 14px;
  box-shadow: 0 14px 34px rgba(37,32,26,.08);
}

.post-head,
.page-head,
.archive-head {
  padding: 30px 34px 24px;
  border-radius: 14px 14px 0 0;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, #fffdf8, #fbf7ef);
}

.archive-head {
  margin-bottom: 18px;
  border-radius: 14px;
  border: 1px solid var(--line);
  box-shadow: 0 12px 28px rgba(37,32,26,.055);
}

.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 11px;
  color: var(--muted);
  font-size: .78rem;
}

.post-meta time,
.post-meta a {
  display: inline-flex;
  align-items: center;
  min-height: 23px;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
}

.post-meta a {
  color: var(--blue);
  font-weight: 650;
}


.post-meta:empty {
  display: none;
}


.post-title,
.page-title,
.archive-title {
  max-width: 700px;
  margin: 0;
  color: var(--ink);
  font-size: clamp(1.62rem, 2.55vw, 2.25rem);
  line-height: 1.16;
  letter-spacing: -.018em;
  font-weight: 650;
}

.post-lead {
  max-width: 680px;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: .98rem;
  line-height: 1.6;
}

.post-cover {
  margin: 0;
  background: var(--paper-soft);
  border-bottom: 1px solid var(--line);
}

.post-cover img {
  width: 100%;
  max-height: 450px;
  object-fit: cover;
}

.post-body,
.page-content {
  padding: 30px 34px 34px;
  color: #37332e;
  font-size: 1rem;
  line-height: 1.76;
}

.post-body p,
.page-content p {
  margin: 0 0 1.15em;
}

.post-body p:last-child,
.page-content p:last-child {
  margin-bottom: 0;
}

.post-body a,
.page-content a {
  color: var(--blue);
  font-weight: 720;
  border-bottom: 1px solid rgba(36,56,77,.25);
}

.page-content h2 {
  margin: 1.55em 0 .55em;
  color: var(--ink);
  font-size: 1.24rem;
  line-height: 1.32;
  font-weight: 700;
  letter-spacing: -.012em;
}

.page-content h2:first-child { margin-top: 0; }

.page-content h3 {
  margin: 1.45em 0 .5em;
  color: var(--ink);
  font-size: 1.08rem;
  line-height: 1.35;
  font-weight: 720;
}

.page-content ul,
.page-content ol {
  margin: 0 0 1.15em;
  padding-left: 1.35em;
}

.page-content li {
  margin: 0 0 .55em;
  padding-left: .15em;
}

.page-links {
  margin-top: 24px;
  color: var(--muted);
}

.post-aside,
.page-aside {
  position: sticky;
  top: 20px;
  display: grid;
  gap: 16px;
}

.aside-card {
  overflow: hidden;
  border-radius: 12px;
}

.latest-list { display: grid; }

.latest-item {
  display: grid;
  grid-template-columns: 86px 1fr;
  gap: 12px;
  padding: 13px;
  border-bottom: 1px solid var(--line);
  transition: background .16s ease;
}

.latest-item:last-child { border-bottom: 0; }
.latest-item:hover { background: var(--paper-soft); }

.latest-thumb {
  width: 86px;
  height: 66px;
  overflow: hidden;
  border-radius: 8px;
  background: #e4dccf;
}

.latest-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.latest-item h3 {
  margin: 0;
  color: var(--ink);
  font-size: .94rem;
  line-height: 1.32;
  font-weight: 720;
}

.latest-item span span {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: .82rem;
}

.word-widget {
  padding: 17px 16px 18px;
}

.word-widget h3 {
  margin: 0 0 9px;
  color: var(--ink);
  font-size: 1.02rem;
  line-height: 1.3;
  font-weight: 700;
}

.word-widget blockquote {
  margin-bottom: 12px;
  padding-left: 13px;
  font-size: .98rem;
  line-height: 1.5;
}

.word-widget a {
  display: inline-flex;
  margin-top: 12px;
  color: var(--blue);
  font-size: .9rem;
  font-weight: 720;
}

.word-widget a::after { content: " →"; }

.aside-quick {
  padding: 16px;
}

.aside-quick p {
  margin: 0 0 13px;
  color: var(--muted);
  font-size: .92rem;
  line-height: 1.5;
}

.back-link::before {
  content: "←";
  margin-right: 6px;
}

.archive-page .pagination-wrap {
  display: flex;
  justify-content: center;
  margin-top: 24px;
}

.navigation.pagination {
  width: auto;
}

.nav-links {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  box-shadow: 0 10px 24px rgba(37,32,26,.045);
}

.nav-links .page-numbers {
  min-width: 36px;
  min-height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: .92rem;
  font-weight: 720;
}

.nav-links .page-numbers:hover {
  background: var(--blue-soft);
  color: var(--blue);
}

.nav-links .page-numbers.current {
  background: var(--blue);
  color: #fff;
}

.nav-links .next,
.nav-links .prev {
  color: var(--blue);
}

.contact-page .contact-hero {
  grid-template-columns: minmax(0,.92fr) minmax(420px,1.08fr);
  min-height: 360px;
}

.contact-page .map-block,
.contact-page .map-block iframe { min-height: 360px; }

.account-strip {
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 18px;
  align-items: center;
  padding: 18px 24px;
  background: var(--paper-soft);
}

.account-strip h3 {
  margin: 0;
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.3;
  font-weight: 720;
}

.account-details {
  color: var(--muted);
  font-size: .94rem;
  line-height: 1.55;
}

.account-details strong {
  display: block;
  color: var(--blue);
  font-size: .98rem;
  letter-spacing: .012em;
  word-break: break-word;
}

.contact-note {
  margin-top: 18px;
  padding: 18px 22px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
  color: var(--muted);
  font-size: .94rem;
  line-height: 1.55;
}

@media (max-width: 1080px) {
  .follow-grid {
    grid-template-columns: 300px minmax(0, 1fr);
  }

  .social-stack {
    grid-column: 1 / -1;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
    min-height: 190px;
  }

  .social-tile { min-height: 190px; }
}

@media (max-width: 980px) {
  .menu-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .nav {
    display: none;
    position: absolute;
    left: 18px;
    right: 18px;
    top: calc(100% + 1px);
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 0 0 12px 12px;
    background: var(--paper);
    box-shadow: 0 14px 28px rgba(37,32,26,.08);
  }

  .nav.is-open {
    display: grid;
    gap: 10px;
  }

  .news-grid,
  .archive-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .vocation-hero {
    background:
      linear-gradient(0deg, rgba(var(--blue-rgb),.76) 0%, rgba(var(--blue-rgb),.38) 52%, rgba(var(--blue-rgb),.08) 100%),
      url("https://awsd.szczecin.pl/wp-content/uploads/2024/05/is_powolanie.jpg") center center / cover;
  }

  .vocation-links,
  .faithful-grid,
  .post-layout,
  .page-layout,
  .contact-hero,
  .contact-page .contact-hero,
  .contact-grid,
  .account-strip {
    grid-template-columns: 1fr;
  }

  .post-aside,
  .page-aside { position: static; }

  .contact-card {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .contact-card:last-child { border-bottom: 0; }
}

@media (max-width: 720px) {
  .hero-title {
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
  }

  .hero-actions-row { display: grid; }
  .hero-link { width: 100%; }

  .news-grid,
  .archive-grid,
  .follow-grid,
  .faithful-grid {
    grid-template-columns: 1fr;
  }

  .news-card,
  .archive-card { min-height: auto; }

  .poster-slider { min-height: 380px; }

  .social-stack {
    grid-column: auto;
    grid-template-columns: 1fr;
  }

  .vocation-content,
  .contact-address,
  .address-block,
  .contact-card,
  .account-strip {
    padding: 22px;
  }
}

@media (max-width: 620px) {
  .container,
  .header-inner,
  .hero-identity {
    width: calc(100% - 24px);
  }

  .slider { height: 360px; }

  .news-section,
  .faithful-section,
  .follow-section,
  .vocation-section,
  .post-page,
  .page-shell,
  .archive-page,
  .contact-page {
    padding-top: 36px;
    padding-bottom: 46px;
  }

  .post-head,
  .page-head,
  .archive-head,
  .post-body,
  .page-content {
    padding: 24px 20px;
  }

  .contact-address::after,
  .address-block::after { inset: 10px; }

  .contact-actions { display: grid; }
  .button { width: 100%; }

  .latest-item { grid-template-columns: 78px 1fr; }
  .latest-thumb { width: 78px; height: 60px; }

  .nav-links {
    width: 100%;
    justify-content: center;
    border-radius: 12px;
    flex-wrap: wrap;
  }

  .footer-inner { display: block; }
  .footer-links { margin-top: 12px; }
}




/* SOCIAL TILES OVERRIDE v0.9 */
.follow-section .social-stack {
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: 16px;
  min-height: 430px;
}

.follow-section .social-tile,
.follow-section .social-tile.facebook,
.follow-section .social-tile.instagram {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 0;
  padding: 22px 20px;
  border-radius: 12px;
  border: 0;
  box-shadow: 0 12px 28px rgba(37,32,26,.055);
  transition: transform .16s ease, box-shadow .16s ease, filter .16s ease;
  background-image: none !important;
}

.follow-section .social-tile::before,
.follow-section .social-tile::after {
  display: none !important;
  content: none !important;
}

.follow-section .social-tile:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(37,32,26,.075);
  filter: saturate(1.02);
}

.follow-section .social-tile.facebook {
  background: #1877f2 !important;
  color: #fff !important;
}

.follow-section .social-tile.instagram {
  background: linear-gradient(135deg, #405de6 0%, #833ab4 34%, #c13584 62%, #e1306c 80%, #f77737 100%) !important;
  color: #fff !important;
}

.follow-section .social-tile .social-icon {
  width: 46px;
  height: 46px;
  margin-bottom: 14px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,.96);
  color: #1877f2;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1.75rem;
  line-height: 1;
  font-weight: 800;
  box-shadow: 0 8px 18px rgba(0,0,0,.12);
}

.follow-section .social-tile.instagram .social-icon {
  color: #8a3ab9;
}

.follow-section .social-tile .instagram-icon svg {
  width: 24px;
  height: 24px;
  display: block;
}

.follow-section .social-tile .instagram-icon rect,
.follow-section .social-tile .instagram-icon circle {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
}

.follow-section .social-tile .small-label {
  margin-bottom: 5px;
  color: rgba(255,255,255,.78) !important;
}

.follow-section .social-tile h3 {
  margin: 0;
  color: #fff !important;
  font-size: 1.14rem;
  line-height: 1.2;
  font-weight: 720;
  letter-spacing: -.01em;
}

.follow-section .social-tile p {
  margin: 7px 0 0;
  color: rgba(255,255,255,.92) !important;
  font-size: .92rem;
  line-height: 1.46;
}

@media (max-width: 1080px) {
  .follow-section .social-stack {
    grid-column: 1 / -1;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
    min-height: 190px;
  }

  .follow-section .social-tile {
    min-height: 190px;
  }
}

@media (max-width: 720px) {
  .follow-section .social-stack {
    grid-column: auto;
    grid-template-columns: 1fr;
  }
}



/* MOBILE MENU POLISH v1.1 */
@media (max-width: 980px) {
  .menu-toggle {
    gap: 7px;
    min-height: 38px;
    padding: 0 14px;
    border-color: var(--line-dark);
    border-radius: 999px;
    background: var(--paper);
    box-shadow: 0 8px 18px rgba(37,32,26,.045);
    transition: background .16s ease, border-color .16s ease, color .16s ease;
  }

  .menu-toggle::after {
    content: "";
    width: 7px;
    height: 7px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg) translateY(-2px);
    transition: transform .16s ease;
  }

  .menu-toggle:hover,
  .menu-toggle[aria-expanded="true"] {
    background: var(--blue-soft);
    border-color: #aeb8c2;
    color: var(--blue);
  }

  .menu-toggle[aria-expanded="true"]::after {
    transform: rotate(225deg) translate(-1px, -1px);
  }

  .primary-nav {
    left: 18px;
    right: 18px;
    top: calc(100% + 8px);
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(255, 253, 248, .985);
    box-shadow: 0 18px 36px rgba(37,32,26,.12);
  }

  .primary-nav.is-open {
    display: grid;
    gap: 7px;
  }

  .primary-nav a {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 48px;
    padding: 0 14px;
    border: 1px solid transparent;
    border-radius: 10px;
    color: var(--ink);
    background: transparent;
    font-size: .98rem;
    font-weight: 680;
    line-height: 1.2;
    transition: background .16s ease, border-color .16s ease, color .16s ease, transform .16s ease;
  }

  .primary-nav a::after {
    content: "→";
    margin-left: 16px;
    color: var(--line-dark);
    font-weight: 800;
    transition: transform .16s ease, color .16s ease;
  }

  .primary-nav a:hover,
  .primary-nav a:focus-visible,
  .primary-nav .current-menu-item > a,
  .primary-nav .current_page_item > a {
    background: var(--blue-soft);
    border-color: #d8dee4;
    color: var(--blue);
    transform: translateX(2px);
    outline: none;
  }

  .primary-nav a:hover::after,
  .primary-nav a:focus-visible::after,
  .primary-nav .current-menu-item > a::after,
  .primary-nav .current_page_item > a::after {
    color: var(--blue);
    transform: translateX(2px);
  }
}

@media (max-width: 620px) {
  .primary-nav {
    left: 12px;
    right: 12px;
  }

  .primary-nav a {
    min-height: 50px;
    padding: 0 13px;
  }
}



/* LOGO RESPONSIVE FIX v1.2 */
.site-header .brand {
  min-width: 0;
}

.site-header .brand-logo {
  width: auto;
  height: clamp(42px, 5.2vw, 54px);
  max-width: clamp(48px, 6vw, 64px);
  max-height: 54px;
  object-fit: contain;
  flex: 0 0 auto;
}

.site-header .brand-title {
  min-width: 0;
  max-width: min(520px, 42vw);
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 980px) {
  .site-header .brand-logo {
    height: clamp(38px, 8vw, 48px);
    max-width: clamp(44px, 9vw, 56px);
    max-height: 48px;
  }

  .site-header .brand-title {
    max-width: min(420px, 58vw);
  }
}

@media (max-width: 620px) {
  .header-inner {
    min-height: 66px;
    gap: 12px;
  }

  .site-header .brand {
    gap: 9px;
  }

  .site-header .brand-logo {
    height: clamp(34px, 10vw, 42px);
    max-width: clamp(38px, 11vw, 48px);
    max-height: 42px;
  }

  .site-header .brand-title {
    max-width: calc(100vw - 146px);
    font-size: clamp(0.76rem, 3.2vw, 0.9rem);
    line-height: 1.18;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    white-space: normal;
  }
}

@media (max-width: 390px) {
  .site-header .brand-logo {
    height: 34px;
    max-width: 40px;
  }

  .site-header .brand-title {
    max-width: calc(100vw - 132px);
    font-size: 0.74rem;
  }

  .menu-toggle {
    min-height: 34px;
    padding: 0 10px;
    font-size: 0.86rem;
  }
}



/* VOCATION RANDOM QUOTE */
.vocation-quote {
  width: fit-content;
  max-width: min(620px, 100%);
  white-space: normal;
}



/* WORDPRESS MENU STRUCTURE v1.4 */
.primary-nav .primary-menu-list {
  display: flex;
  gap: inherit;
  align-items: center;
  margin: 0;
  padding: 0;
  list-style: none;
}

.primary-nav .primary-menu-list > li {
  margin: 0;
  padding: 0;
}

@media (max-width: 980px) {
  .primary-nav .primary-menu-list {
    display: grid;
    gap: 7px;
    width: 100%;
  }

  .primary-nav.is-open .primary-menu-list {
    display: grid;
  }

  .primary-nav .primary-menu-list > li {
    width: 100%;
  }

  .primary-nav .primary-menu-list > li > a {
    width: 100%;
  }
}



/* DROPDOWN MENU v1.5 */
.primary-nav .menu-item-has-children {
  position: relative;
}

.primary-nav .sub-menu {
  position: absolute;
  left: 0;
  top: calc(100% + 12px);
  z-index: 50;
  display: grid;
  gap: 4px;
  min-width: 230px;
  margin: 0;
  padding: 9px;
  list-style: none;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 253, 248, .99);
  box-shadow: 0 18px 34px rgba(37,32,26,.13);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  pointer-events: none;
  transition: opacity .16s ease, transform .16s ease, visibility .16s ease;
}

.primary-nav .sub-menu .sub-menu {
  top: -9px;
  left: calc(100% + 8px);
}

.primary-nav li:hover > .sub-menu,
.primary-nav li:focus-within > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.primary-nav .sub-menu li {
  margin: 0;
  padding: 0;
}

.primary-nav .sub-menu a {
  display: flex;
  align-items: center;
  min-height: 38px;
  padding: 8px 10px;
  border-radius: 9px;
  color: var(--ink);
  white-space: nowrap;
  font-size: .89rem;
  font-weight: 650;
  line-height: 1.25;
}

.primary-nav .sub-menu a:hover,
.primary-nav .sub-menu a:focus-visible,
.primary-nav .sub-menu .current-menu-item > a,
.primary-nav .sub-menu .current_page_item > a {
  background: var(--blue-soft);
  color: var(--blue);
  outline: none;
}

.primary-nav > .primary-menu-list > .menu-item-has-children > a::after {
  content: "▾";
  margin-left: 6px;
  color: var(--gold);
  font-size: .72rem;
  line-height: 1;
}

/* Mobile: submenu visible inside opened panel */
@media (max-width: 980px) {
  .primary-nav .menu-item-has-children {
    position: static;
  }

  .primary-nav .sub-menu,
  .primary-nav .sub-menu .sub-menu {
    position: static;
    display: grid;
    gap: 5px;
    min-width: 0;
    margin: 5px 0 4px 12px;
    padding: 6px 0 2px 10px;
    border: 0;
    border-left: 1px solid var(--line);
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    pointer-events: auto;
  }

  .primary-nav .sub-menu a {
    min-height: 42px;
    padding: 0 12px;
    border: 1px solid transparent;
    border-radius: 9px;
    background: rgba(255,255,255,.48);
    color: var(--muted);
    white-space: normal;
    font-size: .92rem;
  }

  .primary-nav .sub-menu a::after {
    content: "→";
    margin-left: auto;
    color: var(--line-dark);
  }

  .primary-nav .sub-menu a:hover,
  .primary-nav .sub-menu a:focus-visible,
  .primary-nav .sub-menu .current-menu-item > a,
  .primary-nav .sub-menu .current_page_item > a {
    background: var(--blue-soft);
    border-color: #d8dee4;
    color: var(--blue);
  }

  .primary-nav > .primary-menu-list > .menu-item-has-children > a::after {
    content: "▾";
    margin-left: auto;
    color: var(--gold);
    transform: none;
  }
}



/* DROPDOWN MENU POLISH v1.6 */
@media (min-width: 981px) {
  .primary-nav {
    overflow: visible;
  }

  .primary-nav .primary-menu-list {
    align-items: stretch;
  }

  .primary-nav .primary-menu-list > li {
    position: relative;
    display: flex;
    align-items: center;
  }

  .primary-nav .primary-menu-list > li > a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0 2px;
  }

  .primary-nav .primary-menu-list > li.menu-item-has-children > a {
    gap: 7px;
  }

  .primary-nav .primary-menu-list > li.menu-item-has-children > a::after {
    content: "⌄" !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    margin-left: 1px;
    border-radius: 50%;
    color: var(--gold);
    font-size: 1.18rem;
    line-height: 1;
    font-weight: 800;
    transform: translateY(-1px);
    transition: background .16s ease, color .16s ease, transform .16s ease;
  }

  .primary-nav .primary-menu-list > li.menu-item-has-children:hover > a::after,
  .primary-nav .primary-menu-list > li.menu-item-has-children:focus-within > a::after {
    background: var(--blue-soft);
    color: var(--blue);
    transform: translateY(1px);
  }

  .primary-nav .primary-menu-list > li.menu-item-has-children::after {
    content: "";
    position: absolute;
    left: -14px;
    right: -14px;
    top: 100%;
    height: 16px;
    display: block;
  }

  .primary-nav .sub-menu {
    top: calc(100% + 8px) !important;
    left: -14px;
    z-index: 100;
    min-width: 245px;
    gap: 3px;
    padding: 10px;
    border: 1px solid rgba(201,190,173,.82);
    border-radius: 14px;
    background:
      linear-gradient(180deg, rgba(255,255,255,.56), rgba(255,255,255,0)),
      rgba(255, 253, 248, .995);
    box-shadow:
      0 18px 38px rgba(37,32,26,.14),
      0 2px 0 rgba(255,255,255,.72) inset;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    pointer-events: none;
    transition: opacity .16s ease, transform .16s ease, visibility .16s ease;
  }

  .primary-nav .sub-menu::before {
    content: "";
    position: absolute;
    left: 26px;
    top: -7px;
    width: 13px;
    height: 13px;
    background: rgba(255, 253, 248, .995);
    border-left: 1px solid rgba(201,190,173,.82);
    border-top: 1px solid rgba(201,190,173,.82);
    transform: rotate(45deg);
  }

  .primary-nav li:hover > .sub-menu,
  .primary-nav li:focus-within > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
  }

  .primary-nav .sub-menu .sub-menu {
    top: -10px !important;
    left: calc(100% + 10px);
  }

  .primary-nav .sub-menu .menu-item-has-children::after {
    left: auto;
    right: -12px;
    top: 0;
    bottom: 0;
    width: 14px;
    height: auto;
  }

  .primary-nav .sub-menu .sub-menu::before {
    left: -7px;
    top: 20px;
    border-left: 1px solid rgba(201,190,173,.82);
    border-bottom: 1px solid rgba(201,190,173,.82);
    border-top: 0;
    transform: rotate(45deg);
  }

  .primary-nav .sub-menu a {
    position: relative;
    min-height: 40px;
    padding: 9px 34px 9px 11px;
    border: 1px solid transparent;
    border-radius: 10px;
    color: var(--ink);
    background: transparent;
    white-space: nowrap;
    font-size: .91rem;
    font-weight: 650;
    line-height: 1.25;
    transition: background .16s ease, border-color .16s ease, color .16s ease, transform .16s ease;
  }

  .primary-nav .sub-menu a::after {
    content: "→";
    position: absolute;
    right: 11px;
    color: var(--line-dark);
    font-weight: 800;
    opacity: .72;
    transition: transform .16s ease, color .16s ease, opacity .16s ease;
  }

  .primary-nav .sub-menu .menu-item-has-children > a::after {
    content: "›" !important;
    color: var(--gold);
    font-size: 1.25rem;
    opacity: 1;
  }

  .primary-nav .sub-menu a:hover,
  .primary-nav .sub-menu a:focus-visible,
  .primary-nav .sub-menu .current-menu-item > a,
  .primary-nav .sub-menu .current_page_item > a {
    background: var(--blue-soft);
    border-color: #d8dee4;
    color: var(--blue);
    transform: translateX(2px);
    outline: none;
  }

  .primary-nav .sub-menu a:hover::after,
  .primary-nav .sub-menu a:focus-visible::after,
  .primary-nav .sub-menu .current-menu-item > a::after,
  .primary-nav .sub-menu .current_page_item > a::after {
    color: var(--blue);
    opacity: 1;
    transform: translateX(2px);
  }
}

/* Mobile submenu polish v1.6 */
@media (max-width: 980px) {
  .primary-nav .primary-menu-list > li.menu-item-has-children > a::after {
    content: "⌄" !important;
    margin-left: auto;
    color: var(--gold);
    font-size: 1.2rem;
    font-weight: 800;
    transform: none;
  }

  .primary-nav .sub-menu,
  .primary-nav .sub-menu .sub-menu {
    margin: 6px 0 7px 13px;
    padding: 7px 0 3px 11px;
    border-left: 2px solid rgba(159,132,84,.32);
  }

  .primary-nav .sub-menu a {
    min-height: 44px;
    padding: 0 13px;
    background: rgba(255,255,255,.56);
    border: 1px solid rgba(221,212,199,.72);
    color: var(--ink);
    font-size: .94rem;
  }

  .primary-nav .sub-menu a::after {
    content: "→" !important;
    margin-left: auto;
    color: var(--line-dark);
  }

  .primary-nav .sub-menu .menu-item-has-children > a::after {
    content: "⌄" !important;
    color: var(--gold);
    font-size: 1.1rem;
  }
}



/* HEADER SOCIALS + DROPDOWN ARROW ALIGN v1.7 */
@media (min-width: 981px) {
  .primary-nav .primary-menu-list > li.menu-item-has-children > a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    line-height: 1;
  }

  .primary-nav .primary-menu-list > li.menu-item-has-children > a::after {
    content: "⌄" !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    height: 1em;
    margin-left: 2px;
    font-size: 1.18rem;
    line-height: 1;
    transform: translateY(-.02em);
    vertical-align: middle;
  }

  .primary-nav .primary-menu-list > li.menu-item-has-children:hover > a::after,
  .primary-nav .primary-menu-list > li.menu-item-has-children:focus-within > a::after {
    transform: translateY(.04em);
  }
}

.header-social {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex: 0 0 auto;
  margin-left: -6px;
}

.header-social-link {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--paper);
  color: var(--blue);
  font-size: .94rem;
  box-shadow: 0 6px 14px rgba(37,32,26,.035);
  transition: transform .16s ease, background .16s ease, border-color .16s ease, color .16s ease, box-shadow .16s ease;
}

.header-social-link:hover,
.header-social-link:focus-visible {
  transform: translateY(-1px);
  border-color: var(--line-dark);
  box-shadow: 0 10px 18px rgba(37,32,26,.07);
  outline: none;
}

.header-social-link.facebook:hover,
.header-social-link.facebook:focus-visible {
  background: #1877f2;
  border-color: #1877f2;
  color: #fff;
}

.header-social-link.instagram:hover,
.header-social-link.instagram:focus-visible {
  background: linear-gradient(135deg, #405de6 0%, #833ab4 34%, #c13584 62%, #e1306c 80%, #f77737 100%);
  border-color: #c13584;
  color: #fff;
}

.header-social-link.youtube:hover,
.header-social-link.youtube:focus-visible {
  background: #ff0000;
  border-color: #ff0000;
  color: #fff;
}

.header-social-link.mail:hover,
.header-social-link.mail:focus-visible {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}

@media (max-width: 1120px) and (min-width: 981px) {
  .header-social {
    gap: 5px;
  }

  .header-social-link {
    width: 29px;
    height: 29px;
    font-size: .86rem;
  }
}

@media (max-width: 980px) {
  .header-social {
    order: 3;
    width: 100%;
    justify-content: center;
    margin: 8px 0 0;
    padding-top: 10px;
    border-top: 1px solid var(--line);
    gap: 10px;
  }

  .header-social-link {
    width: 38px;
    height: 38px;
    font-size: 1rem;
  }

  .menu-toggle {
    order: 2;
  }

  .primary-nav {
    order: 4;
  }
}

@media (max-width: 620px) {
  .header-social {
    gap: 9px;
    margin-top: 7px;
    padding-top: 9px;
  }

  .header-social-link {
    width: 36px;
    height: 36px;
  }
}



/* HEADER SOCIAL INLINE SVG FIX v1.8 */
.header-social-link svg {
  width: 1em;
  height: 1em;
  display: block;
  fill: currentColor;
}

.header-social-link.facebook svg {
  width: .78em;
}

.header-social-link.youtube svg {
  width: 1.12em;
}

.header-social-link.mail svg {
  width: 1.02em;
}



/* MENU CHEVRON ALIGN FIX v1.9 */
@media (min-width: 981px) {
  .primary-nav .primary-menu-list > li.menu-item-has-children > a {
    display: inline-flex !important;
    align-items: center !important;
    gap: 7px;
  }

  .primary-nav .primary-menu-list > li.menu-item-has-children > a::after {
    content: "" !important;
    display: inline-block !important;
    width: 12px !important;
    height: 12px !important;
    margin-left: 1px !important;
    flex: 0 0 12px !important;
    background-color: var(--gold);
    line-height: 1 !important;
    vertical-align: middle !important;
    transform: none !important;
    transition: background-color .16s ease, transform .16s ease;
    -webkit-mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5.2 7.4 10 12.2l4.8-4.8' fill='none' stroke='black' stroke-width='2.3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5.2 7.4 10 12.2l4.8-4.8' fill='none' stroke='black' stroke-width='2.3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  }

  .primary-nav .primary-menu-list > li.menu-item-has-children:hover > a::after,
  .primary-nav .primary-menu-list > li.menu-item-has-children:focus-within > a::after {
    background-color: var(--blue);
    transform: translateY(1px) !important;
  }

  .primary-nav .sub-menu .menu-item-has-children > a::after {
    content: "›" !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: auto !important;
    height: auto !important;
    flex: 0 0 auto !important;
    margin-left: 8px !important;
    background: none !important;
    color: var(--gold);
    -webkit-mask: none !important;
    mask: none !important;
  }
}

@media (max-width: 980px) {
  .primary-nav .primary-menu-list > li.menu-item-has-children > a::after {
    content: "" !important;
    display: inline-block !important;
    width: 13px !important;
    height: 13px !important;
    margin-left: auto !important;
    flex: 0 0 13px !important;
    background-color: var(--gold);
    transform: none !important;
    -webkit-mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5.2 7.4 10 12.2l4.8-4.8' fill='none' stroke='black' stroke-width='2.3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5.2 7.4 10 12.2l4.8-4.8' fill='none' stroke='black' stroke-width='2.3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  }

  .primary-nav .sub-menu .menu-item-has-children > a::after {
    content: "" !important;
    width: 12px !important;
    height: 12px !important;
    flex: 0 0 12px !important;
    background-color: var(--gold);
    -webkit-mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5.2 7.4 10 12.2l4.8-4.8' fill='none' stroke='black' stroke-width='2.3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5.2 7.4 10 12.2l4.8-4.8' fill='none' stroke='black' stroke-width='2.3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  }
}



/* v2.0 requested refinements */
.site-header .brand {
  flex: 0 0 auto;
}

.site-header .brand-logo {
  height: clamp(48px, 5.7vw, 62px);
  max-height: 62px;
  max-width: clamp(54px, 6.8vw, 74px);
}

.site-header .brand-title {
  display: none !important;
}

.vocation-hero {
  min-height: 500px;
  background:
    linear-gradient(90deg, rgba(var(--blue-rgb),.72) 0%, rgba(var(--blue-rgb),.46) 34%, rgba(var(--blue-rgb),.14) 64%, rgba(var(--blue-rgb),.02) 100%),
    linear-gradient(0deg, rgba(20,18,15,.54) 0%, rgba(20,18,15,.16) 45%, rgba(20,18,15,.04) 100%),
    url("https://awsd.szczecin.pl/wp-content/uploads/2024/05/is_powolanie.jpg") top center / cover !important;
}

.follow-section .social-stack {
  grid-template-rows: repeat(3, minmax(0, 1fr)) !important;
  gap: 10px !important;
  min-height: 430px !important;
  max-height: 430px;
}

.follow-section .social-tile,
.follow-section .social-tile.facebook,
.follow-section .social-tile.instagram,
.follow-section .social-tile.youtube {
  min-height: 0 !important;
  padding: 13px 15px !important;
  justify-content: center;
  border: 0;
}

.follow-section .social-tile.youtube {
  background: #ff0000 !important;
  color: #fff !important;
}

.follow-section .social-tile .social-icon {
  width: 34px !important;
  height: 34px !important;
  margin-bottom: 7px !important;
  font-size: 1rem;
}

.follow-section .social-tile .social-icon svg {
  width: 1em;
  height: 1em;
  display: block;
  fill: currentColor;
}

.follow-section .social-tile.facebook .social-icon svg {
  width: .72em;
}

.follow-section .social-tile.instagram .social-icon svg {
  width: .98em;
}

.follow-section .social-tile.youtube .social-icon svg {
  width: 1.14em;
}

.follow-section .social-tile .small-label {
  margin-bottom: 2px !important;
  font-size: .68rem;
}

.follow-section .social-tile h3 {
  font-size: .98rem !important;
  line-height: 1.15 !important;
}

.follow-section .social-tile p {
  margin-top: 4px !important;
  font-size: .78rem !important;
  line-height: 1.28 !important;
}

.contact-address,
.address-block {
  background:
    linear-gradient(90deg, rgba(20,28,38,.62) 0%, rgba(20,28,38,.50) 48%, rgba(20,28,38,.34) 100%),
    linear-gradient(0deg, rgba(255,255,255,.08), rgba(255,255,255,.02)),
    url("https://awsd.szczecin.pl/wp-content/uploads/2024/05/slider1.jpg") center center / cover !important;
}

@media (max-width: 1080px) {
  .follow-section .social-stack {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    grid-template-rows: 1fr !important;
    min-height: 170px !important;
    max-height: none;
  }

  .follow-section .social-tile {
    min-height: 170px !important;
  }
}

@media (max-width: 720px) {
  .site-header .brand-logo {
    height: clamp(42px, 12vw, 52px);
    max-width: clamp(48px, 14vw, 62px);
  }

  .follow-section .social-stack {
    grid-template-columns: 1fr !important;
    grid-template-rows: repeat(3, minmax(0, 1fr)) !important;
    min-height: auto !important;
  }

  .follow-section .social-tile {
    min-height: 126px !important;
  }

  .vocation-hero {
    min-height: 520px;
  }
}



/* v2.1 corrections */
.site-header .brand {
  gap: 10px;
  flex: 0 1 auto;
}

.site-header .brand-logo {
  height: clamp(42px, 5.2vw, 54px);
  max-height: 54px;
  max-width: clamp(48px, 6vw, 64px);
}

.site-header .brand-title {
  display: block !important;
  min-width: 0;
  max-width: 330px;
  overflow: visible;
  text-overflow: unset;
  color: var(--blue);
  font-size: 0.78rem;
  line-height: 1.18;
  font-weight: 680;
  letter-spacing: -0.01em;
}

/* Return vocations to previous framing */
.vocation-section .vocation-inner {
  min-height: 430px;
  background-position: center center;
}

.vocation-section {
  background-position: center center;
}

/* Poster card without footer text */
.recommendation-card {
  display: flex;
  flex-direction: column;
}

.recommendation-card .poster-wrap {
  flex: 1 1 auto;
  min-height: 0;
}

.recommendation-foot {
  display: none !important;
}

/* YouTube original red in follow social tile */
.follow-section .social-tile.youtube {
  background: #ff0000 !important;
  color: #fff !important;
}

.follow-section .social-tile.youtube .social-icon {
  color: #ff0000 !important;
}

.follow-section .social-tile.youtube .social-icon svg {
  width: 1.14em;
  height: 1em;
  display: block;
  fill: currentColor;
}

@media (max-width: 1120px) and (min-width: 981px) {
  .site-header .brand-title {
    max-width: 270px;
    font-size: 0.74rem;
  }
}

@media (max-width: 980px) {
  .site-header .brand-title {
    max-width: min(360px, 58vw);
    font-size: 0.76rem;
    line-height: 1.18;
  }
}

@media (max-width: 720px) {
  .site-header .brand-title {
    max-width: calc(100vw - 146px);
    font-size: 0.72rem;
    display: -webkit-box !important;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .vocation-section .vocation-inner {
    min-height: 430px;
    background-position: center center;
  }
}



/* MOBILE SOCIALS INSIDE MENU v2.2 */
@media (min-width: 981px) {
  .primary-nav {
    display: flex;
    align-items: center;
    gap: 16px;
  }

  .primary-nav .header-social {
    order: 2;
    width: auto;
    margin: 0 0 0 -6px;
    padding: 0;
    border: 0;
  }

  .primary-nav .primary-menu-list {
    order: 1;
  }
}

@media (max-width: 980px) {
  .header-inner > .header-social {
    display: none !important;
  }

  .primary-nav {
    display: none;
  }

  .primary-nav.is-open {
    display: grid;
    gap: 9px;
  }

  .primary-nav .header-social {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    order: -1;
    width: 100%;
    margin: 0 0 8px;
    padding: 11px;
    border: 1px solid rgba(221,212,199,.78);
    border-radius: 12px;
    background:
      linear-gradient(180deg, rgba(255,255,255,.55), rgba(255,255,255,0)),
      var(--paper-soft);
    box-shadow: 0 8px 18px rgba(37,32,26,.045);
    gap: 8px;
  }

  .primary-nav .header-social-link {
    width: 100%;
    height: 42px;
    border-radius: 10px;
    background: var(--paper);
    box-shadow: none;
  }

  .primary-nav .header-social-link.facebook {
    color: #1877f2;
  }

  .primary-nav .header-social-link.instagram {
    color: #c13584;
  }

  .primary-nav .header-social-link.youtube {
    color: #ff0000;
  }

  .primary-nav .header-social-link.mail {
    color: var(--blue);
  }

  .primary-nav .header-social-link:hover,
  .primary-nav .header-social-link:focus-visible {
    transform: translateY(-1px);
  }

  .primary-nav .primary-menu-list {
    order: 2;
  }
}

@media (max-width: 620px) {
  .primary-nav .header-social {
    padding: 9px;
    gap: 7px;
  }

  .primary-nav .header-social-link {
    height: 40px;
  }
}



/* HEADER SOCIAL ICONS POLISH v2.3 */
.primary-nav .header-social-link::after,
.primary-nav .header-social-link:hover::after,
.primary-nav .header-social-link:focus-visible::after {
  content: none !important;
  display: none !important;
}

.primary-nav .header-social-link:hover,
.primary-nav .header-social-link:focus-visible {
  color: #fff !important;
}

.primary-nav .header-social-link.facebook:hover,
.primary-nav .header-social-link.facebook:focus-visible {
  background: #1877f2 !important;
  border-color: #1877f2 !important;
}

.primary-nav .header-social-link.instagram:hover,
.primary-nav .header-social-link.instagram:focus-visible {
  background: linear-gradient(135deg, #405de6 0%, #833ab4 34%, #c13584 62%, #e1306c 80%, #f77737 100%) !important;
  border-color: #c13584 !important;
}

.primary-nav .header-social-link.youtube:hover,
.primary-nav .header-social-link.youtube:focus-visible {
  background: #ff0000 !important;
  border-color: #ff0000 !important;
}

.primary-nav .header-social-link.mail:hover,
.primary-nav .header-social-link.mail:focus-visible {
  background: var(--blue) !important;
  border-color: var(--blue) !important;
}

.primary-nav .header-social-link:hover svg,
.primary-nav .header-social-link:focus-visible svg {
  fill: currentColor;
}



/* v2.4 final cosmetics */
.site-header .brand-title {
  font-size: 0.76rem;
  line-height: 1.12;
}

@media (min-width: 981px) {
  .header-inner {
    display: flex;
    align-items: center;
  }

  .primary-nav {
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    min-width: 0;
  }

  .primary-nav .primary-menu-list {
    margin-left: auto;
    margin-right: auto;
  }

  .primary-nav .header-social {
    margin-left: 14px;
  }
}

/* Tighter front sections */
.news-section,
.faithful-section,
.follow-section,
.vocation-section {
  padding-top: 24px;
  padding-bottom: 28px;
}

.contact-section {
  padding-top: 24px;
}

.hero-identity-wrap {
  padding-bottom: 6px;
}

/* Polecamy slider */
.poster-wrap[data-poster-slider] {
  position: relative;
  height: 100%;
  min-height: 0;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: var(--paper-soft);
}

.poster-slide {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .28s ease;
}

.poster-slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

.poster-slide img,
.poster-wrap[data-poster-slider] img {
  width: 100%;
  height: 100%;
  object-fit: contain !important;
  display: block;
}

.poster-dots {
  position: absolute;
  left: 50%;
  bottom: 10px;
  z-index: 3;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 8px;
  border-radius: 999px;
  background: rgba(255, 253, 248, .82);
  border: 1px solid rgba(221,212,199,.75);
  backdrop-filter: blur(4px);
}

.poster-dots button,
.poster-dots span {
  width: 7px;
  height: 7px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--line-dark);
  cursor: pointer;
}

.poster-dots button.is-active,
.poster-dots span.is-active {
  background: var(--gold);
}

/* Tighter single/page content cards */
.post-card,
.page-card {
  overflow: hidden;
}

.post-head,
.page-head {
  padding: 22px 24px 16px;
}

.post-body,
.page-content {
  padding: 22px 24px 26px;
}

.post-meta {
  margin-bottom: 8px;
}

.post-title,
.page-title {
  margin-bottom: 0;
}

.post-lead {
  margin-top: 10px;
}

.featured-image {
  margin: 0 24px 18px;
}

@media (max-width: 720px) {
  .news-section,
  .faithful-section,
  .follow-section,
  .vocation-section,
  .contact-section {
    padding-top: 20px;
    padding-bottom: 26px;
  }

  .post-head,
  .page-head {
    padding: 19px 18px 14px;
  }

  .post-body,
  .page-content {
    padding: 19px 18px 22px;
  }

  .featured-image {
    margin: 0 18px 16px;
  }
}



/* Poster slider two-slide fix v2.4 */
.poster-slider {
  overflow: hidden;
}

.poster-slider .poster-slide {
  inset: 14px;
  animation: posterFadeTwo 12s infinite;
}

.poster-slider .poster-slide:nth-child(1) { animation-delay: 0s; }
.poster-slider .poster-slide:nth-child(2) { animation-delay: 6s; }

.poster-slider .poster-slide img {
  object-fit: contain !important;
  max-width: 100%;
  max-height: 100%;
}

@keyframes posterFadeTwo {
  0% { opacity: 0; }
  8% { opacity: 1; }
  46% { opacity: 1; }
  54% { opacity: 0; }
  100% { opacity: 0; }
}



/* Poster slider arrows v2.5 */
.poster-slider[data-poster-slider] {
  position: relative;
  overflow: hidden;
}

.poster-slider[data-poster-slider] .poster-slide {
  position: absolute;
  inset: 14px 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  animation: none !important;
  pointer-events: none;
  transition: opacity .22s ease;
}

.poster-slider[data-poster-slider] .poster-slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

.poster-slider[data-poster-slider] .poster-slide img {
  width: 100%;
  height: 100%;
  object-fit: contain !important;
  display: block;
  border-radius: 8px;
}

.poster-slider[data-poster-slider] .poster-dots {
  display: none !important;
}

.poster-arrow {
  position: absolute;
  top: 50%;
  z-index: 5;
  width: 42px;
  height: 58px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 6px;
  background: rgba(36, 36, 36, .72);
  color: #fff;
  cursor: pointer;
  transform: translateY(-50%);
  box-shadow: 0 8px 18px rgba(37,32,26,.18);
  transition: background .16s ease, transform .16s ease, box-shadow .16s ease;
}

.poster-arrow:hover,
.poster-arrow:focus-visible {
  background: rgba(36, 56, 77, .92);
  transform: translateY(-50%) scale(1.03);
  box-shadow: 0 10px 22px rgba(37,32,26,.24);
  outline: none;
}

.poster-arrow-prev {
  left: 12px;
}

.poster-arrow-next {
  right: 12px;
}

.poster-arrow span {
  width: 15px;
  height: 15px;
  display: block;
  border-top: 4px solid currentColor;
  border-right: 4px solid currentColor;
}

.poster-arrow-prev span {
  transform: rotate(-135deg);
  margin-left: 6px;
}

.poster-arrow-next span {
  transform: rotate(45deg);
  margin-right: 6px;
}

@media (max-width: 720px) {
  .poster-slider[data-poster-slider] .poster-slide {
    inset: 12px 36px;
  }

  .poster-arrow {
    width: 36px;
    height: 52px;
  }

  .poster-arrow-prev {
    left: 8px;
  }

  .poster-arrow-next {
    right: 8px;
  }
}



/* Poster slider arrows subtle v2.6 */
.poster-arrow {
  width: 32px !important;
  height: 46px !important;
  border-radius: 5px !important;
  background: rgba(36, 36, 36, .54) !important;
  box-shadow: 0 6px 14px rgba(37,32,26,.12) !important;
}

.poster-arrow:hover,
.poster-arrow:focus-visible {
  background: rgba(36, 56, 77, .78) !important;
  transform: translateY(-50%) scale(1.02) !important;
  box-shadow: 0 8px 16px rgba(37,32,26,.16) !important;
}

.poster-arrow-prev {
  left: 9px !important;
}

.poster-arrow-next {
  right: 9px !important;
}

.poster-arrow span {
  width: 11px !important;
  height: 11px !important;
  border-top-width: 3px !important;
  border-right-width: 3px !important;
}

.poster-arrow-prev span {
  margin-left: 4px !important;
}

.poster-arrow-next span {
  margin-right: 4px !important;
}

.poster-slider[data-poster-slider] .poster-slide {
  inset: 14px 34px !important;
}

@media (max-width: 720px) {
  .poster-arrow {
    width: 30px !important;
    height: 42px !important;
  }

  .poster-arrow-prev {
    left: 6px !important;
  }

  .poster-arrow-next {
    right: 6px !important;
  }

  .poster-slider[data-poster-slider] .poster-slide {
    inset: 12px 30px !important;
  }
}



/* Poster slider autoplay states v2.7 */
.poster-slider.is-single-slide .poster-arrow {
  display: none !important;
}

.poster-slider.is-single-slide .poster-slide {
  inset: 14px !important;
}



/* Poster slider hero-like transition v2.8 */
.poster-slider[data-poster-slider] .poster-slide {
  opacity: 0;
  transform: scale(1.018) translateX(10px);
  filter: blur(.4px);
  transition:
    opacity .72s ease,
    transform .9s cubic-bezier(.22,.61,.36,1),
    filter .72s ease;
  will-change: opacity, transform;
}

.poster-slider[data-poster-slider] .poster-slide.is-active {
  opacity: 1;
  transform: scale(1) translateX(0);
  filter: blur(0);
}

.poster-slider[data-poster-slider] .poster-slide img {
  transform: scale(1.012);
  transition: transform 4.2s ease;
}

.poster-slider[data-poster-slider] .poster-slide.is-active img {
  transform: scale(1.035);
}

@media (prefers-reduced-motion: reduce) {
  .poster-slider[data-poster-slider] .poster-slide,
  .poster-slider[data-poster-slider] .poster-slide img {
    transition: none !important;
    transform: none !important;
    filter: none !important;
  }
}



/* Daily Gospel integration v2.9 */
.word-content .word-label {
  display: none !important;
}

.word-content p {
  max-width: 58ch;
}

.ewangelia_sigla,
.ewangelia_lead,
.ewangelia_content {
  margin: 0 0 10px;
}

.ewangelia_sigla {
  color: var(--ink);
  font-size: 1.08rem;
}

.ewangelia_lead {
  padding-left: 14px;
  border-left: 3px solid var(--gold);
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.05rem;
  font-style: italic;
  line-height: 1.45;
}

.ewangelia_content {
  color: var(--muted);
  line-height: 1.56;
}



/* Sidebar daily Gospel v3.0 */
.word-widget .word-label {
  display: none !important;
}

.word-widget h3 {
  margin-bottom: 8px;
}

.word-widget blockquote {
  margin-bottom: 10px;
}

.word-widget p {
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
}



/* Mobile menu social + gallery proportions v3.1 */
@media (max-width: 980px) {
  .primary-nav .header-social {
    display: flex !important;
    justify-content: center;
    align-items: center;
    width: fit-content;
    max-width: 100%;
    margin: 0 auto 8px;
    padding: 7px 9px;
    gap: 7px;
  }

  .primary-nav .header-social-link {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    border-radius: 9px;
  }
}

@media (max-width: 620px) {
  .primary-nav .header-social {
    padding: 6px 8px;
    gap: 6px;
  }

  .primary-nav .header-social-link {
    width: 32px;
    height: 32px;
    flex-basis: 32px;
  }
}

/* More horizontal gallery thumbnails */
.post-body .gallery img,
.page-content .gallery img,
.post-body .wp-block-gallery.has-nested-images figure.wp-block-image img,
.page-content .wp-block-gallery.has-nested-images figure.wp-block-image img,
.post-body .blocks-gallery-item img,
.page-content .blocks-gallery-item img {
  aspect-ratio: 16 / 10;
  height: auto !important;
  max-height: none;
  object-fit: cover;
}

.post-body .gallery-icon,
.page-content .gallery-icon,
.post-body .wp-block-gallery.has-nested-images figure.wp-block-image,
.page-content .wp-block-gallery.has-nested-images figure.wp-block-image,
.post-body .blocks-gallery-item,
.page-content .blocks-gallery-item {
  aspect-ratio: 16 / 10;
}

.post-body .gallery-icon img,
.page-content .gallery-icon img {
  height: 100% !important;
}

@media (max-width: 720px) {
  .post-body .gallery,
  .page-content .gallery,
  .post-body .wp-block-gallery.has-nested-images,
  .page-content .wp-block-gallery.has-nested-images,
  .post-body .blocks-gallery-grid,
  .page-content .blocks-gallery-grid {
    grid-template-columns: 1fr !important;
  }

  .post-body .gallery img,
  .page-content .gallery img,
  .post-body .wp-block-gallery.has-nested-images figure.wp-block-image img,
  .page-content .wp-block-gallery.has-nested-images figure.wp-block-image img,
  .post-body .blocks-gallery-item img,
  .page-content .blocks-gallery-item img {
    aspect-ratio: 16 / 9;
    width: 100%;
    height: auto !important;
    object-fit: cover;
  }
}



/* Mobile icons + gallery correction v3.2 */

/* Mobile social: keep bigger containers, center only the icons */
@media (max-width: 980px) {
  .primary-nav .header-social {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 0 8px !important;
    padding: 11px !important;
    gap: 8px !important;
  }

  .primary-nav .header-social-link {
    width: 100% !important;
    height: 42px !important;
    flex: initial !important;
    flex-basis: auto !important;
    display: grid !important;
    place-items: center !important;
    border-radius: 10px !important;
  }

  .primary-nav .header-social-link svg {
    margin: auto !important;
  }
}

@media (max-width: 620px) {
  .primary-nav .header-social {
    padding: 10px !important;
    gap: 8px !important;
  }

  .primary-nav .header-social-link {
    height: 42px !important;
  }
}

/* Galleries: keep 3 images per row, but with horizontal thumbnails */
.post-body .gallery.gallery-columns-3,
.page-content .gallery.gallery-columns-3,
.post-body .wp-block-gallery.has-nested-images.columns-3,
.page-content .wp-block-gallery.has-nested-images.columns-3,
.post-body .blocks-gallery-grid.columns-3,
.page-content .blocks-gallery-grid.columns-3 {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 12px !important;
}

.post-body .gallery.gallery-columns-2,
.page-content .gallery.gallery-columns-2,
.post-body .wp-block-gallery.has-nested-images.columns-2,
.page-content .wp-block-gallery.has-nested-images.columns-2,
.post-body .blocks-gallery-grid.columns-2,
.page-content .blocks-gallery-grid.columns-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}

.post-body .gallery img,
.page-content .gallery img,
.post-body .wp-block-gallery.has-nested-images figure.wp-block-image img,
.page-content .wp-block-gallery.has-nested-images figure.wp-block-image img,
.post-body .blocks-gallery-item img,
.page-content .blocks-gallery-item img {
  width: 100% !important;
  aspect-ratio: 16 / 10;
  height: auto !important;
  object-fit: cover;
}

@media (max-width: 720px) {
  .post-body .gallery.gallery-columns-3,
  .page-content .gallery.gallery-columns-3,
  .post-body .wp-block-gallery.has-nested-images.columns-3,
  .page-content .wp-block-gallery.has-nested-images.columns-3,
  .post-body .blocks-gallery-grid.columns-3,
  .page-content .blocks-gallery-grid.columns-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 8px !important;
  }

  .post-body .gallery img,
  .page-content .gallery img,
  .post-body .wp-block-gallery.has-nested-images figure.wp-block-image img,
  .page-content .wp-block-gallery.has-nested-images figure.wp-block-image img,
  .post-body .blocks-gallery-item img,
  .page-content .blocks-gallery-item img {
    aspect-ratio: 16 / 10;
    height: auto !important;
  }
}

@media (max-width: 430px) {
  .post-body .gallery.gallery-columns-3,
  .page-content .gallery.gallery-columns-3,
  .post-body .wp-block-gallery.has-nested-images.columns-3,
  .page-content .wp-block-gallery.has-nested-images.columns-3,
  .post-body .blocks-gallery-grid.columns-3,
  .page-content .blocks-gallery-grid.columns-3 {
    gap: 6px !important;
  }
}



/* Mobile icons + gallery hard correction v3.3 */

/* Mobile social panel: smaller outer padding, same clickable tiles, icon exactly centered */
@media (max-width: 980px) {
  .primary-nav .header-social {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 0 8px !important;
    padding: 6px !important;
    gap: 7px !important;
  }

  .primary-nav .header-social-link,
  .primary-nav .header-social-link:link,
  .primary-nav .header-social-link:visited {
    width: 100% !important;
    height: 42px !important;
    min-height: 42px !important;
    padding: 0 !important;
    margin: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 10px !important;
    transform: none;
  }

  .primary-nav .header-social-link::after {
    content: none !important;
    display: none !important;
  }

  .primary-nav .header-social-link svg {
    display: block !important;
    margin: 0 !important;
    position: static !important;
    transform: none !important;
    flex: 0 0 auto !important;
  }
}

@media (max-width: 620px) {
  .primary-nav .header-social {
    padding: 5px !important;
    gap: 6px !important;
  }

  .primary-nav .header-social-link,
  .primary-nav .header-social-link:link,
  .primary-nav .header-social-link:visited {
    height: 40px !important;
    min-height: 40px !important;
  }
}

/* Galleries: force 3 per row for WordPress classic/block galleries */
.post-body .gallery,
.page-content .gallery {
  display: grid !important;
  gap: 12px !important;
}

.post-body .gallery.gallery-columns-3,
.page-content .gallery.gallery-columns-3,
.post-body .gallery-columns-3,
.page-content .gallery-columns-3,
.post-body .wp-block-gallery.has-nested-images.columns-3,
.page-content .wp-block-gallery.has-nested-images.columns-3,
.post-body .blocks-gallery-grid.columns-3,
.page-content .blocks-gallery-grid.columns-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
}

.post-body .gallery-item,
.page-content .gallery-item,
.post-body .wp-block-gallery.has-nested-images figure.wp-block-image,
.page-content .wp-block-gallery.has-nested-images figure.wp-block-image,
.post-body .blocks-gallery-item,
.page-content .blocks-gallery-item {
  width: auto !important;
  max-width: none !important;
  margin: 0 !important;
}

.post-body .gallery img,
.page-content .gallery img,
.post-body .wp-block-gallery.has-nested-images figure.wp-block-image img,
.page-content .wp-block-gallery.has-nested-images figure.wp-block-image img,
.post-body .blocks-gallery-item img,
.page-content .blocks-gallery-item img {
  width: 100% !important;
  aspect-ratio: 16 / 10 !important;
  height: auto !important;
  object-fit: cover !important;
}

/* Undo earlier mobile one-column override */
@media (max-width: 720px) {
  .post-body .gallery.gallery-columns-3,
  .page-content .gallery.gallery-columns-3,
  .post-body .gallery-columns-3,
  .page-content .gallery-columns-3,
  .post-body .wp-block-gallery.has-nested-images.columns-3,
  .page-content .wp-block-gallery.has-nested-images.columns-3,
  .post-body .blocks-gallery-grid.columns-3,
  .page-content .blocks-gallery-grid.columns-3 {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 7px !important;
  }

  .post-body .gallery img,
  .page-content .gallery img,
  .post-body .wp-block-gallery.has-nested-images figure.wp-block-image img,
  .page-content .wp-block-gallery.has-nested-images figure.wp-block-image img,
  .post-body .blocks-gallery-item img,
  .page-content .blocks-gallery-item img {
    aspect-ratio: 16 / 10 !important;
    height: auto !important;
  }
}



/* Dynamic hero slider v3.4 */
.slider[data-hero-slider] .slide {
  animation: none !important;
  opacity: 0;
  transform: scale(1.018);
  transition:
    opacity 1s ease,
    transform 6.2s ease;
}

.slider[data-hero-slider] .slide.is-active {
  opacity: 1;
  transform: scale(1);
}

.slider[data-hero-slider] .slider-dots span.is-active {
  background: rgba(255, 255, 255, 0.96);
}



/* Backend-driven recommend placeholder v3.6 */
.poster-slider.has-placeholder {
  display: grid;
  place-items: center;
  padding: 20px;
}

.poster-placeholder {
  width: min(280px, 100%);
  min-height: 250px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 10px;
  padding: 24px 18px;
  border: 1px dashed var(--line-dark);
  border-radius: 12px;
  background: rgba(255,253,248,.62);
  text-align: center;
}

.poster-placeholder-mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--gold);
  background: var(--paper);
  font-size: 1.55rem;
  line-height: 1;
  font-weight: 700;
}

.poster-placeholder h4 {
  margin: 0;
  color: var(--ink);
  font-size: 1rem;
}

.poster-placeholder p {
  margin: 0;
  color: var(--muted);
  font-size: .88rem;
  line-height: 1.45;
}



/* Recommend placeholder polish v3.9 */
.poster-placeholder {
  position: relative;
}

.poster-placeholder-emblem {
  width: 46px;
  height: 46px;
  border: 1px solid rgba(159,132,84,.34);
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, rgba(159,132,84,.16) 0 2px, transparent 3px),
    linear-gradient(135deg, rgba(159,132,84,.10), rgba(36,56,77,.06));
}

.poster-placeholder-emblem::before,
.poster-placeholder-emblem::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 33px;
  width: 20px;
  height: 1px;
  background: rgba(159,132,84,.42);
  transform: translateX(-50%);
}

.poster-placeholder-emblem::after {
  width: 1px;
  height: 20px;
}

.poster-placeholder-admin-link {
  text-decoration: none;
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}

.poster-placeholder-admin-link:hover,
.poster-placeholder-admin-link:focus {
  transform: translateY(-1px);
  border-color: var(--gold);
  background: var(--paper-soft);
  outline: none;
}

.poster-placeholder-admin-note {
  font-size: .84rem;
}



/* Recommend public placeholder text-only v3.10 */
.poster-placeholder:not(:has(.poster-placeholder-admin-link)) {
  gap: 8px;
  min-height: 220px;
}

.poster-placeholder:not(:has(.poster-placeholder-admin-link)) .poster-placeholder-emblem {
  display: none !important;
}

.poster-placeholder-emblem {
  display: none !important;
}



/* Hero anchors + clickable dots v3.11 */
html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

.slider {
  height: clamp(380px, calc(58vh + 20px), 640px);
}

.hero-invite {
  margin: 20px auto 0;
}

.hero-actions-row {
  margin-top: 20px;
}

.slider-dots button {
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

.slider-dots span,
.slider-dots button {
  width: 28px;
  height: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
}

.slider-dots span.is-active,
.slider-dots button.is-active {
  background: rgba(255, 255, 255, 0.96);
}

.slider-dots button:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.96);
  outline-offset: 4px;
}



/* Hero clean fade transition v3.12 */
.slider[data-hero-slider] .slide {
  transform: none !important;
  transition: opacity 1s ease !important;
}

.slider[data-hero-slider] .slide.is-active {
  transform: none !important;
}



/* Child pages navigation v3.13 */
.child-pages-panel {
  margin-top: 24px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(250, 247, 240, .72);
  box-shadow: 0 8px 22px rgba(37,32,26,.032);
}

.child-pages-head {
  margin-bottom: 16px;
}

.child-pages-head span {
  display: inline-block;
  margin-bottom: 6px;
  color: var(--gold);
  font-size: .75rem;
  font-weight: 750;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.child-pages-head h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(1.25rem, 1.9vw, 1.65rem);
  line-height: 1.18;
}

.child-pages-head p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.child-pages-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.child-page-card {
  min-height: 188px;
  padding: 18px 18px 16px;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
  box-shadow: 0 6px 16px rgba(37,32,26,.026);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.child-page-card:hover,
.child-page-card:focus {
  transform: translateY(-2px);
  border-color: var(--line-dark);
  box-shadow: 0 12px 24px rgba(37,32,26,.055);
  outline: none;
}

.child-page-kicker {
  margin-bottom: 10px;
  color: var(--gold);
  font-size: .72rem;
  font-weight: 750;
  letter-spacing: .075em;
  text-transform: uppercase;
}

.child-page-card h3 {
  margin: 0;
  color: var(--ink);
  font-size: 1.05rem;
  line-height: 1.25;
}

.child-page-card p {
  margin: 10px 0 16px;
  color: var(--muted);
  font-size: .92rem;
  line-height: 1.48;
}

.child-page-card strong {
  margin-top: auto;
  color: var(--blue);
  font-size: .84rem;
}

@media (max-width: 920px) {
  .child-pages-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .child-pages-panel {
    margin-top: 20px;
    padding: 16px;
  }

  .child-pages-grid {
    grid-template-columns: 1fr;
  }

  .child-page-card {
    min-height: 0;
  }
}



/* Child pages simple list v3.14 */
.child-pages-panel {
  margin-top: 22px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.child-pages-head,
.child-page-kicker {
  display: none !important;
}

.child-pages-intro {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: .94rem;
  line-height: 1.55;
}

.child-pages-grid {
  display: grid;
  grid-template-columns: 1fr !important;
  gap: 10px;
}

.child-page-card {
  min-height: 0;
  padding: 18px 18px 17px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
  box-shadow: 0 12px 28px rgba(37,32,26,.045);
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}

.child-page-card:hover,
.child-page-card:focus {
  transform: translateY(-2px);
  border-color: var(--line-dark);
  box-shadow: 0 16px 34px rgba(37,32,26,.07);
  outline: none;
}

.child-page-main {
  min-width: 0;
}

.child-page-card h3 {
  margin: 0 0 8px;
  color: var(--ink);
  font-size: 1.08rem;
  line-height: 1.32;
  font-weight: 720;
  letter-spacing: -0.01em;
}

.child-page-card p {
  margin: 0;
  color: var(--muted);
  font-size: .94rem;
  line-height: 1.55;
}

.child-page-card .read-more {
  flex: 0 0 auto;
  margin-top: 0;
  padding-top: 0;
  white-space: nowrap;
}

@media (max-width: 620px) {
  .child-page-card {
    display: block;
  }

  .child-page-card .read-more {
    margin-top: 12px;
    padding-top: 0;
  }
}



/* Child page teaser normal weight v3.15 */
.page-content .child-pages-intro,
.page-content .child-page-card p {
  font-weight: 400 !important;
}



/* Child pages left-aligned cards v3.17 */
.child-page-card {
  display: block !important;
  text-align: left !important;
}

.child-page-main {
  display: block;
  width: 100%;
}

.child-page-card h3,
.child-page-card p,
.child-page-card .read-more {
  text-align: left !important;
}

.child-page-card .read-more {
  display: inline-flex;
  width: auto;
  margin-top: 14px;
  padding-top: 0;
}



/* Mobile front spacing v3.19 */
@media (max-width: 720px) {
  .slider {
    height: clamp(330px, calc(58vh - 30px), 590px);
  }

  .news-section,
  .faithful-section,
  .follow-section {
    padding-top: 18px;
    padding-bottom: 22px;
  }

  .contact-section {
    padding-top: 18px;
    padding-bottom: 22px;
  }

  .news-section .section-panel,
  .faithful-section .section-panel,
  .follow-section .section-panel,
  .contact-section .section-panel,
  .news-panel,
  .faithful-panel,
  .follow-panel,
  .contact-panel,
  .contact-wrap {
    padding: 14px !important;
  }

  .news-grid,
  .faithful-grid,
  .follow-grid,
  .contact-grid {
    gap: 12px;
  }
}

@media (max-width: 520px) {
  .slider {
    height: clamp(310px, calc(56vh - 35px), 570px);
  }

  .news-section .container,
  .faithful-section .container,
  .follow-section .container,
  .contact-section .container {
    width: min(var(--max), calc(100% - 24px));
  }
}



/* Unified post and archive headings v3.30 */
.single .post-head,
.post-card .post-head {
  border: 0;
  border-bottom: 1px solid var(--line);
  box-shadow: none;
  background: linear-gradient(180deg, #fffdf8, #fbf7ef);
}

.post-title,
.page-title,
.archive-title {
  font-size: clamp(1.62rem, 2.55vw, 2.25rem);
  line-height: 1.16;
  letter-spacing: -.018em;
  font-weight: 650;
}

.post-head .post-meta {
  display: none !important;
}

.archive-panel {
  overflow: hidden;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper);
  box-shadow: 0 14px 34px rgba(37,32,26,.08);
}

.archive-panel .archive-head {
  margin: 0;
  padding: 30px 34px 24px;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 14px 14px 0 0;
  background: linear-gradient(180deg, #fffdf8, #fbf7ef);
  box-shadow: none;
}

.archive-panel .archive-grid {
  margin: 24px;
}

.archive-panel .pagination-wrap {
  margin: 0 24px 24px;
}

.archive-panel > .page-card {
  margin: 24px;
}

@media (max-width: 720px) {
  .archive-panel .archive-head {
    padding: 19px 18px 14px;
  }

  .archive-panel .archive-grid {
    margin: 18px;
  }

  .archive-panel .pagination-wrap {
    margin: 0 18px 18px;
  }

  .archive-panel > .page-card {
    margin: 18px;
  }
}



/* Archive head padding alignment v3.31 */
.archive-panel .archive-head {
  padding: 22px 24px 16px;
}

@media (max-width: 720px) {
  .archive-panel .archive-head {
    padding: 19px 18px 14px;
  }
}
