<!-- CO-APOSTOLIC LEADER BIRTHDAY -->
<?php
$bd_items = array(
 array('p','bday-feature','Happy Birthday portrait of Dr. Virgina Sealey, Co-Apostolic Leader of Sanctuary of His Presence Kingdom Ministries'),
 array('p','bday-p01','Dr. Virgina Sealey smiling with a sister at the PPD Thursday Service'),
 array('p','bday-p02','The Happy Birthday cake with candles lit'),
 array('p','bday-p03','Dr. Virgina Sealey receiving flowers and a To Mom sign'),
 array('p','bday-p04','Dr. Virgina Sealey with a sister in the sanctuary'),
 array('p','bday-p05','A birthday kiss on the cheek for Dr. Virgina Sealey'),
 array('p','bday-p06','Cutting the birthday cake at the celebration table'),
 array('p','bday-p07','Dr. Virgina Sealey with a sister after service'),
 array('p','bday-p08','The birthday cake glowing on the celebration table'),
 array('p','bday-p09','Dr. Virgina Sealey with a sister beside the flowers'),
 array('p','bday-p10','A sweet birthday kiss for our Co-Apostolic Leader'),
 array('p','bday-p11','Flowers and the To Mom sign presented to Dr. Virgina Sealey'),
 array('p','bday-p12','Dr. Virgina Sealey and a sister celebrating together'),
 array('v','bday-v01','Dancing in celebration','1:31'),
 array('v','bday-v02','A birthday toast at the table','0:38'),
 array('v','visit-v02','Rejoicing in the sanctuary','0:24'),
 array('v','bday-v03','A celebration dance','0:18'),
);
?>
<section class="wm-sec wm-bd" id="wm-birthday" aria-labelledby="wm-bd-h">
 <div class="wm-wrap">
  <button type="button" class="wm-bd-feat" data-bd="0" aria-label="Enlarge photo: <?php echo esc_attr( $bd_items[0][2] ); ?>"><img src="<?php echo esc_url( $wm . 'bday-feature.jpg' ); ?>" alt="<?php echo esc_attr( $bd_items[0][2] ); ?>" width="1672" height="941"></button>
  <div class="wm-bd-intro">
   <div class="wm-bd-a">
    <span class="wm-bd-tag">Birthday Celebration</span>
    <h2 class="wm-bd-name" id="wm-bd-h">Happy Birthday, Dr. Virgina Sealey</h2>
    <p class="wm-bd-role">Our Co-Apostolic Leader</p>
    <div class="wm-bd-facts"><span><small>Where</small>PPD Thursday Service</span><span><small>When</small>November 2026</span></div>
   </div>
   <div class="wm-bd-b">
    <p class="wm-vs-p">The PPD Thursday Service turned into a celebration of our Co-Apostolic Leader. There was cake and candles, flowers, hugs and kisses, a birthday toast and dancing before the Lord, as the house honored a mother in Zion who pours out her life for God's people.</p>
    <blockquote class="wm-vs-verse"><p>&ldquo;Her children arise up, and call her blessed&hellip; Many daughters have done virtuously, but thou excellest them all.&rdquo;</p><cite>Proverbs 31:28&ndash;29 KJV</cite></blockquote>
    <div class="wm-vs-row">
     <a class="wm-btn plum sm" href="https://wa.me/?text=<?php echo rawurlencode( "Happy Birthday, Dr. Virgina Sealey, our Co-Apostolic Leader\nPhotos and videos from her birthday celebration at the PPD Thursday Service.\n" . home_url( '/womens-ministry/' ) . '#wm-birthday' ); ?>" target="_blank" rel="noopener">Share on WhatsApp</a>
     <a class="wm-btn line sm" href="mailto:info@sohpkm.org?subject=<?php echo rawurlencode( 'Birthday blessing for Dr. Virgina Sealey' ); ?>">Send Her a Birthday Blessing</a>
    </div>
   </div>
  </div>
  <h3 class="wm-vs-sub">Celebration Moments</h3>
  <div class="wm-bd-grid">
<?php foreach ( $bd_items as $i => $it ) { if ( 'v' === $it[0] || 0 === $i ) continue;
  echo '   <button type="button" class="wm-vs-t" data-bd="' . $i . '" aria-label="' . esc_attr( 'Enlarge photo: ' . $it[2] ) . '"><img src="' . esc_url( $wm . $it[1] . '-t.jpg' ) . '" alt="" loading="lazy"></button>' . "\n"; } ?>
  </div>
  <h3 class="wm-vs-sub">Watch the Celebration</h3>
  <div class="wm-bd-vids">
<?php foreach ( $bd_items as $i => $it ) { if ( 'v' !== $it[0] ) continue;
  echo '   <button type="button" class="wm-vs-t v" data-bd="' . $i . '" aria-label="' . esc_attr( 'Play video: ' . $it[2] ) . '"><img src="' . esc_url( $wm . $it[1] . '-t.jpg' ) . '" alt="" loading="lazy"><span class="wm-vs-play" aria-hidden="true"></span><span class="wm-vs-cap">' . esc_html( $it[2] ) . ' <i>' . esc_html( $it[3] ) . '</i></span></button>' . "\n"; } ?>
  </div>
 </div>
 <div class="wm-vs-lb" id="wm-bd-lb" role="dialog" aria-modal="true" aria-label="Birthday celebration photos and videos" hidden>
  <button type="button" class="wm-vs-x" data-bd-close aria-label="Close">&times;</button>
  <button type="button" class="wm-vs-pv" data-bd-step="-1" aria-label="Previous">&#8249;</button>
  <div class="wm-vs-stage" id="wm-bd-stage"></div>
  <button type="button" class="wm-vs-nx" data-bd-step="1" aria-label="Next">&#8250;</button>
 </div>
 <script>
 (function(){
  var D=<?php echo wp_json_encode( array_map( function ( $it ) use ( $wm ) { return array( 't' => $it[0], 's' => $wm . $it[1] . ( 'v' === $it[0] ? '.mp4' : '.jpg' ), 'a' => $it[2] ); }, $bd_items ) ); ?>;
  var sec=document.getElementById('wm-birthday'),lb=document.getElementById('wm-bd-lb'),st=document.getElementById('wm-bd-stage'),cur=0,last=null,sx=null;
  if(!sec||!lb)return;
  function show(i){cur=(i+D.length)%D.length;var e=D[cur],m;st.innerHTML='';
   if(e.t==='v'){m=document.createElement('video');m.src=e.s;m.controls=true;m.autoplay=true;m.playsInline=true;m.setAttribute('playsinline','');m.setAttribute('aria-label',e.a);}
   else{m=document.createElement('img');m.src=e.s;m.alt=e.a;}
   st.appendChild(m);var c=document.createElement('p');c.className='wm-vs-lcap';c.innerHTML='<b>'+(cur+1)+' / '+D.length+'</b>';c.appendChild(document.createTextNode(e.a));st.appendChild(c);}
  function open(i){last=document.activeElement;lb.hidden=false;lb.classList.add('on');document.documentElement.style.overflow='hidden';show(i);lb.querySelector('.wm-vs-x').focus();}
  function close(){lb.classList.remove('on');lb.hidden=true;st.innerHTML='';document.documentElement.style.overflow='';if(last)last.focus();}
  sec.addEventListener('click',function(e){var b=e.target.closest('[data-bd]');if(b){e.preventDefault();open(+b.getAttribute('data-bd'));}});
  lb.addEventListener('click',function(e){if(e.target.closest('[data-bd-close]')||e.target===lb)close();var s=e.target.closest('[data-bd-step]');if(s)show(cur+(+s.getAttribute('data-bd-step')));});
  document.addEventListener('keydown',function(e){if(!lb.classList.contains('on'))return;if(e.key==='Escape')close();if(e.key==='ArrowRight')show(cur+1);if(e.key==='ArrowLeft')show(cur-1);});
  lb.addEventListener('touchstart',function(e){sx=e.touches[0].clientX;},{passive:true});
  lb.addEventListener('touchend',function(e){if(sx===null)return;var d=e.changedTouches[0].clientX-sx;if(Math.abs(d)>60)show(cur+(d<0?1:-1));sx=null;});
 })();
 </script>
</section>

