:root {
  --bg: #f6efe2;
  --surface: #fffaf1;
  --surface-strong: #fffdf8;
  --ink: #35261c;
  --muted: #756554;
  --brand: #4a3525;
  --brand-2: #6f4f31;
  --accent: #9a6b2d;
  --accent-dark: #7d4d19;
  --gold: #d3aa5b;
  --gold-soft: #ead6a9;
  --danger: #a11d1d;
  --ok: #166534;
  --line: #e5d2b4;
  --shadow: 0 18px 45px rgba(78, 52, 28, 0.14);
  --radius: 22px;
}

.poster-hero.page-hero-chrzest {
  background:
    linear-gradient(180deg, rgba(255, 250, 239, .68) 0%, rgba(255, 243, 221, .82) 46%, rgba(242, 223, 192, .95) 100%),
    url('../fotoWiki/chrzest.png') center center / cover no-repeat;
}

.poster-hero.page-hero-komunia {
  background:
    linear-gradient(180deg, rgba(255, 250, 239, .66) 0%, rgba(255, 243, 221, .80) 46%, rgba(242, 223, 192, .95) 100%),
    url('../fotoWiki/komunia.png') center center / cover no-repeat;
}

.poster-hero.page-hero-chrzest::before,
.poster-hero.page-hero-komunia::before {
  opacity: .18;
}

.poster-hero.page-hero-chrzest::after,
.poster-hero.page-hero-komunia::after {
  background:
    radial-gradient(ellipse at 50% 18%, rgba(255,255,255,.76), transparent 38%),
    radial-gradient(ellipse at 50% 78%, rgba(190, 137, 57, .10), transparent 50%),
    linear-gradient(180deg, transparent 0%, rgba(83, 52, 25, .04) 100%);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Manrope", sans-serif;
  color: var(--ink);
  overflow-x: hidden;
  background:
    radial-gradient(circle at 10% 0%, rgba(255, 225, 147, .22), transparent 34%),
    radial-gradient(circle at 90% 40%, rgba(154, 107, 45, .10), transparent 38%),
    linear-gradient(180deg, #fbf5eb 0%, #f1e4d1 62%, #ead9bd 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    repeating-linear-gradient(90deg, rgba(110, 74, 34, .035) 0, rgba(110, 74, 34, .035) 1px, transparent 1px, transparent 42px),
    repeating-linear-gradient(0deg, rgba(110, 74, 34, .025) 0, rgba(110, 74, 34, .025) 1px, transparent 1px, transparent 42px);
  opacity: .65;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 50% -12%, rgba(255,255,255,.72), transparent 45%),
    radial-gradient(ellipse at 50% 100%, rgba(99, 67, 34, .08), transparent 55%);
}

.container { width: min(1360px, 96vw); margin: 0 auto; }
h1, h2, h3 { font-family: "Cormorant Garamond", serif; line-height: 1.05; letter-spacing: .2px; }

.poster-hero {
  min-height: 760px;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(255,255,255,.72) 0%, rgba(255,250,239,.92) 34%, rgba(244,230,204,.94) 100%),
    radial-gradient(circle at 13% 22%, rgba(255, 206, 104, .66) 0%, rgba(255, 214, 123, .28) 17%, transparent 38%),
    radial-gradient(circle at 50% 7%, rgba(255,255,255,.92) 0%, transparent 34%),
    linear-gradient(105deg, #efe0c5 0%, #fff8ed 40%, #ead9bd 100%);
  border-bottom: 1px solid rgba(178, 132, 54, .25);
}

.sacred-light {
  position: absolute;
  left: -80px;
  top: -120px;
  width: 760px;
  height: 760px;
  z-index: -2;
  background:
    conic-gradient(from 205deg at 34% 38%, rgba(255,255,255,0) 0deg, rgba(255,235,166,.70) 12deg, rgba(255,255,255,0) 28deg, rgba(255,245,194,.45) 42deg, rgba(255,255,255,0) 60deg, rgba(255,232,160,.42) 82deg, rgba(255,255,255,0) 108deg, transparent 360deg),
    radial-gradient(circle at 34% 38%, rgba(255,244,197,.95) 0%, rgba(255,221,126,.56) 13%, rgba(255,255,255,0) 45%);
  filter: blur(.2px);
  opacity: .95;
}

.poster-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -4;
  background:
    linear-gradient(90deg, transparent 0 8%, rgba(255,255,255,.34) 8% 8.3%, transparent 8.3% 100%),
    radial-gradient(circle at 10% 18%, rgba(255, 213, 118, .30), transparent 22%),
    radial-gradient(circle at 92% 18%, rgba(107, 82, 54, .08), transparent 23%);
}

.poster-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -3;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 50% 16%, rgba(255,255,255,.82), transparent 34%),
    radial-gradient(ellipse at 50% 74%, rgba(190, 137, 57, .16), transparent 45%),
    linear-gradient(180deg, transparent 0%, rgba(83, 52, 25, .05) 100%);
}

.hero-cross {
  position: absolute;
  width: 210px;
  height: 330px;
  opacity: .27;
  filter: drop-shadow(0 0 32px rgba(214, 167, 75, .65));
  z-index: -1;
}
.hero-cross::before,
.hero-cross::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  background: linear-gradient(180deg, rgba(90, 63, 34, .62), rgba(90, 63, 34, .22));
  border-radius: 2px;
}
.hero-cross::before { width: 58px; height: 330px; }
.hero-cross::after { width: 210px; height: 48px; top: 124px; }
.hero-cross-left { left: max(36px, calc((100vw - 1320px) / 2 - 10px)); top: 110px; }

.holy-medallion {
  position: absolute;
  right: max(36px, calc((100vw - 1320px) / 2));
  top: 76px;
  width: 270px;
  height: 270px;
  border: 1px solid rgba(158, 115, 51, .17);
  border-radius: 50%;
  z-index: -1;
  opacity: .42;
  background:
    radial-gradient(circle, rgba(255,255,255,.88), rgba(244,228,200,.30) 55%, transparent 70%);
}
.holy-medallion::before {
  content: "";
  position: absolute;
  inset: 38px;
  border-radius: 50%;
  background:
    radial-gradient(ellipse at 46% 28%, rgba(98, 72, 43, .18) 0 12%, transparent 13%),
    radial-gradient(ellipse at 53% 48%, rgba(98, 72, 43, .16) 0 18%, transparent 19%),
    linear-gradient(115deg, transparent 47%, rgba(98, 72, 43, .13) 48% 55%, transparent 56%);
  filter: blur(.1px);
}
.holy-medallion span {
  position: absolute;
  left: 50%;
  top: 55px;
  width: 30px;
  height: 145px;
  transform: translateX(-50%) rotate(-7deg);
  background: rgba(123, 91, 55, .13);
}
.holy-medallion span::after {
  content: "";
  position: absolute;
  left: -47px;
  top: 52px;
  width: 125px;
  height: 24px;
  background: rgba(123, 91, 55, .12);
}

.topbar {
  position: relative;
  z-index: 5;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 18px 0 4px;
}
.brand {
  color: #49382a;
  text-decoration: none;
  font-weight: 900;
  letter-spacing: .3px;
  text-transform: uppercase;
  font-size: .95rem;
}
.admin-link {
  color: #594332;
  text-decoration: none;
  font-weight: 800;
  border: 1px solid rgba(139, 104, 50, .25);
  border-radius: 999px;
  padding: 10px 18px;
  background: rgba(255, 253, 248, .70);
  box-shadow: 0 8px 20px rgba(92, 61, 28, .08);
}

.poster-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 34px 0 34px;
}
.eyebrow,
.section-kicker {
  margin: 0;
  color: #9a6b2d;
  font-weight: 900;
  letter-spacing: 7px;
  text-transform: uppercase;
  font-size: .82rem;
}

.poster-content .eyebrow {
  color: #ffffff;
}
.poster-content h1 {
  margin: 14px 0 6px;
  font-size: clamp(3.2rem, 5.4vw, 5.9rem);
  font-weight: 600;
  color: #39271d;
  text-transform: uppercase;
  text-shadow: 0 3px 0 rgba(255,255,255,.54), 0 16px 28px rgba(67, 42, 24, .15);
  letter-spacing: .12em;
}
.poster-content h1 span {
  display: block;
  margin-top: 12px;
  font-size: clamp(2.5rem, 4.4vw, 4.8rem);
  letter-spacing: .08em;
}
.title-rule {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 18px;
  color: #bc8a39;
  margin: 8px auto 8px;
}
.title-rule::before,
.title-rule::after {
  content: "";
  width: min(170px, 20vw);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(185, 138, 57, .65), transparent);
}
.motto {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  text-transform: uppercase;
  letter-spacing: .28em;
  color: #a37331;
  font-weight: 700;
  font-size: clamp(1.25rem, 1.8vw, 1.85rem);
}
.lead {
  margin: 8px auto 0;
  max-width: 760px;
  color: #6e5b4b;
  font-size: 1.08rem;
}
.hero-actions {
  margin-top: 22px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}
.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 11px 21px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 900;
  border: 1px solid rgba(148, 106, 47, .22);
}
.cta.primary {
  color: #fffaf0;
  background: linear-gradient(135deg, #d2a65a, #a86e25);
  box-shadow: 0 13px 24px rgba(148, 93, 30, .22);
}
.cta.ghost {
  color: #5f432b;
  background: rgba(255,253,248,.78);
  box-shadow: 0 10px 22px rgba(90, 58, 25, .08);
}

.poster-gallery {
  margin: 16px auto 0;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: 132px;
  gap: 12px;
  max-width: 1320px;
}
.poster-photo {
  margin: 0;
  overflow: hidden;
  border: 2px solid rgba(202, 164, 93, .92);
  background: #efe0c5;
  box-shadow: 0 13px 30px rgba(57, 35, 18, .18), inset 0 0 0 1px rgba(255,255,255,.52);
}
.poster-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.poster-photo-1 { grid-column: 1 / span 4; grid-row: span 2; }
.poster-photo-2 { grid-column: 5 / span 4; grid-row: span 2; }
.poster-photo-3 { grid-column: 9 / span 4; grid-row: span 2; }
.poster-photo-4 { grid-column: 1 / span 2; }
.poster-photo-5 { grid-column: 3 / span 3; }
.poster-photo-6 { grid-column: 6 / span 3; }
.poster-photo-7 { grid-column: 9 / span 4; }
.hero-quote {
  position: relative;
  margin: 16px auto 0;
  padding: 10px 78px 0;
  max-width: 980px;
  color: #5b412d;
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  font-size: clamp(1.18rem, 1.65vw, 1.55rem);
}
.hero-quote::before,
.hero-quote::after {
  content: "❦";
  position: absolute;
  top: 14px;
  color: #c99d4c;
  font-size: 2.2rem;
  opacity: .85;
}
.hero-quote::before { left: 8px; }
.hero-quote::after { right: 8px; transform: scaleX(-1); }
.hero-quote cite {
  display: block;
  margin-top: 8px;
  font-size: 1.2rem;
  font-style: italic;
}

.legacy-menu {
  margin-top: -12px;
  position: relative;
  z-index: 8;
  background: rgba(255, 253, 248, .96);
  border: 1px solid rgba(209, 178, 121, .65);
  border-radius: 20px;
  padding: 12px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 8px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
}
.legacy-menu a {
  display: flex;
  justify-content: center;
  align-items: center;
  text-decoration: none;
  color: #4a3829;
  background: linear-gradient(180deg, #fffdf8, #f8eddd);
  border: 1px solid #e0c798;
  border-radius: 12px;
  padding: 11px 12px;
  font-weight: 800;
  text-align: center;
}
.legacy-menu a:hover { background: #f1dfc2; }

.menu-dropdown {
  position: relative;
}

.menu-dropdown summary {
  display: flex;
  justify-content: center;
  align-items: center;
  list-style: none;
  min-height: 54px;
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid #d8be8a;
  background: linear-gradient(180deg, #fffdf8, #f8eddd);
  color: #4a3829;
  font-weight: 800;
  text-align: center;
  cursor: pointer;
  white-space: nowrap;
}

.menu-dropdown summary::-webkit-details-marker { display: none; }

.menu-dropdown[open] summary {
  background: #f1dfc2;
}

.menu-dropdown-panel {
  position: absolute;
  left: 0;
  top: calc(100% + 8px);
  min-width: 100%;
  z-index: 20;
  display: grid;
  gap: 6px;
  padding: 8px;
  border: 1px solid #d8be8a;
  border-radius: 14px;
  background: rgba(255, 253, 248, .98);
  box-shadow: var(--shadow);
}

.menu-dropdown-panel a {
  min-height: 44px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: flex-end;
}

.footer-links a {
  color: #f4c77c;
  text-decoration: none;
  font-weight: 800;
}

.section { padding: 46px 0; }
.spotlight-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(320px, .85fr);
  gap: 22px;
  align-items: start;
}
.spotlight-main,
.spotlight-side,
.parish-panel,
.news-card,
.empty-card,
.quick-box,
.admin-card {
  background: rgba(255, 253, 248, .92);
  border: 1px solid rgba(224, 199, 152, .78);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.spotlight-main,
.spotlight-side { padding: 26px; }
.section-head h2,
.spotlight-side h2 {
  margin: 8px 0 8px;
  font-size: clamp(2rem, 4vw, 3rem);
  color: #4a3322;
}
.section-head p:not(.section-kicker) { color: var(--muted); margin: 0; }
.section-head.centered { text-align: center; margin-bottom: 22px; }
.filter-row { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 18px; }
.filter-chip {
  text-decoration: none;
  color: #60452d;
  border: 1px solid #d9bd84;
  border-radius: 999px;
  padding: 9px 15px;
  font-weight: 900;
  background: #fff7e9;
}
.filter-chip.active {
  background: linear-gradient(135deg, #d2a65a, #a86e25);
  color: #fffaf2;
  border-color: transparent;
}
.news-grid { display: grid; gap: 16px; margin-top: 20px; }
.news-card,
.empty-card { padding: 18px; }
.news-image { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 15px; margin-bottom: 12px; border: 1px solid #e2c992; }
.news-meta { display: flex; justify-content: space-between; gap: 8px; color: var(--muted); font-size: .88rem; }
.badge { margin: 10px 0 7px; display: inline-block; font-size: .78rem; font-weight: 900; color: #6d3d20; background: #f2dfbc; border-radius: 999px; padding: 5px 11px; }
.news-card h3, .empty-card h3 { margin: 5px 0 8px; font-size: clamp(1.55rem, 3vw, 2.1rem); }
.news-card p, .empty-card p { color: #4b3b2d; }
.quick-info-grid { display: grid; gap: 12px; margin-top: 16px; }
.quick-box {
  padding: 16px;
  text-align: center;
}
.quick-box h3 {
  margin: 0 0 7px;
  font-size: 1.45rem;
}
.quick-box p {
  margin: 0;
  color: #554434;
}

.quick-box p + p {
  margin-top: 8px;
}

.quick-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .03em;
}

.quick-status.is-open {
  color: #155d3a;
  background: #e8f8ec;
  border: 1px solid #bfe4cc;
}

.quick-status.is-closed {
  color: #8a531e;
  background: #fff3df;
  border: 1px solid #efcda4;
}

.quick-link {
  color: #6e4a2d;
  text-decoration: none;
  font-weight: 800;
}

.quick-link:hover {
  text-decoration: underline;
}
.parishes-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(315px, 1fr)); gap: 18px; }
.parish-panel { padding: 20px; }
.parish-photo-gallery {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 132px;
  gap: 10px;
  align-items: stretch;
  margin-bottom: 12px;
}
.parish-photo-main {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 16px;
  margin-bottom: 0;
  border: 1px solid #d9bd84;
}
.parish-photo-strip {
  display: flex;
  flex-direction: column;
  justify-content: stretch;
  align-items: stretch;
  gap: 8px;
  margin-bottom: 0;
  height: 100%;
}
.parish-photo-thumb-button {
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  width: 100%;
  flex: 1 1 0;
  min-height: 0;
}
.parish-photo-thumb {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid #e1c895;
}
.parish-panel h3 { margin: 0 0 13px; font-size: 1.9rem; }
.parish-sections-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.22fr) minmax(0, 1.22fr) minmax(0, 1.12fr);
  gap: 10px;
}
.parish-section {
  background: #fffefb;
  border: 1px solid #eadccd;
  border-radius: 12px;
  padding: 10px 10px 11px;
}
.parish-section h4 { margin: 0 0 8px; font-family: "Manrope", sans-serif; text-transform: uppercase; font-size: .78rem; letter-spacing: 1.3px; color: #946322; }
.parish-section ul { margin: 0; padding-left: 16px; display: grid; gap: 3px; font-size: .92rem; }
.parish-section a { color: #4d3828; text-decoration: none; font-weight: 700; line-height: 1.28; }
.parish-section a:hover { text-decoration: underline; }
.footer { padding: 30px 0; margin-top: 20px; background: #33251b; color: #f7ead8; }
.footer-inner { display: flex; justify-content: space-between; gap: 10px; align-items: center; }
.footer a { color: #f4c77c; text-decoration: none; font-weight: 800; }
.footer-meta {
  margin-top: 8px;
  padding-top: 10px;
  border-top: 1px solid rgba(244, 199, 124, .25);
}
.footer-meta p {
  margin: 0;
  color: #e8d2af;
  font-size: .88rem;
}

.footer-meta p + p {
  margin-top: 6px;
}

.footer-stats {
  color: #f2ddb5;
  font-weight: 700;
}

.theme-galleries-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.theme-gallery-card {
  border: 1px solid #e7d7c0;
  border-radius: 14px;
  overflow: hidden;
  background: #fffdf8;
  box-shadow: 0 12px 24px rgba(68, 45, 24, .08);
  transition: transform .22s ease, box-shadow .22s ease;
}

.theme-gallery-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 34px rgba(68, 45, 24, .16);
}

.theme-gallery-cover-link {
  display: block;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.theme-gallery-cover {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}

.theme-gallery-body {
  padding: 12px;
}

.theme-gallery-body h3 {
  margin: 0;
  font-size: 1.5rem;
}

.theme-gallery-date {
  margin: 6px 0 10px;
  color: var(--muted);
  font-size: .88rem;
}

.theme-gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.theme-gallery-thumbs a {
  display: block;
}

.theme-gallery-thumb-button {
  display: block;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.theme-gallery-thumbs img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 1px solid #e2d0b3;
  border-radius: 8px;
  display: block;
}

.public-gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 130;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(19, 13, 9, .86);
}

.public-gallery-lightbox.is-open {
  display: flex;
}

.public-gallery-figure {
  margin: 0;
  max-width: min(1020px, 94vw);
}

.public-gallery-figure img {
  width: 100%;
  max-height: 78vh;
  object-fit: contain;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, .26);
  display: block;
}

.public-gallery-figure figcaption {
  margin-top: 10px;
  text-align: center;
  color: #f8e4bf;
  font-weight: 800;
}

.public-gallery-close,
.public-gallery-nav {
  position: absolute;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 0;
  background: rgba(255, 247, 232, .9);
  color: #3b2a1d;
  font-size: 1.5rem;
  font-weight: 900;
}

.public-gallery-close { top: 16px; right: 16px; }
.public-gallery-nav.prev { left: 16px; }
.public-gallery-nav.next { right: 16px; }

.reveal-on-scroll {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .45s ease, transform .45s ease;
}

.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal-on-scroll {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

.mobile-quick-bar {
  display: none;
}

.admin-body { background: linear-gradient(180deg, #f2ece3 0%, #f9f5ef 100%); }
.admin-wrapper { padding: 40px 0; max-width: 860px; }
.back-link { text-decoration: none; color: #7d4d19; font-weight: 800; }
.admin-card { margin-top: 16px; padding: 24px; }
.admin-head { display: flex; justify-content: space-between; align-items: center; }
.admin-login-card {
  max-width: 560px;
  margin: 20px auto 0;
  background:
    radial-gradient(circle at 92% 8%, rgba(212, 166, 90, .12) 0%, transparent 28%),
    linear-gradient(180deg, rgba(255, 252, 245, .98) 0%, rgba(255, 248, 237, .98) 100%);
  border: 1px solid #e8d4b3;
  box-shadow: 0 22px 44px rgba(78, 52, 28, 0.12);
}

.admin-login-head {
  margin-bottom: 10px;
}

.admin-login-kicker {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: .74rem;
  font-weight: 900;
  color: #946322;
}

.admin-login-head h1 {
  margin: 8px 0 6px;
  font-size: clamp(2rem, 4vw, 2.6rem);
}

.admin-login-head p {
  margin: 0;
  color: var(--muted);
}

.admin-login-form {
  margin-top: 16px;
}

.admin-login-form input[type="text"],
.admin-login-form input[type="password"] {
  min-height: 46px;
  border-radius: 12px;
  border-color: #d9c2a2;
  background: #fffdf9;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .75);
}

.admin-login-form input[type="text"]:focus,
.admin-login-form input[type="password"]:focus {
  outline: 2px solid rgba(154, 107, 45, .22);
  border-color: #be9153;
}

.admin-login-form button[type="submit"] {
  min-height: 48px;
  margin-top: 4px;
  border-radius: 12px;
  box-shadow: 0 12px 24px rgba(148, 93, 30, .22);
}

.admin-section-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.admin-panel-section {
  display: none;
}

.admin-body.admin-section-posts .panel-posts,
.admin-body.admin-section-galleries .panel-galleries,
.admin-body.admin-section-site .panel-site {
  display: block;
}

.admin-section-nav .button-link.is-active {
  background: linear-gradient(135deg, #d2a65a, #a86e25);
  color: #fff8ef;
}

.logout { text-decoration: none; color: var(--danger); font-weight: 800; }
.form { display: grid; gap: 14px; margin-top: 14px; }
.admin-date-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.admin-date-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.admin-date-preset {
  padding: 8px 12px;
  border-radius: 999px;
  font-size: .9rem;
}
label { display: grid; gap: 8px; font-weight: 800; color: #47362c; }
input, select, textarea, button { font: inherit; }
input, select, textarea { width: 100%; padding: 10px 12px; border: 1px solid #dbc9b5; border-radius: 10px; background: #fffdf9; }
button { border: 0; background: linear-gradient(135deg, #d2a65a, #a86e25); color: #fff8ef; font-weight: 900; padding: 12px 16px; border-radius: 10px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; text-align: center; }
button:hover { filter: brightness(1.05); }
.admin-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.button-link { display: inline-flex; align-items: center; justify-content: center; padding: 12px 16px; border-radius: 10px; text-decoration: none; background: #f3e4d3; color: #4d372a; font-weight: 800; }
.inline-form { margin: 0; }
.danger-btn { background: linear-gradient(130deg, #c03a3a, #a11d1d); }
.manage-list { margin-top: 14px; display: grid; gap: 12px; }
.manage-item { border: 1px solid #eadccd; border-radius: 14px; padding: 14px; background: #fffefb; }
.manage-item h3 { margin: 0; font-size: 1.4rem; }
.manage-meta { color: var(--muted); font-size: .9rem; }
.manage-item p { margin: 6px 0; }
.manage-visibility {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  font-size: .86rem;
  font-weight: 700;
  border-radius: 999px;
  padding: 5px 10px;
  border: 1px solid #e2d1b4;
}

.manage-visibility.is-active {
  color: #215b35;
  background: #e9f7ec;
}

.manage-visibility.is-inactive {
  color: #7a4f1f;
  background: #fff3df;
}

.gallery-admin-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.gallery-admin-panel {
  background: #fffefb;
  border: 1px solid #eadccd;
  border-radius: 12px;
  padding: 12px;
}

.gallery-admin-panel h3 {
  margin: 0 0 10px;
}

.gallery-sort-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.gallery-sort-item {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 10px;
  align-items: center;
  background: #fffaf1;
  border: 1px solid #e6d2b3;
  border-radius: 10px;
  padding: 8px;
  cursor: grab;
}

.gallery-sort-item img {
  width: 88px;
  height: 58px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid #dbc7a7;
}

.gallery-sort-item span {
  font-size: .84rem;
  color: #4d372a;
  word-break: break-word;
}

.gallery-sort-item.is-dragging {
  opacity: .55;
}

.gallery-theme-columns {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.gallery-theme-column {
  display: grid;
  gap: 10px;
}

.gallery-theme-column h3 {
  margin: 0;
}

.gallery-theme-card {
  background: #fffefb;
  border: 1px solid #eadccd;
  border-radius: 12px;
  padding: 12px;
}

.gallery-theme-card h4 {
  margin: 0 0 10px;
  font-size: 1.2rem;
}

.gallery-theme-meta-form {
  margin-bottom: 8px;
}

.delete-gallery-form {
  margin: 0 0 12px;
}

.gallery-theme-card .admin-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.gallery-theme-card .admin-actions button,
.gallery-upload-form button,
.gallery-theme-order-form button,
.delete-gallery-form .danger-btn {
  width: 100%;
  min-height: 46px;
  border-radius: 12px;
  box-shadow: 0 10px 20px rgba(104, 68, 31, .16);
  transition: transform .14s ease, filter .14s ease, box-shadow .14s ease;
}

.gallery-theme-card .admin-actions button:hover,
.gallery-upload-form button:hover,
.gallery-theme-order-form button:hover,
.delete-gallery-form .danger-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 24px rgba(104, 68, 31, .2);
}

.delete-gallery-form .danger-btn {
  background: linear-gradient(130deg, #bf3a3a, #8e1c1c);
}

.gallery-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  letter-spacing: .01em;
}

.gallery-action-btn .btn-icon {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: .95rem;
  line-height: 1;
  font-weight: 900;
  background: rgba(255, 255, 255, .28);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .38);
}

.gallery-action-edit {
  background: linear-gradient(135deg, #caa064, #9f6b2a);
}

.gallery-action-upload {
  background: linear-gradient(135deg, #c69a5a, #9a6729);
}

.gallery-action-sort {
  background: linear-gradient(135deg, #b98e52, #8c5d24);
}

.gallery-action-delete {
  background: linear-gradient(130deg, #bf3a3a, #8e1c1c);
}

.gallery-dropzone {
  border: 2px dashed #d5b788;
  border-radius: 12px;
  padding: 14px;
  text-align: center;
  background: #fffaf1;
  cursor: pointer;
}

.gallery-dropzone.is-dragover {
  border-color: #a86e25;
  background: #fff3de;
}

.gallery-dropzone p {
  margin: 0 0 10px;
  color: #5a4635;
  font-weight: 700;
}

.gallery-dropzone input[type="file"] {
  margin-top: 4px;
}

.gallery-upload-preview {
  display: none;
  margin-top: 10px;
  grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
  gap: 8px;
}

.gallery-upload-preview.is-active {
  display: grid;
}

.gallery-upload-preview-thumb {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid #dbc7a7;
}

.gallery-theme-sort-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(98px, 1fr));
  gap: 8px;
}

.gallery-theme-sort-item {
  border: 1px solid #e4ceb0;
  border-radius: 10px;
  background: #fff9ef;
  padding: 4px;
  cursor: grab;
}

.gallery-theme-sort-item.is-dragging {
  opacity: .5;
}

.gallery-thumb-launch {
  border: 0;
  background: transparent;
  padding: 0;
  width: 100%;
}

.gallery-thumb-launch img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid #dbc7a7;
}

.gallery-lightbox {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(14, 10, 7, .82);
  z-index: 140;
  padding: 20px;
}

.gallery-lightbox.is-open {
  display: flex;
}

.gallery-lightbox-figure {
  margin: 0;
  max-width: min(980px, 92vw);
}

.gallery-lightbox-figure img {
  max-width: 100%;
  max-height: 76vh;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, .22);
  display: block;
}

.gallery-lightbox-figure figcaption {
  margin-top: 10px;
  text-align: center;
  color: #f5e7d0;
  font-weight: 700;
}

.gallery-lightbox-close,
.gallery-lightbox-nav {
  position: absolute;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 0;
  background: rgba(255, 250, 241, .88);
  color: #3f2d21;
  font-size: 1.5rem;
  font-weight: 900;
}

.gallery-lightbox-close { top: 16px; right: 16px; }
.gallery-lightbox-nav.prev { left: 16px; }
.gallery-lightbox-nav.next { right: 16px; }
.manage-thumb { width: min(280px, 100%); border-radius: 12px; margin: 8px 0; border: 1px solid #e1cfbb; display: block; }
.image-preview-box p { margin: 0; color: var(--muted); font-weight: 600; }
.checkbox-row { grid-template-columns: auto 1fr; align-items: center; gap: 10px; font-weight: 800; }
.checkbox-row input[type="checkbox"] { width: 18px; height: 18px; }
.notice { margin-top: 14px; padding: 12px 14px; border-radius: 10px; font-weight: 800; }
.error { background: #fbe6e6; color: #8e1d1d; }
.success { background: #e9f7ec; color: #1b6c3b; }
.tip { color: var(--muted); margin-top: 12px; font-size: .92rem; }

.page-hero {
  min-height: 320px;
}

.page-hero-chrzest,
.page-hero-komunia {
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
}

.page-hero-chrzest {
  background-image:
    linear-gradient(180deg, rgba(255, 250, 239, .68) 0%, rgba(255, 243, 221, .82) 46%, rgba(242, 223, 192, .95) 100%),
    url('../fotoWiki/chrzest.png');
}

.page-hero-komunia {
  background-image:
    linear-gradient(180deg, rgba(255, 250, 239, .66) 0%, rgba(255, 243, 221, .80) 46%, rgba(242, 223, 192, .95) 100%),
    url('../fotoWiki/komunia.png');
}

.page-hero-chrzest::before,
.page-hero-komunia::before {
  opacity: .18;
}

.page-hero-chrzest::after,
.page-hero-komunia::after {
  background:
    radial-gradient(ellipse at 50% 18%, rgba(255,255,255,.76), transparent 38%),
    radial-gradient(ellipse at 50% 78%, rgba(190, 137, 57, .10), transparent 50%),
    linear-gradient(180deg, transparent 0%, rgba(83, 52, 25, .04) 100%);
}

.page-hero-chrzest .page-title-wrap,
.page-hero-komunia .page-title-wrap {
  padding-top: 30px;
  padding-bottom: 30px;
}

.poster-hero.page-hero {
  min-height: 260px;
}

.page-hero .poster-content {
  padding-top: 12px;
  padding-bottom: 12px;
}

.page-bible-quote {
  position: relative;
  margin: 16px auto 0;
  max-width: 980px;
  padding: 10px 78px 0;
  color: #5b412d;
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  font-size: clamp(1.18rem, 1.65vw, 1.55rem);
  line-height: 1.45;
  text-shadow: none;
  text-align: center;
}

.page-bible-quote p {
  margin: 0;
  color: inherit;
  font: inherit;
  line-height: 1.25;
}

.page-bible-quote::before,
.page-bible-quote::after {
  content: "❦";
  position: absolute;
  top: 14px;
  color: #c99d4c;
  font-size: 2.2rem;
  opacity: .85;
}

.page-bible-quote::before { left: 8px; }
.page-bible-quote::after { right: 8px; transform: scaleX(-1); }

.page-bible-quote cite {
  display: block;
  margin-top: 8px;
  font-size: 1.2rem;
  font-style: italic;
  color: #c99d4c;
}

.page-hero-chrzest .lead,
.page-hero-komunia .lead {
  max-width: 58rem;
  margin-left: auto;
  margin-right: auto;
}

.page-title-wrap h1 {
  margin-bottom: 10px;
}

.page-shell {
  padding-bottom: 30px;
}

.page-card {
  padding: 24px;
}

.page-meta {
  margin: 0 0 14px;
  color: var(--muted);
  font-weight: 700;
}

.page-sections {
  display: grid;
  gap: 12px;
}

.page-content-flow {
  background: #fffefb;
  border: 1px solid #eadccd;
  border-radius: 14px;
  padding: 18px 20px;
  color: #3f2d21;
  line-height: 1.7;
}

.page-content-flow.page-content-chrzest,
.page-content-flow.page-content-komunia,
.page-content-flow.page-content-msza,
.page-content-flow.page-content-duszpasterstwo,
.page-content-flow.page-content-malzenstwo {
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
  color: #3a281b;
  text-shadow: 0 1px 0 rgba(255,255,255,.35);
}

.page-content-flow.page-content-chrzest {
  background-image:
    linear-gradient(180deg, rgba(255, 250, 239, .84) 0%, rgba(255, 247, 233, .88) 100%),
    url('../fotoWiki/chrzest.png');
}

.page-content-flow.page-content-komunia {
  background-image:
    linear-gradient(180deg, rgba(255, 250, 239, .82) 0%, rgba(255, 247, 233, .88) 100%),
    url('../fotoWiki/komunia.png');
}

.page-content-flow.page-content-msza {
  background-image:
    linear-gradient(180deg, rgba(255, 250, 239, .80) 0%, rgba(255, 247, 233, .88) 100%),
    url('../fotoWiki/msza.png');
}

.page-content-flow.page-content-duszpasterstwo {
  background-image:
    linear-gradient(180deg, rgba(255, 250, 239, .84) 0%, rgba(255, 247, 233, .90) 100%),
    url('../fotoWiki/duszpasterswto.png');
}

.page-content-flow.page-content-malzenstwo {
  background-image:
    radial-gradient(circle at 50% 22%, rgba(255, 255, 255, .22) 0%, rgba(255, 255, 255, 0) 42%),
    linear-gradient(180deg, rgba(255, 250, 239, .66) 0%, rgba(255, 247, 233, .74) 100%),
    url('../fotoWiki/malzenstwo.png');
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
  color: #382518;
  text-shadow: 0 1px 0 rgba(255,255,255,.42);
}

.page-content-flow.page-content-chrzest h3,
.page-content-flow.page-content-komunia h3,
.page-content-flow.page-content-msza h3,
.page-content-flow.page-content-duszpasterstwo h3,
.page-content-flow.page-content-malzenstwo h3,
.page-content-flow.page-content-chrzest p,
.page-content-flow.page-content-komunia p,
.page-content-flow.page-content-msza p,
.page-content-flow.page-content-duszpasterstwo p,
.page-content-flow.page-content-malzenstwo p {
  position: relative;
  z-index: 1;
}

.page-content-flow.page-content-malzenstwo h3,
.page-content-flow.page-content-malzenstwo p,
.page-content-flow.page-content-malzenstwo li {
  color: #382518;
}

.page-content-flow h3 {
  margin: 1.1em 0 .35em;
  font-size: 1.45rem;
}

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

.page-content-flow p {
  margin: 0 0 .9em;
}

.page-content-flow p:last-child {
  margin-bottom: 0;
}

.page-inline-quote {
  margin: 0 0 1em;
  padding: 0;
  border: 0;
}

.page-inline-quote p {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  font-size: clamp(1.12rem, 1.45vw, 1.36rem);
  line-height: 1.45;
  color: #5b412d;
}

.page-inline-quote-right {
  text-align: right;
}

.page-inline-quote-right p {
  margin-left: auto;
  max-width: 52rem;
}

.modal-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: 999px;
  background: #f3e4d3;
  color: #4d372a;
  font-weight: 800;
  border: 1px solid #e1c895;
  margin: 0 0 16px;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(24, 14, 8, .68);
  z-index: 120;
}

.modal-overlay.is-open {
  display: flex;
}

.modal-dialog {
  position: relative;
  width: min(640px, 94vw);
  padding: 22px 22px 20px;
  border-radius: 18px;
  background: #fffaf1;
  color: #3f2d21;
  border: 1px solid #eadccd;
  box-shadow: 0 28px 68px rgba(0, 0, 0, .32);
}

.modal-dialog h3 {
  margin: 0 0 10px;
  font-size: 1.9rem;
}

.modal-dialog p {
  margin: 0;
  line-height: 1.7;
}

.modal-figure {
  display: block;
  width: 100%;
  max-height: 220px;
  object-fit: cover;
  border-radius: 14px;
  margin: 4px 0 14px;
  border: 1px solid #e1c895;
}

.modal-close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 0;
  background: #f3e4d3;
  color: #4d372a;
  font-size: 1.4rem;
  line-height: 1;
}

.modal-trigger:hover,
.modal-close:hover {
  filter: brightness(1.03);
}

body.modal-open {
  overflow: hidden;
}

.modal-trigger,
.modal-close {
  cursor: pointer;
}

.modal-trigger-inline {
  display: inline;
  width: auto;
  padding: 0;
  margin: 0;
  border: 0;
  background: transparent;
  color: #4d3828;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  text-align: left;
}

.modal-trigger-inline:hover {
  filter: none;
  color: #7d4d19;
}

.modal-dialog::after {
  content: "";
  display: block;
  height: 0;
  opacity: 0;
}

@media (max-width: 760px) {
  .modal-dialog {
    padding: 20px 18px 18px;
  }

  .modal-figure {
    max-height: 180px;
  }

  .modal-trigger-inline {
    font-size: .98rem;
  }
}

.page-gallery-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.page-gallery-card p {
  margin: 0;
  color: var(--muted);
  font-size: .85rem;
  word-break: break-word;
}

.contact-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.contact-card {
  background: #fffefb;
  border: 1px solid #eadccd;
  border-radius: 14px;
  padding: 18px 20px;
}

.contact-card h3 {
  margin: 0 0 10px;
  font-size: 1.6rem;
}

.contact-card p {
  margin: 0 0 12px;
  line-height: 1.65;
}

.contact-list {
  margin: 0;
  display: grid;
  grid-template-columns: minmax(120px, 160px) 1fr;
  gap: 8px 12px;
}

.contact-list dt {
  font-weight: 800;
  color: #4d372a;
}

.contact-list dd {
  margin: 0;
  color: #4d372a;
}

.contact-list a {
  color: #6f4f31;
  text-decoration: none;
  font-weight: 700;
}

.contact-list a:hover {
  text-decoration: underline;
}

.contact-map-wrap {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #e5d2b4;
  box-shadow: 0 12px 24px rgba(78, 52, 28, 0.14);
}

.contact-map {
  display: block;
  width: 100%;
  height: 320px;
  border: 0;
}

.contact-map-link {
  margin-top: 10px;
  font-size: .95rem;
}

.contact-map-link a {
  color: #6f4f31;
  font-weight: 700;
}

.cookie-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 40;
  background: rgba(41, 29, 19, 0.96);
  color: #fff7ea;
  border: 1px solid rgba(236, 189, 117, .35);
  border-radius: 14px;
  box-shadow: 0 18px 34px rgba(0, 0, 0, .28);
  padding: 14px;
  display: grid;
  gap: 12px;
}

.cookie-banner p {
  margin: 0;
  line-height: 1.45;
}

.cookie-banner a {
  color: #ffd98f;
}

.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.cookie-actions .cookie-reject {
  background: #f3e4d3;
  color: #4d372a;
  border: 0;
}

.cookie-banner.is-hidden {
  display: none;
}

.back-to-top {
  position: fixed;
  right: 16px;
  bottom: 118px;
  z-index: 35;
  border-radius: 999px;
  padding: 10px 16px;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
}

.back-to-top.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

@media (max-width: 1080px) {
  .poster-hero { min-height: auto; }
  .holy-medallion { opacity: .22; right: -80px; }
  .hero-cross-left { left: -28px; opacity: .18; }
  .poster-gallery { grid-auto-rows: 126px; }
  .spotlight-layout { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .topbar, .footer-inner, .admin-head { flex-direction: column; align-items: flex-start; }
  .poster-content { padding: 28px 0 40px; }
  .poster-content h1 { font-size: clamp(3rem, 15vw, 4.6rem); letter-spacing: .08em; }
  .poster-content h1 span { font-size: clamp(2.2rem, 11vw, 3.2rem); }
  .eyebrow, .section-kicker { letter-spacing: 3px; }
  .motto { letter-spacing: .14em; }
  .poster-gallery { grid-template-columns: 1fr; grid-auto-rows: auto; gap: 10px; }
  .poster-photo, .poster-photo-1, .poster-photo-2, .poster-photo-3, .poster-photo-4, .poster-photo-5, .poster-photo-6, .poster-photo-7 { grid-column: auto; grid-row: auto; aspect-ratio: 16 / 10; }
  .hero-quote { padding: 12px 18px 0; }
  .hero-quote::before, .hero-quote::after { display: none; }
  .legacy-menu { margin-top: -10px; }
  .spotlight-main, .spotlight-side { padding: 18px; }
  .parish-photo-strip { grid-template-columns: repeat(2, 1fr); }
  .parish-sections-grid { grid-template-columns: 1fr; }
  .admin-login-card { max-width: 100%; }
  .admin-date-grid { grid-template-columns: 1fr; }
  .admin-date-presets { flex-direction: column; }
  .admin-section-nav { flex-direction: column; }
  .gallery-admin-grid { grid-template-columns: 1fr; }
  .gallery-theme-columns { grid-template-columns: 1fr; }
  .gallery-lightbox-nav { display: none; }
  .contact-layout { grid-template-columns: 1fr; }
  .contact-list { grid-template-columns: 1fr; }
  .contact-map { height: 280px; }
  .admin-actions, .button-link, .admin-actions button { width: 100%; }
  .cookie-actions { width: 100%; }
  .cookie-actions button,
  .cookie-actions .button-link { width: 100%; }
  .back-to-top { bottom: 184px; }
  .theme-galleries-grid { grid-template-columns: 1fr; }
  .theme-gallery-thumbs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .public-gallery-nav { display: none; }
  .mobile-quick-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 38;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1px;
    background: rgba(52, 35, 22, .92);
    border-top: 1px solid rgba(233, 198, 141, .35);
    box-shadow: 0 -10px 18px rgba(0, 0, 0, .22);
  }
  .mobile-quick-bar a {
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    text-decoration: none;
    color: #ffe1ad;
    font-weight: 800;
    font-size: .82rem;
    background: rgba(79, 51, 29, .85);
    padding: 8px 4px;
  }
  .page-bible-quote { margin-top: 12px; padding: 12px 18px 0; font-size: 1.02rem; }
  .page-bible-quote::before,
  .page-bible-quote::after { display: none; }
  .page-bible-quote cite { font-size: .98rem; }
}


/* V2: pocztówkowy header jak z makiety — mniej pustki, zdjęcia w pierwszym ekranie */
.poster-hero {
  min-height: 760px;
  background:
    radial-gradient(circle at 12% 19%, rgba(255, 211, 99, .72) 0%, rgba(255, 229, 160, .42) 16%, transparent 35%),
    linear-gradient(180deg, rgba(255,255,255,.56) 0%, rgba(255,250,240,.88) 32%, rgba(244,229,200,.97) 100%),
    linear-gradient(105deg, #ead8b7 0%, #fff8ed 44%, #ead9bd 100%);
}
.poster-hero::before {
  background:
    linear-gradient(90deg, transparent 0 6.5%, rgba(255,255,255,.32) 6.5% 6.8%, transparent 6.8% 100%),
    radial-gradient(circle at 10% 17%, rgba(255, 213, 118, .38), transparent 22%),
    radial-gradient(circle at 91% 19%, rgba(107, 82, 54, .08), transparent 22%);
}
.sacred-light {
  left: -110px;
  top: -150px;
  width: 720px;
  height: 720px;
  opacity: 1;
}
.hero-cross-left {
  left: max(44px, calc((100vw - 1360px) / 2 + 8px));
  top: 88px;
  transform: scale(.82);
  opacity: .30;
}
.holy-medallion {
  width: 230px;
  height: 230px;
  top: 72px;
  right: max(50px, calc((100vw - 1360px) / 2 + 10px));
  opacity: .34;
}
.poster-content {
  padding-top: 30px;
}
.poster-content h1 {
  line-height: .98;
}
.hero-actions {
  display: none;
}
.poster-gallery {
  margin-top: 22px;
  grid-auto-rows: 126px;
  gap: 10px;
}
.poster-photo {
  border-radius: 0;
  box-shadow: 0 9px 22px rgba(57, 35, 18, .16), inset 0 0 0 1px rgba(255,255,255,.60);
}
.hero-quote {
  margin-top: 14px;
  padding-top: 6px;
}
@media (min-width: 1180px) {
  .poster-photo-1, .poster-photo-2, .poster-photo-3 { grid-row: span 2; }
  .poster-photo-4, .poster-photo-5, .poster-photo-6, .poster-photo-7 { grid-row: span 1; }
}
@media (max-width: 1080px) {
  .poster-hero { min-height: auto; }
  .poster-gallery { grid-auto-rows: 118px; }
}

/* V3: przebudowana góra z heroChurch */
.poster-hero {
  min-height: 460px;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(178, 132, 54, .25);
  background:
    linear-gradient(112deg, rgba(35, 22, 11, .24) 0%, rgba(35, 22, 11, .10) 34%, rgba(244, 230, 204, .03) 100%),
    radial-gradient(circle at 75% 18%, rgba(255, 241, 202, .52) 0%, transparent 38%),
    linear-gradient(180deg, rgba(40, 25, 12, .22), rgba(40, 25, 12, .08)),
    url('../fotoWiki/heroChurch.png') 22% 24% / cover no-repeat;
}

.poster-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(24, 14, 8, .12) 0%, rgba(24, 14, 8, .16) 42%, rgba(24, 14, 8, .06) 72%, rgba(24, 14, 8, .18) 100%),
    linear-gradient(180deg, rgba(255, 227, 156, .14) 0%, transparent 42%, rgba(19, 10, 4, .12) 100%);
}

.topbar {
  position: relative;
  z-index: 3;
  padding-top: 24px;
}

.brand {
  color: #fff2db;
  text-shadow: 0 3px 14px rgba(0, 0, 0, .45);
}

.admin-link {
  color: #fff7ec;
  border-color: rgba(255, 209, 128, .36);
  background: rgba(58, 35, 15, .45);
  box-shadow: 0 10px 24px rgba(0, 0, 0, .24);
}

.poster-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 16px 0 12px;
  max-width: 760px;
  margin: 0 auto;
  transform: translateX(52px);
}

.eyebrow {
  color: #f6c36d;
  letter-spacing: 4px;
  text-shadow: 0 2px 6px rgba(0, 0, 0, .22);
  font-size: .76rem;
}

.poster-content h1 {
  margin: 10px 0 8px;
  color: #fff9f0;
  text-shadow: 0 8px 28px rgba(0, 0, 0, .38);
  letter-spacing: .07em;
  font-size: clamp(2.6rem, 4.5vw, 4.8rem);
}

.poster-content h1 span {
  margin-top: 2px;
  color: #ffe5bc;
  font-size: clamp(1.7rem, 3vw, 3.1rem);
}

.motto {
  color: #ffd189;
  font-size: clamp(1rem, 1.5vw, 1.5rem);
  letter-spacing: .18em;
  text-shadow: 0 1px 4px rgba(0, 0, 0, .14);
}

.lead {
  margin: 8px 0 0;
  max-width: 560px;
  color: #fff6e8;
  text-shadow: 0 2px 6px rgba(0, 0, 0, .14);
  font-size: 1rem;
}

.hero-actions {
  display: flex;
  margin-top: 12px;
  justify-content: center;
}

.cta.primary {
  border-color: transparent;
  background: linear-gradient(135deg, #efbe6a, #b7782a);
  color: #2d1909;
}

.cta.ghost {
  color: #fff1dc;
  border-color: rgba(255, 208, 126, .48);
  background: rgba(66, 41, 19, .43);
}

.hero-quote {
  margin: 6px 0 0;
  max-width: 620px;
  padding: 0;
  color: #fff2dc;
  text-shadow: 0 1px 4px rgba(0, 0, 0, .14);
  font-size: clamp(1rem, 1.35vw, 1.25rem);
}

.lead,
.hero-quote {
  margin-left: auto;
  margin-right: auto;
}

.hero-quote::before,
.hero-quote::after {
  display: none;
}

.hero-quote cite {
  color: #ffd08d;
}

.legacy-menu {
  margin-top: -14px;
  padding: 8px;
  gap: 6px;
  border-radius: 16px;
  background: rgba(255, 251, 243, .92);
  border-color: rgba(209, 178, 121, .52);
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.legacy-menu a {
  min-height: 54px;
  padding: 8px 12px;
  font-size: clamp(.82rem, .9vw, .95rem);
  border-radius: 10px;
  border-color: #d8be8a;
  white-space: nowrap;
}

@media (max-width: 1080px) {
  .poster-content {
    margin: 0 auto;
    padding-bottom: 18px;
    transform: translateX(28px);
  }
}

@media (max-width: 760px) {
  .poster-hero {
    min-height: auto;
    background-position: 28% 20%;
  }

  .topbar {
    gap: 12px;
  }

  .poster-content {
    padding: 16px 0 20px;
    margin: 0 auto;
    max-width: 100%;
    transform: none;
  }

  .eyebrow {
    letter-spacing: 3px;
  }

  .hero-actions {
    width: 100%;
    gap: 8px;
  }

  .hero-actions .cta {
    width: 100%;
  }

  .legacy-menu {
    margin-top: -2px;
    padding: 8px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .legacy-menu a {
    min-height: 48px;
    font-size: .9rem;
  }

  .menu-dropdown-panel {
    position: static;
    min-width: 0;
  }

  .footer-links {
    width: 100%;
    justify-content: flex-start;
  }

  .footer-meta {
    margin-top: 12px;
  }

  .parish-photo-strip {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }

  .parish-photo-gallery {
    grid-template-columns: 1fr;
  }

  .parish-photo-thumb-button {
    width: 30%;
    min-width: 92px;
  }

}
