
.horizontal-scroll-track {
    display: flex;
    gap: 2rem;
    height: 60vh;
    will-change: transform;
}

.horizontal-scroll-track video,
.horizontal-scroll-track img {
    height: 100%;
    width: auto;
    flex-shrink: 0;
}

.img-match-height {
    height: 100%;
    width: auto;
    max-height: calc(2.5vw + 80px);
    object-fit: cover;
    flex-shrink: 0;
    display: block;
    align-self: stretch;
}

.panel {
  position: sticky;
  top: -20vh;
  height: 110dvh;      /* or 100dvh for mobile */
  overflow: hidden;
  z-index: var(--i);   /* later panels need higher z-index to cover earlier ones */
}

.panel img,
.panel video {
  width: 100%;
  height: 100%;
  object-fit: cover;   /* <-- this is the key fix for your cutoff issue */
}

.row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  height: 70dvh;
}

.cell {
  min-height: 0;   /* <-- the fix */
  min-width: 0;    /* <-- also needed if width overflow */
  overflow: hidden;
}

.cell img,
.cell video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;   /* kills inline-element baseline gap too */
}


.page-number {
    cursor: pointer;
}

.page-number.current {
    opacity: 50%;
    cursor: default;
}

.page-number.red {
    cursor: pointer;
}