/*
 * GHH Reels — Elementor widget. Cinematic web reels section + lightbox
 * player + in-page donate popup. Recreated from "Reels Section (Web) v2".
 *
 * Every rule is scoped under .ghhr / .ghhr-lb and the theme-fought
 * properties carry !important — the host theme aggressively resets
 * `button {}` (padding, radius, background, shadow) and `h2 {}` (font),
 * with its own !important, so the widget must out-specify it to render
 * faithfully. Colours come from CSS vars set inline by the widget.
 */

.ghhr, .ghhr * { box-sizing: border-box; }

/* Hard reset of the host theme's button/anchor styling inside the widget,
   then each component re-applies its own look below at higher specificity. */
.ghhr button, .ghhr a.ghhr-watchmore,
.ghhr-lb button {
    margin: 0; padding: 0; border: 0; background: none; box-shadow: none;
    -webkit-appearance: none; appearance: none; min-height: 0;
    line-height: normal; text-transform: none; letter-spacing: normal;
    font-family: 'Manrope', -apple-system, system-ui, sans-serif;
}
/* Force Manrope over the theme's heading/body fonts. */
.ghhr .ghhr-title, .ghhr .ghhr-eyebrow, .ghhr .ghhr-sub,
.ghhr .ghhr-card-cap, .ghhr .ghhr-card-dur, .ghhr .ghhr-watchmore,
.ghhr-lb, .ghhr-lb * {
    font-family: 'Manrope', -apple-system, system-ui, sans-serif !important;
}

.ghhr {
    --ghhr-accent: #0EA5E9;
    --ghhr-accent2: #F4A621;
    --ghhr-text: #0B1220;
    --ghhr-muted: #5c6675;
    --ghhr-cw: 244px;
    --ghhr-ch: 432px;
    --ghhr-cr: 22px;
    position: relative;
    /* overflow visible so the rail can bleed to the viewport's right
       edge (the 6th card peeks). No background or padding here — both
       are left to Elementor's own section/widget controls. */
    overflow: visible;
    -webkit-font-smoothing: antialiased;
}
/* Full width — the section width is left to Elementor's own controls. */
.ghhr .ghhr-inner { position: relative; max-width: none; margin: 0; }

/* header */
.ghhr .ghhr-head { max-width: 700px; position: relative; z-index: 1; }
.ghhr .ghhr-eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 12px; font-weight: 800; letter-spacing: 2px !important; text-transform: uppercase !important;
    color: var(--ghhr-accent); margin: 0 0 12px;
}
.ghhr .ghhr-pulse { width: 7px; height: 7px; border-radius: 999px; background: #22C55E; animation: ghhr-pulse 1.6s infinite; flex-shrink: 0; }
@keyframes ghhr-pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.35; } }
.ghhr .ghhr-title { font-size: 42px; font-weight: 800; letter-spacing: -1.2px; color: var(--ghhr-text); margin: 0 !important; padding: 0; line-height: 1.02; }
.ghhr .ghhr-grad {
    background: linear-gradient(90deg, var(--ghhr-accent), var(--ghhr-accent2));
    -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent;
}
.ghhr .ghhr-sub { font-size: 16px; color: var(--ghhr-muted); font-weight: 500; margin: 12px 0 0; line-height: 1.45; }

/* rail — left edge stays aligned to the content; right edge bleeds to
   the viewport edge so cards run off the right (the next card peeks). */
.ghhr .ghhr-rail {
    display: flex; align-items: flex-start; gap: 20px; overflow-x: auto;
    scrollbar-width: none; scroll-snap-type: x mandatory;
    margin-top: 28px; padding-bottom: 6px; position: relative; z-index: 1; list-style: none;
    margin-right: calc(50% - 50vw); padding-right: 0;
}
.ghhr .ghhr-rail::-webkit-scrollbar { display: none; }

/* card */
.ghhr .ghhr-card {
    flex-shrink: 0 !important; width: var(--ghhr-cw); height: var(--ghhr-ch);
    border-radius: var(--ghhr-cr) !important; position: relative; overflow: hidden !important;
    border: 0 !important; padding: 0 !important; cursor: pointer; text-align: left;
    scroll-snap-align: start; background: #000 !important; display: block;
    box-shadow: none !important;
    transition: transform .2s;
}
.ghhr .ghhr-card:hover { transform: translateY(-2px); }
.ghhr .ghhr-card-media { position: absolute; inset: 0; overflow: hidden; }
.ghhr .ghhr-card-img { position: absolute !important; inset: 0; width: 100% !important; height: 100% !important;
    max-width: none !important; object-fit: cover; object-position: center; transition: transform 6s ease-out; border-radius: 0 !important; }
.ghhr .ghhr-card:hover .ghhr-card-img { transform: scale(1.08); }
/* On-demand hover/in-view preview video, fades in over the poster. */
.ghhr .ghhr-card-prev { position: absolute; inset: 0; width: 100% !important; height: 100% !important; max-width: none !important;
    object-fit: cover; object-position: center; background: #000; border-radius: 0 !important;
    opacity: 0; transition: opacity .25s ease; pointer-events: none; z-index: 1; }
.ghhr .ghhr-card-prev.is-on { opacity: 1; }
.ghhr .ghhr-card-scrim { position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0) 30%, rgba(0,0,0,0) 46%, rgba(0,0,0,0.86) 100%); }
.ghhr .ghhr-card-dur {
    position: absolute; top: 14px; right: 14px; color: #fff; font-size: 11px; font-weight: 700;
    background: rgba(0,0,0,0.42); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
    border-radius: 999px; padding: 4px 9px; line-height: 1.3;
}
.ghhr .ghhr-card-foot { position: absolute; left: 14px; right: 14px; bottom: 14px; display: flex; flex-direction: column; gap: 6px; }
.ghhr .ghhr-card-cap {
    color: #fff; font-size: 13.5px; font-weight: 700; line-height: 1.35;
    display: -webkit-box; -webkit-line-clamp: var(--ghhr-title-lines, 1); -webkit-box-orient: vertical; overflow: hidden;
    text-shadow: 0 1px 4px rgba(0,0,0,0.55);
}
.ghhr .ghhr-card-views {
    display: inline-flex; align-items: center; gap: 5px;
    color: rgba(255,255,255,0.95); font-size: 12px; font-weight: 700;
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}
.ghhr .ghhr-card-views svg { flex-shrink: 0; }
/* thin appeal-progress bar (opt-in via the widget control) */
.ghhr .ghhr-card-prog { display: block; height: 4px; border-radius: 999px; background: rgba(255,255,255,0.28); overflow: hidden; margin-top: 2px; }
.ghhr .ghhr-card-prog-fill { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--ghhr-accent), var(--ghhr-accent2)); }

/* controls */
.ghhr .ghhr-controls { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 22px; position: relative; z-index: 1; }
.ghhr .ghhr-watchmore {
    display: inline-flex; align-items: center; gap: 6px; text-decoration: none !important;
    background: var(--ghhr-accent) !important; color: #fff !important; font-weight: 800; font-size: 14.5px;
    cursor: pointer; border-radius: 999px !important; padding: 13px 24px !important; border: 0 !important;
    box-shadow: none !important;
    transition: filter .15s;
}
.ghhr .ghhr-watchmore:hover { filter: brightness(1.07); }
.ghhr .ghhr-arrows { display: flex; align-items: center; gap: 12px; }
.ghhr .ghhr-arrow {
    width: 46px !important; height: 46px !important; border-radius: 999px !important; cursor: pointer;
    background: #fff !important; border: 1px solid rgba(11,18,32,0.12) !important; color: var(--ghhr-text) !important;
    display: flex !important; align-items: center; justify-content: center; padding: 0 !important;
    box-shadow: none !important; transition: transform .15s, filter .15s;
}
.ghhr .ghhr-arrow:hover { filter: brightness(0.97); transform: translateY(-1px); }
.ghhr-dark .ghhr-arrow { background: rgba(255,255,255,0.08) !important; border-color: rgba(255,255,255,0.18) !important; color: #fff !important; box-shadow: none !important; }

/* ── Lightbox (built by JS, appended to <body>) ─────────────────── */
.ghhr-lb {
    position: fixed; inset: 0; z-index: 999999; background: rgba(8,10,14,0.78);
    -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
    display: flex; align-items: center; justify-content: center;
    opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .2s, visibility .2s;
}
.ghhr-lb.is-open { opacity: 1; visibility: visible; pointer-events: auto; }
.ghhr-lb * { box-sizing: border-box; }
.ghhr-lb .ghhr-lb-panel { display: flex; border-radius: 22px; overflow: hidden; background: #000; box-shadow: 0 40px 90px rgba(0,0,0,0.5); max-width: 96vw; }
.ghhr-lb .ghhr-lb-video { position: relative; width: 372px; height: 662px; max-height: 88vh; background: #000; flex-shrink: 0; }
.ghhr-lb .ghhr-lb-v {
    width: 100% !important; height: 100% !important; max-width: none !important;
    object-fit: cover; object-position: center; display: block; background: #000;
    border-radius: 0 !important; margin: 0 !important; padding: 0 !important;
}
.ghhr-lb .ghhr-lb-vscrim { position: absolute; inset: 0; pointer-events: none;
    background: linear-gradient(180deg, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0) 22%, rgba(0,0,0,0) 62%, rgba(0,0,0,0.55) 100%); }
.ghhr-lb .ghhr-lb-spinner { position: absolute; top: 50%; left: 50%; width: 46px; height: 46px; margin: -23px 0 0 -23px;
    border: 3px solid rgba(255,255,255,0.25); border-top-color: #fff; border-radius: 50%;
    opacity: 0; pointer-events: none; animation: ghhr-spin .8s linear infinite; transition: opacity .15s; }
.ghhr-lb .ghhr-lb-video.is-loading .ghhr-lb-spinner { opacity: 1; }
@keyframes ghhr-spin { to { transform: rotate(360deg); } }
.ghhr-lb .ghhr-lb-mute { position: absolute; bottom: 14px; right: 14px; width: 40px !important; height: 40px !important; border-radius: 999px !important;
    background: rgba(0,0,0,0.45) !important; border: 1px solid rgba(255,255,255,0.25) !important; color: #fff !important; cursor: pointer;
    display: flex !important; align-items: center; justify-content: center; padding: 0 !important; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
/* captions (CC) toggle — only shown when the reel has a caption track */
.ghhr-lb .ghhr-lb-cc { position: absolute; bottom: 14px; left: 14px; height: 40px !important; min-width: 40px; padding: 0 12px !important; border-radius: 999px !important;
    background: rgba(0,0,0,0.45) !important; border: 1px solid rgba(255,255,255,0.25) !important; color: #fff !important; cursor: pointer;
    display: flex !important; align-items: center; justify-content: center; font-size: 12.5px; font-weight: 800; letter-spacing: 0.5px;
    -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.ghhr-lb .ghhr-lb-cc.is-off { opacity: 0.45; }
.ghhr-lb .ghhr-lb-cc[hidden] { display: none !important; }

/* appeal-progress row in the donate panel */
.ghhr-lb .ghhr-lb-prog { margin: 0 0 16px; }
.ghhr-lb .ghhr-lb-prog-stat { display: flex; align-items: baseline; justify-content: space-between; font-size: 13px; font-weight: 800; color: #0B1220; margin-bottom: 7px; }
.ghhr-lb .ghhr-lb-prog-stat .ghhr-lb-prog-goal { color: #9aa3b2; font-weight: 600; }
.ghhr-lb .ghhr-lb-prog-bar { height: 7px; border-radius: 999px; background: rgba(11,18,32,0.08); overflow: hidden; }
.ghhr-lb .ghhr-lb-prog-fill { height: 100%; border-radius: 999px; background: var(--ghhr-lb-accent, #0EA5E9); transition: width .5s ease; }

/* info / donate panel */
.ghhr-lb .ghhr-lb-info { width: 388px; max-width: 92vw; background: #fff; display: flex; flex-direction: column; padding: 26px; }
.ghhr-lb .ghhr-lb-title { font-size: 19px; font-weight: 800; color: #0B1220; letter-spacing: -0.3px; line-height: 1.25; }
.ghhr-lb .ghhr-lb-cap { font-size: 14.5px; line-height: 1.5; color: #5c6675; font-weight: 500; margin: 8px 0 0; }
/* Popup description modes (set per-widget via data-desc on the lightbox). */
.ghhr-lb[data-desc="scroll"] .ghhr-lb-cap { max-height: 10.5em; overflow-y: auto; scrollbar-width: thin;
    -webkit-mask-image: linear-gradient(180deg, #000 84%, transparent); mask-image: linear-gradient(180deg, #000 84%, transparent); }
.ghhr-lb[data-desc="scroll"] .ghhr-lb-cap::-webkit-scrollbar { width: 4px; }
.ghhr-lb[data-desc="scroll"] .ghhr-lb-cap::-webkit-scrollbar-thumb { background: rgba(11,18,32,0.18); border-radius: 4px; }
.ghhr-lb[data-desc="clamp"] .ghhr-lb-cap { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.ghhr-lb[data-desc="full"] .ghhr-lb-cap { max-height: none; overflow: visible; }
.ghhr-lb[data-desc="full"] .ghhr-lb-info { overflow-y: auto; }
.ghhr-lb .ghhr-lb-actions { display: flex; align-items: center; gap: 22px; margin: 20px 0; }
.ghhr-lb .ghhr-lb-act { display: flex; align-items: center; gap: 7px; background: none !important; border: 0 !important; padding: 0 !important;
    cursor: pointer; color: #41495a; font-weight: 700; font-size: 14px; box-shadow: none !important; }
.ghhr-lb .ghhr-lb-act.is-liked { color: #ef4444; }
.ghhr-lb .ghhr-lb-spacer { flex: 1; min-height: 14px; }
.ghhr-lb .ghhr-lb-feat { border-top: 1px solid rgba(11,18,32,0.08); padding-top: 18px; }
.ghhr-lb .ghhr-lb-feat-label { font-size: 11px; font-weight: 800; letter-spacing: 1px !important; text-transform: uppercase !important; color: #9aa3b2; margin-bottom: 10px; }
.ghhr-lb .ghhr-lb-feat-row { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.ghhr-lb .ghhr-lb-feat-thumb { width: 52px !important; height: 52px !important; border-radius: 13px !important; object-fit: cover; flex-shrink: 0; background: #e5e9ef; max-width: none !important; }
.ghhr-lb .ghhr-lb-feat-name { font-size: 15.5px; font-weight: 800; color: #0B1220; line-height: 1.15;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ghhr-lb .ghhr-lb-feat-sub { font-size: 12.5px; color: #687385; font-weight: 600; margin-top: 3px; }
.ghhr-lb .ghhr-lb-donate { width: 100% !important; background: var(--ghhr-lb-accent, #0EA5E9) !important; color: #fff !important; border: 0 !important; border-radius: 14px !important;
    padding: 15px !important; font-weight: 800; font-size: 16px; cursor: pointer;
    box-shadow: 0 14px 28px -12px color-mix(in srgb, var(--ghhr-lb-accent, #0EA5E9) 80%, transparent) !important; transition: filter .15s; }
.ghhr-lb .ghhr-lb-donate:hover { filter: brightness(1.07); }

/* lightbox chrome buttons */
.ghhr-lb .ghhr-lb-btn { position: absolute; border-radius: 999px !important; background: rgba(255,255,255,0.12) !important;
    border: 1px solid rgba(255,255,255,0.3) !important; color: #fff !important; cursor: pointer; padding: 0 !important;
    display: flex !important; align-items: center; justify-content: center; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); z-index: 2; }
.ghhr-lb .ghhr-lb-close { top: 24px; right: 28px; width: 44px !important; height: 44px !important; }
.ghhr-lb .ghhr-lb-nav { top: 50%; transform: translateY(-50%); width: 52px !important; height: 52px !important; }
.ghhr-lb .ghhr-lb-prev { left: 28px; }
.ghhr-lb .ghhr-lb-next { right: 28px; }

/* ── Mobile full-screen vertical feed (like /watch, light mode) ──── */
.ghhr-feed { position: fixed; inset: 0; z-index: 999990; background: #fff; opacity: 0; transition: opacity .2s;
    font-family: 'Manrope', -apple-system, system-ui, sans-serif; }
.ghhr-feed.is-open { opacity: 1; }
.ghhr-feed * { box-sizing: border-box; }
.ghhr-feed .ghhr-feed-track { height: 100%; overflow-y: auto; scroll-snap-type: y mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.ghhr-feed .ghhr-feed-track::-webkit-scrollbar { display: none; }
.ghhr-feed .ghhr-feed-slide { position: relative; height: 100vh; height: 100dvh; scroll-snap-align: start; overflow: hidden; background: #000; }
.ghhr-feed .ghhr-feed-v { position: absolute !important; inset: 0; width: 100% !important; height: 100% !important; max-width: none !important; object-fit: cover; object-position: center; display: block; background: #000; border-radius: 0 !important; }
.ghhr-feed .ghhr-feed-scrim { position: absolute; inset: 0; pointer-events: none;
    background: linear-gradient(180deg, rgba(0,0,0,0.45) 0%, rgba(0,0,0,0) 22%, rgba(0,0,0,0) 50%, rgba(0,0,0,0.85) 100%); }
.ghhr-feed .ghhr-feed-slide.is-loading::after { content: ''; position: absolute; top: 50%; left: 50%; width: 44px; height: 44px; margin: -22px 0 0 -22px;
    border: 3px solid rgba(255,255,255,0.25); border-top-color: #fff; border-radius: 50%; animation: ghhr-spin .8s linear infinite; }
.ghhr-feed .ghhr-feed-close { position: fixed; bottom: max(20px, env(safe-area-inset-bottom)); right: 16px; z-index: 6; width: 44px !important; height: 44px !important; border-radius: 999px !important;
    background: #fff !important; border: 0 !important; color: #0B1220 !important; cursor: pointer; display: flex !important; align-items: center; justify-content: center; padding: 0 !important; box-shadow: 0 4px 14px rgba(0,0,0,0.25); }
.ghhr-feed .ghhr-feed-rail { position: absolute; right: 10px; bottom: 196px; display: flex; flex-direction: column; gap: 20px; align-items: center; z-index: 3; }
.ghhr-feed .ghhr-feed-act { background: none !important; border: 0 !important; padding: 0 !important; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 4px; color: #fff !important; font-size: 11.5px; font-weight: 700; }
.ghhr-feed .ghhr-feed-act span:not(.ghhr-feed-ic) { text-shadow: 0 1px 3px rgba(0,0,0,0.5); }
.ghhr-feed .ghhr-feed-ic { display: flex; }
.ghhr-feed .ghhr-feed-bottom { position: absolute; left: 16px; right: 74px; bottom: 26px; z-index: 3; }
.ghhr-feed .ghhr-feed-title { color: #fff; font-size: 17px; font-weight: 800; line-height: 1.2; text-shadow: 0 1px 4px rgba(0,0,0,0.5); margin-bottom: 6px; }
.ghhr-feed .ghhr-feed-cap { color: rgba(255,255,255,0.92); font-size: 13.5px; font-weight: 500; line-height: 1.32; text-shadow: 0 1px 3px rgba(0,0,0,0.45); margin-bottom: 12px;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
/* light appeal card — the "light mode" surface */
.ghhr-feed .ghhr-feed-appeal { display: flex; align-items: center; gap: 11px; background: #fff; border-radius: 16px; padding: 10px; box-shadow: 0 12px 34px rgba(0,0,0,0.32); }
.ghhr-feed .ghhr-feed-thumb { width: 42px !important; height: 42px !important; border-radius: 11px !important; object-fit: cover; flex-shrink: 0; background: #e5e9ef; max-width: none !important; }
.ghhr-feed .ghhr-feed-appeal-txt { flex: 1; min-width: 0; }
.ghhr-feed .ghhr-feed-appeal-name { color: #0B1220; font-size: 13.5px; font-weight: 800; line-height: 1.15; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ghhr-feed .ghhr-feed-appeal-sub { color: #687385; font-size: 11px; font-weight: 600; margin-top: 2px; }
.ghhr-feed .ghhr-feed-donate { flex-shrink: 0; background: var(--ghhr-feed-accent, #0EA5E9) !important; color: #fff !important; border: 0 !important; border-radius: 999px !important;
    padding: 9px 16px !important; font-weight: 800; font-size: 13px; cursor: pointer; }
/* appeal-progress row above the appeal card */
.ghhr-feed .ghhr-feed-prog { margin: 0 0 11px; }
.ghhr-feed .ghhr-feed-prog-stat { display: flex; align-items: baseline; justify-content: space-between; font-size: 12px; font-weight: 800; color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,0.5); margin-bottom: 5px; }
.ghhr-feed .ghhr-feed-prog-stat .ghhr-feed-prog-goal { font-weight: 600; opacity: 0.85; }
.ghhr-feed .ghhr-feed-prog-bar { height: 6px; border-radius: 999px; background: rgba(255,255,255,0.3); overflow: hidden; }
.ghhr-feed .ghhr-feed-prog-fill { height: 100%; border-radius: 999px; background: var(--ghhr-feed-accent, #0EA5E9); }
/* CC toggle sits in the action rail; dimmed when off */
.ghhr-feed .ghhr-feed-cc.is-off { opacity: 0.5; }
.ghhr-feed .ghhr-feed-cc[hidden] { display: none !important; }
.ghhr-feed .ghhr-feed-cc .ghhr-feed-ic { font-size: 15px; font-weight: 800; line-height: 1; }

body.ghhr-no-scroll { overflow: hidden; }

/* ── Responsive ──────────────────────────────────────────────────── */
@media (max-width: 1024px) { .ghhr .ghhr-title { font-size: 34px; } }
@media (max-width: 860px) {
    .ghhr-lb { align-items: flex-end; }
    .ghhr-lb .ghhr-lb-panel { flex-direction: column; width: 100%; max-width: 100%; height: 92vh; border-radius: 22px 22px 0 0; }
    .ghhr-lb .ghhr-lb-video { width: 100%; height: auto; flex: 1; max-height: none; }
    .ghhr-lb .ghhr-lb-info { width: 100%; max-width: 100%; max-height: 44vh; }
    .ghhr-lb .ghhr-lb-nav { display: none !important; }
}
@media (max-width: 600px) {
    .ghhr .ghhr-title { font-size: 27px; letter-spacing: -0.7px; }
    .ghhr .ghhr-sub { font-size: 14.5px; }
}
