/* The complete activity step fits one viewport; a gesture moves to its neighbor. */
body.public-site.story-viewport-page #main #activity-control.story-frame {
  height: var(--story-slide-height);
  min-height: 0;
  grid-template-rows: auto minmax(0, 1fr);
}
.journey-activity-visual { background: #f3f5f7; border-radius: 1rem; }
.journey-activity-open { position: relative; display: block; width: 100%; height: 100%; cursor: zoom-in; }
.journey-activity-open:focus-visible { outline: 3px solid var(--blue-deep); outline-offset: -3px; }
.journey-activity-expand { position: absolute; top: .75rem; right: .75rem; display: grid; place-items: center; width: 44px; height: 44px; padding: 10px; border-radius: .4rem; background: rgb(9 22 32 / .32); color: rgb(255 255 255 / .85); box-shadow: 0 1px 5px #0003; }
.journey-activity-expand svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; }
.journey-activity-visual picture { position: relative; display: block; width: 100%; height: 100%; min-height: 0; }
/* Keep both product windows visible instead of applying photograph cropping. */
.journey-activity-visual img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain !important; object-position: center !important; }

@media (max-width: 760px) and (orientation: portrait) {
  /* Fit the full overlay into the space below the copy, never grow the slide. */
  body.public-site.story-viewport-page #main #activity-control > .journey-activity-visual {
    height: 100%;
    min-height: 0;
    align-self: stretch;
    aspect-ratio: auto;
    background: transparent;
    border-radius: 0;
  }
}

@media (max-width: 380px) and (orientation: portrait) {
  body.public-site.story-viewport-page #main #activity-control.story-frame { padding-block: 12px; gap: 8px; }
  #activity-control .journey-step__marker { top: 12px; }
  #activity-control .journey-step__copy p { font-size: 15px; line-height: 1.4; }
}
