/* ============================================ */
  /* E9 DIGITAL ARCHIVES                          */
  /* ============================================ */
  .ed-section {
    background: #f6f3ec;
    padding: 48px 0 56px;
    border-top: 1px solid var(--line, #e5e0d5);
    color: var(--navy, #14213d);
    scroll-margin-top: 90px;
  }
  .ed-section .container-fluid { padding-left: 5.5%; padding-right: 5.5%; }

  /* ---- Heading (keeps the E9 wordmark fonts) ---- */
  .ed-head { margin-bottom: 24px; }
  .ed-title { margin: 0; font-size: 34px; line-height: 1.2; }
  .ed-title a {
    color: var(--navy, #14213d);
    text-decoration: none;
    background: linear-gradient(var(--gold, #c9a54b), var(--gold, #c9a54b)) no-repeat 0 100% / 0 3px;
    padding-bottom: 4px;
    transition: background-size .3s ease;
  }
  .ed-title a:hover, .ed-title a:focus-visible { background-size: 100% 3px; }
  .ed-sub { font-family: 'Calibri-bold', Calibri, sans-serif; }
  .ed-f1  { font-family: 'ABeeZee', sans-serif; }
  .ed-f2  { font-family: 'Fira Sans', sans-serif; }

  /* ---- Grid ---- */
  .ed-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 30px 26px;
  }
  .ed-card { min-width: 0; }

  /* ---- 16:9 thumbnail / player ---- */
  .ed-card__media {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 8px;
    background: #0b1530;
    border: 1px solid var(--line, #e5e0d5);
    box-shadow: 0 6px 18px rgba(20, 33, 61, 0.14);
    transition: box-shadow .25s, transform .25s, border-color .25s;
  }
  .ed-card:hover .ed-card__media {
    border-color: var(--gold, #c9a54b);
    box-shadow: 0 12px 26px rgba(20, 33, 61, 0.22);
    transform: translateY(-3px);
  }
  .ed-card__media iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

  .ed-facade {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
  }
  .ed-facade img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
  .ed-card:hover .ed-facade img { transform: scale(1.04); }
  .ed-facade::after {                       /* soft shade so the play icon pops */
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(8, 18, 38, 0.5), rgba(8, 18, 38, 0) 55%);
    pointer-events: none;
  }
  .ed-play {
    --play: 56px;
    position: absolute;
    z-index: 1;
    top: 50%; left: 50%;
    width: var(--play); height: var(--play);
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: var(--gold, #c9a54b);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
    transition: transform .2s;
  }
  .ed-play::before {                        /* triangle scales with --play */
    content: "";
    position: absolute;
    top: 50%; left: 54%;
    transform: translate(-50%, -50%);
    border-style: solid;
    border-width: calc(var(--play) * .18) 0 calc(var(--play) * .18) calc(var(--play) * .29);
    border-color: transparent transparent transparent #14213d;
  }
  .ed-card:hover .ed-play { transform: translate(-50%, -50%) scale(1.1); }
  .ed-facade:focus-visible { outline: 3px solid var(--gold, #c9a54b); outline-offset: -3px; }

  /* ---- Text ---- */
  .ed-card__body { padding: 14px 2px 0; }
  .ed-card__tag {
    display: block;
    margin-bottom: 6px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--gold-dark, #8a6d2f);
  }
  .ed-card__title { margin: 0; font-size: 18px; font-weight: 600; line-height: 1.45; }
  .ed-card__title a { color: var(--navy, #14213d); text-decoration: none; }
  .ed-card__title a:hover,
  .ed-card__title a:focus-visible { color: var(--gold-dark, #8a6d2f); text-decoration: underline; text-underline-offset: 3px; }

  /* ---- Bottom row ---- */
  .ed-foot { display: flex; align-items: center; justify-content: flex-end; gap: 16px; margin-top: 30px; }
  .ed-viewall { font-size: 15px; font-weight: 600; color: var(--navy, #14213d); text-decoration: none; }
  .ed-viewall:hover { color: var(--gold-dark, #8a6d2f); }
  .ed-back {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--navy, #14213d);
    color: var(--gold, #c9a54b);
    box-shadow: 0 4px 12px rgba(20, 33, 61, 0.25);
    text-decoration: none;
    transition: background .2s, color .2s, transform .2s;
  }
  .ed-back:hover, .ed-back:focus-visible { background: var(--gold, #c9a54b); color: var(--navy, #14213d); transform: translateY(-3px); }

  .ed-section a:focus-visible { outline: 2px solid var(--gold, #c9a54b); outline-offset: 3px; border-radius: 4px; }

  @media (prefers-reduced-motion: reduce) {
    .ed-card__media, .ed-card:hover .ed-card__media,
    .ed-facade img, .ed-card:hover .ed-facade img,
    .ed-back, .ed-back:hover { transition: none; transform: none; }
  }

  /* ---------- Tablet: 2 columns ---------- */
  @media (max-width: 991.98px) {
    .ed-section { padding: 36px 0 44px; }
    .ed-section .container-fluid { padding-left: 24px; padding-right: 24px; }
    .ed-title { font-size: 30px; }
    .ed-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 22px; }
    .ed-grid > :last-child:nth-child(odd) { grid-column: 1 / -1; max-width: calc(50% - 11px); }  /* lone card keeps the same width */
    .ed-play { --play: 50px; }
  }

  /* ---------- Phone: 1 column ---------- */
  @media (max-width: 575.98px) {
    .ed-section { padding: 28px 0 36px; }
    .ed-section .container-fluid { padding-left: 16px; padding-right: 16px; }
    .ed-title { font-size: 26px; }
    .ed-head { margin-bottom: 18px; }
    .ed-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; }
    .ed-grid > :last-child:nth-child(odd) { max-width: none; }
    .ed-card__title { font-size: 17px; }
    .ed-play { --play: 46px; }
    .ed-card:hover .ed-card__media { transform: none; }
    .ed-foot { margin-top: 22px; gap: 12px; }
    .ed-viewall { font-size: 14px; }
    .ed-back { width: 40px; height: 40px; }
  }