.vertical-video-section {
  margin-bottom: var(--spacing--large);
}

.vertical-video__frame .video-feature>*>iframe,
.vertical-video__frame video {
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 25px;
}

.vertical-video__frame .contextual-region,
.vertical-video__frame .video-feature>div {
  position: relative;
  width: 100%;
  overflow: hidden;
  height: 0;
  padding-bottom: 177.777%;
}

@supports (aspect-ratio: 1 / 1) {

  .vertical-video__frame .contextual-region,
  .vertical-video__frame .video-feature>div {
    height: 100%;
    padding-bottom: 0;
    aspect-ratio: 9 / 16;
    width: 100%;
  }
}

.vertical-video__frame .contextual-region .media-oembed-content,
.vertical-video__frame .video-feature>div>.media-oembed-content {
  position: absolute;
  display: block;
  border: 0;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
}

.vertical-video__frame.autoplay-video-container {
  width: 100%;
}

.vertical-video__body {
  display: grid;
  gap: 0.75rem;
}

@media print,
screen and (width >=48.0625em) and (width <64.0625em) {
  .vertical-video__card {
    display: flex;
    align-items: stretch;
    flex-wrap: nowrap;
  }

  .vertical-video__card .vertical-video__media {
    flex: 0 0 40%;
    width: 40%;
  }

  .vertical-video__card .vertical-video__body {
    flex: 0 0 60%;
    width: 60%;
  }

  .vertical-video__card .card__content .card__content__inner {
    padding: var(--spacing--small) var(--spacing--xsmall);
  }
}

@media print,
screen and (width >=64.0625em) {
  .vertical-video__card {
    display: flex;
    align-items: stretch;
    flex-wrap: nowrap;
  }

  .vertical-video__card .vertical-video__media {
    flex: 0 0 33.333%;
    width: 33.333%;
  }

  .vertical-video__card .vertical-video__body {
    flex: 0 0 66.666%;
    width: 66.666%;
  }

  .vertical-video__card .vertical-video__media,
  .vertical-video__card .vertical-video__frame,
  .vertical-video__card .autoplay-video-container,
  .vertical-video__card .autoplay-video-container__inner,
  .vertical-video__card .video-feature {
    height: 100%;
  }
}

.vertical-video__card {
  position: relative;
  opacity: 1;
  transition: transform var(--primary-transition), opacity var(--primary-transition), -webkit-transform var(--primary-transition);
  margin-top: var(--spacing--large);
  padding-right: 0;
  padding-left: 0;
  max-width: 112.5rem;
}

@media screen and (width >=75em) {
  .vertical-video__card:nth-child(2n+1) .card__content .card__content__inner {
    padding: var(--spacing--3xlarge) 170px var(--spacing--3xlarge) var(--spacing--2xlarge);
  }
}

.vertical-video__card .card__content {
  display: flex;
  align-items: flex-start;
  align-self: flex-start;
}

.vertical-video__card .card__content .card__content__inner {
  align-self: flex-start;
  padding: var(--spacing--small-medium) var(--spacing--small);
}

.video-feature {
  --video-feature-surface: var(--white);
  --video-feature-offset-x: -62px;
  --video-feature-offset-y: -40px;
  --video-feature-border: 2px;
  position: relative;
  z-index: 0;
  border-radius: 25px;
  background: var(--video-feature-surface);
  transform-style: preserve-3d;
  width: 100%;
}

.video-feature::before {
  position: absolute;
  z-index: -1;
  border: var(--video-feature-border) solid transparent;
  border-radius: inherit;
  background:
    linear-gradient(var(--video-feature-surface), var(--video-feature-surface)) padding-box,
    linear-gradient(160deg, rgb(0 169 224 / 100%) 0%, rgb(0 72 118 / 100%) 65%) border-box;
  content: "";
  inset: 0;
  transform: translate3d(var(--video-feature-offset-x), var(--video-feature-offset-y), -1px);
  padding: var(--video-feature-border);
  pointer-events: none;
}

.video-feature__social {
  position: absolute;
  z-index: 2;
  top: calc(100% + var(--spacing--2xsmall));
  left: 50%;
  display: flex;
  gap: var(--spacing--2xsmall);
  transform: translateX(-50%);
}

@media print,
screen and (width <48.0625em) {
  .vertical-video__frame.autoplay-video-container {
    width: 75%;
  }

  .vertical-video__card .vertical-video__media {
    margin-bottom: var(--spacing--default);
  }
}

.video-feature__social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--brand--dark-blue);
  font-size: 1.5rem;
  line-height: 1;
  text-decoration: none;
}

.video-feature__social-link:hover,
.video-feature__social-link:focus {
  color: var(--secondary--fuchsia);
  text-decoration: none;
}

.video-feature__legend {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: calc(var(--video-feature-offset-x) + (var(--video-feature-border) / 2));
  background: var(--video-feature-surface);
  box-shadow: 0 0 0 calc(var(--video-feature-border) + 2px) var(--video-feature-surface);
  font: 15pt/0 var(--sans-serif);
  padding: 0 0.5rem;
  margin: auto;
  transform: translate(-50%, -50%) rotate(-90deg);
}

@media screen and (width <1342px) {
  .video-feature__legend {
    top: calc(var(--video-feature-offset-y) + (var(--video-feature-border) / 2));
    left: 25%;
    display: inline-block;
    width: max-content;
    text-align: center;
    white-space: nowrap;
    transform: translate(-50%, -50%);
  }
}
