/* Video section — v1 Figma node 994:4501. Centered heading, rounded 16:9 video,
   centered caption below. */

.video-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--secan-space-2xl);
  max-width: 1080px;
  margin: 0 auto;
  padding: var(--secan-space-17xl) var(--secan-space-s);
}

.video-section__heading {
  margin: 0;
  text-align: center;
  font-family: var(--secan-font-heading);
  font-weight: var(--secan-fw-regular);
  font-size: var(--secan-fs-h2);
  line-height: var(--secan-lh-h2);
  color: var(--secan-black);
}

.video-section__media {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--secan-radius-5);
  overflow: hidden;
  background-color: var(--secan-chip-bg);
}

/* Make whatever the media renders (iframe, video, image thumbnail) fill the
   rounded frame. */
.video-section__media :is(iframe, video, img),
.video-section__media .media,
.video-section__media .field {
  display: block;
  width: 100%;
  height: 100%;
}

.video-section__media :is(iframe, video, img) {
  object-fit: cover;
  border: 0;
}

.video-section__caption {
  margin: 0;
  max-width: 60ch;
  text-align: center;
  font-family: var(--secan-font-body);
  font-weight: var(--secan-fw-regular);
  font-size: var(--secan-fs-body);
  line-height: var(--secan-lh-subheading);
  color: var(--secan-gray-dark);
}

@media (max-width: 1023px) {
  .video-section {
    gap: var(--secan-space-l);
  }

  .video-section__heading {
    font-size: var(--secan-fs-h3);
    line-height: var(--secan-lh-h3);
  }
}

@media (max-width: 600px) {
  .video-section__heading {
    font-size: var(--secan-fs-h4);
    line-height: var(--secan-lh-h4);
  }

  .video-section__caption {
    font-size: var(--secan-fs-body);
    line-height: var(--secan-lh-body);
  }
}
