/* ==========================================================================
   FRONTLINE21 — EDITORIAL PHOTOGRAPHY
   The plate that holds a photograph from the Suite 01 library.

   The two orientations are separate compositions, not crops of one another,
   so the frame changes shape with the source rather than letterboxing a wide
   picture into a tall hole. `object-fit: cover` is only the last safeguard,
   never the art direction.

   No plate carries a visible caption. The index, suite and plate labels that
   used to sit under every photograph were production notes, and they are gone
   from the public page; attribution lives in the alternative text and in
   docs/ASSET-MANIFEST.md.
   ========================================================================== */

.editorial {
  margin: 0;
}

.editorial__frame {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: var(--ink-raised);
}

.editorial__frame picture,
.editorial__frame img {
  display: block;
  width: 100%;
  height: 100%;
}

.editorial__frame img {
  object-fit: cover;
  object-position: center;
}

/* A thin rule, the way the films close a plate. */
.editorial__frame::after {
  content: '';
  position: absolute;
  inset: auto 0 0 0;
  height: 2px;
  background: var(--f21-red);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 620ms cubic-bezier(0.2, 0.7, 0.2, 1) var(--reveal-delay, 0ms);
}

.is-in .editorial__frame::after,
.editorial.is-in .editorial__frame::after {
  transform: scaleX(1);
}

/* Below the breakpoint the portrait composition is served, so the frame takes
   the portrait ratio with it. */
@media (max-width: 767px) {
  .editorial__frame {
    aspect-ratio: 9 / 16;
  }

  /* A plate with one source only. The accountability table exists as a single
     720p frame from the archive clip, so it is served wide at every width
     rather than telling a phone a different story from the one the alternative
     text describes. */
  .editorial--wide-only .editorial__frame {
    aspect-ratio: 16 / 9;
  }
}

@media (prefers-reduced-motion: reduce) {
  .editorial__frame::after {
    transition: none;
    transform: scaleX(1);
  }
}
