/* Dedicated Text + Video section. Does not restyle existing text blocks. */

.fa-text-video {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 38%);
  gap: clamp(1.25rem, 3vw, 2.25rem);
  align-items: start;
  width: 100%;
}

.fa-text-video--small {
  grid-template-columns: minmax(0, 1fr) minmax(180px, 28%);
}

.fa-text-video--large {
  grid-template-columns: minmax(0, 1fr) minmax(260px, 48%);
}

.fa-text-video--flip .fa-text-video__copy {
  order: 2;
}

.fa-text-video--flip .fa-text-video__media {
  order: 1;
}

.fa-text-video__copy {
  min-width: 0;
}

.fa-text-video__body {
  color: inherit;
}

.fa-text-video__media {
  min-width: 0;
}

.fa-text-video__frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 18px;
  background: #0b1b33;
  box-shadow: 0 18px 40px -24px rgba(11, 27, 51, 0.35);
  container-type: size;
}

.fa-text-video__frame .fa-video-block__play-btn {
  width: clamp(28px, 16cqmin, 48px);
  height: clamp(28px, 16cqmin, 48px);
  box-shadow: 0 6px 16px rgba(220, 38, 38, 0.35);
}

.fa-text-video__frame .fa-video-block__play:hover .fa-video-block__play-btn {
  box-shadow: 0 8px 18px rgba(220, 38, 38, 0.42);
}

.fa-text-video__frame .fa-video-block__player {
  position: relative;
  width: 100%;
  height: 100%;
}

.fa-text-video__frame .fa-text-block__embed,
.fa-text-video__frame .fa-text-block__video,
.fa-text-video__frame .fa-video-block__embed,
.fa-text-video__frame iframe,
.fa-text-video__frame video {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: cover;
  background: #0b1b33;
}

@media (max-width: 860px) {
  .fa-text-video,
  .fa-text-video--small,
  .fa-text-video--large,
  .fa-text-video--flip {
    grid-template-columns: 1fr;
  }

  .fa-text-video__copy,
  .fa-text-video--flip .fa-text-video__copy {
    order: 1;
  }

  .fa-text-video__media,
  .fa-text-video--flip .fa-text-video__media {
    order: 2;
  }
}
