kitbash Sign in Connect agent
Components

Stagger

Two photographs at offset heights, a black and white one flush to the left edge, each with its caption; a swipeable rail on phones.

Part of the style

Cream Photo Monograph

7 parts that belong together, with their tokens, type and rules.

Preview

Code
<style>
/* Goes after the pack's base.css */
:root {
  --paper: #d5e8e6;
  --paper-deep: #dbefed;
  --ink: #5e352b;
  --ink-soft: #7e5f58;
  --rule: #bbd3d0;
  --page-white: #ddf0ee;
  --cloth-ink: #876259;
  --sheen: rgba(226, 246, 244, 0.14);
  --weave-light: rgba(226, 246, 244, 0.05);
  --weave: rgba(94, 53, 43, 0.035);
  --crease: rgba(94, 53, 43, 0.07);
  --crease-deep: rgba(94, 53, 43, 0.12);
  --cloth: #c7a898;
  --shade: rgba(20, 13, 10, 0.22);
  --cloth-spine: #ceaa98;
}
</style>

<section class="stagger" aria-label="Recent pictures">
  <div class="stagger__rail">
    <figure class="stagger__item stagger__item--tall">
      <div class="stagger__frame">
        <img class="stagger__photo stagger__photo--mono" src="assets/breaking-wave.jpg" alt="A wave bursting on black rocks, a sailing boat beyond" width="812" height="1000">
      </div>
      <figcaption class="stagger__caption">Spray, <em>Sète Mole</em>, 2025</figcaption>
    </figure>
    <figure class="stagger__item stagger__item--wide">
      <div class="stagger__frame">
        <img class="stagger__photo" src="assets/rider-dusk.jpg" alt="A horse and rider walking the shoreline at sunset" width="1000" height="667">
      </div>
      <figcaption class="stagger__caption">Evening ride, <em>Low Tide</em>, 2026</figcaption>
    </figure>
  </div>
</section>

<style>
  .stagger {
    padding: var(--space-l) 0 var(--section-space);
  }
  .stagger__rail {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: var(--gap);
    align-items: start;
  }
  .stagger__item {
    margin: 0;
    transition: opacity var(--fade) var(--ease);
  }
  .stagger__item--tall { grid-column: 1 / span 5; }
  .stagger__item--wide {
    grid-column: 7 / span 5;
    margin-top: clamp(var(--space-l), 5vw, 80px);
  }
  .stagger__frame {
    overflow: hidden;
  }
  .stagger__item--tall .stagger__frame { aspect-ratio: 9 / 10; }
  .stagger__item--wide .stagger__frame { aspect-ratio: 3 / 2; }
  .stagger__photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  .stagger__photo--mono {
    filter: grayscale(1) contrast(1.15) brightness(1.02);
    transform: scale(1.06);
    object-position: 50% 70%;
  }
  .stagger__caption {
    padding: var(--space-m) var(--edge) 0;
    font: 300 var(--text-s) / var(--leading) var(--font-serif);
  }
  .stagger__item--wide .stagger__caption { padding-left: 0; }
  .stagger__caption em { font-style: italic; }
  .stagger__rail:has(.stagger__item:hover) .stagger__item:not(:hover) { opacity: 0.35; }

  @media (max-width: 40rem) {
    .stagger { padding-bottom: var(--space-xl); }
    .stagger__rail {
      display: flex;
      gap: var(--space-l);
      overflow-x: auto;
      scroll-snap-type: x mandatory;
      scrollbar-width: none;
    }
    .stagger__rail::-webkit-scrollbar { display: none; }
    .stagger__item {
      flex: 0 0 auto;
      scroll-snap-align: start;
    }
    .stagger__item--tall { width: 66vw; }
    .stagger__item--wide {
      width: 70vw;
      margin-top: 0;
      padding-right: var(--edge);
    }
    .stagger__item--wide .stagger__frame { aspect-ratio: 4 / 5; }
    .stagger__caption { font-size: var(--text-m); }
  }
</style>

Similar components

Offset feature

Offset feature

Pair row

Pair row

Red flood split

Red flood split

Thumbnail tray

Thumbnail tray

Colour wash showcase

Colour wash showcase

Bleed and column cascade

Bleed and column cascade

Work rail

Work rail

Single print viewer

Single print viewer