/* 508ministrytrust.com Live Worship hero: background film + animated light rays (lwh1, 2026-11-30).
   On 508ministrytrust.com nginx injects it ($sa5_head); on 508ministry.com the live-worship pages link it directly (same file). */
.lw-hero.lwh{background:#1C1915 url(/live-worship/media/lw-hero-poster.jpg?v=lwh1) 50% 46%/cover no-repeat}
.lwh-media{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:50% 46%;z-index:-4;pointer-events:none;
  -webkit-user-select:none;user-select:none;opacity:0;transition:opacity 1.2s ease}
.lwh-media.is-on{opacity:1}
.lwh-media::-webkit-media-controls{display:none!important}
/* readability mask: overall dim + left-side vignette behind the headline + edges fading into the page */
.lwh-shade{position:absolute;inset:0;z-index:-3;pointer-events:none;
  background:
    linear-gradient(180deg,#1C1915 0%,rgba(28,25,21,0) 16%,rgba(28,25,21,0) 72%,#1C1915 100%),
    linear-gradient(90deg,rgba(28,25,21,.94) 0%,rgba(28,25,21,.89) 46%,rgba(28,25,21,.66) 66%,rgba(28,25,21,.60) 100%),
    radial-gradient(120% 90% at 70% 45%,rgba(28,25,21,0) 40%,rgba(28,25,21,.55) 100%),
    rgba(28,25,21,.22)}
@media(max-width:959px){
  .lwh-shade{background:
    linear-gradient(180deg,rgba(28,25,21,.82) 0%,rgba(28,25,21,.76) 40%,rgba(28,25,21,.84) 75%,#1C1915 100%),
    rgba(28,25,21,.18)}
}
/* the card sits over the brightest part of the film: give it its own dark glass so small text keeps contrast */
.lw-hero.lwh .lw-card{background:linear-gradient(180deg,rgba(28,25,21,.72),rgba(28,25,21,.64));-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}
/* light rays over the film: slow sway + drift + shimmer, transform/opacity only */
.lw-hero.lwh .lw-rays{z-index:-1;opacity:.62;mix-blend-mode:screen;transform-origin:50% -10%;will-change:transform,opacity;
  animation:lwh-sway 38s ease-in-out infinite alternate,lwh-shimmer 9s ease-in-out infinite}
.lwh-rays2{position:absolute;inset:-6% -12% 0;z-index:-1;pointer-events:none;mix-blend-mode:screen;opacity:.45;transform-origin:50% -12%;will-change:transform,opacity;
  background:repeating-conic-gradient(from 186deg at 50% -12%,rgba(255,236,180,.09) 0deg 1.6deg,transparent 1.6deg 9deg);
  -webkit-mask-image:radial-gradient(65% 75% at 50% 0%,#000 20%,transparent 70%);mask-image:radial-gradient(65% 75% at 50% 0%,#000 20%,transparent 70%);
  animation:lwh-drift 52s ease-in-out infinite alternate,lwh-shimmer2 13s ease-in-out infinite}
@keyframes lwh-sway{0%{transform:rotate(-3deg) translateX(-1.5%)}100%{transform:rotate(3.5deg) translateX(1.5%)}}
@keyframes lwh-drift{0%{transform:rotate(2.5deg) translateX(2%) scale(1.02)}100%{transform:rotate(-2.5deg) translateX(-2%) scale(1)}}
@keyframes lwh-shimmer{0%,100%{opacity:.48}50%{opacity:.78}}
@keyframes lwh-shimmer2{0%,100%{opacity:.30}45%{opacity:.58}70%{opacity:.40}}
@media(prefers-reduced-motion:reduce){
  .lwh-media{display:none}
  .lw-hero.lwh .lw-rays,.lwh-rays2{animation:none}
}
