/* ============================================================
   ACTIVITY PAGE  (single-service_and_activity.php)
   Extracted from monolithic style.css — lines ~772-923
   ============================================================ */

/* v7.55.72 — service-only background tint.
   When the cp_activity is tagged as a service, flip the page
   surface to cream (var(--cr)) so the warmer brand tone reads
   on Sunday-service pages without affecting other activities
   (Bible study, Prayer Course, etc.). Body class is added in
   functions.php → body_class filter. */
body.single-cp_activity.is-service { background: var(--cr, #F5F0E8); }
body.single-cp_activity.is-service .site-main,
body.single-cp_activity.is-service main,
body.single-cp_activity.is-service .page { background: var(--cr, #F5F0E8); }

/* ── Page hero ─────────────────────────────────────────────── */
.page-hero { background: var(--pb); padding: 64px 48px 56px; position: relative; overflow: hidden; }
.page-hero::before { content: ''; position: absolute; top: -80px; right: -80px; width: 360px; height: 360px; border-radius: 14px; background: var(--py); opacity: .06; transform: rotate(45deg); }
.page-hero::after  { content: ''; position: absolute; bottom: -60px; left: -60px; width: 220px; height: 220px; border-radius: 10px; background: var(--db); opacity: .5; transform: rotate(45deg); }
.ph-dots { position: absolute; top: 20px; right: 48px; display: grid; grid-template-columns: repeat(4,8px); gap: 6px; opacity: .15; pointer-events: none; z-index: 0; }
.ph-dots span { display: block; width: 4px; height: 4px; background: var(--wh); border-radius: 50%; }
.ph-inner { max-width: 1320px; margin: 0 auto; position: relative; z-index: 1; display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 40px; }
.page-hero-inner { max-width: 1320px; margin: 0 auto; position: relative; z-index: 1; display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 40px; }
.ph-eyebrow { font-family: var(--fb); font-size: .72rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: rgba(228,191,69,.75); margin-bottom: 10px; }
.ph-title   { font-family: var(--ft); font-size: clamp(3rem,7vw,6rem); text-transform: uppercase; letter-spacing: 1px; line-height: .9; color: var(--wh); }
.ph-ksh     { font-family: var(--fs); font-size: clamp(1.2rem,2.5vw,2rem); color: var(--py); transform: rotate(-6deg); transform-origin: left bottom; margin-top: -.17em; margin-left: .06em; display: inline-block; }
.ph-sub     { font-family: var(--fs); font-size: clamp(1.2rem,2.5vw,2rem); color: var(--py); transform: rotate(-6deg); transform-origin: left bottom; margin-top: -.17em; margin-left: .06em; display: inline-block; }
.ph-body    { margin-top: 20px; font-family: var(--fb); font-size: .95rem; color: rgba(255,255,255,.65); max-width: 560px; line-height: 1.75; }
.ph-meta    { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.ph-actions { display: flex; flex-direction: column; gap: 12px; align-items: flex-end; min-width: 220px; }

/* ── Meta pill with icon/text structure ────────────────────── */
.meta-pill .pill-icon { width: 32px; height: 32px; border-radius: 8px; background: rgba(255,255,255,.08); display: flex; align-items: center; justify-content: center; font-size: .9rem; flex-shrink: 0; }
.meta-pill .pill-text { display: flex; flex-direction: column; }
.meta-pill .pill-label { font-size: .62rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: rgba(228,191,69,.7); margin-bottom: 1px; }
.meta-pill .pill-value { font-size: .82rem; font-weight: 700; color: var(--wh); }

/* ── Info chips (hero meta) ────────────────────────────────── */
.info-chips { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 20px; align-items: flex-start; }
.ichip { display: inline-flex; align-items: center; gap: 8px; background: transparent; color: rgba(255,255,255,.85); padding: 0; border: none; }
.ichip .ic-icon { width: 32px; height: 32px; border-radius: 8px; background: rgba(255,255,255,.1); display: flex; align-items: center; justify-content: center; font-size: .9rem; flex-shrink: 0; }
.ichip .ic-text { display: flex; flex-direction: column; line-height: 1.2; }
.ichip .ic-label { font-size: .6rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: rgba(228,191,69,.7); margin-bottom: 1px; }
.ichip .ic-value { font-size: .82rem; font-weight: 600; color: var(--wh); }

/* ── Hashtag strip ─────────────────────────────────────────── */
.hashtag-strip { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }

/* ── Location strip ────────────────────────────────────────── */
.location-strip { position: relative; height: 320px; overflow: hidden; background: var(--db); border-radius: 0; }
.location-strip > img { position: absolute; top: -20%; left: 0; width: 100%; height: 140%; object-fit: cover; object-position: center 40%; display: block; will-change: transform; }
.location-overlay { position: absolute; inset: 0; z-index: 1; background: linear-gradient(to right, rgba(30,58,82,.75) 0%, rgba(30,58,82,.1) 60%, transparent 100%); }
.location-caption { position: absolute; bottom: 0; left: 0; right: 0; z-index: 2; padding: 32px 48px; display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; }
.location-info h2, .location-info h3 { font-family: var(--ft); font-size: 1.6rem; text-transform: uppercase; letter-spacing: .5px; color: var(--wh); line-height: 1; }
.location-info p { font-family: var(--fb); font-size: .82rem; color: rgba(255,255,255,.6); margin-top: 4px; }
.w3w-badge { display: inline-flex; align-items: center; gap: 8px; background: rgba(0,0,0,.5); backdrop-filter: blur(8px); border: 1px solid rgba(225,60,20,.5); border-radius: 100px; padding: 6px 14px 6px 7px; text-decoration: none; transition: all .25s; }
.w3w-badge:hover { background: rgba(225,60,20,.85); }
.w3w-icon { background: #e13c14; color: #fff; font-family: var(--fb); font-size: .65rem; font-weight: 900; padding: 3px 6px; border-radius: 50px; line-height: 1; }
.w3w-addr { font-family: var(--fb); font-size: .76rem; font-weight: 700; color: #fff; }

/* Banded blocks — now in components/banded-blocks.css (loaded globally) */

/* ── Content block headings v3 ─────────────────────────────── */
.cb-h { font-family: var(--ft); font-size: 2rem; text-transform: uppercase; letter-spacing: .5px; color: var(--pb); margin-bottom: 6px; }
.cb-ksh { font-family: var(--fs); font-size: 1.1rem; color: var(--py); transform: rotate(-6deg); transform-origin: left bottom; margin-top: -.14em; margin-left: .06em; display: inline-block; margin-bottom: 20px; }

/* ── Gallery grid v3 ───────────────────────────────────────── */
.g-img { aspect-ratio: 4/3; overflow: hidden; border-radius: 8px; background: var(--cr); }
.g-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.g-img:hover img { transform: scale(1.05); }
.g-img-wide { grid-column: span 2; aspect-ratio: 16/7; }

/* ── Gallery strip ─────────────────────────────────────────── */
.gallery-strip { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; margin-top: 20px; }
.g-img-ph { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 6px; color: rgba(52,88,124,.3); }
.g-img-ph span { font-family: var(--fb); font-size: .68rem; text-transform: uppercase; letter-spacing: .1em; }

/* ── Page body (two-column layout) ─────────────────────────── */
.page-body { max-width: 1320px; margin: 0 auto; padding: 56px 48px; display: grid; grid-template-columns: 1fr 360px; gap: 48px; align-items: start; }
.main-col  { display: flex; flex-direction: column; gap: 40px; }

/* ── Content blocks ────────────────────────────────────────── */
.content-block { background: var(--wh); border-radius: 14px; padding: 36px 40px; box-shadow: var(--sh-sm); }
.content-block h2 { font-family: var(--ft); font-size: 2rem; text-transform: uppercase; letter-spacing: .5px; color: var(--pb); margin-bottom: 6px; }
.content-block .ksh { font-family: var(--fs); font-size: 1.1rem; color: var(--py); transform: rotate(-6deg); transform-origin: left bottom; margin-top: -.14em; margin-left: .06em; display: inline-block; margin-bottom: 20px; }
.content-block p { font-family: var(--fb); font-size: .92rem; color: #444; line-height: 1.78; margin-bottom: 14px; }
.content-block p:last-child { margin-bottom: 0; }

/* ── Gallery block ─────────────────────────────────────────── */
.gallery-block { background: var(--wh); border-radius: 14px; overflow: hidden; box-shadow: var(--sh-sm); }
.gallery-header { padding: 24px 32px 20px; border-bottom: 1px solid rgba(52,88,124,.08); }
.gallery-header h2 { font-family: var(--ft); font-size: 1.6rem; text-transform: uppercase; letter-spacing: .5px; color: var(--pb); }
.gallery-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; }
.gallery-img { aspect-ratio: 4/3; overflow: hidden; background: var(--cr); }
.gallery-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.gallery-img:hover img { transform: scale(1.05); }
.gallery-img.tall { grid-row: span 2; aspect-ratio: auto; }
.gallery-img.tall img { height: 100%; }

/* ── Flyer block ───────────────────────────────────────────── */
.flyer-block { background: var(--wh); border-radius: 14px; overflow: hidden; box-shadow: var(--sh-sm); }
.flyer-header { background: var(--pb); padding: 22px 32px; display: flex; align-items: center; justify-content: space-between; }
.flyer-header h2, .flyer-header h3 { font-family: var(--ft); font-size: 1.5rem; text-transform: uppercase; letter-spacing: .5px; color: var(--wh); }
.flyer-header span { font-family: var(--fs); font-size: 1rem; color: var(--py); transform: rotate(-6deg); display: inline-block; }
.flyer-inner { padding: 28px 32px; display: grid; grid-template-columns: auto 1fr; gap: 28px; align-items: start; }
.flyer-img { width: 220px; border-radius: 10px; overflow: hidden; box-shadow: var(--sh-md); }
.flyer-img img { width: 100%; display: block; }
.flyer-actions { display: flex; flex-direction: column; gap: 14px; }
.flyer-actions h3, .flyer-actions h4 { font-family: var(--ft); font-size: 1.4rem; text-transform: uppercase; color: var(--pb); margin-bottom: 4px; }
.flyer-actions p  { font-family: var(--fb); font-size: .85rem; color: #555; line-height: 1.65; }

/* Honeypot — visually hidden but kept reachable in the DOM so bots
   that read the markup still find it and fill it. */
.cp-contact-form__hp {
    position: absolute !important;
    left: -10000px !important;
    top: auto !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

/* Invite-a-friend result banner (?invite=sent|error|... on redirect back) */
.invite-status { font-family: var(--fb); font-size: .82rem; font-weight: 700; padding: 10px 14px; border-radius: 8px; margin: 0 0 10px; }
.invite-status--ok    { background: rgba(52,88,124,.08); color: var(--pb); }
.invite-status--error { background: rgba(200,60,60,.08); color: #a33; }

/* ── Sidebar ───────────────────────────────────────────────── */
/* Sticky: stays in view while the (longer) main column scrolls past.
   top clears the sticky nav (68px scrolled + 20px breathing room).
   No max-height — let the sidebar be its natural height. */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 24px;
    position: sticky;
    top: calc(var(--nav-h-scroll) + 20px);
}
.info-card { background: var(--wh); border-radius: 14px; overflow: hidden; box-shadow: var(--sh-sm); border-top: 4px solid var(--py); }
.info-card-head { background: var(--pb); padding: 18px 22px; }
.info-card-head h2, .info-card-head h3 { font-family: var(--ft); font-size: 1.3rem; text-transform: uppercase; letter-spacing: .5px; color: var(--wh); }
.info-rows { padding: 4px 0; }
.info-row { display: flex; gap: 14px; align-items: flex-start; padding: 16px 22px; border-bottom: 1px solid rgba(52,88,124,.07); }
.info-row:last-child { border-bottom: none; }
.info-icon { font-size: 1.2rem; flex-shrink: 0; margin-top: 1px; }
.info-row-text { flex: 1; }
.info-label { font-family: var(--fb); font-size: .68rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--sb); margin-bottom: 3px; }
.info-value { font-family: var(--fb); font-size: .88rem; color: var(--ch); line-height: 1.5; }
.info-value strong { color: var(--pb); font-weight: 700; }

/* ── Leader block (main column) ────────────────────────────── */
.leader-block { background: var(--wh); border-radius: 14px; overflow: hidden; box-shadow: var(--sh-sm); }
.leader-header { background: var(--pb); padding: 20px 28px; display: flex; align-items: center; justify-content: space-between; }
.leader-header h2, .leader-header h3 { font-family: var(--ft); font-size: 1.3rem; text-transform: uppercase; letter-spacing: .5px; color: var(--wh); }
/* .card-header-ksh — now in components/banded-blocks.css */
.leader-profile-row { display: flex; gap: 20px; align-items: center; padding: 24px 28px; }
.leader-avatar-wrap { position: relative; flex-shrink: 0; }
.leader-avatar { width: 80px; height: 80px; border-radius: 50%; object-fit: cover; border: 3px solid var(--py); display: block; }
.leader-avatar-ph { width: 80px; height: 80px; border-radius: 50%; background: linear-gradient(135deg,var(--pb),var(--sb)); display: flex; align-items: center; justify-content: center; font-family: var(--ft); font-size: 2rem; color: var(--wh); border: 3px solid var(--py); flex-shrink: 0; }
.leader-details h3, .leader-details h4 { font-family: var(--ft); font-size: 1.35rem; text-transform: uppercase; letter-spacing: .5px; color: var(--pb); line-height: 1; }
.leader-role { font-family: var(--fs); font-size: .95rem; color: var(--py); display: block; margin-top: 3px; }
.leader-email { font-family: var(--fb); font-size: .8rem; color: var(--sb); display: block; margin-top: 6px; text-decoration: none; }
.leader-email:hover { color: var(--pb); }
.leader-bio-preview { padding: 0 28px 24px; font-family: var(--fb); font-size: .86rem; color: #555; line-height: 1.7; border-top: 1px solid rgba(52,88,124,.08); padding-top: 16px; }
.leader-bio-preview p { margin: 0; }
.leader-footer { padding: 0 28px 24px; display: flex; gap: 12px; flex-wrap: wrap; }
.leader-bio { padding: 0 22px 22px; font-family: var(--fb); font-size: .82rem; color: #555; line-height: 1.65; border-top: 1px solid rgba(52,88,124,.08); padding-top: 14px; }

/* ── Dates card ────────────────────────────────────────────── */
.dates-card { background: var(--wh); border-radius: 14px; overflow: hidden; box-shadow: var(--sh-sm); }
.dates-head { background: var(--db); padding: 16px 22px; }
.dates-head h2, .dates-head h3 { font-family: var(--ft); font-size: 1.1rem; text-transform: uppercase; letter-spacing: .5px; color: var(--py); }
.date-item { display: flex; gap: 14px; align-items: center; padding: 14px 22px; border-bottom: 1px solid rgba(52,88,124,.07); }
.date-item:last-child { border-bottom: none; }
.date-badge { background: var(--pb); color: var(--wh); border-radius: 8px; padding: 6px 10px; text-align: center; min-width: 46px; flex-shrink: 0; }
.date-badge .dd { font-family: var(--ft); font-size: 1.5rem; color: var(--py); line-height: 1; letter-spacing: 1px; }
.date-badge .mm { font-family: var(--fb); font-size: .62rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.65); margin-top: 1px; }
.date-text { font-family: var(--fb); font-size: .82rem; color: var(--ch); line-height: 1.4; }
.date-text strong { color: var(--pb); font-size: .78rem; }
/* Cancelled occurrence — reuses the homepage CS-card cancelled treatment
   (same #9B2335) so cancellations read consistently across the site. */
.date-item.is-cancelled .date-badge { opacity: .4; }
.date-item.is-cancelled .date-text strong { text-decoration: line-through; text-decoration-color: rgba(52,88,124,.45); }
.cs-cancelled-badge { display: inline-flex; align-items: center; margin-top: 5px; font-family: var(--fb); font-size: .58rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #9B2335; background: rgba(155,35,53,.08); border: 1px solid rgba(155,35,53,.30); border-radius: 999px; padding: 2px 8px; width: max-content; }
.cs-return-text { display: block; margin-top: 3px; font-family: var(--fb); font-size: .72rem; font-weight: 700; color: var(--pb); }

/* ── Sidebar CTA ───────────────────────────────────────────── */
.sidebar-cta { background: var(--py); border-radius: 14px; padding: 24px; text-align: center; border-top: 4px solid var(--db); }
.sidebar-cta h2, .sidebar-cta h3 { font-family: var(--ft); font-size: 1.3rem; text-transform: uppercase; color: var(--db); margin-bottom: 8px; }
.sidebar-cta p  { font-family: var(--fb); font-size: .82rem; color: rgba(30,58,82,.75); margin-bottom: 16px; line-height: 1.6; }

/* ── Serve intro / CTA (within serve-block) ───────────────── */
.serve-intro { padding: 20px 28px 16px; font-family: var(--fb); font-size: .86rem; color: #555; line-height: 1.75; border-bottom: 1px solid rgba(52,88,124,.08); }
.serve-cta { padding: 18px 28px; background: var(--cr); border-top: 1px solid rgba(52,88,124,.08); text-align: center; }
.serve-cta p { font-family: var(--fb); font-size: .8rem; color: var(--sb); margin-bottom: 10px; }

/* ── Invite form ──────────────────────────────────────────── */
.invite-form { background: var(--cr); border-radius: 12px; padding: 18px; margin-top: 14px; }
.invite-form h4, .invite-form h5 { font-family: var(--ft); font-size: 1.05rem; text-transform: uppercase; color: var(--pb); margin-bottom: 12px; }
.invite-form .form-row { margin-bottom: 10px; display: flex; gap: 8px; }
.invite-form .form-field { flex: 1; }
.invite-form input, .invite-form textarea { flex: 1; font-family: var(--fb); font-size: .82rem; border: 1px solid rgba(52,88,124,.15); border-radius: 8px; padding: 10px 14px; background: var(--wh); color: var(--ch); }
.invite-form textarea { resize: vertical; }
.invite-note { font-family: var(--fb); font-size: .72rem; color: #888; margin-top: 8px; line-height: 1.55; }

/* ── Related activities ────────────────────────────────────── */
.related-sec { background: var(--db); padding: 72px 48px; position: relative; overflow: hidden; }
.related-sec::before { content: ''; position: absolute; top: -60px; right: -60px; width: 200px; height: 200px; border-radius: 14px; background: var(--pb); opacity: .35; transform: rotate(45deg); }
.related-inner { max-width: 1320px; margin: 0 auto; position: relative; z-index: 1; }
.related-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; margin-top: 36px; }
.rel-card { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.09); border-radius: 14px; overflow: hidden; transition: all .3s ease; text-decoration: none; display: flex; flex-direction: column; }
.rel-card:hover { transform: translateY(-5px); border-color: rgba(228,191,69,.4); box-shadow: 0 16px 40px rgba(0,0,0,.25); }
.rel-img { aspect-ratio: 3/4; overflow: hidden; }
.rel-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease; }
.rel-card:hover .rel-img img { transform: scale(1.04); }
.rel-info { padding: 16px 18px 20px; }
.rel-info h3, .rel-info h4 { font-family: var(--ft); font-size: 1.05rem; text-transform: uppercase; letter-spacing: .5px; color: var(--wh); margin-bottom: 4px; }
.rel-info p  { font-family: var(--fb); font-size: .76rem; color: rgba(255,255,255,.45); margin-bottom: 4px; }
.rel-info span { font-family: var(--fb); font-size: .72rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--py); }

/* ── Breadcrumb ────────────────────────────────────────────── */
.breadcrumb { background: var(--wh); padding: 14px 48px; border-bottom: 1px solid rgba(52,88,124,.1); font-family: var(--fb); font-size: .78rem; color: var(--sb); }
.breadcrumb a { color: var(--sb); text-decoration: none; transition: color .2s; }
.breadcrumb a:hover { color: var(--pb); }
.breadcrumb span { color: rgba(52,88,124,.4); margin: 0 8px; }


/* ============================================================
   RESPONSIVE — Activity page
   ============================================================ */

/* ── <= 1100px  (wide tablet / laptop) ──────────────────── */
@media (max-width: 1100px) {
  .page-body { padding: 48px 28px; gap: 28px; }
  .serve-header, .serve-intro, .ots-item, .serve-cta { padding-left: 24px; padding-right: 24px; }
}

/* ── <= 900px  (tablet portrait / large phone landscape) ──── */
@media (max-width: 900px) {
  .page-body { grid-template-columns: 1fr; padding: 40px 24px; }
  /* Single-column layout — sidebar flows naturally below main content, no sticky needed */
  .sidebar { position: static; }
  .page-hero-inner { grid-template-columns: 1fr; }
  .ph-actions { align-items: flex-start; flex-direction: row; flex-wrap: wrap; }
  .related-grid { grid-template-columns: 1fr 1fr; }
  .serve-header, .serve-intro, .ots-item, .serve-cta { padding-left: 18px; padding-right: 18px; }
}

/* ── <= 768px  (mobile landscape / small tablet) ──────────── */
@media (max-width: 768px) {
  .page-hero { padding: 40px 20px; }
  .ph-title { font-size: clamp(2.4rem,9vw,4.5rem); }
  .ph-sub { font-size: clamp(.9rem,3.5vw,1.4rem); }
  .ph-meta { display: none; }
  .hashtag-strip { gap: 5px; margin-top: 12px; }
  .htag { font-size: .68rem; }

  /* Activity page */
  .flyer-inner { grid-template-columns: 1fr; }
  .flyer-img { width: 100%; }
  .gallery-grid { grid-template-columns: 1fr; }

  /* Sidebar cards */
  .info-card, .leader-block, .dates-card, .sidebar-cta { border-radius: 10px; }

  /* Leader block */
  .leader-profile-row { flex-direction: column; align-items: flex-start; gap: 12px; }
  .leader-footer { flex-wrap: wrap; gap: 8px; }

  /* Activity chips / location / gallery */
  .info-chips { display: none; }
  .location-strip { height: 200px; }
  .location-caption { padding: 14px 20px; flex-direction: column; align-items: flex-start; gap: 8px; }
  .location-info h2, .location-info h3 { font-size: 1.4rem; }
  .w3w-badge { padding: 6px 12px 6px 6px; }
  .w3w-addr { font-size: .7rem; }
  .gallery-strip { grid-template-columns: 1fr 1fr; }
  .g-img.wide { grid-column: span 2; }
}

/* ── <= 480px  (small phones) ──────────────────────────────── */
@media (max-width: 480px) {
  .page-hero { padding: 32px 16px; }
  .ph-title { font-size: clamp(2rem,10vw,3.5rem); }
  .ph-actions { flex-direction: column; align-items: stretch; }
  .related-grid { grid-template-columns: 1fr; }

  /* Breadcrumb */
  .breadcrumb { padding: 10px 16px; font-size: .72rem; }

  .page-body { padding: 20px 16px; }
  .sidebar { display: flex; flex-direction: column; gap: 18px; }

  .serve-header, .serve-intro, .ots-item, .serve-cta { padding-left: 14px; padding-right: 14px; }

  /* Invite form */
  .invite-form .form-row { flex-direction: column; }

  /* Leader */
  .leader-avatar-ph, .leader-avatar { width: 64px; height: 64px; }
}

/* ============================================================
   v7.55.12 — single-cp_activity sections on white background
   ============================================================
   Scoped to body.single-cp_activity so only Service / Activity
   pages flip from the global cream body to white. Every other
   page (homepage, archives, other CPTs) keeps its existing
   cream body background.
   ============================================================ */
body.single-cp_activity { background: var(--wh); }

/* Microsoft Forms embed in the Sign Up / Invite box (e.g. Big Questions
   Evening). Forms can't tell the page its height (cross-origin, no resize
   messages), so the box can't fit the content exactly — fill the width and
   most of the screen instead of the pasted 640×480, so the form scrolls in a
   big frame rather than a small one. !important beats the size Forms puts
   in the pasted embed code (width/height attributes + inline max-height). */
.invite-form-embed iframe[src*="forms.cloud.microsoft"],
.invite-form-embed iframe[src*="forms.office.com"] {
  display: block;
  width: 100% !important;
  height: clamp(640px, 85vh, 1100px) !important;
  max-height: none !important;
  border: 0;
}

/* Hero video band — edge-to-edge video between the page banner and the
   location strip (activity "Hero Video" field). Full page width at the
   clip's own aspect ratio, so nothing is cropped or letterboxed. */
.activity-video-band { background: var(--db); }
.activity-video {
  display: block;
  width: 100%;
  height: auto;
  background: var(--db);
}

/* Gallery — click a photo to open it full-size (assets/js/gallery-lightbox.js) */
.g-img-open {
  display: block; width: 100%; height: 100%;
  padding: 0; border: 0; background: none;
  cursor: zoom-in;
}
.g-img-open:focus-visible { outline: 3px solid var(--py); outline-offset: -3px; }
.g-img-open img { width: 100%; height: 100%; object-fit: cover; display: block; }

.g-lightbox {
  width: 100vw; height: 100vh; max-width: none; max-height: none;
  margin: 0; padding: 0; border: 0;
  background: transparent;
  display: none;
  align-items: center; justify-content: center;
}
.g-lightbox[open] { display: flex; }
.g-lightbox::backdrop { background: rgba(20, 38, 54, .92); }
.g-lb-figure {
  margin: 0; max-width: calc(100vw - 140px); max-height: calc(100vh - 80px);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  pointer-events: none;
}
.g-lb-img {
  max-width: 100%; max-height: calc(100vh - 120px);
  object-fit: contain; border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0,0,0,.45);
  pointer-events: auto;
}
.g-lb-cap { font-family: var(--fb); font-size: .85rem; color: rgba(255,255,255,.8); text-align: center; }
.g-lb-cap:empty { display: none; }
.g-lb-close, .g-lb-nav {
  position: fixed; border: 0; cursor: pointer;
  background: rgba(255,255,255,.12); color: var(--wh);
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%; transition: background .2s;
}
.g-lb-close:hover, .g-lb-nav:hover { background: var(--py); color: var(--db); }
.g-lb-close:focus-visible, .g-lb-nav:focus-visible { outline: 3px solid var(--py); outline-offset: 2px; }
.g-lb-close { top: 18px; right: 18px; width: 44px; height: 44px; font-size: 1.8rem; line-height: 1; }
.g-lb-nav { top: 50%; transform: translateY(-50%); width: 48px; height: 48px; font-size: 2rem; line-height: 1; }
.g-lb-prev { left: 18px; }
.g-lb-next { right: 18px; }
.g-lb-nav[hidden] { display: none; }
.g-lb-count { position: fixed; bottom: 18px; left: 50%; transform: translateX(-50%); font-family: var(--fb); font-size: .8rem; color: rgba(255,255,255,.7); }
@media (max-width: 640px) {
  .g-lb-figure { max-width: calc(100vw - 24px); }
  .g-lb-nav { top: auto; bottom: 10px; transform: none; width: 44px; height: 44px; }
  .g-lb-prev { left: 12px; } .g-lb-next { right: 12px; }
}

/* Past dated event — notice under the banner (single-cp_activity.php) */
.activity-past-notice {
  background: var(--cr);
  border-bottom: 3px solid var(--py);
  padding: 14px 24px;
  text-align: center;
}
.activity-past-notice p { margin: 0; font-family: var(--fb); font-weight: 600; color: var(--db); }
.activity-past-notice a { color: var(--pb); margin-left: 6px; }
