:host {
  display: flex;
}

.content {
  flex-grow: 1;
}

::slotted([slot=start i]),
::slotted([slot=end i]) {
  position: sticky;
  top: 0;
  bottom: 0;
  block-size: 100vh;
}

::slotted([slot=start i]) {
  margin-inline-end: auto;
}

::slotted([slot=end i]) {
  margin-inline-start: auto;
}