/* "Cases fra virkeligheden" on For virksomheder (patterns/virksomhed-cases.php). No approved design: built from the
   concept's parts. Light surface (.surface-light), the .reel video tiles from global.css (4:5, caption and play button
   over the video, lightbox), and pills for the four old cases' headlines. Also the company ledger (bedri/proof with
   .proof-virksomhed) that build/pages/virksomheder.php places right before the section, on the same light surface. */

.cases { padding: clamp(5rem, 10vw, 8rem) 0; }
.cases-head { max-width: 46rem; margin-bottom: clamp(2.5rem, 5vw, 3.75rem); }
.cases-head .h-lg { margin-bottom: 1.25rem; text-wrap: balance; }
.cases-head .lead { margin: 0; color: var(--muted); }

/* Three video tiles in a row; two on tablets, the third centred under them, as wide as the heading block; one column
   (narrower) on phones. Tablets had three ~220px tiles at 768px, where the captions crowded the play buttons
   (Jannik, 6 Nov) */
.case-reels { --gap: clamp(1rem, 2.4vw, 2rem); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
.case-reels > .reel { isolation: isolate; }
@media (max-width: 1023px) {
  .case-reels { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 46rem; }
  .case-reels > .reel:last-child:nth-child(odd) { grid-column: 1 / -1; justify-self: center; width: calc(50% - var(--gap) / 2); }
}
@media (max-width: 760px) {
  .case-reels { grid-template-columns: minmax(0, 26rem); }
  .case-reels > .reel:last-child:nth-child(odd) { grid-column: auto; width: auto; justify-self: stretch; }
}
@media (max-width: 1100px) {
  .case-reels .reel figcaption { left: 1rem; right: 3.9rem; bottom: .95rem; }
  .case-reels .reel figcaption strong { font-size: 1.25rem; }
  .case-reels .reel-sound { right: .8rem; bottom: .95rem; width: 42px; height: 42px; }
}
/* A deeper scrim under the caption: the case videos have subtitles burned in just above it, and the light letters
   ran into the name (Jannik, 6 Nov). Darker and starting higher than the shared .reel gradient in global.css */
.case-reels .reel::after { background: linear-gradient(180deg, transparent 42%, rgba(0, 0, 0, .45) 64%, rgba(0, 0, 0, .86) 100%); }

/* The company ledger before the cases: one light block with them, so the ledger takes the top padding the section
   gets after the navy "Tre måder", and the cases start closer under it, across a rule */
.proof.proof-virksomhed { padding: clamp(4rem, 8vw, 6.5rem) 0 clamp(3rem, 6vw, 4.5rem); }
.proof.proof-virksomhed + .cases { padding-top: 0; }
.proof.proof-virksomhed + .cases > .wrap { border-top: 1px solid var(--line); padding-top: clamp(3rem, 6vw, 4.5rem); }
