/* Video Content Hero Section */

.video-content-hero {
  position: relative;
}

/* Heading/description are richtext blocks rendered into a .rte wrapper.
   Typography lives on the WRAPPER (editor-safe — the WYSIWYG editor cannot
   strip the wrapper's classes). The inner <h2>/<p> inherits font + color
   from the wrapper so typography survives even after the editor rewrites
   the inner tag to a bare <p> on alignment/format edits. */
.video-content-hero-heading > *,
.video-content-hero-description > * {
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
  color: inherit;
  margin: 0 !important;
}

/* Background Overlay */
.video-content-hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  pointer-events: none;
}

.video-content-hero-inner {
  position: relative;
  z-index: 2;
}

/* Content Wrapper */
.video-content-hero-wrapper {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
  align-items: center;
  text-align: center;
}

/* Alignment Modifiers */
.video-content-hero-align-left {
  align-items: flex-start;
  text-align: left;
}

.video-content-hero-align-right {
  align-items: flex-end;
  text-align: right;
}

.video-content-hero-align-center {
  align-items: center;
  text-align: center;
}

@media (min-width: 1024px) {
  .video-content-hero-wrapper {
    /* gap: var(--space-2xl); */
  }
}

/* Text Content */
.video-content-hero-text {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  width: 100%;
}
div.video-content-hero-text  {
  margin: 0;
}

@media (min-width: 1024px) {
  .video-content-hero-text {
    gap: var(--space-sm);
  }
}

/* Heading */
.video-content-hero-heading {
  line-height: 1;
  white-space: normal;
}

@media (min-width: 1024px) {
  .video-content-hero-heading {
    line-height: 1.1;
  }
}

/* Description */
.video-content-hero-description {
  line-height: 1.5;
  white-space: normal;
}

@media (min-width: 1024px) {
  .video-content-hero-description {
    line-height: 1.5;
  }
}

/* Video Container */
.video-content-hero-video-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
}

/* Mobile + tablet: maximize the video's screen presence. The desktop
   `video_max_width` setting can constrain the video to a narrow box (e.g.
   600px) — fine on a wide desktop but leaves a 16:9 video looking small on
   a 360px phone. Force the wrapper to ignore the inline max-width below
   1024px so the 16:9 video uses full container width. Trim the inline
   border from 2px to 1px so it doesn't visually pinch the frame at the
   smaller scales. Desktop layout (≥1024px) is unchanged. */
@media (max-width: 1023px) {
  .video-content-hero-video-wrapper[style*="max-width"] {
    max-width: 100% !important;
  }
  .video-content-hero-video-container[style*="border"] {
    border-width: 1px !important;
  }
}

/* Video alignment inherits from parent */
.video-content-hero-align-left .video-content-hero-video-wrapper {
  align-items: flex-start;
}

.video-content-hero-align-right .video-content-hero-video-wrapper {
  align-items: flex-end;
}

.video-content-hero-align-center .video-content-hero-video-wrapper {
  align-items: center;
}

.video-content-hero-video-container {
  position: relative;
  width: 100%;
  overflow: hidden;
  aspect-ratio: 16 / 9;
}

.video-content-hero-thumbnail {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

/* Play Button — shared .yoli-play disc, see assets/design-utilities.css */

/* Background Image Handling */
.video-content-hero[data-bg] {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.video-content-hero-inner[data-bg] {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
