  /*--------------------------------------------------------------
>>> TABLE OF CONTENTS:
----------------------------------------------------------------
# Vars
# Layout
# Breadcrumb
# Header
# Hero
# Body
# Rail modules
# Cards
# Hub
# Carousel
# Standalone widgets
# Responsive
--------------------------------------------------------------*/

/*--------------------------------------------------------------
# Vars
--------------------------------------------------------------*/

.ctx-video {
  --ctx-video-container: 1400px;
  --ctx-video-page-bg: #09132e;
  --ctx-video-hub-bg: #002140;
  --ctx-video-ink: #ffffff;
  --ctx-video-muted: rgba(255, 255, 255, 0.72);
  --ctx-video-rule: rgba(255, 255, 255, 0.18);
  --ctx-video-chip: #014b7c;
  --ctx-video-chip-hover: #036098;
  --ctx-video-marker: #f5ce57;
  --ctx-video-gutter: 25px;

  background-color: var(--ctx-video-page-bg);
  color: var(--ctx-video-ink);
  font-family: var(--fontfamily-body);
}

/*--------------------------------------------------------------
# Layout
--------------------------------------------------------------*/

.ctx-video__layout {
  display: grid;
  grid-template-columns: minmax(0, 839fr) minmax(0, 318fr);
  column-gap: 48px;
  max-width: var(--ctx-video-container);
  margin: 0 auto;
  padding: 32px var(--ctx-pad-x, 3rem) 48px;
}

.ctx-video__main {
  grid-column: 1;
  min-width: 0;
}

.ctx-video__rail {
  grid-column: 2;
  min-width: 0;
}

/*--------------------------------------------------------------
# Breadcrumb
--------------------------------------------------------------*/

.ctx-video__breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--ctx-video-rule);
  margin-bottom: 26px;
}

.ctx-video__breadcrumb-item,
.ctx-video__breadcrumb-item:link,
.ctx-video__breadcrumb-item:visited,
.ctx-video__breadcrumb-item:hover,
.ctx-video__breadcrumb-item:focus,
.ctx-video__breadcrumb-item:active {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 4px;
  background-color: var(--ctx-video-chip);
  color: var(--ctx-video-ink);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
  text-transform: capitalize;
  text-decoration: none;
}

.ctx-video__breadcrumb-item:hover,
.ctx-video__breadcrumb-item:focus {
  background-color: var(--ctx-video-chip-hover);
}

.ctx-video__breadcrumb-separator {
  width: 8px;
  height: 8px;
  border-top: 2px solid rgba(255, 255, 255, 0.55);
  border-right: 2px solid rgba(255, 255, 255, 0.55);
  transform: rotate(45deg);
}

/*--------------------------------------------------------------
# Header
--------------------------------------------------------------*/

.ctx-video__title {
  margin: 0 0 24px;
  font-family: var(--fontfamily-headings);
  font-size: 34px;
  font-weight: 600;
  line-height: 41px;
  letter-spacing: -0.01em;
  color: var(--ctx-video-ink);
}

.ctx-video__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.ctx-video__byline {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ctx-video__avatars {
  display: flex;
  flex: 0 0 auto;
}

.ctx-video__avatar-link {
  display: block;
  flex: 0 0 auto;
}

.ctx-video__avatars a:not(:first-child) {
  margin-left: -12px;
}

.ctx-video .ctx-video__avatar {
  display: block;
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
}

.ctx-video__byline-info {
  min-width: 0;
}

.ctx-video__byline-info p {
  margin: 0;
  font-size: 15px;
  line-height: 21px;
}

.ctx-video__authors a,
.ctx-video__authors a:link,
.ctx-video__authors a:visited,
.ctx-video__authors a:hover,
.ctx-video__authors a:focus,
.ctx-video__authors a:active {
  color: var(--ctx-video-ink);
  border-bottom: 1px solid currentColor;
  text-decoration: none;
}

.ctx-video__date {
  color: var(--ctx-video-muted);
}

/* Share popup trigger. The panel itself is styled by share-popup.css. */

.ctx-video__actions {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
}

.ctx-video__share,
.ctx-video__share:link,
.ctx-video__share:visited,
.ctx-video__share:hover,
.ctx-video__share:focus,
.ctx-video__share:active {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ctx-video-ink);
  font-family: var(--fontfamily-body);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
}

.ctx-video__share:hover span,
.ctx-video__share:focus span {
  text-decoration: underline;
}

.ctx-video__share:focus-visible {
  outline: 2px solid var(--ctx-video-marker);
  outline-offset: 3px;
}

.ctx-video__share-icon {
  display: block;
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  line-height: 0;
}

.ctx-video .ctx-video__share-icon img {
  display: block;
  width: 20px;
  height: 20px;
}

/*--------------------------------------------------------------
# Hero
--------------------------------------------------------------*/

.ctx-video .ctx-video__hero {
  position: relative;
  display: block;
  width: 100%;
  margin-bottom: 30px;
}

.ctx-video .ctx-video__hero-image {
  display: block;
  width: 100%;
  height: auto;
}

.ctx-video .ctx-video__hero--embed {
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.ctx-video .ctx-video__hero--embed iframe {
  position: absolute;
  top: 0;
  left: 0;
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

@supports not (aspect-ratio: 16 / 9) {
  .ctx-video .ctx-video__hero--embed {
    height: 0;
    padding-bottom: 56.25%;
  }
}

.ctx-video__duration {
  position: absolute;
  left: 12px;
  bottom: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 9px;
  border-radius: 2px;
  background-color: rgba(4, 16, 38, 0.85);
  color: var(--ctx-video-ink);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
}

.ctx-video .ctx-video__duration-icon {
  display: block;
  width: 10px;
  height: 12px;
}

/*--------------------------------------------------------------
# Body
--------------------------------------------------------------*/

.ctx-video__body {
  font-size: 17px;
  line-height: 27px;
  color: var(--ctx-video-ink);
}

.ctx-video__body p {
  margin: 0 0 20px;
}

.ctx-video__body p:last-child {
  margin-bottom: 0;
}

.ctx-video__body h2 {
  margin: 32px 0 14px;
  font-size: 22px;
  font-weight: 700;
  line-height: 28px;
}

.ctx-video__body h3 {
  margin: 26px 0 12px;
  font-size: 19px;
  font-weight: 700;
  line-height: 25px;
}

.ctx-video__body ul,
.ctx-video__body ol {
  margin: 0 0 20px;
  padding-left: 20px;
}

.ctx-video__body ul li {
  list-style: disc;
}

.ctx-video__body ol li {
  list-style: decimal;
}

.ctx-video__body li {
  margin-bottom: 10px;
}

.ctx-video__body a,
.ctx-video__body a:link,
.ctx-video__body a:visited,
.ctx-video__body a:hover,
.ctx-video__body a:focus,
.ctx-video__body a:active {
  color: var(--ctx-video-ink);
  border-bottom: 1px solid currentColor;
  text-decoration: none;
}

.ctx-video__body a:hover,
.ctx-video__body a:focus {
  border-bottom-color: var(--ctx-video-marker);
  color: var(--ctx-video-marker);
}

.ctx-video__body img {
  max-width: 100%;
  height: auto;
}

.ctx-video__body iframe {
  max-width: 100%;
}

/*--------------------------------------------------------------
# Rail modules
--------------------------------------------------------------*/

.ctx-video-module {
  margin-bottom: 24px;
}

.ctx-video-module:last-child {
  margin-bottom: 0;
}

.ctx-video-module__title,
.ctx-video-hub__title {
  position: relative;
  margin: 0 0 20px;
  padding-left: 17px;
  padding-right: 20px;
  font-family: var(--fontfamily-body);
  font-size: 18px;
  font-weight: 600;
  line-height: 25px;
  letter-spacing: normal;
  text-transform: uppercase;
  color: var(--ctx-video-ink);
}

.ctx-video-module__title::before,
.ctx-video-hub__title::before {
  content: "";
  position: absolute;
  top: 6px;
  left: 0;
  width: 8px;
  height: 13px;
  background-color: var(--ctx-video-marker);
}

.ctx-video-module__body {
  display: grid;
  gap: 26px;
}

/*--------------------------------------------------------------
# Cards
--------------------------------------------------------------*/

.ctx-video-card {
  min-width: 0;
}

.ctx-video-card__media,
.ctx-video-card__media:link,
.ctx-video-card__media:visited,
.ctx-video-card__media:hover,
.ctx-video-card__media:focus,
.ctx-video-card__media:active {
  position: relative;
  display: block;
  margin-bottom: 12px;
  text-decoration: none;
}

.ctx-video .ctx-video-card__image {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.ctx-video .ctx-video-card__image--empty {
  background-color: rgba(255, 255, 255, 0.08);
}

.ctx-video-card__duration {
  position: absolute;
  left: 8px;
  bottom: 8px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 7px;
  border-radius: 2px;
  background-color: rgba(4, 16, 38, 0.85);
  color: var(--ctx-video-ink);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
}

.ctx-video .ctx-video-card__duration-icon {
  display: block;
  width: 10px;
  height: 12px;
}

.ctx-video-card__label,
.ctx-video-card__label:link,
.ctx-video-card__label:visited,
.ctx-video-card__label:hover,
.ctx-video-card__label:focus,
.ctx-video-card__label:active {
  display: inline-block;
  padding: 5px 10px;
  margin-bottom: 12px;
  border-radius: 4px;
  background-color: var(--ctx-video-chip);
  color: var(--ctx-video-ink);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.2;
  text-transform: uppercase;
  text-decoration: none;
}

.ctx-video-card__label:hover,
.ctx-video-card__label:focus {
  background-color: var(--ctx-video-chip-hover);
}

.ctx-video-card__title {
  margin: 0 0 10px;
  font-size: 17px;
  font-weight: 600;
  line-height: 24px;
}

.ctx-video-card__title a,
.ctx-video-card__title a:link,
.ctx-video-card__title a:visited,
.ctx-video-card__title a:hover,
.ctx-video-card__title a:focus,
.ctx-video-card__title a:active {
  color: var(--ctx-video-ink);
  text-decoration: none;
}

.ctx-video-card__title a:hover,
.ctx-video-card__title a:focus {
  text-decoration: underline;
}

.ctx-video-card__authors {
  margin: 0;
  font-size: 13px;
  line-height: 18px;
}

.ctx-video-card__author,
.ctx-video-card__author:link,
.ctx-video-card__author:visited,
.ctx-video-card__author:hover,
.ctx-video-card__author:focus,
.ctx-video-card__author:active {
  color: var(--ctx-video-ink);
  font-weight: 600;
  border-bottom: 1px solid currentColor;
  text-decoration: none;
}

/*--------------------------------------------------------------
# Hub
--------------------------------------------------------------*/

.ctx-video-hub {
  background-color: var(--ctx-video-hub-bg);
  padding: 40px 0 56px;
}

.ctx-video-hub__module {
  max-width: var(--ctx-video-container);
  margin: 0 auto;
  padding-right: var(--ctx-pad-x, 3rem);
  padding-bottom: 32px;
  padding-left: var(--ctx-pad-x, 3rem);
}

.ctx-video-hub__module + .ctx-video-hub__module {
  padding-top: 32px;
  border-top: 1px solid var(--ctx-video-rule);
}

.ctx-video-hub__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}

.ctx-video-hub__head .ctx-video-hub__title {
  margin-bottom: 0;
}

.ctx-video-hub__see-all,
.ctx-video-hub__see-all:link,
.ctx-video-hub__see-all:visited,
.ctx-video-hub__see-all:hover,
.ctx-video-hub__see-all:focus,
.ctx-video-hub__see-all:active {
  padding-left: 12px;
  border-left: 1px solid var(--ctx-video-rule);
  color: var(--ctx-video-marker);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
}

.ctx-video-hub__see-all:hover,
.ctx-video-hub__see-all:focus {
  text-decoration: underline;
}

.ctx-video-hub__intro {
  margin: 0 0 20px;
  font-size: 15px;
  line-height: 22px;
  color: var(--ctx-video-muted);
}

.ctx-video-hub__body--pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
}

.ctx-video-hub__body--pair .ctx-video-card__title {
  font-size: 24px;
  line-height: 32px;
}

/*--------------------------------------------------------------
# Carousel
--------------------------------------------------------------*/

.ctx-video-carousel {
  position: relative;
}

.ctx-video-carousel__track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 3 * var(--ctx-video-gutter)) / 4);
  gap: var(--ctx-video-gutter);
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.ctx-video-carousel__track::-webkit-scrollbar {
  display: none;
}

.ctx-video-carousel__track > .ctx-video-card {
  scroll-snap-align: start;
}

.ctx-video-carousel__arrow {
  position: absolute;
  top: 20px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 176px;
  padding: 0;
  border: 1px solid var(--ctx-video-marker);
  border-radius: 0;
  background-color: rgba(0, 33, 64, 0.55);
  cursor: pointer;
}

.ctx-video-carousel__arrow[hidden] {
  display: none;
}

.ctx-video-carousel__arrow img {
  display: block;
  width: 18px;
  height: 22px;
}

.ctx-video-carousel__arrow--prev {
  left: 0;
}

.ctx-video-carousel__arrow--prev img {
  transform: rotate(180deg);
}

.ctx-video-carousel__arrow--next {
  right: 0;
}

/*--------------------------------------------------------------
# Standalone widgets
--------------------------------------------------------------*/

/* Applied when a module is printed by a shortcode outside single-video.php:
   each shortcode carries its own hub wrapper, so both the vertical rhythm and
   the page gutter are controlled here instead of by the page level padding. */

.ctx-video--standalone {
  --ctx-video-standalone-space: 24px;
}

.ctx-video--standalone .ctx-video-hub {
  padding-top: var(--ctx-video-standalone-space);
  padding-bottom: var(--ctx-video-standalone-space);
}

.ctx-video--standalone + .ctx-video--standalone .ctx-video-hub {
  padding-top: 0;
}

/* A standalone module is placed inside the page .wp-block-columns wrapper,
   which already carries the page gutter, so the module drops its own and the
   two do not stack. On single-video.php there is no wrapper and the module
   keeps the gutter it declares above. */
.ctx-video--standalone .ctx-video-hub__module {
  padding-right: 0;
  padding-bottom: 0;
  padding-left: 0;
}

.ctx-video--standalone .ctx-video-hub__module + .ctx-video-hub__module {
  padding-top: var(--ctx-video-standalone-space);
  margin-top: var(--ctx-video-standalone-space);
}

/*--------------------------------------------------------------
# Responsive
--------------------------------------------------------------*/

/* The gutter tracks --ctx-pad-x (header.css) at every width, so the content
   edge lines up with the burger and the search icon. Above the container
   width the automatic margins already clear the viewport edges, so the side
   padding is dropped and the rows use the full 1400px. Mirrors the reset the
   header and the footer apply at this breakpoint. */
@media (min-width: 1500px) {
  .ctx-video__layout,
  .ctx-video-hub__module {
    padding-left: 0;
    padding-right: 0;
  }
}

@media (max-width: 1080px) {
  .ctx-video__layout {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 40px;
  }

  .ctx-video__main,
  .ctx-video__rail {
    grid-column: 1;
  }

  .ctx-video__title {
    font-size: 30px;
    line-height: 36px;
  }

  .ctx-video-module__body {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .ctx-video-carousel__track {
    grid-auto-columns: calc((100% - var(--ctx-video-gutter)) / 2);
  }
}

@media (max-width: 781px) {
  .ctx-video__title {
    font-size: 26px;
    line-height: 32px;
  }

  .ctx-video__meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .ctx-video-module__body {
    grid-template-columns: minmax(0, 1fr);
  }

  .ctx-video-hub__body--pair {
    grid-template-columns: minmax(0, 1fr);
  }

  .ctx-video-hub__body--pair .ctx-video-card__title {
    font-size: 20px;
    line-height: 27px;
  }

  .ctx-video-carousel__track {
    grid-auto-columns: 78%;
  }

  .ctx-video-carousel__arrow {
    display: none;
  }
}
.ctx-video__collaboration {
	margin-top: 24px;
	padding-top: 20px;
	border-top: 1px solid rgba(255, 255, 255, .35);
}

.ctx-video-partner {
	display: flex;
	align-items: center;
	gap: 16px;
}

.ctx-video-partner__label {
	margin: 0;
	color: inherit;
	font-size: 13px;
	font-weight: 600;
}

.ctx-video-partner__identity {
	display: inline-flex;
	align-items: center;
	color: inherit;
}

.ctx-video-partner__logo {
	display: block;
	max-width: 180px;
	max-height: 52px;
	width: auto;
	height: auto;
	object-fit: contain;
}

.ctx-video-partner__name {
	font-weight: 700;
}

.ctx-video-series-archive {
	min-height: 60vh;
	background: #fff;
}

.ctx-video-series-archive__titlebar {
	background: var(--ctx-blue-band, #004371);
	border-top: 1px solid var(--ctx-navy-mid, #042d52);
}

.ctx-video-series-archive__titlebar .max-width {
	padding: 22px 30px;
}

.ctx-video-series-archive__titlebar h1 {
	margin: 0;
	color: #fff;
	font-size: 22px;
	font-weight: 600;
	line-height: 34px;
}

.ctx-video-series-archive__body {
	padding: 38px 30px 72px;
}

.ctx-video-series-archive .max-width {
	max-width: 1440px;
}

.ctx-video-series-archive .ctx-section__layout {
	grid-template-columns: minmax(0, 2.72fr) minmax(0, 1fr);
	gap: 48px;
}

.ctx-video-series-archive__count {
	margin: 0 0 28px;
	color: #000;
	font-size: 16px;
	line-height: 25px;
	font-weight: 600;
}

.ctx-video-series-archive__empty {
	margin: 0;
	font-size: 18px;
	line-height: 29px;
}

.ctx-series-feed-item {
	display: flex;
	align-items: stretch;
	margin: 0 0 22px;
}

.ctx-series-feed-item__media {
	display: block;
	flex: 0 0 40%;
	min-width: 40%;
	aspect-ratio: 100 / 62;
	overflow: hidden;
}

.ctx-series-feed-item__media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.ctx-series-feed-item__info {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	align-items: flex-start;
	min-width: 0;
	padding-left: 20px;
}

.ctx-series-feed-item__label {
	display: inline-block;
	margin: 0 0 9px;
	padding: 4px 12px;
	border-radius: 4px;
	background: var(--ctx-blue-deep, #004a7c);
	color: #fff !important;
	font-size: 11px;
	font-weight: 600;
	line-height: 17px;
	text-decoration: none !important;
	text-transform: uppercase;
}

.ctx-series-feed-item__title {
	margin: 0 0 7px;
	font-size: 20px;
	font-weight: 500;
	line-height: 28px;
}

.ctx-series-feed-item__title a,
.ctx-series-feed-item__title a:visited {
	color: #000;
	text-decoration: none;
}

.ctx-series-feed-item__teaser p {
	margin: 0 0 8px;
	font-size: 16px;
	line-height: 25px;
}

.ctx-series-feed-item__authors {
	margin: 0 0 8px;
	font-size: 15px;
	line-height: 21px;
}

.ctx-series-feed-item__authors a,
.ctx-series-feed-item__authors a:visited {
	color: #212223;
	text-decoration: underline;
}

.ctx-series-feed-item__date {
	margin: 0;
	color: #6f6f6f;
	font-size: 13px;
	line-height: 21px;
}

@media (max-width: 991.98px) {
	.ctx-video-series-archive .ctx-section__layout {
		grid-template-columns: minmax(0, 1fr);
	}
}

@media (max-width: 767px) {
	.ctx-video-series-archive__titlebar .max-width,
	.ctx-video-series-archive__body {
		padding-right: 20px;
		padding-left: 20px;
	}

	.ctx-series-feed-item {
		flex-direction: column;
	}

	.ctx-series-feed-item__media {
		flex-basis: auto;
		width: 100%;
		min-width: 100%;
	}

	.ctx-series-feed-item__info {
		padding: 16px 0 0;
	}
}
