/* Public site visual-editor augmentations only. Original visual system untouched. */
#tfdweHeroPhoto{position:absolute;z-index:0;inset:5% 10% 12% 28%;pointer-events:none;
 background-size:cover;background-repeat:no-repeat;opacity:.26;
 -webkit-mask-image:radial-gradient(ellipse at 62% 50%,#000 12%,transparent 78%);
 mask-image:radial-gradient(ellipse at 62% 50%,#000 12%,transparent 78%);}
#ministries .ministry-card .tfd-photo-fade img,
#eventsList .event .tfd-photo-fade img{transform:scale(var(--tfdwe-photo-scale,1));opacity:var(--tfdwe-photo-opacity,1)}
@media(max-width:720px){#tfdweHeroPhoto{inset:11% 2% 14% 31%}}

/* Respect individually published opacity/scale for the next-service photograph. */
.events-section #tfdUpcomingService[data-tfdwe-service-photo]::before{
 opacity:var(--tfdwe-service-opacity, .66)!important;
 transform:scale(var(--tfdwe-service-scale,1))!important;
 transform-origin:var(--tfdwe-service-x,50%) var(--tfdwe-service-y,50%)!important;
}

/* Owner-selected layout controls, applied only after an explicit publication. */
html[data-tfdwe-layout] #ministries .ministry-card,
html[data-tfdwe-layout] .events-list .event,
html[data-tfdwe-layout] #mainLinks .link,
html[data-tfdwe-layout] #socialLinks .social-link{
 border-radius:var(--tfdwe-card-radius,16px)!important;
}
html[data-tfdwe-layout] #eventsSection{margin-top:var(--tfdwe-section-gap,14px)!important;}

/* R4: Both published mobile/desktop focal points work on existing starter photos
   AND on authorized Google Drive replacements. Original feather masks unchanged. */
#ministries .ministry-card .tfd-photo-fade img,
#eventsList .event .tfd-photo-fade img{
  object-position:var(--tfdwe-photo-x,var(--tfd-photo-x,50%)) var(--tfdwe-photo-y,var(--tfd-photo-y,50%))!important;
}
/* R4: A meeting image is the SECOND layered background behind the safe fade. */
.events-section #tfdUpcomingService[data-tfdwe-service-photo]::before{
  background-position:center center,var(--tfdwe-service-x,50%) var(--tfdwe-service-y,50%)!important;
}


/* R11: Publisher-controlled, per-device vertical placement and card gaps.
   Only active after authenticated publish; original SVG/handwriting animation untouched. */
html[data-tfdwe-responsive] .masthead::before{transform:translateY(var(--tfdwe-welcome-label-y,0px))!important;}
html[data-tfdwe-responsive] #welcomeTitle [data-tfdwe-head="lead"]{position:relative!important;top:var(--tfdwe-welcome-lead-y,0px)!important;}
html[data-tfdwe-responsive] #welcomeTitle [data-tfdwe-head="end"]{position:relative!important;top:var(--tfdwe-welcome-end-y,0px)!important;}
html[data-tfdwe-responsive] #welcomeTitle #tfdLugarHandwritten{top:var(--tfdwe-welcome-word-y,0px)!important;}
html[data-tfdwe-responsive] .tfd-welcome-values{position:relative!important;top:var(--tfdwe-welcome-values-y,0px)!important;}
html[data-tfdwe-responsive] .masthead .pastors{position:relative!important;top:var(--tfdwe-pastor-y,0px)!important;}
html[data-tfdwe-responsive] .tfdp-shortcuts .tfdp-card{position:relative;}
html[data-tfdwe-responsive] .tfdp-shortcuts .tfdp-card:nth-child(1){top:var(--tfdwe-card-1-y,0px)!important;}
html[data-tfdwe-responsive] .tfdp-shortcuts .tfdp-card:nth-child(2){top:var(--tfdwe-card-2-y,0px)!important;}
html[data-tfdwe-responsive] .tfdp-shortcuts .tfdp-card:nth-child(3){top:var(--tfdwe-card-3-y,0px)!important;}
html[data-tfdwe-responsive] .tfdp-shortcuts .tfdp-card:nth-child(4){top:var(--tfdwe-card-4-y,0px)!important;}
@media(min-width:1024px){
 html[data-tfdwe-responsive] .masthead h1{margin-bottom:calc(24px + var(--tfdwe-title-gap,0px))!important;}
 html[data-tfdwe-responsive] .tfd-welcome-values{margin-bottom:calc(18px + var(--tfdwe-values-gap,0px))!important;}
 html[data-tfdwe-responsive] .tfdp-shortcuts{margin-top:calc(2px + var(--tfdwe-cards-y,0px))!important;column-gap:var(--tfdwe-card-gap-x,16px)!important;row-gap:var(--tfdwe-card-gap-y,16px)!important;}
}
@media(max-width:1023px){
 html[data-tfdwe-responsive] .masthead h1{margin-bottom:calc(10px + var(--tfdwe-title-gap,0px))!important;}
 html[data-tfdwe-responsive] .tfd-welcome-values{margin-bottom:calc(12px + var(--tfdwe-values-gap,0px))!important;}
 html[data-tfdwe-responsive] .tfdp-shortcuts{margin-top:calc(17px + var(--tfdwe-cards-y,0px))!important;column-gap:var(--tfdwe-card-gap-x,11px)!important;row-gap:var(--tfdwe-card-gap-y,11px)!important;}
}

/* R18.1: lazy gallery and on-demand video; no additional script dependency. */
.tfd-r181-gallery{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:14px}
.tfd-r181-gallery:empty{display:none}
.tfd-r181-gallery>div{aspect-ratio:4/3;overflow:hidden;border-radius:12px;background:#e8edf0}
.tfd-r181-gallery img{display:block;width:100%;height:100%;object-fit:cover}
.tfd-r181-play{font:inherit;color:#fff;background:#1a3143;border:0;border-radius:10px;padding:12px 18px;cursor:pointer}
.tfd-r181-play:focus-visible{outline:3px solid #82bfe1;outline-offset:3px}
.tfd-r181-video{display:block;width:100%;aspect-ratio:16/9;height:auto;border:0;border-radius:12px;margin-top:12px}
@media(max-width:420px){.tfd-r181-gallery{gap:8px}}
