/*
  Video (videoBlock, MB-12; contract umbraco/blocks/videoBlock.md). Mobile first: text, then the 16:9 video with its note.
  From 1024 px two equal columns, text centred beside the video; --video-left (default) puts the video in the first
  column (reading order unchanged). --under (Layout "Video under the text", MB-114): one column at every width, the
  text centred, the video under it, wider. The cover photo is the Watch video button's click area; the pill sits in
  its centre.
  Site hooks: --video-radius, --video-pill-ring; for --under: --video-under-max (video width), --video-under-text-max
  (text width), --video-under-gap (text to video).
*/
.video { padding: var(--section-space) var(--page-gutter); }
.video__inner {
  display: grid;
  gap: var(--space-10);
  max-width: var(--container-max);
  margin: 0 auto;
}
.video__heading { margin: 0; font-size: var(--fs-h2); line-height: var(--lh-heading); overflow-wrap: break-word; }
.video__eyebrow + .video__heading { margin-top: var(--space-3); }
/* MB-153 (M-FIX2-1): the optional line under the heading (a paragraph); a site restyles it (size, weight, colour). */
.video__subheading { margin: var(--space-3) 0 0; font-size: var(--fs-h4); font-weight: 600; line-height: var(--lh-heading); overflow-wrap: break-word; }
.video__text p { margin: var(--space-5) 0 0; line-height: var(--lh-body); }
.video__media { margin: 0; min-width: 0; }

.video__frame {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--video-radius, var(--radius-media));
  overflow: hidden;
  background: var(--color-surface-quiet);
}
.video__frame img,
.video__poster { display: block; width: 100%; height: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.video__frame .video__player { display: block; width: 100%; height: 100%; border: 0; }

.video__play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin: 0;
  padding: var(--space-4);
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-decoration: none;
  cursor: pointer;
}
.video__play:focus { outline: none; }
.video__pill {
  pointer-events: none;
  box-shadow: 0 0 0 var(--border-width-heavy, 2px) var(--video-pill-ring, var(--c-white));
}
.video__play:hover .video__pill { background: var(--btn-hover-bg); color: var(--btn-hover-fg); }
.video__play:focus-visible .video__pill {
  outline: 3px solid var(--color-focus);
  outline-offset: 4px;
}
.video__note { margin: var(--space-3) 0 0; font-size: var(--fs-body-sm); line-height: var(--lh-body); }

.video--under .video__inner {
  max-width: var(--video-under-max, var(--container-max));
  gap: var(--video-under-gap, var(--space-10));
}
.video--under .video__body {
  width: 100%;
  max-width: var(--video-under-text-max, var(--container-text));
  margin: 0 auto;
  text-align: center;
}
.video--under .video__note { text-align: center; }

@media (min-width: 1024px) {
  .video__inner { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-16); align-items: center; }
  .video--video-left .video__media { grid-column: 1; grid-row: 1; }
  .video--video-left .video__body { grid-column: 2; grid-row: 1; }
  .video--no-video .video__inner { grid-template-columns: minmax(0, var(--container-text)); }
  .video--no-video .video__body { grid-column: 1; }
  .video--under .video__inner { grid-template-columns: minmax(0, 1fr); gap: var(--video-under-gap, var(--space-16)); }
}
