/* 508 Ministry Compass & Dove Social - Full-Screen Gallery Viewer
   Ported directly from /blessings/museum-viewer.css so /social/ opens
   the exact same dark-navy & antique-gold full-screen gallery for image
   posts, the Drop Into Your Vault video, and the Beyond Belief podcast.
   Self-hosted SIL OFL fonts only: Cormorant + Figtree. Zero download UI. */

html.bmv-lock,
html.bmv-lock body {
  overflow: hidden !important;
}
html.bmv-lock .fc-bc-hero-wrap,
html.bmv-lock .fc-pc-stage,
html.bmv-lock .fc-pc-x,
html.bmv-lock .fc-pc-info-btn,
html.bmv-lock .fc-pc-callout,
html.bmv-lock .fc-pc-info-card,
html.bmv-lock .fc-bc-hero-tip,
html.bmv-lock .wd-fab,
html.bmv-lock .wd-panel,
html.bmv-lock #m508-chat-host {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

.toast {
  z-index: 2147483020 !important;
}
.age-gate-row[hidden] {
  display: none !important;
}

/* Card hover & gallery trigger polish */
.scard-img-wrap {
  cursor: zoom-in;
}
.scard-img-wrap img {
  transition: transform .28s ease;
}
.scard-img-wrap:hover img {
  transform: scale(1.03);
}
.scard-zoom-hint {
  position: absolute;
  left: 12px;
  bottom: 12px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(10, 17, 32, .84);
  border: 1px solid rgba(233, 201, 125, .72);
  color: #f8f1de;
  font: 700 11.5px/1 'Figtree', sans-serif;
  letter-spacing: .03em;
  pointer-events: none;
  box-shadow: 0 6px 16px rgba(0, 0, 0, .38);
  transition: background .18s ease, color .18s ease, transform .18s ease;
}
.scard-img-wrap:hover .scard-zoom-hint {
  background: #d4a84b;
  color: #141c38;
  transform: translateY(-1px);
}
.mcard-gallery-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin: 12px 0 10px;
}
.mcard-gallery-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 40px;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1.5px solid #d4a84b;
  background: linear-gradient(135deg, #162344 0%, #27325C 100%);
  color: #fff0ba;
  font: 800 13px/1.1 'Figtree', sans-serif;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(20, 28, 56, .22);
  transition: transform .15s ease, background .15s ease, color .15s ease;
}
.mcard-gallery-btn:hover {
  transform: translateY(-1px);
  background: linear-gradient(135deg, #f3d78d 0%, #d4a84b 100%);
  color: #141c38;
}
.mcard-share-wrap {
  margin-top: 10px;
}

/* Full-screen museum modal (exact /blessings/ .bmv look & structure) */
.bmv {
  position: fixed;
  inset: 0;
  height: 100vh;
  height: 100dvh;
  z-index: 2147483000;
  background: radial-gradient(ellipse 80% 70% at 40% 40%, #141d33, #0a1120 70%);
  color: #f3ead6;
  display: flex;
  flex-direction: column;
  font-family: 'Figtree', -apple-system, 'Segoe UI', Roboto, sans-serif;
  overflow: hidden;
}
.bmv[hidden] {
  display: none !important;
}
.bmv * {
  box-sizing: border-box;
}
.bmv img,
.bmv video {
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  -webkit-user-drag: none;
}

/* Top bar */
.bmv-top {
  position: relative;
  flex: 0 0 auto;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 20px 8px;
  background: linear-gradient(180deg, rgba(6, 10, 20, .72), rgba(6, 10, 20, 0));
  z-index: 4;
}
.bmv-tt {
  min-width: 0;
  max-width: 42%;
}
.bmv-t1 {
  display: block;
  font-family: 'Cormorant', Georgia, serif;
  font-weight: 700;
  font-size: 21px;
  line-height: 1.15;
  color: #f8f1de;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.bmv-t2 {
  display: block;
  margin-top: 2px;
  font-size: 12.5px;
  color: #c9b98f;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.bmv-count {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 18px;
  font-size: 15px;
  letter-spacing: .12em;
  color: #e8dcc0;
  font-weight: 600;
}
.bmv-x {
  position: relative;
  z-index: 8;
  flex: 0 0 auto;
  width: 50px;
  height: 50px;
  border: 1.5px solid rgba(240, 205, 120, .75);
  border-radius: 50%;
  background: rgba(10, 17, 32, .65);
  color: #fff;
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background .2s, border-color .2s;
}
.bmv-x:hover {
  background: rgba(240, 205, 120, .22);
  border-color: #f0cd78;
}
.bmv-x:focus-visible {
  outline: 3px solid #d4a84b;
  outline-offset: 2px;
}

/* Body grid */
.bmv-body {
  flex: 1;
  min-height: 0;
  display: flex;
  gap: 20px;
  padding: 0 20px;
  position: relative;
  z-index: 2;
}
.bmv-left {
  flex: 1;
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
}
.bmv-stagewrap {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px 74px;
}
.bmv-spot {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 46% 32% at 50% 6%, rgba(255, 216, 150, .28), rgba(255, 202, 120, .08) 56%, rgba(255, 202, 120, 0) 76%),
    radial-gradient(ellipse 62% 68% at 50% 45%, rgba(255, 196, 110, .10), rgba(255, 196, 110, 0) 62%);
}
.bmv-media-frame {
  position: relative;
  z-index: 2;
  max-width: 100%;
  max-height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  padding: 8px;
  background: linear-gradient(145deg, rgba(233, 201, 125, .36) 0%, rgba(16, 26, 48, .92) 48%, rgba(212, 168, 75, .28) 100%);
  border: 1.5px solid rgba(233, 201, 125, .62);
  box-shadow: 0 24px 70px rgba(0, 0, 0, .62), 0 0 0 1px rgba(255, 244, 210, .14) inset;
  overflow: hidden;
}
.bmv-media-frame.is-video {
  width: min(100%, 920px);
}
.bmv-media-frame.is-audio {
  width: min(100%, 620px);
  padding: 0;
  background: linear-gradient(155deg, #131f3b 0%, #0b1428 100%);
}
.bmv-art-full {
  display: block;
  max-width: 100%;
  max-height: calc(100vh - 200px);
  max-height: calc(100dvh - 200px);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  background: #0d1424;
}
.bmv-video {
  display: block;
  width: 100%;
  max-height: calc(100vh - 210px);
  max-height: calc(100dvh - 210px);
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  background: #080f1e;
}

/* Custom Podcast Audio Stage inside the Museum Gallery */
.bmv-audio-card {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 18px 20px 20px;
  color: #f3ead6;
}
.bmv-audio-cover-wrap {
  width: 100%;
  aspect-ratio: 1200 / 630;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(233, 201, 125, .45);
  background: #080f1e;
}
.bmv-audio-cover {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.bmv-audio-bar {
  display: flex;
  align-items: center;
  gap: 12px;
}
.bmv-audio-play {
  flex: 0 0 50px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 1.5px solid #f0cd78;
  background: linear-gradient(180deg, #f3d78d 0%, #dca946 56%, #bf8e2d 100%);
  color: #141c38;
  cursor: pointer;
  display: grid;
  place-items: center;
  box-shadow: 0 8px 20px rgba(212, 168, 75, .36);
}
.bmv-audio-play svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}
.bmv-audio-prog-wrap {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.bmv-audio-track {
  position: relative;
  width: 100%;
  height: 12px;
  border-radius: 999px;
  background: rgba(240, 234, 214, .18);
  cursor: pointer;
  overflow: hidden;
}
.bmv-audio-fill {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0%;
  border-radius: 999px;
  background: linear-gradient(90deg, #e9c97d 0%, #f5df9c 100%);
}
.bmv-audio-times {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 12.5px;
  font-variant-numeric: tabular-nums;
  color: #e2d4b0;
}
.bmv-audio-skips {
  display: flex;
  gap: 6px;
}
.bmv-audio-skip {
  min-height: 32px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(233, 201, 125, .45);
  background: rgba(19, 29, 51, .9);
  color: #f8f1de;
  font: 700 12px 'Figtree', sans-serif;
  cursor: pointer;
}
.bmv-audio-skip:hover {
  border-color: #f0cd78;
  background: #233357;
}

/* Prev / Next floating arrows */
.bmv-arr {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 58px;
  height: 58px;
  border-radius: 50%;
  border: 1.5px solid rgba(233, 201, 125, .8);
  background: rgba(10, 17, 32, .74);
  color: #f3ead6;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background .2s, transform .2s;
  z-index: 8;
}
.bmv-arr svg {
  width: 24px;
  height: 24px;
}
.bmv-arr:hover {
  background: rgba(240, 205, 120, .24);
}
.bmv-arr:focus-visible {
  outline: 3px solid #d4a84b;
  outline-offset: 2px;
}
.bmv-pl { left: 8px; }
.bmv-pr { right: 8px; }

/* Right Curatorial & Share Panel (exact /blessings/ .bmv-panel glass card) */
.bmv-panel {
  flex: 0 0 404px;
  max-width: 39%;
  align-self: center;
  max-height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: rgba(212, 168, 75, .45) transparent;
  background: rgba(12, 19, 34, .82);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(212, 168, 75, .44);
  border-radius: 18px;
  padding: 18px 18px 16px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .5);
}
.bmv-h {
  margin: 0;
  font-family: 'Cormorant', Georgia, serif;
  font-weight: 700;
  font-size: 1.62rem;
  line-height: 1.12;
  color: #f8f1de;
}
.bmv-sub {
  margin: 5px 0 0;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: #d9bc7a;
}
.bmv-placard {
  margin: 12px 0 0;
  padding: 11px 13px;
  border-radius: 12px;
  background: rgba(8, 14, 27, .68);
  border: 1px solid rgba(212, 168, 75, .30);
}
.bmv-kicker {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #d9b96a;
  margin: 0 0 5px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.bmv-ref-pill {
  font-size: 10.5px;
  letter-spacing: .02em;
  text-transform: none;
  color: #95e6f2;
  font-weight: 700;
}
.bmv-caption {
  margin: 0;
  font-size: 13.4px;
  line-height: 1.5;
  color: #e7dec6;
  overflow-wrap: anywhere;
  word-break: break-word;
  max-height: 180px;
  overflow-y: auto;
}

/* 1-Tap Share Row (matches /blessings/ .bmv-share-row) */
.bmv-share-wrap {
  margin: 12px 0 0;
  padding-top: 10px;
  border-top: 1px solid rgba(240, 234, 214, .14);
}
.bmv-share-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  margin-top: 7px;
}
.bmv-share-row.bmv-share-row-2 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 7px;
}
.bmv-sbtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 8px;
  border-radius: 9px;
  border: 1px solid rgba(240, 234, 214, .26);
  background: #131d33;
  color: #f3ead6 !important;
  font: 700 12.5px 'Figtree', sans-serif;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: border-color .18s, background .18s, transform .15s;
}
.bmv-sbtn:hover {
  border-color: #e9c97d;
  background: #1d2b49;
  transform: translateY(-1px);
}
.bmv-sbtn:focus-visible {
  outline: 3px solid #e9c97d;
  outline-offset: 2px;
}
.bmv-sbtn.bmv-s-copy {
  background: linear-gradient(180deg, #f3d78d 0%, #dca946 56%, #bf8e2d 100%);
  color: #162033 !important;
  border-color: #f3d78d;
  font-weight: 800;
}
.bmv-sbtn.bmv-s-copy:hover {
  filter: brightness(1.06);
  background: linear-gradient(180deg, #f6e0a2 0%, #e1b252 56%, #c79534 100%);
}
.bmv-sbtn.bmv-s-fb {
  background: #1877F2;
  border-color: #3b8ef5;
  color: #ffffff !important;
}
.bmv-sbtn.bmv-s-fb:hover {
  background: #1262cc;
}
.bmv-sbtn.bmv-s-wa {
  background: #15803d;
  border-color: #22c55e;
  color: #ffffff !important;
}
.bmv-sbtn.bmv-s-wa:hover {
  background: #166534;
}
.bmv-sbtn.is-copied {
  background: #14532d !important;
  border-color: #4ade80 !important;
  color: #dcfce7 !important;
}
.bmv-share-row-2 .bmv-sbtn {
  min-height: 36px;
  font-size: 11.5px;
  padding: 0 5px;
}

.bmv-post-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 40px;
  margin-top: 10px;
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid rgba(212, 168, 75, .42);
  background: rgba(212, 168, 75, .10);
  color: #f3dfaa !important;
  font: 700 12.5px 'Figtree', sans-serif;
  text-decoration: none;
  transition: background .16s, border-color .16s;
}
.bmv-post-link:hover {
  background: rgba(212, 168, 75, .20);
  border-color: #e9c97d;
}

/* Bottom Filmstrip */
.bmv-strip {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px 10px;
  position: relative;
  z-index: 7;
  background: rgba(8, 12, 22, .62);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(240, 234, 214, .12);
}
.bmv-track {
  flex: 1;
  min-width: 0;
  display: flex;
  gap: 9px;
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(233, 201, 125, .4) transparent;
  padding: 4px 2px;
}
.bmv-th {
  position: relative;
  flex: 0 0 auto;
  width: 72px;
  height: 58px;
  border: 2px solid transparent;
  border-radius: 7px;
  padding: 0;
  background: #111a2e;
  cursor: pointer;
  opacity: .72;
  overflow: hidden;
  transition: opacity .2s, border-color .2s;
}
.bmv-th img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.bmv-th-tag {
  position: absolute;
  left: 3px;
  right: 3px;
  bottom: 3px;
  padding: 1px 3px;
  border-radius: 4px;
  background: rgba(10, 17, 32, .88);
  color: #f8e3a2;
  font: 800 9px/1.2 'Figtree', sans-serif;
  text-transform: uppercase;
  text-align: center;
  letter-spacing: .04em;
}
.bmv-th:hover {
  opacity: .96;
}
.bmv-th.is-cur {
  border-color: #e9c97d;
  opacity: 1;
  box-shadow: 0 0 0 2px rgba(233, 201, 125, .35);
}
.bmv-th:focus-visible {
  outline: 3px solid #e9c97d;
  outline-offset: 1px;
}
.bmv-sch {
  flex: 0 0 auto;
  width: 36px;
  height: 52px;
  border: 0;
  border-radius: 8px;
  background: none;
  color: #c9b98f;
  cursor: pointer;
  display: grid;
  place-items: center;
  z-index: 8;
}
.bmv-sch svg {
  width: 18px;
  height: 18px;
}
.bmv-sch:hover {
  color: #f0cd78;
}

/* Mobile layout (<= 860px, verified at 390x844 with zero horizontal overflow) */
@media (max-width: 860px) {
  .bmv-top {
    padding: 10px 12px 6px;
    align-items: center;
  }
  .bmv-tt {
    max-width: 58%;
  }
  .bmv-t1 {
    font-size: 17px;
  }
  .bmv-count {
    position: static;
    transform: none;
    align-self: center;
    font-size: 13px;
    margin-left: auto;
  }
  .bmv-x {
    width: 44px;
    height: 44px;
    font-size: 26px;
  }
  .bmv-body {
    flex-direction: column;
    padding: 0 12px 12px;
    overflow-y: auto;
    overflow-x: hidden;
    gap: 10px;
  }
  .bmv-left {
    flex: 0 0 auto;
    width: 100%;
  }
  .bmv-stagewrap {
    height: auto;
    padding: 6px 0;
  }
  .bmv-art-full {
    max-height: 44vh;
    max-height: 44svh;
    width: auto;
    max-width: 100%;
  }
  .bmv-video {
    max-height: 36vh;
  }
  .bmv-audio-card {
    padding: 12px;
    gap: 10px;
  }
  .bmv-pl { left: 6px; }
  .bmv-pr { right: 6px; }
  .bmv-arr {
    width: 44px;
    height: 44px;
  }
  .bmv-arr svg {
    width: 20px;
    height: 20px;
  }
  .bmv-panel {
    flex: 0 0 auto;
    max-width: 100%;
    width: 100%;
    max-height: none;
    overflow: visible;
    align-self: stretch;
    padding: 15px 14px 14px;
  }
  .bmv-h {
    font-size: 1.42rem;
  }
  .bmv-caption {
    max-height: none;
    font-size: 13.5px;
  }
  .bmv-share-row,
  .bmv-share-row.bmv-share-row-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .bmv-sbtn {
    min-height: 44px;
    font-size: 13px;
  }
  .bmv-share-row-2 .bmv-sbtn {
    min-height: 42px;
    font-size: 12.5px;
  }
  .bmv-strip {
    padding: 6px 6px 8px;
  }
  .bmv-th {
    width: 62px;
    height: 48px;
  }
  .bmv-sch {
    width: 28px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .bmv-th,
  .bmv-arr,
  .bmv-sbtn,
  .scard-img-wrap img {
    transition: none !important;
  }
}
