/* Testimonial captions, drawn in the house type on the house purple (Nov 13).
   Shared by echoes-of-love.html and about.html. Literal colours, because the two pages
   carry different variable sets.
   --band: a purple band across the top of the frame, the same header the 2 Minutes from
   the Heart clips carry. For a film with open wall above the speaker's head (Chris B.).
   --low:  a purple glass box low on the frame, for a film whose face fills the top (Molly). */

.film__box, .rv-film__frame { container-type: inline-size; }

.film__box > .film__cap, .rv-film__frame > .film__cap {
  position: absolute; z-index: 2; margin: 0; pointer-events: none;
  font-family: 'Instrument Serif', Georgia, 'Times New Roman', serif; font-style: normal; font-weight: 400;
  font-size: clamp(1.05rem, 6.4cqi, 1.45rem); line-height: 1.25; letter-spacing: .005em;
  color: #F6E8D2; text-align: center; text-wrap: balance; max-width: none;
  transition: opacity .3s ease;
}

/* the band */
.film__box > .film__cap--band, .rv-film__frame > .film__cap--band {
  top: 0; left: 0; right: 0;
  min-height: 7.2em; padding: 2.1em 7% 1.1em;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: linear-gradient(180deg, rgba(27, 12, 32, .96) 0%, rgba(42, 17, 48, .92) 70%, rgba(59, 26, 76, .88) 100%);
  border-bottom: 1px solid rgba(217, 166, 72, .5);
  box-shadow: 0 10px 28px -12px rgba(17, 7, 20, .8);
  border-radius: var(--cap-r, 0) var(--cap-r, 0) 0 0;
  opacity: 0;
}
.film__cap--band::before {
  content: attr(data-eyebrow);
  position: absolute; top: .95em; left: 0; right: 0;
  font: 600 .52em/1 'DM Sans', 'Segoe UI', system-ui, sans-serif; letter-spacing: .22em; text-transform: uppercase;
  color: #D9A648; text-align: center;
}
.film__cap--band.is-live { opacity: 1; }

/* the glass box */
.film__box > .film__cap--low, .rv-film__frame > .film__cap--low {
  bottom: 14%; left: 7%; right: 7%; width: fit-content; margin-inline: auto;
  padding: .45em .85em .5em;
  background: rgba(27, 12, 32, .74);
  -webkit-backdrop-filter: blur(6px) saturate(1.1); backdrop-filter: blur(6px) saturate(1.1);
  border: 1px solid rgba(217, 166, 72, .45);
  border-radius: .7em;
  box-shadow: 0 8px 24px -10px rgba(17, 7, 20, .85), 0 0 22px -10px rgba(155, 95, 208, .55);
}
.film__cap--low:empty { opacity: 0; }

/* a warmer grade, so a white wall reads as candlelight rather than office */
.film__box.film--warm video, .rv-film__frame.film--warm video { filter: sepia(.2) saturate(1.12) brightness(.97) contrast(1.03); }

@media (prefers-reduced-motion: reduce) { .film__cap { transition: none; } }
