/* V2 presentation layer. Content, modules and builder-owned order remain intact. */
:root{--v2-ink:#172c36;--v2-muted:#66747a;--v2-gold:#b18a50;--v2-paper:#f7f5f0;--v2-line:#e5dfd3;--v2-shadow:0 20px 55px #132a3718}
html{scroll-behavior:smooth;scroll-padding-top:86px}
.header{z-index:40}
#main-nav>.nav-home,.nav-toggle{position:relative;transition:color .2s,background-color .2s}
#main-nav>.quick-link{position:relative}
#main-nav>.nav-home:after,#main-nav>.quick-link:after,.nav-toggle:after{content:"";position:absolute;left:18%;right:18%;bottom:6px;height:1px;background:var(--gold-light);transform:scaleX(0);transform-origin:center;transition:transform .24s ease}
#main-nav>.nav-home:hover:after,#main-nav>.nav-home:focus-visible:after,#main-nav>.quick-link:hover:after,#main-nav>.quick-link:focus-visible:after,.nav-toggle:hover:after,.nav-toggle:focus-visible:after,.nav-toggle[aria-expanded=true]:after{transform:scaleX(1)}
.hero{height:auto;min-height:640px;overflow:clip;display:flex;flex-direction:column;align-items:center;padding:0 0 1px;background:#102735}
.hero-image,.hero-image-backdrop,.hero-video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.hero-image-backdrop{filter:blur(22px) brightness(.48);transform:scale(1.06);opacity:.55;z-index:0}
.hero-image,.hero img.hero-image{object-fit:cover;object-position:center;z-index:1}
.hero-shade{z-index:2;background:linear-gradient(90deg,#07172250 0%,#07172222 48%,#07172208 100%),linear-gradient(0deg,#07172215,transparent 70%)}
.hero h1,.hero .eyebrow{text-shadow:0 2px 14px #07172280}
.hero-content{position:relative;z-index:4;width:min(1240px,calc(100% - 72px));max-width:1240px;padding:clamp(60px,9vw,120px) 0 54px}
.hero h1{max-width:780px;font-size:clamp(27px,2.8vw,40px);line-height:1.25;letter-spacing:-.015em}
.hero .eyebrow{letter-spacing:.2em}.hero-archdiocese{margin-top:24px!important;font-size:12px!important;letter-spacing:.22em!important}
.hero-information{position:relative;z-index:7;width:min(1240px,calc(100% - 72px));display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0;margin:-48px auto 0;border:1px solid #d7c7a6;background:#fbfaf7;box-shadow:var(--v2-shadow)}
.hero-info-card{min-width:0;display:flex;flex-direction:column;padding:26px 30px 24px;border-right:1px solid var(--v2-line);border-top:2px solid transparent;transition:background .2s,border-color .2s,transform .25s}
.hero-info-card:last-child{border-right:0}.hero-info-card:hover{background:#fff;border-top-color:var(--v2-gold);transform:translateY(-3px)}
.hero-info-kicker{margin:0 0 8px;color:#967343;font-size:10px;letter-spacing:.16em}
.hero-info-card h2{margin:0 0 12px;color:#19313c;font-size:24px;line-height:1.2;font-weight:400}
.hero-info-value{margin:0;color:#263b44;font-size:17px;line-height:1.55}
.hero-info-weekdays{margin-top:8px}.hero-info-day{display:flex;justify-content:space-between;gap:12px;margin:4px 0;color:#536168;font-size:13px;line-height:1.45}.hero-info-day span:last-child{text-align:right;color:#273a42}.hero-info-empty{font-size:14px;color:#66747a}
.hero-info-link{align-self:flex-start;margin-top:auto;padding-top:18px;color:#805f2c;font-size:13px;text-decoration:none;border-bottom:1px solid #b18a5070}.hero-info-link:hover{border-color:currentColor}
#homepage-sections{padding-top:52px}
.parish-updates{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(300px,.85fr);gap:46px;align-items:start}
.news-section,.intentions-panel{min-width:0}.news-section .section-heading h2{font-size:clamp(28px,3.1vw,40px);letter-spacing:-.02em}.news-card{border:0;background:transparent}.news-image{height:auto;max-height:420px;object-fit:contain;background:#eeeae2}.news-photo{background:#eeeae2}.news-content{padding:18px 2px 8px}.news-content h3{font-size:24px;font-weight:400}.news-content p{color:#526168}
.weekly-intentions-card,.home-announcements-card,.daily-liturgy-card,.event-schedule-card{border-radius:2px!important;box-shadow:none!important;border:1px solid var(--v2-line)!important;border-top:2px solid var(--v2-gold)!important}
.section{padding-top:58px;padding-bottom:48px}.section-heading h2{font-weight:400;letter-spacing:-.015em}
.gallery-scroll-track img,.parish-home-gallery img{object-fit:contain!important;background:#ece8df}
.v2-reveal{opacity:1;transform:none;transition:opacity .65s ease,transform .65s cubic-bezier(.2,.65,.25,1)}
.v2-motion-ready .v2-reveal:not(.v2-visible){opacity:0;transform:translate3d(0,22px,0)}
.v2-reveal.v2-visible{opacity:1;transform:none}
html[data-theme=dark]{--v2-ink:#e4e8eb;--v2-muted:#b0bbc3;--v2-paper:#0c1720;--v2-line:#30414f;--v2-shadow:0 20px 55px #0005}
html[data-theme=dark] .hero-information{background:#152632;border-color:#334754}
html[data-theme=dark] .hero-info-card{border-color:#30414f}
html[data-theme=dark] .hero-info-card h2,html[data-theme=dark] .hero-info-value,html[data-theme=dark] .hero-info-day span:last-child{color:#e3e8eb}
html[data-theme=dark] .hero-info-day,html[data-theme=dark] .hero-info-empty{color:#b4c0c7}
html[data-theme=dark] .hero-info-card:hover{background:#1b303d}
html[data-theme=dark] .news-image,html[data-theme=dark] .news-photo,html[data-theme=dark] .gallery-scroll-track img,html[data-theme=dark] .parish-home-gallery img{background:#172833}
@media(max-width:900px){.hero-information{width:calc(100% - 44px)}.hero-info-card{padding:22px 22px}.parish-updates{grid-template-columns:1fr;gap:20px}.intentions-panel{padding:0}.news-section{padding-bottom:14px}}
@media(max-width:767px), (orientation:landscape) and (max-height:600px) and (pointer:coarse){
 html{scroll-padding-top:74px}.hero,.hero.hero-video-playing{height:auto;min-height:420px;max-height:none;padding-bottom:1px}.hero-content{width:calc(100% - 36px);padding:48px 0 34px}.hero h1{font-size:clamp(25px,7.1vw,33px);line-height:1.25;max-width:330px;margin:0;letter-spacing:0}.hero .eyebrow{font-size:9px}.hero-archdiocese{margin-top:16px!important;font-size:9px!important}
 .hero-information{width:calc(100% - 32px);grid-template-columns:1fr;margin:-2px auto 0;box-shadow:0 14px 36px #1027351a}.hero-info-card{padding:19px 20px;border-right:0;border-bottom:1px solid var(--v2-line)}.hero-info-card:last-child{border-bottom:0}.hero-info-card h2{font-size:21px;margin-bottom:7px}.hero-info-link{padding-top:10px}.hero-info-weekdays{max-width:440px}
 #homepage-sections{padding-top:28px}.parish-updates{width:calc(100% - 32px);gap:22px}.news-image{max-height:none}.news-content{padding-inline:0}
}
@media(orientation:landscape) and (max-height:600px) and (pointer:coarse){.hero{min-height:360px}.hero-content{padding:30px 0 22px}.hero h1{font-size:clamp(28px,5vw,42px)}.hero-information{grid-template-columns:repeat(3,minmax(0,1fr));margin-top:0}.hero-info-card{padding:14px 16px;border-right:1px solid var(--v2-line);border-bottom:0}.hero-info-card h2{font-size:17px}.hero-info-day{font-size:11px}}
@media(max-width:380px){.hero-content{width:calc(100% - 28px)}.hero-information{width:calc(100% - 24px)}.hero-info-card{padding:17px 16px}.hero h1{font-size:30px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}.v2-reveal,.hero-info-card{transition:none!important}.v2-reveal{opacity:1;transform:none}}

/* Let the hero media begin underneath the transparent, sticky navigation. */
.header{margin-bottom:-63px}
@media(min-width:768px) and (max-width:900px){.header{margin-bottom:-61px}}
@media(max-width:767px), (orientation:landscape) and (max-height:600px) and (pointer:coarse){.header{margin-bottom:-61px}}


/* Neutral, empty placeholder before the first hero photo has loaded. */
.hero.hero-loading{background:#fff!important}
.hero.hero-loading :is(.hero-image,.hero-image-backdrop,.hero-shade,.hero-content,.hero-video,.hero-live-embed,.hero-camera-controls){visibility:hidden!important}


/* Two full-size photographic layers crossfade without changing the hero layout. */
.hero.hero-slideshow .hero-image,.hero .hero-slide-next{opacity:0;transition:opacity var(--hero-fade,900ms) ease;object-fit:cover;object-position:center}
.hero.hero-slideshow .hero-image.hero-photo-active,.hero .hero-slide-next.hero-photo-active{opacity:1}
.hero .hero-slide-next{position:absolute;inset:0;width:100%;height:100%;z-index:1;pointer-events:none}
.hero.hero-slideshow.hero-live-playing :is(.hero-image,.hero-slide-next){opacity:0}
.hero.hero-loading .hero-slide-next{visibility:hidden!important}
@media(prefers-reduced-motion:reduce){.hero .hero-image,.hero .hero-slide-next{transition:none!important}}

/* V2 homepage gallery: always show three large, softly rounded photo cards.
   Builder row span increases image height, but not the number of visible cards. */
#homepage-sections.homepage-builder-active #parish-gallery.gallery-scroll-track{
  gap:16px;
  height:clamp(260px,24vw,350px);
  scroll-padding-inline:0;
}
#homepage-sections.homepage-builder-active #parish-gallery.gallery-scroll-track>:is(.gallery-placeholder,.gallery-thumb){
  flex:0 0 calc((100% - 32px)/3);
  height:100%;
  min-width:0;
  border-radius:22px;
  overflow:hidden;
  box-shadow:0 6px 20px #00000012;
}
#homepage-sections.homepage-builder-active #parish-gallery.gallery-scroll-track>.gallery-thumb:only-child{flex-basis:calc((100% - 32px)/3);margin-inline:0}
#homepage-sections.homepage-builder-active .gallery-scroll-arrow{border-radius:50%}
@media(min-width:768px){
 #homepage-sections.homepage-builder-active>.homepage-builder-row:has(#galeria)[data-height="1"] #parish-gallery.gallery-scroll-track{height:clamp(220px,19vw,260px)}
 #homepage-sections.homepage-builder-active>.homepage-builder-row:has(#galeria)[data-height="2"] #parish-gallery.gallery-scroll-track{height:clamp(300px,27vw,390px)}
 #homepage-sections.homepage-builder-active>.homepage-builder-row:has(#galeria)[data-height="3"] #parish-gallery.gallery-scroll-track{height:clamp(360px,34vw,490px)}
 #homepage-sections.homepage-builder-active>.homepage-builder-row:has(#galeria)[data-height="4"] #parish-gallery.gallery-scroll-track{height:clamp(410px,40vw,570px)}
 #homepage-sections.homepage-builder-active>.homepage-builder-row:has(#galeria)[data-height="5"] #parish-gallery.gallery-scroll-track{height:clamp(460px,45vw,630px)}
 #homepage-sections.homepage-builder-active>.homepage-builder-row:has(#galeria)[data-height="6"] #parish-gallery.gallery-scroll-track{height:clamp(510px,50vw,690px)}
}
@media(min-width:768px) and (max-width:1100px){
 #homepage-sections.homepage-builder-active #parish-gallery.gallery-scroll-track{gap:12px}
 #homepage-sections.homepage-builder-active #parish-gallery.gallery-scroll-track>:is(.gallery-placeholder,.gallery-thumb){flex-basis:calc((100% - 24px)/3)}
}
@media(max-width:767px),(orientation:landscape) and (max-height:600px) and (pointer:coarse){
 #homepage-sections.homepage-builder-active #parish-gallery.gallery-scroll-track{height:240px;gap:10px}
 #homepage-sections.homepage-builder-active #parish-gallery.gallery-scroll-track>:is(.gallery-placeholder,.gallery-thumb){flex:0 0 76%;border-radius:18px}
 #homepage-sections.homepage-builder-active>.homepage-builder-row:has(#galeria)[data-height="3"] #parish-gallery.gallery-scroll-track{height:300px}
 #homepage-sections.homepage-builder-active>.homepage-builder-row:has(#galeria)[data-height="4"] #parish-gallery.gallery-scroll-track{height:350px}
 #homepage-sections.homepage-builder-active>.homepage-builder-row:has(#galeria)[data-height="5"] #parish-gallery.gallery-scroll-track{height:400px}
 #homepage-sections.homepage-builder-active>.homepage-builder-row:has(#galeria)[data-height="6"] #parish-gallery.gallery-scroll-track{height:450px}
}

/* Homepage gallery: the photograph fills the rounded frame without letterbox bands. */
#homepage-sections.homepage-builder-active #parish-gallery.gallery-scroll-track>.gallery-thumb{
 border:0;
 background:transparent;
}
#homepage-sections.homepage-builder-active #parish-gallery.gallery-scroll-track>.gallery-thumb :is(img,video){
 width:100%;
 height:100%;
 max-width:100%;
 object-fit:cover!important;
 object-position:center;
 background:transparent!important;
 border:0;
 border-radius:inherit;
}
/* Keep the liturgical indicator to the right also on narrow screens. */
#homepage-sections.homepage-builder-active .daily-liturgy-card [data-daily-liturgy] h3{display:flex!important;align-items:center;gap:14px}
#homepage-sections.homepage-builder-active .daily-liturgy-card .liturgical-day-indicator{width:26px;min-width:26px;flex:0 0 26px}
@media(max-width:680px){#homepage-sections.homepage-builder-active .daily-liturgy-card .liturgical-day-indicator{width:22px;min-width:22px;flex-basis:22px}}

/* Keep office-hour ranges readable at intermediate tablet widths. */
.hero-info-card [data-office-hours]{white-space:normal;overflow-wrap:normal}
.hero-info-card [data-office-hours] .hero-office-line{display:grid;grid-template-columns:max-content minmax(0,1fr);align-items:start;column-gap:16px;margin-bottom:.9em}
.hero-info-card [data-office-hours] .hero-office-line:last-child{margin-bottom:0}
.hero-info-card [data-office-hours] .hero-office-day{min-width:0}
.hero-info-card [data-office-hours] .hero-office-times{min-width:0;display:flex;flex-wrap:wrap;column-gap:.45em}
.hero-info-card [data-office-hours] .hero-office-period{display:inline-block;white-space:nowrap}
@media(min-width:768px) and (max-width:820px){
 .hero-info-card [data-office-hours] .hero-office-line{grid-template-columns:1fr;row-gap:.15em}
}

/* One text-line gap between each homepage information tile heading and details. */
.hero-information .hero-info-card h2{margin-bottom:26px}

/* Consistent, readable body text in all three homepage information cards. */
.hero-information .hero-info-card :is(.hero-info-value,.hero-info-day,.hero-info-empty){font-size:18px;line-height:1.5}
@media(max-width:767px){
 .hero-information .hero-info-card :is(.hero-info-value,.hero-info-day,.hero-info-empty){font-size:17px;line-height:1.5}
}

/* A contextual sound tip slides out to the left of the existing expand icon.
   It only appears while a Mass/devotion is marked "Trwa teraz" in Intencje. */
.hero .hero-camera-controls .hero-sound-control{position:relative;width:38px;height:38px;flex:none}
.hero .hero-camera-controls .hero-sound-hint{
 position:absolute;right:calc(100% + 12px);top:50%;transform:translateY(-50%);
 z-index:2;display:block;white-space:nowrap;pointer-events:none;
 padding:8px 13px;border:1px solid #b18a50;border-radius:8px;
 background:#292a2b;color:#fff;font:600 14px/1.35 Lato,Arial,sans-serif;
 box-shadow:0 8px 24px #0005;animation:hero-sound-hint-in .22s ease-out both;
}
.hero .hero-camera-controls .hero-sound-hint::after{
 content:"";position:absolute;left:100%;top:50%;width:8px;height:8px;
 background:#292a2b;border-top:1px solid #b18a50;border-right:1px solid #b18a50;
 transform:translate(7px,-50%) rotate(45deg);
}
.hero .hero-camera-controls .hero-sound-hint[hidden]{display:none!important}
@keyframes hero-sound-hint-in{from{opacity:0;translate:8px 0}to{opacity:1;translate:0 0}}
@media(prefers-reduced-motion:reduce){.hero .hero-camera-controls .hero-sound-hint{animation:none}}

.hero-info-card .hero-info-title {
 display:flex;
 align-items:center;
 gap:0.65rem;
}
.hero-info-title img {
 width:clamp(36px,4vw,48px);
 height:auto;
 aspect-ratio:1;
 flex:none;
}

/* Homepage album cards retain the original carousel geometry and hover frame. */
#homepage-sections.homepage-builder-active #parish-gallery.gallery-scroll-track > .home-album-card,
#parish-gallery.gallery-scroll-track > .home-album-card{
 display:flex;flex-direction:column;text-decoration:none;color:var(--ink);
 background:var(--card-bg,var(--paper));cursor:pointer;
}
#parish-gallery .home-album-image{display:block;flex:1 1 0;min-height:0;overflow:hidden}
#homepage-sections.homepage-builder-active #parish-gallery .home-album-image :is(img,video),
#parish-gallery .home-album-image :is(img,video){width:100%;height:100%;object-fit:cover!important;border-radius:0}
#parish-gallery .home-album-title{display:flex;align-items:center;justify-content:center;text-align:center;flex:0 0 auto;min-height:62px;padding:8px 12px;font-size:15px;font-weight:700;line-height:1.35;overflow-wrap:anywhere}
#parish-gallery .home-album-empty{display:grid;place-items:center;height:100%;font-size:36px;color:var(--muted)}
html[data-theme="dark"] #parish-gallery.gallery-scroll-track > .home-album-card{color:var(--ink)}

@media(min-width:768px){
 #homepage-sections.homepage-builder-active #parish-gallery.gallery-scroll-track > .home-album-card{flex-basis:calc((100% - 34px)/3)}
}
@media(min-width:768px) and (max-width:1100px){
 #homepage-sections.homepage-builder-active #parish-gallery.gallery-scroll-track > .home-album-card{flex-basis:calc((100% - 26px)/3)}
}
