/* ==========================================================================
   Service Page — Video Block
   ========================================================================== */

/* --------------------------------------------------------------------------
   #5 Video Block
   -------------------------------------------------------------------------- */

.video-block {
  padding: var(--section-padding) 0;
}

.video-block .section__header {
  text-align: center;
  margin-bottom: 56px;
}

.video-block .section__title {
  font-family: var(--font-family);
  font-size: var(--h2-size);
  line-height: var(--h2-lh);
  font-weight: var(--font-weight-semibold);
  color: var(--color-dark-blue);
}

.video-block__player {
  position: relative;
  width: 100%;
  height: 600px;
  border-radius: var(--radius-card-lg);
  overflow: hidden;
  background: var(--color-medium-gray);
}

/* Make all Drupal wrappers fill the player */
.video-block__player > div,
.video-block__player div,
.video-block__player .field,
.video-block__player .field__item,
.video-block__player .media,
.video-block__player .media__content {
  width: 100%;
  height: 100%;
}

.video-block__player iframe,
.video-block__player video,
.video-block__player img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border: 0;
}

/* Video block — tablet */
@media (max-width: 1023px) {
  .video-block .section__header {
    margin-bottom: var(--spacing-lg);
  }

  .video-block__player {
    height: 450px;
  }
}

/* Video block — mobile */
@media (max-width: 767px) {
  .video-block {
    padding: 60px 0;
  }

  .video-block .section__title {
    text-transform: uppercase;
  }

  .video-block__player {
    border-radius: 0;
    height: auto;
    aspect-ratio: 16 / 9;
  }
}
