.fm-video-main {
    min-height: 100vh;
    background:
      radial-gradient(circle at 10% 10%, rgba(22, 94, 28, .20), transparent 34rem),
      radial-gradient(circle at 92% 18%, rgba(139, 20, 12, .16), transparent 36rem),
      #070807;
  }

  .fm-video-main .drupal-highlighted {
    width: min(1440px, calc(100% - 48px));
    margin: 0 auto;
  }

  .fm-video-main > .drupal-content {
    width: 100%;
    padding: 0;
  }

  .fm-video-main > .drupal-content > div {
    width: 100%;
  }

  /* Remove generic block constraints from both Video Views. */
  .fm-video-main .theme-block,
  .fm-video-main .theme-block-content,
  .fm-video-main .views-element-container {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
  }

  /* =========================================================
     Featured video
     ========================================================= */

  .fm-video-main .video-hero-section {
    width: 100%;
    margin: 0;
    padding:
      clamp(3rem, 7vw, 6.5rem) 0
      clamp(2.5rem, 5vw, 5rem);
    border-bottom: 1px solid rgba(232, 189, 53, .28);
  }

  .fm-video-main .video-hero-section > .container {
    width: min(1440px, calc(100% - 48px));
    max-width: none;
    margin: 0 auto;
    padding: 0;
  }

  .fm-video-main .video-hero-section__header {
    margin-bottom: clamp(1.75rem, 4vw, 3rem);
  }

  .fm-video-main .section-kicker {
    display: block;
    margin: 0 0 .85rem;
    color: #e8bd35;
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .2em;
    text-transform: uppercase;
  }

  .fm-video-main .video-hero-section__header h1 {
    max-width: 980px;
    margin: 0;
    color: #fff;
    font-size: clamp(3.6rem, 9vw, 8rem);
    line-height: .84;
    text-transform: uppercase;
  }

  .fm-video-main .video-hero-section__header p {
    max-width: 760px;
    margin: 1.5rem 0 0;
    color: rgba(255,255,255,.76);
    font-size: clamp(1rem, 1.5vw, 1.2rem);
    line-height: 1.75;
  }

  .fm-video-main .video-featured,
  .fm-video-main .video-featured__item {
    width: 100%;
  }

  .fm-video-main .video-featured .video-card {
    width: 100%;
    max-width: none;
    margin: 0;
  }

  .fm-video-main .video-featured .video-card__link {
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) minmax(280px, .8fr);
    min-height: 520px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.12);
    background: rgba(13,14,13,.94);
    color: #fff;
    text-decoration: none;
  }

  .fm-video-main .video-featured .video-card__media {
    min-height: 520px;
  }

  .fm-video-main .video-featured .video-card__content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(2rem, 4vw, 4rem);
  }

  /* =========================================================
     Video catalogue
     ========================================================= */

  .fm-video-main #block-fyah-mawi-content {
    width: min(1440px, calc(100% - 48px));
    margin: 0 auto;
    padding: clamp(2.5rem, 5vw, 5rem) 0;
  }

  /*
   * Important: only .video-grid is a card grid.
   * Existing global CSS groups .video-gallery with .video-grid and creates
   * two 50% parent columns, leaving the right side empty.
   */
  .fm-video-main .fm-video-page,
  .fm-video-main .video-gallery,
  .fm-video-main .video-library {
    display: block !important;
    width: 100% !important;
    max-width: none;
    margin: 0 !important;
    padding: 0;
  }

  .fm-video-main .video-library__header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 540px);
    align-items: end;
    gap: 2rem;
    margin: 0 0 2rem;
  }

  .fm-video-main .video-library__header .section-kicker {
    grid-column: 1;
  }

  .fm-video-main .video-library__header h2 {
    grid-column: 1;
    margin: -.25rem 0 0;
    color: #fff;
    font-size: clamp(2rem, 4vw, 3.7rem);
    line-height: 1;
    text-transform: uppercase;
  }

  .fm-video-main .video-library__header p {
    grid-column: 2;
    grid-row: 1 / span 2;
    max-width: 540px;
    margin: 0;
    color: rgba(255,255,255,.6);
    line-height: 1.65;
  }

  .fm-video-main .video-gallery > .video-library,
  .fm-video-main .video-library > .video-grid {
    grid-column: 1 / -1 !important;
  }

  .fm-video-main .video-grid {
    display: grid !important;
    width: 100% !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: clamp(1.25rem, 2.5vw, 2.5rem) !important;
    align-items: stretch;
    justify-content: stretch !important;
    margin: 0 !important;
  }

  .fm-video-main .video-grid__item {
    min-width: 0;
    width: auto !important;
    max-width: none !important;
    margin: 0 !important;
  }

  .fm-video-main .video-grid .video-card {
    display: flex;
    width: 100% !important;
    max-width: none !important;
    height: 100%;
    margin: 0 !important;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.12);
    background: rgba(13,14,13,.94);
    transition: transform .25s ease, border-color .25s ease;
  }

  .fm-video-main .video-grid .video-card:hover {
    transform: translateY(-6px);
    border-color: rgba(232,189,53,.65);
  }

  .fm-video-main .video-grid .video-card__link {
    display: flex;
    width: 100%;
    min-width: 0;
    flex-direction: column;
    color: #fff;
    text-decoration: none;
  }

  .fm-video-main .video-card__media {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #111;
  }

  .fm-video-main .video-card__media > div,
  .fm-video-main .video-card__media .field,
  .fm-video-main .video-card__media .field__item {
    width: 100%;
    height: 100%;
  }

  .fm-video-main .video-card__media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .45s ease;
  }

  .fm-video-main .video-card:hover .video-card__media img {
    transform: scale(1.04);
  }

  .fm-video-main .video-card__shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,.62), transparent 58%);
    pointer-events: none;
  }

  .fm-video-main .video-card__play {
    position: absolute;
    z-index: 2;
    top: 50%;
    left: 50%;
    display: grid;
    width: 64px;
    height: 64px;
    place-items: center;
    transform: translate(-50%, -50%);
    border: 1px solid rgba(255,255,255,.72);
    border-radius: 50%;
    background: rgba(0,0,0,.52);
    color: #fff;
    font-size: 1.25rem;
  }

  .fm-video-main .video-grid .video-card__content {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 1.4rem;
  }

  .fm-video-main .video-card__content .card-title {
    margin: 0 0 .75rem;
    color: #fff;
    font-size: clamp(1.35rem, 2vw, 1.9rem);
    line-height: 1.15;
  }

  .fm-video-main .video-card__description {
    color: rgba(255,255,255,.66);
    line-height: 1.65;
  }

  .fm-video-main .video-card__description p:first-child {
    margin-top: 0;
  }

  .fm-video-main .video-card__description p:last-child {
    margin-bottom: 0;
  }

  .fm-video-main .video-card .button {
    align-self: flex-start;
    margin-top: auto;
    padding-top: 1.25rem;
    color: #e8bd35;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
  }

  .fm-video-main .pager {
    margin-top: 3rem;
  }

  @media (max-width: 1000px) {
    .fm-video-main .video-featured .video-card__link {
      grid-template-columns: 1fr;
      min-height: 0;
    }

    .fm-video-main .video-featured .video-card__media {
      min-height: 0;
      aspect-ratio: 16 / 9;
    }

    .fm-video-main .video-grid {
      grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
  }

  @media (max-width: 760px) {
    .fm-video-main .video-library__header {
      display: block;
    }

    .fm-video-main .video-library__header p {
      margin-top: 1rem;
    }
  }

  @media (max-width: 560px) {
    .fm-video-main .drupal-highlighted,
    .fm-video-main .video-hero-section > .container,
    .fm-video-main #block-fyah-mawi-content {
      width: min(100% - 28px, 1440px);
    }

    .fm-video-main .video-grid {
      grid-template-columns: 1fr !important;
    }

    .fm-video-main .video-hero-section__header h1 {
      font-size: clamp(3rem, 18vw, 5rem);
    }
  }

/* ===== BEGIN MIGRATED MOBILE OWNERSHIP ===== */

/* Exact responsive rules migrated from the former global mobile compatibility layer. */

@media (max-width: 640px) {
  .videos-hero
  {
        min-height: 0;
        height: auto;

  }

  .videos-section
  {
        padding-block: var(--fm-mobile-section-space);

  }

  .video-card img
  {
        display: block;
        width: 100%;
        height: auto;
        aspect-ratio: 4 / 3;
        object-fit: cover;
        object-position: center;

  }

  /* Video cards: consistent thumbnails. */

    .video-card img
  {
        aspect-ratio: 16 / 9;

  }

  /* Text clamping on long mobile video summaries. */

    .video-card__description
  {
        display: -webkit-box;
        overflow: hidden;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 4;

  }

  .video-card .field--name-body
  {
        display: -webkit-box;
        overflow: hidden;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 4;

  }

  .videos-page
  {
        box-sizing: border-box;
        width: 100%;
        max-width: 100%;

  }

  .videos-page > section
  {
        box-sizing: border-box;
        width: calc(100% - 2rem);
        max-width: none;
        margin-right: auto;
        margin-left: auto;

  }

  .videos-hero
  {
        width: 100%;
        margin-right: 0;
        margin-left: 0;

  }

  .video-card
  {
        box-sizing: border-box;
        max-width: 100%;
        min-width: 0;

  }

  .fm-video-main .drupal-highlighted
  {
        box-sizing: border-box;
        width: calc(100% - 2rem);
        max-width: none;
        margin-right: auto;
        margin-left: auto;

  }

  .fm-video-main .video-hero-section > .container
  {
        box-sizing: border-box;
        width: calc(100% - 2rem);
        max-width: none;
        margin-right: auto;
        margin-left: auto;

  }

  .fm-video-main .video-page-section > .container
  {
        box-sizing: border-box;
        width: calc(100% - 2rem);
        max-width: none;
        margin-right: auto;
        margin-left: auto;

  }

  .fm-video-main .videos-page-section > .container
  {
        box-sizing: border-box;
        width: calc(100% - 2rem);
        max-width: none;
        margin-right: auto;
        margin-left: auto;

  }

  .fm-video-main .view-content
  {
        box-sizing: border-box;
        width: calc(100% - 2rem);
        max-width: none;
        margin-right: auto;
        margin-left: auto;

  }

  .fm-video-main > .drupal-content
  {
        box-sizing: border-box;
        width: 100%;
        max-width: 100%;
        margin-right: 0;
        margin-left: 0;
        padding-right: 0;
        padding-left: 0;

  }

  .fm-video-main > .drupal-content > div
  {
        box-sizing: border-box;
        width: 100%;
        max-width: 100%;
        margin-right: 0;
        margin-left: 0;
        padding-right: 0;
        padding-left: 0;

  }

  .fm-video-main .theme-block
  {
        box-sizing: border-box;
        width: 100%;
        max-width: 100%;
        margin-right: 0;
        margin-left: 0;
        padding-right: 0;
        padding-left: 0;

  }

  .fm-video-main .theme-block-content
  {
        box-sizing: border-box;
        width: 100%;
        max-width: 100%;
        margin-right: 0;
        margin-left: 0;
        padding-right: 0;
        padding-left: 0;

  }

  .fm-video-main .views-element-container
  {
        box-sizing: border-box;
        width: 100%;
        max-width: 100%;
        margin-right: 0;
        margin-left: 0;
        padding-right: 0;
        padding-left: 0;

  }

  .fm-video-main .video-hero-section
  {
        padding-top: 2.75rem;
        padding-bottom: 2.25rem;

  }

  .fm-video-main .video-hero-section__header h1
  {
        font-size: clamp(3rem, 15vw, 4.75rem);
        line-height: 0.88;

  }

  .fm-video-main .video-hero-section__header p
  {
        margin-top: 1.2rem;
        font-size: 1rem;
        line-height: 1.6;

  }

}

/* ===== END MIGRATED MOBILE OWNERSHIP ===== */

/* =========================================================
   Featured video layout correction
   ========================================================= */

.fm-video-main .video-featured .video-card,
.fm-video-main .video-featured .video-card__link {
  width: 100%;
  max-width: none;
}

.fm-video-main .video-featured .video-card__link {
  display: grid;
  grid-template-columns:
    minmax(0, 1.25fr)
    minmax(22rem, 0.75fr);
  align-items: stretch;
}

.fm-video-main .video-featured .video-card__media {
  min-width: 0;
  aspect-ratio: 16 / 9;
}

.fm-video-main .video-featured .video-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.fm-video-main .video-featured .video-card__content {
  box-sizing: border-box;
  width: auto;
  min-width: 0;
  max-width: none;
  padding: clamp(2rem, 4vw, 4rem);
}

.fm-video-main .video-featured .video-card__title {
  max-width: 15ch;
  font-size: clamp(1.7rem, 2.7vw, 3rem);
  line-height: 1;
  overflow-wrap: normal;
}

.fm-video-main .video-featured .video-card__description {
  max-width: 34rem;
  font-size: 1rem;
  line-height: 1.65;
}

@media (max-width: 900px) {
  .fm-video-main .video-featured .video-card__link {
    grid-template-columns: 1fr;
  }

  .fm-video-main .video-featured .video-card__content {
    padding: 1.5rem;
  }
}


/* =========================================================
   Shared CMS hero integration and featured-card correction.
   ========================================================= */

.fm-video-main .video-hero-section__header {
  display: none;
}

.fm-video-main .video-featured .video-card,
.fm-video-main .video-featured .video-card__link {
  width: 100%;
  max-width: none;
}

.fm-video-main .video-featured .video-card__link {
  display: grid;
  grid-template-columns:
    minmax(0, 1.35fr)
    minmax(20rem, 0.65fr);
  align-items: stretch;
}

.fm-video-main .video-featured .video-card__media {
  min-width: 0;
  aspect-ratio: 16 / 9;
}

.fm-video-main .video-featured .video-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.fm-video-main .video-featured .video-card__content {
  box-sizing: border-box;
  width: auto;
  min-width: 0;
  max-width: none;
  padding: clamp(1.75rem, 4vw, 3.75rem);
}

.fm-video-main .video-featured .video-card__title {
  max-width: 16ch;
  font-size: clamp(1.7rem, 2.7vw, 3rem);
  line-height: 1;
  overflow-wrap: normal;
}

.fm-video-main .video-featured .video-card__description {
  max-width: 34rem;
  font-size: 1rem;
  line-height: 1.65;
}

@media (max-width: 900px) {
  .fm-video-main .video-featured .video-card__link {
    grid-template-columns: 1fr;
  }
}
