/* Product videos on the employer site: the lightbox, and the page each video has to itself.
   Everything is built from the site's own tokens (workmatch-v2.css). */

/* A button that opens a video carries a play mark before its label */
.video_button .button_main_icon { order: -1; margin: 0; }

/* The lightbox opens with focus on its content, not on the close button (iPhone drew that as a forced
   focus state), and the close button's focus ring is not clipped at the modal's edge. */
.video_modal .modal_content:focus-visible { outline-style: none; }
.video_modal .modal_scroll { overflow: visible; }

/* Lightbox: the site's modal, sized for a video. As wide as the screen allows with the whole picture in view. */
.video_modal .modal_backdrop { background-color: color-mix(in srgb, var(--swatch--dark-900) 88%, var(--swatch--transparent)); }
.video_modal .modal_content {
  max-width: min(72rem, calc((100dvh - 2 * var(--site--margin) - 4.5rem) * 16 / 9));
  background-color: var(--swatch--transparent);
}
.video_modal .modal_scroll { padding: 0; grid-row-gap: var(--_spacing---space--2); }
/* The video sits in the site's 16:9 image wrapper, which gives it its shape and corners */
.video_modal .u-image-wrapper { height: auto; }

/* A page per video: the message with its one button, then the video, on the site's warm sand */
.watch_main { background-color: var(--_theme---background-2); }
/* One column for the logo, the message and the video. It is the page container, held back only where a
   short window could not show the whole video at once. */
.watch_contain {
  width: calc(100% - var(--site--margin) * 2);
  max-width: min(calc(var(--max-width--main) - var(--site--margin) * 2), max(18rem, calc((100dvh - 2rem) * 16 / 9)));
  margin-right: auto;
  margin-left: auto;
}
.watch_top { padding-top: 1rem; padding-bottom: 1rem; }
.watch_logo { display: inline-flex; width: 10rem; color: var(--swatch--dark-900); }
.watch_logo svg { display: block; width: 100%; height: auto; }
/* The poster opens the lightbox from anywhere on it; its Play button sits in the corner */
.watch_poster { cursor: pointer; }
.watch_play { position: absolute; right: var(--_spacing---space--4); bottom: var(--_spacing---space--4); z-index: 1; }
.watch_head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 24rem);
  align-items: start;
  grid-column-gap: var(--site--gutter);
  padding-top: var(--_spacing---section-space--small);
}
/* The site's H1 style (Arizona 300), one step down its size scale */
.watch_title { font-size: var(--_typography---font-size--h2); }
.watch_title h1 { text-wrap: balance; }
.watch_title h1 span { display: inline-block; } /* the headline breaks at its comma first */
.watch_video {
  padding-top: var(--_spacing---space--8);
  padding-bottom: var(--_spacing---section-space--main);
}
/* One column: the headline, line and button follow each other on the site's own text margins, as in its
   hero. The head is also a site container (u-container), so the site's responsive rules reach it and
   the button runs full width on a phone. */
@media (max-width: 56rem) {
  .watch_head { display: block; }
}
