/*
Theme Name: Parafia w Przypkach
Theme URI:
Author: damian.prus.contact@gmail.com
Description: Przypki wersja 2
Version: 2.0
License: GNU General Public License v2 or later
Text Domain: parafia-przypki2
*/

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {

    --forest:       #1C3728;
    --forest-mid:   #2E5A3C;
    --sage:         #4A7455;
    --sage-mid:     #B4CABC;
    --sage-pale:    #E8F0EB;
    --sage-xpale:   #F2F7F4;

    --beige:        #F0E9D8;
    --beige-mid:    #D6CAB0;
    --warm-white:   #FAFAF6;

    --gold:         #C4963A;
    --gold-dark:    #9A7028;
    --gold-pale:    #F5E8C5;

    --text:         #1A2A1E;
    --text-mid:     #3D5044;
    --text-light:   #7A8E80;

    --border:       #D6CAB0;
    --shadow-xs:    0 1px 4px rgba(28,55,40,.07);
    --shadow:       0 4px 24px rgba(28,55,40,.10);
    --shadow-lg:    0 12px 48px rgba(28,55,40,.14);
}

html { scroll-behavior: smooth; scroll-padding-top: 110px; }

body {
    font-family: 'Source Sans Pro', 'Segoe UI', Arial, sans-serif;
    font-size: 16px; line-height: 1.75;
    color: var(--text-mid);
    background: var(--warm-white);
}

img { max-width: 100%; height: auto; display: block; }
a  { color: var(--sage); text-decoration: none; transition: color .22s; }
a:hover { color: var(--gold-dark); }
ul { list-style: none; }

h1,h2,h3,h4 {
    font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
    font-weight: 400; line-height: 1.28; color: var(--text);
}
h2 { font-size: 1.9rem; }
h3 { font-size: 1.2rem; }
h4 { font-size: 1rem; font-weight: 600; }
p  { margin-bottom: 1rem; }

.container { max-width: 1360px; margin: 0 auto; padding: 0 24px; }

.eyebrow {
    display: block;
    font-family: 'Source Sans Pro', sans-serif;
    font-size: .64rem;
    font-weight: 700;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 10px;
}
.gold-rule {
    display: block;
    width: 44px; height: 1px;
    background: var(--gold);
    margin: 14px 0;
}
.gold-rule--center { margin-left: auto; margin-right: auto; }

#site-header {
    background: var(--forest);
    position: sticky; top: 0; z-index: 1000;
    border-bottom: 2px solid var(--gold);
}
#site-header::before {
    content: '';
    position: absolute; inset: 0;
    background: url('assets/images/tlo.webp') center 65% / cover no-repeat;
    opacity: .08;
    pointer-events: none;
}
.header-main, .header-nav-wrap { position: relative; }

.header-topbar { display: none; }

.header-main {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 3px 20px 10px;
}
.header-brand {
    display: block;
    text-align: center;
    text-decoration: none;
}
.header-brand-text {
    display: block;
}
.header-brand-name {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.85rem;
    font-weight: 700;
    color: var(--warm-white);
    letter-spacing: .04em;
    display: block;
    line-height: 1.2;
}
.header-brand-sub {
    font-size: .78rem;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: rgba(255,255,255,.56);
    display: block;
    margin-top: 6px;
}
.header-cross-icon {
    display: block;
    font-size: 1.1rem;
    color: var(--gold);
    opacity: .8;
    letter-spacing: .4em;
    margin-bottom: 1px;
}

.nav-toggle {
    display: none;
    flex-direction: column; gap: 5px;
    cursor: pointer; padding: 6px;
    background: none; border: none;
    position: absolute; right: 20px; top: 50%; transform: translateY(-50%);
}
.nav-toggle span {
    display: block; width: 24px; height: 2px;
    background: rgba(255,255,255,.8);
    transition: all .3s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.header-nav-wrap {
    border-top: 1px solid rgba(255,255,255,.06);
    background: rgba(0,0,0,.14);
}
.header-nav-inner {
    text-align: center;
    max-width: 1120px; margin: 0 auto; padding: 0 20px;
}
#site-nav ul { display: inline-flex; justify-content: center; }
#site-nav > ul > li { position: relative; }

#site-nav > ul > li > a {
    display: block;
    padding: 14px 22px;
    font-family: 'Source Sans Pro', sans-serif;
    font-size: .82rem;
    letter-spacing: .15em;
    text-transform: uppercase;
    font-weight: 700;
    color: rgba(255,255,255,.68);
    transition: color .2s;
    position: relative;
}
#site-nav > ul > li > a::after {
    content: '';
    position: absolute;
    bottom: 0; left: 50%; right: 50%;
    height: 2px;
    background: var(--gold);
    transition: left .25s, right .25s;
}
#site-nav > ul > li > a:hover,
#site-nav .current-menu-item > a,
#site-nav .current-page-ancestor > a { color: white; }
#site-nav > ul > li > a:hover::after,
#site-nav .current-menu-item > a::after,
#site-nav .current-page-ancestor > a::after { left: 18px; right: 18px; }

#site-nav .menu-item-has-children > a::after {
    content: '\f078';
    font-family: 'Font Awesome 6 Free'; font-weight: 900;
    font-size: .45rem; margin-left: 9px;
    opacity: .45; vertical-align: middle;
}
#site-nav .sub-menu {
    display: none;
    position: absolute; top: 100%; left: 0;
    min-width: 208px;
    background: var(--warm-white);
    border-top: 2px solid var(--gold);
    border: 1px solid var(--border);
    border-top: 2px solid var(--gold);
    box-shadow: var(--shadow-lg);
    z-index: 200;
}
#site-nav li:hover > .sub-menu { display: block; }
#site-nav .sub-menu a {
    display: block; padding: 11px 20px;
    font-size: .8rem; letter-spacing: .02em;
    text-transform: none; color: var(--text);
    border-bottom: 1px solid var(--border);
    transition: background .15s, padding-left .18s, color .15s;
    font-weight: 600; font-family: 'Source Sans Pro', sans-serif;
}
#site-nav .sub-menu a:hover { background: var(--sage-pale); color: var(--sage); padding-left: 26px; }
#site-nav .sub-menu li:last-child a { border-bottom: none; }
.sub-menu-toggle { display: none; }

.hero-wrapper {
    position: relative;
    width: 100%;
    line-height: 0;
}
.hero-img {
    width: 100%;
    height: auto;
    display: block;
}

.hero-wrapper::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 40%;
    background: linear-gradient(to top,
        rgba(196, 150, 58, 0.42) 0%,
        rgba(196, 150, 58, 0.14) 50%,
        transparent 100%);
    pointer-events: none;
    z-index: 1;
}
.hero-bg { display: none; }
.hero-overlay { display: none; }

.hero-content {
    position: relative; z-index: 2;
    width: 100%;
    padding: 60px 0;
}
.hero-content .container {
    display: flex;
    justify-content: flex-end;
}

.hero-inner {
    max-width: 440px;
    width: 100%;
    background: rgba(18, 38, 24, 0.88);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 52px 44px;
    border-left: 4px solid var(--gold);
}
.hero-inner .eyebrow { color: var(--gold); margin-bottom: 12px; }
.hero h1 {
    font-size: 2.8rem;
    font-weight: 400;
    color: white;
    line-height: 1.2;
    margin-bottom: 6px;
}
.hero h1 strong { font-weight: 700; display: block; }
.hero-patron {
    font-size: .82rem;
    letter-spacing: .1em;
    color: rgba(255,255,255,.65);
    text-transform: uppercase;
    font-family: 'Source Sans Pro', sans-serif;
    margin-bottom: 6px;
}
.hero-address {
    font-size: .88rem;
    color: rgba(255,255,255,.55);
    font-family: 'Source Sans Pro', sans-serif;
    margin-bottom: 0;
}
.hero-inner .gold-rule { margin: 20px 0; opacity: .7; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.hero-scroll {
    position: absolute;
    bottom: 28px; left: 50%; transform: translateX(-50%);
    z-index: 3;
    display: flex; flex-direction: column; align-items: center; gap: 6px;
}
.hero-scroll span {
    font-size: .58rem; letter-spacing: .2em; text-transform: uppercase;
    color: rgba(255,255,255,.5);
}
.hero-scroll i { color: rgba(255,255,255,.45); font-size: .75rem; animation: scrollBounce 1.6s infinite; }
@keyframes scrollBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(5px); }
}

.info-strip {
    background: var(--beige);
    border-bottom: 3px solid var(--gold);
    position: relative;
}
.info-strip::before {
    content: '';
    position: absolute; top: 0; left: 0; right: 0; height: 3px;
    background: var(--gold);
}
.info-strip-inner {
    display: flex;
    max-width: 1120px; margin: 0 auto;
}
.info-cell {
    flex: 1; padding: 28px 24px;
    border-right: 1px solid var(--beige-mid);
    display: flex; align-items: center; justify-content: center;
    gap: 16px;
}
.info-cell:last-child { border-right: none; }
.info-cell--nav {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 10px;
    text-decoration: none;
    color: var(--gold-dark);
    transition: box-shadow .2s, background .2s;
}
.info-cell--nav:hover {
    background: rgba(196, 150, 58, .07);
    box-shadow: inset 0 0 0 1px var(--gold), inset 0 0 16px rgba(196,150,58,.15);
    color: var(--gold-dark);
}
.info-cell--nav strong {
    display: block;
    font-size: .82rem; letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--gold-dark) !important;
    font-weight: 700;
}
.info-cell-icon {
    width: 36px; height: 36px; flex-shrink: 0;
    border: 2px solid var(--gold);
    display: flex; align-items: center; justify-content: center;
    color: var(--gold); font-size: .85rem;
}
.info-cell-text strong {
    display: block; font-size: .82rem;
    letter-spacing: .06em; text-transform: uppercase;
    color: var(--gold-dark); margin-bottom: 3px; font-weight: 700;
}
.info-cell-text span { font-size: .92rem; font-weight: 600; color: var(--text); }
.info-cell-text a { color: var(--text); }
.info-cell-text a:hover { color: var(--gold-dark); }

.sacraments-section {
    background: var(--sage-pale);
    border-top: 1px solid var(--sage-mid);
    border-bottom: 1px solid var(--sage-mid);
    box-shadow: 0 -10px 30px rgba(28, 55, 40, 0.18);
}
.sacraments-header {
    padding: 60px 24px 40px;
    text-align: center;
}
.sacraments-header h2 { color: var(--forest-mid); margin-bottom: 0; }
.sacraments-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
    padding: 0 24px 56px;
    max-width: 1360px;
    margin: 0 auto;
}
.sac-card {
    background: var(--warm-white);
    padding: 32px 20px 28px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    text-decoration: none; color: inherit;
    position: relative;
    overflow: hidden;
    transition: background .22s;
    width: 210px;
    aspect-ratio: 1 / 1;
    justify-content: center;
    border: 1px solid var(--sage-mid);
}
.sac-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; height: 3px;
    background: var(--gold);
    transform: scaleX(0); transform-origin: left;
    transition: transform .28s;
}
.sac-card:hover { background: var(--gold-pale); color: inherit; }
.sac-card:hover::before { transform: scaleX(1); }
.sac-card-num { display: none; }
.sac-icon { color: var(--sage); font-size: 2.6rem; margin-bottom: 20px; }
.sac-card h3 {
    font-size: .95rem; font-weight: 700; color: var(--text);
    margin-bottom: 12px; letter-spacing: .02em;
    font-family: 'Source Sans Pro', sans-serif;
}
.sac-more {
    font-size: .66rem; letter-spacing: .12em; text-transform: uppercase;
    color: var(--gold); font-weight: 700;
    display: flex; align-items: center; gap: 6px;
    justify-content: center;
}

.home-main { padding: 64px 0; background: var(--warm-white); }
.home-grid  { display: grid; grid-template-columns: 1fr 284px; gap: 40px; align-items: start; }

.posts-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    margin-bottom: 28px;
}

.sec-heading {
    margin-bottom: 28px; padding-bottom: 14px;
    border-bottom: 1px solid var(--beige-mid);
    display: flex; align-items: center; gap: 14px;
}
.sec-heading .icon { color: var(--gold); font-size: 1.15rem; }
.sec-heading h2 { font-size: 1.2rem; margin: 0; color: var(--forest-mid); }

.post-card {
    background: #fff;
    border: 1px solid var(--beige-mid);
    border-left: 3px solid var(--beige-mid);
    margin-bottom: 14px;
    display: flex; align-items: stretch;
    height: 200px;
    transition: border-left-color .2s, box-shadow .2s;
    overflow: hidden;
    position: relative;
    cursor: pointer;
}
.post-card:hover { border-left-color: var(--gold); box-shadow: var(--shadow-xs); }
.post-card-body h3 a::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
}
.post-card-thumb {
    display: block;
    width: 200px;
    flex-shrink: 0;
    overflow: hidden;
    border-left: 1px solid var(--beige-mid);
    align-self: stretch;
    position: relative;
}
.post-card-thumb img {
    width: 100%; height: 100%;
    object-fit: cover; display: block;
}
.post-card-thumb::after {
    content: '';
    position: absolute; inset: 0;
    background: rgba(196, 150, 58, 0);
    transition: background .3s ease;
    pointer-events: none;
}
.post-card:hover .post-card-thumb::after {
    background: rgba(196, 150, 58, 0.32);
}
.post-card-date {
    min-width: 68px; flex-shrink: 0;
    background: var(--sage-pale);
    border-right: 1px solid var(--beige-mid);
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    padding: 18px 10px;
    text-align: center;
}
.pcd-day {
    font-family: 'Playfair Display', serif;
    font-size: 2rem; font-weight: 700;
    color: var(--forest-mid); line-height: 1;
}
.pcd-month {
    font-size: .78rem; letter-spacing: .08em;
    text-transform: uppercase; color: var(--text-light);
    margin-top: 3px;
    font-weight: 700;
}
.post-card-body { padding: 14px 16px; flex: 1; min-width: 0; }
.post-meta { font-size: .73rem; color: var(--text-light); margin-bottom: 5px; }
.post-card-body h3 { font-size: .97rem; margin: 0 0 7px; font-weight: 700; font-family: 'Source Sans Pro', sans-serif; }
.post-card-body h3 a { color: var(--text); }
.post-card-body h3 a:hover { color: var(--sage); }
.post-card-body p { font-size: .88rem; color: var(--text-mid); margin: 0 0 9px; line-height: 1.65; }
.read-more {
    font-size: .68rem; letter-spacing: .1em; text-transform: uppercase;
    color: var(--gold-dark); font-weight: 700;
}
.read-more:hover { color: var(--gold); }

.sidebar { display: flex; flex-direction: column; gap: 0; border: 1px solid var(--beige-mid); }
.widget {
    background: #FAF6EE;
    padding: 22px 24px;
    border-bottom: 2px solid var(--beige-mid);
    position: relative;
}
.widget:last-child { border-bottom: none; }
.widget::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 3px; height: 100%;
    background: var(--gold); opacity: 0;
    transition: opacity .2s;
}
.widget:hover::before { opacity: 1; }
.widget h3 {
    font-family: 'Source Sans Pro', sans-serif;
    font-size: .72rem; text-transform: uppercase; letter-spacing: .14em;
    color: var(--forest-mid);
    border-bottom: 2px solid var(--gold);
    padding-bottom: 10px; margin-bottom: 14px; margin-top: 0;
    font-weight: 700;
    display: flex; align-items: center; gap: 9px;
}
.widget h3 i { color: var(--gold); font-size: 1.1rem; flex-shrink: 0; }

.mass-block {
    padding: 10px 0;
    border-bottom: 1px solid var(--beige-mid);
}
.mass-block:last-child { border-bottom: none; }
.mb-label {
    font-size: .68rem; text-transform: uppercase; letter-spacing: .1em;
    color: var(--text-light); font-weight: 700; margin-bottom: 4px;
    display: flex; align-items: center; gap: 5px;
}
.mb-times {
    font-size: 1rem; font-weight: 700; color: var(--text);
    font-family: 'Source Sans Pro', sans-serif;
    line-height: 1.4;
}
.mb-note {
    font-size: .8rem; color: var(--text-mid); margin-top: 4px; line-height: 1.45;
}
.mass-block--special {
    background: rgba(196,150,58,.08);
    margin: 10px -24px 0;
    padding: 10px 24px;
    border-left: 3px solid var(--gold);
    border-bottom: none;
}
.mass-block--special .mb-label { color: var(--gold-dark); }

.mass-table { width: 100%; font-size: .9rem; }
.mass-table tr td { padding: 6px 0; border-bottom: 1px solid var(--beige-mid); vertical-align: top; }
.mass-table tr:last-child td { border-bottom: none; }
.mass-table .mt-day { color: var(--text-light); font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; width: 58%; }
.mass-table .mt-time { font-weight: 700; color: var(--text); text-align: right; font-size: .95rem; }
.mass-note { font-size: .8rem; color: var(--text-mid); margin-top: 10px; line-height: 1.55; }

.office-row { display: flex; justify-content: space-between; padding: 5px 0; border-bottom: 1px solid var(--beige-mid); font-size: .86rem; }
.office-row:last-child { border-bottom: none; }
.office-row .oh-time { font-weight: 700; color: var(--text); }

.contact-mini li { display: flex; align-items: flex-start; gap: 8px; padding: 6px 0; border-bottom: 1px solid var(--beige-mid); font-size: .86rem; }
.contact-mini li:last-child { border-bottom: none; }
.contact-mini .ci { font-size: .88rem; flex-shrink: 0; margin-top: 2px; color: var(--gold); }
.contact-mini a { color: var(--text-mid); }

.mass-row { margin-bottom: 10px; }
.mass-row .day { font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--text-light); margin-bottom: 4px; }
.badges { display: flex; flex-wrap: wrap; gap: 5px; }
.badge { background: var(--sage-pale); border: 1px solid var(--sage-mid); color: var(--text); font-weight: 700; font-size: .86rem; padding: 2px 10px; }

.widget-verse-cross { display: block; text-align: center; color: var(--gold); opacity: .6; font-size: .95rem; margin-bottom: 8px; }
.widget-verse-text { font-style: italic; font-size: .88rem; line-height: 1.72; color: var(--text); margin: 0 0 8px; }
.widget-verse-ref { font-size: .68rem; font-weight: 700; color: var(--gold-dark); text-transform: uppercase; letter-spacing: .08em; font-style: normal; display: block; margin-bottom: 12px; }
.widget-verse-link { font-size: .76rem; color: var(--sage); border-bottom: 1px dotted; padding-bottom: 1px; }
.widget-verse-link:hover { color: var(--gold); }

.photos-section {
    padding: 64px 0;
    background: var(--warm-white);
    border-top: 1px solid var(--beige-mid);
}
.photos-carousel-wrap {
    position: relative;
    margin-top: 28px;
}
.photos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 6px;
}
@media (min-width: 961px) {
    .photos-grid { grid-template-columns: repeat(4, 1fr); }
}
.photos-carousel-wrap .photos-grid {
    display: flex;
    overflow-x: hidden;
    scroll-behavior: smooth;
    gap: 4px;
}
.gallery-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: var(--forest);
    color: #fff;
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: .82;
    transition: opacity .2s, background .2s;
    box-shadow: 0 2px 8px rgba(0,0,0,.18);
}
.gallery-arrow:hover { opacity: 1; background: var(--forest-mid); }
.gallery-arrow--prev { left: -22px; }
.gallery-arrow--next { right: -22px; }
.photo-item {
    aspect-ratio: 1 / 1;
    overflow: hidden;
    display: block;
    background: var(--sage-pale);
    cursor: pointer;
    position: relative;
}
.photos-carousel-wrap .photo-item { flex: 0 0 calc(25% - 3px); }
.photo-item img {
    width: 100%; height: 100%;
    object-fit: cover; display: block;
}
.photo-item::after {
    content: '';
    position: absolute; inset: 0;
    background: rgba(196, 150, 58, 0);
    transition: background .3s ease;
    pointer-events: none;
}
.photo-item:hover::after { background: rgba(196, 150, 58, 0.35); }
.photos-grid--home { grid-template-columns: repeat(4, 1fr) !important; gap: 6px; }
@media (max-width: 720px) { .photos-grid--home { grid-template-columns: repeat(2, 1fr) !important; } }
.photo-item--more {
    background: var(--forest);
    display: flex; align-items: center; justify-content: center;
    text-align: center; text-decoration: none;
    transition: background .2s;
}
.photo-item--more:hover { background: var(--forest-mid); }
.photo-item--more span {
    color: #fff;
    font-family: 'Playfair Display', serif;
    font-size: 1.05rem; font-weight: 600;
    display: flex; flex-direction: column; align-items: center; gap: 12px;
    padding: 0 16px;
}
.photo-item--more i { font-size: 1.8rem; color: var(--gold); }
.photo-item--more::after { display: none; }

.lightbox-overlay {
    display: none;
    position: fixed; inset: 0;
    background: rgba(10, 20, 14, 0.94);
    z-index: 9998;
    align-items: center;
    justify-content: center;
    cursor: zoom-out;
    animation: lbFadeIn .22s ease;
}
.lightbox-overlay.active { display: flex; }
@keyframes lbFadeIn { from { opacity: 0; } to { opacity: 1; } }
.lightbox-figure {
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    max-width: 92vw;
    cursor: default;
}
.lightbox-img {
    max-width: 92vw;
    max-height: 80vh;
    object-fit: contain;
    display: block;
    cursor: default;
    box-shadow: 0 0 80px rgba(0,0,0,.6);
    border: 4px solid rgba(196,150,58,.55);
}
.lightbox-meta {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    text-align: center;
}
#lightbox-caption {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.1rem;
    color: rgba(255, 255, 255, .92);
}
.lightbox-postlink {
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--forest);
    color: #fff !important;
    padding: 9px 18px;
    border: 1px solid var(--gold);
    font-size: .76rem; letter-spacing: .08em; text-transform: uppercase; font-weight: 700;
    text-decoration: none;
    transition: background .2s, color .2s;
}
.lightbox-postlink:hover { background: var(--gold); color: #2a2a2a !important; }
.lightbox-postlink i { font-size: .76rem; }
.post-gallery-wrap { margin-top: 28px; }
.post-gallery { gap: 8px; }
@media (min-width: 700px) {
    .post-gallery { grid-template-columns: repeat(3, 1fr); }
}
.lightbox-close {
    position: absolute;
    top: 18px; right: 24px;
    font-size: 2.2rem; line-height: 1;
    color: rgba(255,255,255,.6);
    background: none; border: none;
    cursor: pointer;
    transition: color .2s;
    z-index: 9999;
}
.lightbox-close:hover { color: var(--gold); }
.lightbox-prev, .lightbox-next {
    position: absolute;
    top: 50%; transform: translateY(-50%);
    background: rgba(255,255,255,.12);
    border: none; color: #fff;
    width: 52px; height: 52px;
    border-radius: 50%;
    font-size: 2rem; line-height: 1;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: background .2s;
    z-index: 9999;
}
.lightbox-prev:hover, .lightbox-next:hover { background: rgba(196,150,58,.55); }
.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }

.ext-articles-section {
    padding: 64px 0;
    background: var(--beige);
    border-top: 3px solid var(--gold);
    border-bottom: 3px solid var(--gold);
}
.ext-articles-intro {
    text-align: center;
    margin-bottom: 40px;
}
.ext-articles-intro h2 { color: var(--forest-mid); }
.ext-articles-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}
.ext-col-header {
    display: flex; align-items: center; gap: 12px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--gold);
    margin-bottom: 16px;
}
.ext-col-header i { color: var(--gold); font-size: 1rem; }
.ext-col-header h3 {
    font-family: 'Source Sans Pro', sans-serif;
    font-size: .72rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: .18em;
    color: var(--forest-mid); margin: 0;
}
.ext-col-header a {
    margin-left: auto;
    font-size: .65rem; letter-spacing: .1em; text-transform: uppercase;
    color: var(--gold-dark); font-weight: 700;
}
.ext-col-header a:hover { color: var(--sage); }
.ext-article-item {
    display: flex; gap: 14px;
    padding: 13px 0;
    border-bottom: 1px solid var(--beige-mid);
}
.ext-article-item:last-child { border-bottom: none; }
.ext-art-num {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem; color: var(--sage-mid);
    font-weight: 700; line-height: 1;
    flex-shrink: 0; width: 28px; padding-top: 2px;
}
.ext-art-body { flex: 1; }
.ext-art-body a {
    font-size: .9rem; font-weight: 600; color: var(--text);
    line-height: 1.4; display: block;
}
.ext-art-body a:hover { color: var(--sage); }
.ext-art-date { font-size: .68rem; color: var(--text-light); margin-top: 3px; }
.ext-no-feed {
    font-size: .85rem; color: var(--text-light);
    font-style: italic; padding: 12px 0;
}

.clergy-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 500px;
    border-top: 1px solid var(--beige-mid);
    border-bottom: 1px solid var(--beige-mid);
}
.clergy-text-panel {
    background: var(--beige);
    padding: 72px 60px;
    display: flex; flex-direction: column; justify-content: center;
    position: relative;
}
.clergy-text-panel::after {
    content: '';
    position: absolute;
    top: 0; right: 0;
    width: 3px; height: 100%;
    background: var(--gold);
    opacity: .45;
}
.clergy-text-panel .eyebrow { margin-bottom: 8px; }
.clergy-text-panel h2 { color: var(--forest-mid); margin-bottom: 16px; font-size: 1.85rem; }
.clergy-text-panel p { line-height: 1.8; color: var(--text-mid); margin-bottom: 14px; }
.clergy-text-panel p:last-of-type { margin-bottom: 24px; }

.clergy-photo-panel {
    position: relative;
    overflow: hidden;
    background: var(--forest);
}
.clergy-photo-panel img {
    width: 100%; height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
    transition: transform .6s ease;
}
.clergy-section:hover .clergy-photo-panel img { transform: scale(1.03); }
.clergy-nameplate {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    padding: 20px 28px 22px;
    background: linear-gradient(to top, rgba(15,30,20,.85), transparent);
    z-index: 2;
}
.clergy-nameplate strong { display: block; color: white; font-size: 1.1rem; font-family: 'Playfair Display', serif; font-weight: 700; }
.clergy-nameplate span { font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.6); }

.features-section {
    background: var(--sage-pale);
    padding: 72px 0;
    border-top: 1px solid var(--sage-mid);
    border-bottom: 1px solid var(--sage-mid);
}
.features-section .section-head { text-align: center; margin-bottom: 48px; }
.features-section .section-head h2 { color: var(--forest-mid); }
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border: 2px solid var(--gold);
    align-items: stretch;
}
@media (min-width: 961px) {
    .features-grid:has(.feature-card:nth-child(2):last-child) {
        grid-template-columns: repeat(2, 1fr);
    }
    .features-grid:has(.feature-card:only-child) {
        grid-template-columns: minmax(0, 400px);
        justify-content: center;
    }
}
.feat-num { display: none; }
.feature-card {
    display: block;
    text-decoration: none;
    padding: 32px 34px;
    background: #fff;
    border-right: 2px solid var(--gold);
    position: relative;
    transition: background .2s;
}
.feature-card:last-child { border-right: none; }
.feature-card::after {
    content: '';
    position: absolute;
    bottom: 0; left: 34px; right: 34px;
    height: 3px; background: var(--gold);
    transform: scaleX(0); transform-origin: left;
    transition: transform .3s;
}
.feature-card:hover { background: var(--gold-pale); }
.feature-card:hover::after { transform: scaleX(1); }
.feat-num {
    font-family: 'Playfair Display', serif;
    font-size: 3rem; font-weight: 700;
    color: var(--sage-mid); line-height: 1;
    margin-bottom: 16px;
}
.feat-icon { font-size: 1.6rem; color: var(--sage); margin-bottom: 16px; }
.feature-card h3 { font-size: 1rem; color: var(--forest-mid); margin-bottom: 10px; }
.feature-card p { font-size: .88rem; color: var(--text-mid); margin: 0; line-height: 1.7; }

.calendar-section {
    background: var(--sage-pale);
    padding: 64px 0;
    border-top: 1px solid var(--sage-mid);
}
.calendar-section .section-head { text-align: center; margin-bottom: 36px; }
.calendar-section .section-head h2 { color: var(--forest-mid); }
.calendar-embed {
    border: 1px solid var(--sage-mid);
    overflow: hidden;
}
.calendar-embed iframe { display: block; }

.page-hero {
    background: var(--beige);
    border-bottom: 2px solid var(--gold);
    padding: 18px 20px 14px;
    text-align: center;
    position: relative;
}
.page-hero h1 {
    color: var(--forest); font-size: 2.1rem; font-weight: 400;
    margin: 0 0 12px;
}
.page-hero .hero-rule { background: var(--gold); margin: 0 auto 12px; }
.breadcrumb { font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--text-light); }
.breadcrumb a { color: var(--text-mid); }
.breadcrumb a:hover { color: var(--gold-dark); }
.single-meta-date {
    display: inline-flex; align-items: center; gap: 8px;
    margin: 10px auto 0; padding: 0;
    background: none; border: none;
    font-size: .85rem; letter-spacing: .04em;
    color: #000; font-weight: 500;
}
.single-meta-date i { font-size: .9rem; color: #000; }
.post-back-wrap { margin: 40px 0; display: flex; justify-content: center; }
.post-back-btn { display: inline-flex; align-items: center; gap: 8px; }
.post-back-btn i { font-size: .85rem; }

.entry-wrap {
    background: #fff;
    padding: 42px 50px;
    margin: 40px auto; max-width: 840px;
    border: 1px solid var(--border);
    border-top: 3px solid var(--gold);
    box-shadow: var(--shadow-xs);
}
.entry-wrap h2 {
    font-size: 1.3rem; color: var(--forest-mid);
    margin-top: 2rem; margin-bottom: .5rem;
    padding-bottom: 8px; border-bottom: 1px solid var(--beige-mid);
}
.entry-wrap h2:first-child { margin-top: 0; }
.entry-wrap h3 { font-size: 1.02rem; color: var(--text); margin-top: 1.4rem; }
.entry-wrap h4 { color: var(--forest-mid); font-family: 'Source Sans Pro', sans-serif; font-weight: 700; font-size: .9rem; }
.entry-wrap ul { list-style: disc; padding-left: 1.3em; margin-bottom: 1rem; }
.entry-wrap ul li { margin-bottom: .3rem; }
.entry-wrap p { line-height: 1.82; }

.info-box { background: var(--gold-pale); border-left: 4px solid var(--gold); padding: 14px 20px; margin: 20px 0; font-size: .92rem; }
.info-box.green { background: var(--sage-pale); border-color: var(--sage-mid); }

.schedule-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px,1fr)); gap: 12px; margin: 20px 0; }
.sch-block { background: var(--sage-pale); border: 1px solid var(--sage-mid); padding: 16px 18px; }
.sch-block .sb-label { font-size: .65rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--forest-mid); margin-bottom: 6px; }
.sch-block .sb-times { font-size: 1.05rem; font-weight: 700; color: var(--text); }
.sch-block .sb-note { font-size: .78rem; color: var(--text-light); margin-top: 4px; }

.contact-layout { display: grid; grid-template-columns: 1fr 1.2fr; gap: 32px; margin: 36px auto; max-width: 960px; padding: 0 24px; }
.contact-box {
    background: #fff; padding: 32px;
    border: 1px solid var(--border); border-top: 3px solid var(--gold);
    box-shadow: var(--shadow-xs);
}
.contact-box h3 {
    margin-top: 0; color: var(--forest-mid);
    border-bottom: 1px solid var(--beige-mid);
    padding-bottom: 12px; margin-bottom: 20px;
    font-size: 1.05rem;
}
.cd { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 14px; font-size: .92rem; }
.cd .ico {
    width: 32px; height: 32px; flex-shrink: 0;
    border: 1px solid var(--gold);
    display: flex; align-items: center; justify-content: center;
    color: var(--gold); font-size: .82rem; margin-top: 1px;
}
.cd strong { display: block; font-size: .6rem; text-transform: uppercase; letter-spacing: .12em; color: var(--text-light); margin-bottom: 3px; }
.map-box { border: 1px solid var(--border); overflow: hidden; }
.map-box iframe { display: block; }
.account-block { background: var(--gold-pale); border: 1px solid var(--beige-mid); border-left: 3px solid var(--gold); padding: 16px 20px; margin-top: 20px; font-size: .9rem; }
.account-number { font-family: 'Courier New', monospace; font-size: .94rem; font-weight: 700; background: #fff; padding: 7px 13px; display: inline-block; margin-top: 5px; border: 1px solid var(--border); letter-spacing: .04em; }

.cemetery-section { margin: 36px auto; max-width: 960px; padding: 0 24px; }
.cemetery-section h2 { font-size: 1.1rem; color: var(--text); margin-bottom: 16px; padding-bottom: 10px; border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 10px; }
.cemetery-section h2 i { color: var(--gold); }

.sak-jump { display: flex; flex-wrap: wrap; gap: 10px; margin: 32px 0 38px; padding: 18px 22px; background: var(--gold-pale); border: 1px solid var(--beige-mid); border-left: 4px solid var(--gold); }
.sak-jump-link { display: inline-flex; align-items: center; gap: 7px; padding: 7px 16px; background: #fff; border: 1px solid var(--beige-mid); font-size: .78rem; font-weight: 700; color: var(--text); text-transform: uppercase; letter-spacing: .06em; transition: background .18s, border-color .18s, color .18s; }
.sak-jump-link i { color: var(--gold); }
.sak-jump-link:hover { background: var(--sage); border-color: var(--sage); color: #fff; }
.sak-jump-link:hover i { color: #fff; }
.sak-detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-bottom: 52px; }
.sak-detail-card { background: #fff; border: 1px solid var(--border); border-top: 3px solid var(--gold); padding: 34px 30px; box-shadow: var(--shadow-xs); scroll-margin-top: 100px; }
.sak-detail-icon { font-size: 2.2rem; color: var(--sage); margin-bottom: 16px; line-height: 1; }
.sak-detail-card h2 { font-size: 1.1rem; font-weight: 700; color: var(--text); margin: 0 0 12px; font-family: 'Source Sans Pro', sans-serif; }
.sak-detail-card p { font-size: .92rem; line-height: 1.78; color: var(--text-mid); margin: 0; }

.single-wrap { background: #fff; padding: 42px 50px; margin: 40px auto; max-width: 840px; border: 1px solid var(--border); border-top: 3px solid var(--gold); box-shadow: var(--shadow-xs); }
.single-wrap h2 { color: var(--forest-mid); margin-top: 1.8rem; }
.single-wrap p { line-height: 1.82; }
.post-nav-links { max-width: 840px; margin: 0 auto 48px; display: flex; justify-content: space-between; gap: 12px; padding: 0 24px; }
.pnl-btn { background: #fff; border: 1px solid var(--border); padding: 11px 16px; font-size: .84rem; font-weight: 600; color: var(--text); display: flex; align-items: center; gap: 5px; flex: 1; transition: background .15s, border-color .15s; }
.pnl-btn:hover { background: var(--gold-pale); border-color: var(--gold); color: var(--gold-dark); }
.pnl-next { justify-content: flex-end; text-align: right; }

#site-footer {
    background: var(--forest);
    color: rgba(255,255,255,.68);
    padding: 58px 0 0;
    border-top: 3px solid var(--gold);
    position: relative;
    overflow: hidden;
}
#site-footer::before {
    content: '';
    position: absolute; inset: 0;
    background: url('assets/images/tlo.webp') center center / cover no-repeat;
    opacity: .08;
    pointer-events: none;
}
.footer-grid, .footer-bottom { position: relative; }
.footer-grid {
    display: grid;
    grid-template-columns: 1.7fr 1fr 1fr;
    gap: 48px;
    max-width: 1360px; margin: 0 auto;
    padding: 0 24px 52px;
    border-bottom: 1px solid rgba(255,255,255,.07);
}
.footer-brand-name {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.4rem; color: var(--warm-white);
    display: block; margin-bottom: 6px; font-weight: 700;
}
.footer-brand-sub {
    font-size: .76rem; letter-spacing: .16em; text-transform: uppercase;
    color: rgba(255,255,255,.44); display: block; margin-bottom: 16px;
}
.footer-rule-gold { width: 36px; height: 1px; background: var(--gold); margin-bottom: 18px; display: block; }
.footer-col h4 {
    font-family: 'Source Sans Pro', sans-serif;
    font-size: .72rem; text-transform: uppercase; letter-spacing: .16em; font-weight: 700;
    color: var(--gold); margin-bottom: 14px; padding-bottom: 8px;
    border-bottom: 1px solid rgba(255,255,255,.08);
}
.footer-col p, .footer-col li { font-size: 1rem; line-height: 1.85; }
.footer-col a { color: rgba(255,255,255,.6); }
.footer-col a:hover { color: var(--gold); }
.footer-col ul li { padding: 4px 0; }
.footer-col p i { font-size: .92rem; opacity: .6; margin-right: 6px; }
.footer-bottom {
    background: rgba(0,0,0,.22);
    text-align: center;
    padding: 16px 20px;
    font-size: .8rem;
    color: rgba(255,255,255,.34);
    border-top: 1px solid rgba(255,255,255,.04);
}

.btn {
    display: inline-block;
    background: var(--forest);
    color: white; padding: 11px 26px;
    font-size: .72rem; font-weight: 700; letter-spacing: .12em;
    text-transform: uppercase; border: 2px solid var(--forest);
    transition: background .2s, border-color .2s;
    font-family: 'Source Sans Pro', sans-serif;
}
.btn:hover { background: var(--sage); border-color: var(--sage); color: white; }
.btn--sm { padding: 5px 14px; font-size: .8rem; }

.btn-gold {
    display: inline-block;
    background: var(--gold); color: white;
    padding: 11px 26px; font-size: .72rem; font-weight: 700;
    letter-spacing: .12em; text-transform: uppercase;
    border: 2px solid var(--gold);
    transition: background .2s, border-color .2s;
    font-family: 'Source Sans Pro', sans-serif;
}
.btn-gold:hover { background: var(--forest); border-color: var(--forest); color: white; }

.btn-outline {
    display: inline-block;
    background: transparent; color: white;
    padding: 11px 26px; font-size: .72rem; font-weight: 700;
    letter-spacing: .12em; text-transform: uppercase;
    border: 2px solid rgba(255,255,255,.45);
    transition: border-color .2s, background .2s;
    font-family: 'Source Sans Pro', sans-serif;
}
.btn-outline:hover { border-color: white; background: rgba(255,255,255,.1); color: white; }

@media (max-width: 960px) {
    .sacraments-grid    { display: grid; grid-template-columns: repeat(2, 1fr); }
    .sac-card           { width: auto; aspect-ratio: auto; padding: 36px 20px 32px; }
    .home-grid          { grid-template-columns: 1fr; }
    .sidebar            { display: grid; grid-template-columns: 1fr 1fr; }
    .photos-carousel-wrap .photo-item { flex: 0 0 calc(33.333% - 3px); }
    .gallery-arrow--prev { left: -16px; }
    .gallery-arrow--next { right: -16px; }
    .ext-articles-grid  { grid-template-columns: 1fr; gap: 28px; }
    .features-grid      { grid-template-columns: repeat(2, 1fr); }
    .feature-card       { border-right: 2px solid var(--gold); }
    .feature-card:nth-child(2n) { border-right: none; }
    .footer-grid        { grid-template-columns: 1fr 1fr; }
    .contact-layout     { grid-template-columns: 1fr; }
    .sak-detail-grid    { grid-template-columns: 1fr; }
    .clergy-section     { grid-template-columns: 1fr; }
    .clergy-text-panel  { padding: 52px 40px; }
    .clergy-text-panel::after { display: none; }
    .clergy-photo-panel { min-height: 360px; }
    .info-strip-inner   { flex-direction: column; }
    .info-cell          { border-right: none; border-bottom: 1px solid var(--beige-mid); padding: 16px 20px; }
    .info-cell:last-child { border-bottom: none; }
    .quick-link-btn     { font-size: .95rem; }
    .info-cell:nth-child(3) { border-top: 1px solid var(--beige-mid); }
    .info-cell:nth-child(4) { border-top: 1px solid var(--beige-mid); border-right: none; }
    .hero-inner         { max-width: 380px; padding: 40px 32px; }
}

@media (max-width: 960px) {
    .header-topbar     { display: none; }
    .header-cross-icon { font-size: .9rem; }
    .nav-toggle    { display: flex; }
    .header-nav-wrap {
        display: none;
        position: absolute; top: 100%; left: 0; right: 0;
        background: var(--forest);
        border-top: 2px solid var(--gold);
        box-shadow: 0 12px 40px rgba(0,0,0,.3);
        max-height: calc(100vh - 80px);
        overflow-y: auto;
    }
    .header-nav-wrap.open { display: block; }
    #site-nav ul  { display: block; }
    #site-nav li  { display: block; border-bottom: 1px solid rgba(255,255,255,.06); }
    #site-nav > ul > li > a {
        display: flex; align-items: center;
        min-height: 50px; padding: 0 20px;
        font-size: .82rem; letter-spacing: .06em;
        color: rgba(255,255,255,.8);
        text-align: left;
    }
    #site-nav > ul > li > a::after { display: none; }
    #site-nav > ul > li > a:hover { background: rgba(255,255,255,.06); color: white; }
    #site-nav .current-menu-item > a { border-left: 3px solid var(--gold); padding-left: 17px; }
    #site-nav .menu-item-has-children > a::after { display: none; }

    .sub-menu-toggle {
        display: flex; align-items: center; justify-content: center;
        position: absolute; right: 0; top: 0; width: 50px; height: 50px;
        background: none; border: none; border-left: 1px solid rgba(255,255,255,.06);
        cursor: pointer; color: rgba(255,255,255,.4); font-size: .65rem; z-index: 1;
    }
    .menu-item-has-children { position: relative; }
    .menu-item-has-children > a { padding-right: 60px; }
    .menu-item-has-children.sub-open > .sub-menu-toggle { transform: rotate(180deg); color: var(--gold); }
    #site-nav .sub-menu,
    #site-nav li:hover > .sub-menu {
        display: block !important; position: static !important;
        max-height: 0; overflow: hidden; transition: max-height .32s ease;
        background: rgba(0,0,0,.2) !important;
        border: none !important; box-shadow: none !important;
        min-width: 0 !important; padding-top: 0 !important;
    }
    #site-nav li.sub-open > .sub-menu { max-height: 600px; }
    #site-nav .sub-menu a { padding: 18px 16px 18px 32px; min-height: 56px; color: rgba(255,255,255,.65) !important; font-size: .86rem; border-bottom: 1px solid rgba(255,255,255,.08); display: flex; align-items: center; }
    #site-nav .sub-menu a:hover { background: rgba(255,255,255,.06) !important; color: white !important; padding-left: 38px; }
    #site-nav li.sub-open > .sub-menu { max-height: 800px; }
}

@media (max-width: 720px) {
    .hero h1        { font-size: 1.9rem; }
    .hero-inner     { max-width: 100%; margin: 0 12px; padding: 36px 24px; }
    .hero-content .container { justify-content: center; }
    .sacraments-grid { display: grid; grid-template-columns: 1fr 1fr; }
    .sacraments-grid .sac-card { width: auto; }
    .features-grid   { grid-template-columns: 1fr; }
    .feature-card    { padding: 24px 22px; border-right: none; border-bottom: 2px solid var(--gold); }
    .feature-card:last-child { border-bottom: none; }
    .footer-grid    { grid-template-columns: 1fr; }
    .sidebar        { grid-template-columns: 1fr; }
    .entry-wrap, .single-wrap { padding: 26px 20px; }
    .clergy-text-panel { padding: 44px 28px; }

    .info-strip {
        background: transparent;
        border-bottom: none;
        position: relative;
        z-index: 2;
        margin-top: -350px;
        padding: 0 16px 18px;
        opacity: 0;
        transform: translateY(14px);
        animation: parafiaInfoReveal 1.5s ease .6s forwards;
    }
    .info-strip::before { display: none; }
    .info-strip-inner {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 36px;
        max-width: 320px;
        margin: 0 auto;
    }
    .info-cell {
        flex: none;
        border: 2px solid var(--gold) !important;
        background: rgba(252, 250, 244, .82);
        border-radius: 0;
        aspect-ratio: 1 / 1;
        flex-direction: column;
        gap: 8px;
        padding: 8px;
        box-shadow: 0 6px 18px rgba(0, 0, 0, .22);
    }
    .info-cell--nav:hover {
        background: rgba(255, 255, 255, .92);
    }
    .info-cell-icon {
        width: 44px; height: 44px;
        font-size: 1.05rem;
    }
    .info-cell--nav strong {
        font-size: .92rem;
    }
    .info-cell-text {
        text-align: center;
    }
    .info-cell-text strong { margin-bottom: 1px; font-size: .92rem; }
    .info-cell-text span,
    .info-cell-text a { font-size: .98rem; color: var(--gold-dark); }
}

@keyframes parafiaInfoReveal {
    to { opacity: 1; transform: translateY(0); }
}
@media (max-width: 480px) {
    .sacraments-grid { grid-template-columns: 1fr 1fr; }
    .sac-card { border-top: 1px solid var(--sage-mid); }
    .sac-card:nth-child(-n+2) { border-top: none; }
    .sac-card:nth-child(odd) { border-right: 1px solid var(--sage-mid); }
    .photos-carousel-wrap .photo-item { flex: 0 0 calc(50% - 2px); }
    .photos-grid { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 4px; }
    .hero-wrapper { height: 68vh; min-height: 360px; overflow: hidden; }
    .hero-img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
    .header-brand-name { font-size: 1.35rem; }
    .header-brand-sub  { font-size: .68rem; letter-spacing: .14em; }
    .post-card         { height: 140px; margin-bottom: 10px; }
    .post-card-thumb   { width: 90px; }
    .post-card-date    { min-width: 52px; padding: 12px 6px; }
    .pcd-day           { font-size: 1.5rem; }
    .pcd-month         { font-size: .7rem; }
    .post-card-body    { padding: 10px 12px; }
    .post-card-body h3 { font-size: .88rem; margin-bottom: 4px; }
    .post-card-body p  {
        font-size: .8rem; margin-bottom: 5px;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    .read-more { font-size: .63rem; }
}

@media (max-width: 360px) {
    .post-card-thumb { display: none; }
}

.tpl-wrap {
    padding-top: 48px;
    padding-bottom: 64px;
}

.tpl-quote {
    border-left: 4px solid var(--gold);
    padding: 20px 28px;
    margin: 0 0 40px;
    background: var(--gold-light);
    border-radius: 0 var(--r) var(--r) 0;
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    font-style: italic;
    color: var(--forest-mid);
    line-height: 1.7;
}
.tpl-quote .fa-quote-left { color: var(--gold); margin-right: 10px; opacity: .6; }

.tpl-two-col {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 40px;
    align-items: start;
}
.tpl-content p { line-height: 1.8; color: var(--text-mid); margin-bottom: 18px; }
.tpl-content-wide p { line-height: 1.8; color: var(--text-mid); margin-bottom: 18px; }

.std-section { font-size: 1.1rem; font-weight: 700; color: var(--forest); margin: 36px 0 16px; padding-bottom: 6px; border-bottom: 2px solid var(--sage-pale); }
.std-check { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 20px; }
.std-tick { flex-shrink: 0; width: 22px; color: var(--forest); font-size: .95rem; font-weight: 700; padding-top: 2px; }
.std-check-body { flex: 1; }
.std-check-body > p { font-weight: 600; color: var(--text-dark); line-height: 1.65; margin: 0 0 6px; }
.std-sublist { list-style: none; padding: 0; margin: 4px 0 6px; }
.std-sublist li { position: relative; padding: 3px 0 3px 22px; color: var(--text-mid); line-height: 1.6; font-size: .94rem; }
.std-sublist li::before { content: "◦"; position: absolute; left: 4px; top: 3px; color: var(--text-mid); font-size: 1.1em; }
.std-cont { color: var(--text-mid); line-height: 1.7; margin: 6px 0 0; font-style: italic; font-size: .92rem; }
.std-note { line-height: 1.8; color: var(--text-mid); margin-bottom: 16px; padding-left: 14px; border-left: 3px solid var(--gold); }

.tpl-info-card {
    background: var(--beige);
    border: 1px solid var(--beige-mid);
    border-radius: var(--r-lg);
    padding: 22px 24px;
    margin-bottom: 20px;
}
.tpl-info-card h3 { font-size: 1rem; color: var(--forest-mid); margin: 0 0 14px; display: flex; align-items: center; gap: 8px; }
.tpl-info-card p { margin: 0 0 8px; font-size: .9rem; color: var(--text-mid); line-height: 1.7; }
.tpl-info-card--gold { background: var(--gold-light); border-color: rgba(196,150,58,.3); text-align: center; }
.tpl-info-card--center { text-align: center; }

.tpl-data-list { list-style: none; margin: 0; padding: 0; font-size: .88rem; }
.tpl-data-list li { display: flex; flex-direction: column; padding: 8px 0; border-bottom: 1px solid var(--beige-mid); color: var(--text-mid); }
.tpl-data-list li:last-child { border-bottom: none; }
.tpl-data-list span { font-size: .72rem; text-transform: uppercase; letter-spacing: .07em; color: var(--text-light); font-weight: 700; margin-bottom: 2px; }

.tpl-priest-list { list-style: none; margin: 0; padding: 0; }
.tpl-priest-list li { padding: 7px 0; border-bottom: 1px solid var(--beige-mid); font-size: .9rem; color: var(--text-mid); }
.tpl-priest-list li:last-child { border-bottom: none; }
.tpl-priest-list li::before { content: '†'; color: var(--gold); margin-right: 8px; font-size: .8em; }

.tpl-section-divider { margin-top: 48px; padding-top: 40px; border-top: 2px solid var(--beige-mid); }
.tpl-section-divider h2 { color: var(--forest-mid); margin-bottom: 20px; display: flex; align-items: center; gap: 12px; }
.tpl-section-divider p { line-height: 1.8; color: var(--text-mid); margin-bottom: 16px; }
.tpl-section-title { color: var(--forest-mid); margin-bottom: 24px; display: flex; align-items: center; gap: 12px; }

.tpl-patron-header { display: flex; align-items: center; gap: 28px; margin-bottom: 40px; padding: 28px; background: var(--sage-pale); border-radius: var(--r-lg); }
.tpl-patron-icon { width: 80px; height: 80px; flex-shrink: 0; background: var(--forest); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: white; font-size: 2rem; }
.tpl-patron-header h2 { font-size: 1.6rem; color: var(--forest-mid); margin: 0 0 8px; }
.tpl-patron-swieto { color: var(--text-mid); margin: 0; font-size: .9rem; }

.tpl-priest-card { display: grid; grid-template-columns: 280px 1fr; gap: 48px; align-items: start; margin-bottom: 40px; }
.tpl-priest-photo { border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-sm); aspect-ratio: 3/4; background: var(--sage-pale); display: flex; align-items: center; justify-content: center; outline: 3px solid var(--gold); outline-offset: 0; }
.tpl-priest-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tpl-priest-photo-placeholder { width: 100%; height: 100%; min-height: 300px; display: flex; align-items: center; justify-content: center; font-size: 5rem; color: var(--forest-mid); opacity: .3; }
.tpl-priest-info .tpl-eyebrow { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-dark); font-weight: 700; }
.tpl-priest-info h2 { font-size: 1.85rem; color: var(--forest-mid); margin: 6px 0 12px; }
.tpl-gold-rule { display: block; width: 48px; height: 3px; background: var(--gold); margin-bottom: 18px; }
.tpl-priest-role { font-size: .88rem; color: var(--text-light); margin-bottom: 16px; }
.tpl-priest-info p { line-height: 1.8; color: var(--text-mid); margin-bottom: 14px; }

.tpl-contact-list { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.tpl-contact-list li { display: flex; align-items: center; gap: 10px; font-size: .9rem; color: var(--text-mid); }
.tpl-contact-list i { color: var(--forest-mid); width: 18px; text-align: center; }

.tpl-groups-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.tpl-group-card { border: 1px solid var(--beige-mid); border-radius: var(--r-lg); padding: 24px; background: #fff; }
.tpl-group-card .tpl-group-card-icon { margin-bottom: 20px; }
.tpl-group-card--featured { display: flex; gap: 28px; align-items: flex-start; border-color: var(--gold); background: var(--gold-light); margin-bottom: 36px; }
.tpl-group-card-icon { width: 56px; height: 56px; flex-shrink: 0; background: var(--forest); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: white; font-size: 1.4rem; }
.tpl-group-card--featured .tpl-group-card-icon { width: 64px; height: 64px; font-size: 1.6rem; }
.tpl-group-card-body h2, .tpl-group-card-body h3 { color: var(--forest-mid); margin: 0 0 8px; }
.tpl-group-card-body p { font-size: .9rem; color: var(--text-mid); line-height: 1.7; margin: 0; }
.tpl-group-schedule { font-size: .85rem; color: var(--text-light); margin-bottom: 12px; display: flex; align-items: center; gap: 7px; }

.tpl-links-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 28px; }
.tpl-link-card { display: flex; flex-direction: column; padding: 20px; border: 1px solid var(--beige-mid); border-radius: var(--r-lg); background: #fff; text-decoration: none; transition: border-color .2s, box-shadow .2s; }
.tpl-link-card:hover { border-color: var(--gold); box-shadow: var(--shadow-xs); }
.tpl-link-icon { font-size: 1.2rem; color: var(--gold); margin-bottom: 10px; }
.tpl-link-name { font-weight: 700; color: var(--text); font-size: .95rem; margin-bottom: 4px; }
.tpl-link-domain { font-size: .78rem; color: var(--text-light); }

.tpl-schedule-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.tpl-schedule-card { border: 1px solid var(--beige-mid); border-radius: var(--r-lg); overflow: hidden; background: #fff; }
.tpl-schedule-card--sm .tpl-schedule-card-header { padding: 16px 20px; }
.tpl-schedule-card-header { background: var(--forest); color: white; padding: 20px 24px; display: flex; align-items: center; gap: 14px; }
.tpl-schedule-card-header i { font-size: 1.6rem; opacity: .85; }
.tpl-schedule-card-header h2, .tpl-schedule-card-header h3 { margin: 0; color: white; font-size: 1.15rem; }
.tpl-schedule-list { list-style: none; margin: 0; padding: 0; }
.tpl-schedule-list li { display: flex; justify-content: space-between; align-items: center; padding: 13px 24px; border-bottom: 1px solid var(--beige-mid); font-size: .9rem; }
.tpl-schedule-list li:last-child { border-bottom: none; }
.tpl-sch-label { color: var(--text-mid); }
.tpl-sch-time { font-weight: 700; color: var(--forest-mid); font-size: 1rem; font-family: 'Playfair Display', serif; }
.tpl-schedule-time-big { text-align: center; font-family: 'Playfair Display', serif; font-size: 1.5rem; font-weight: 700; color: var(--forest-mid); padding: 24px; margin: 0; }
.tpl-schedule-note { font-size: .8rem; color: var(--text-light); padding: 0 24px 16px; margin: 0; }

.tpl-msze-content { max-width: 780px; margin: 0 auto; font-size: 1.05rem; line-height: 1.8; color: var(--text); }
.tpl-msze-content h2 { font-family: 'Playfair Display', serif; font-size: 1.55rem; color: var(--forest); margin: 48px 0 16px; padding-bottom: 10px; border-bottom: 2px solid var(--gold); }
.tpl-msze-content h2:first-child { margin-top: 8px; }
.tpl-msze-content h3 { font-family: 'Playfair Display', serif; font-size: 1.2rem; color: var(--forest-mid); margin: 32px 0 12px; }
.tpl-msze-content ul, .tpl-msze-content ol { padding-left: 24px; margin: 0 0 20px; }
.tpl-msze-content li { margin-bottom: 8px; }
.tpl-msze-content ul li::marker { color: var(--gold-dark); }
.tpl-msze-content p { margin: 0 0 16px; }
.tpl-msze-content strong { color: var(--forest); }
.tpl-msze-content a { color: var(--sage); }

.tpl-intro { font-size: 1rem; color: var(--text-mid); line-height: 1.75; margin-bottom: 28px; max-width: 720px; }

.tpl-pagination { margin-top: 32px; display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; }
.tpl-pagination .page-numbers { padding: 8px 14px; border: 1px solid var(--beige-mid); border-radius: var(--r); color: var(--text-mid); text-decoration: none; font-size: .88rem; }
.tpl-pagination .page-numbers.current { background: var(--forest); color: white; border-color: var(--forest); }
.tpl-pagination .page-numbers:hover:not(.current) { border-color: var(--gold); color: var(--gold-dark); }

.sak-hub-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 32px;
}
.sak-hub-card {
    display: flex; flex-direction: column; align-items: center; text-align: center;
    padding: 28px 16px 22px;
    border: 1px solid var(--beige-mid);
    border-radius: var(--r-lg);
    background: #fff;
    text-decoration: none;
    transition: border-color .2s, box-shadow .2s, transform .2s;
}
.sak-hub-card:hover { border-color: var(--gold); box-shadow: var(--shadow-sm); transform: translateY(-3px); }
.sak-hub-icon {
    width: 64px; height: 64px;
    background: var(--forest);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: white; font-size: 1.5rem;
    margin-bottom: 14px;
    transition: background .2s;
}
.sak-hub-card:hover .sak-hub-icon { background: var(--gold-dark); }
.sak-hub-card h3 { font-size: .92rem; color: var(--forest-mid); margin: 0 0 8px; font-family: 'Source Sans Pro', sans-serif; }
.sak-hub-card p { font-size: .8rem; color: var(--text-light); margin: 0 0 12px; line-height: 1.5; flex: 1; }
.sak-hub-more { font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--gold-dark); font-weight: 700; }

@media (max-width: 900px) {
    .tpl-two-col { grid-template-columns: 1fr; }
    .tpl-priest-card { grid-template-columns: 1fr; }
    .tpl-priest-photo { max-width: 280px; }
    .tpl-groups-grid { grid-template-columns: repeat(2, 1fr); }
    .tpl-links-grid { grid-template-columns: repeat(2, 1fr); }
    .tpl-schedule-grid { grid-template-columns: 1fr; }
    .sak-hub-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
    .tpl-patron-header { flex-direction: column; text-align: center; }
    .tpl-group-card--featured { flex-direction: column; align-items: center; text-align: center; }
    .tpl-groups-grid { grid-template-columns: 1fr; }
    .tpl-links-grid { grid-template-columns: 1fr; }
    .sak-hub-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
}

/* ── Galeria wpisów ─────────────────────────────────────── */
.gal-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
}
.gal-cell {
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border: none;
    padding: 0;
    cursor: pointer;
    background: var(--beige-mid);
}
.gal-cell img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .35s ease;
}
.gal-cell:hover img { transform: scale(1.06); }
.gal-cell-badge {
    position: absolute;
    top: 8px; right: 8px;
    background: rgba(0,0,0,.55);
    color: #fff;
    font-size: .72rem;
    padding: 3px 7px;
    border-radius: 20px;
    pointer-events: none;
    display: flex; align-items: center; gap: 4px;
}
.gal-cell-title {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,.72));
    color: #fff;
    font-size: .8rem;
    font-weight: 600;
    line-height: 1.3;
    padding: 28px 10px 9px;
    text-align: left;
    pointer-events: none;
    transform: translateY(100%);
    transition: transform .28s ease;
}
.gal-cell:hover .gal-cell-title {
    transform: translateY(0);
}

/* ── Galeria lightbox ───────────────────────────────────── */
.gal-lb {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9000;
    background: rgba(10,10,10,.96);
    flex-direction: column;
    align-items: stretch;
}
.gal-lb.active { display: flex; animation: lbFadeIn .2s ease; }
.gal-lb-close {
    position: absolute;
    top: 14px; right: 20px;
    background: none; border: none;
    color: #fff; font-size: 2.2rem;
    cursor: pointer; z-index: 10;
    line-height: 1;
    opacity: .8;
    transition: opacity .15s, color .15s;
}
.gal-lb-close:hover { opacity: 1; color: var(--gold); }
.gal-lb-body {
    display: flex;
    align-items: stretch;
    flex: 1;
    min-height: 0;
    position: relative;
    padding: 0 70px 0 70px;
}
.gal-lb-prev, .gal-lb-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px; height: 44px;
    border-radius: 50%;
    background: var(--forest);
    border: none;
    color: #fff; font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    opacity: .82;
    transition: opacity .2s, background .2s;
    box-shadow: 0 2px 8px rgba(0,0,0,.18);
    z-index: 10;
}
.gal-lb-prev { left: 12px; }
.gal-lb-next { right: 108px; }
.gal-lb-prev:hover, .gal-lb-next:hover { opacity: 1; background: var(--forest-mid); }
.gal-lb-center {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 48px 0 24px;
    gap: 18px;
}
.gal-lb-img-wrap {
    flex: 1;
    min-height: 0;
    width: 100%;
}
.gal-lb-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 4px;
    display: block;
}
.gal-lb-info {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
    padding: 0 16px;
}
.gal-lb-title {
    font-family: 'Playfair Display', Georgia, serif;
    color: rgba(255,255,255,.9);
    font-size: 1.05rem;
}
.gal-lb-btn {
    font-size: .82rem;
    padding: 8px 18px;
    white-space: nowrap;
}
.gal-lb-strip {
    flex-shrink: 0;
    width: 96px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 48px 6px 24px;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,.2) transparent;
}
.gal-lb-strip::-webkit-scrollbar { width: 4px; }
.gal-lb-strip::-webkit-scrollbar-thumb { background: rgba(255,255,255,.2); border-radius: 4px; }
.gal-lb-thumb {
    width: 84px; height: 84px;
    flex-shrink: 0;
    object-fit: cover;
    border-radius: 3px;
    cursor: pointer;
    opacity: .55;
    border: 2px solid transparent;
    transition: opacity .15s, border-color .15s;
}
.gal-lb-thumb.active,
.gal-lb-thumb:hover { opacity: 1; border-color: var(--gold); }

@media (max-width: 700px) {
    .gal-grid { grid-template-columns: repeat(3, 1fr); gap: 3px; }
    .gal-lb-strip { width: 64px; padding: 44px 4px 16px; }
    .gal-lb-thumb { width: 56px; height: 56px; }
    .gal-lb-prev, .gal-lb-next { width: 38px; height: 38px; font-size: 1.4rem; }
    .gal-lb-next { right: 72px; }
}
