/* Round the image matte only: the inherited rounded figure clipped caption glyphs. */
[data-axis-review] .axis-header{pointer-events:none}
[data-axis-review] .axis-header :is(a,button){pointer-events:auto}
#review-story .ps-photo{overflow:visible;border-radius:0}
#review-story .ps-photo figcaption{font-size:1rem;line-height:1.5;padding-top:.75rem;overflow:visible}
#review-story .ps-portal-down{display:flex;align-items:center;justify-content:center;min-width:44px;min-height:44px;text-decoration:none}
#review-story .ps-portal-down svg{width:24px;height:32px;fill:none;stroke:currentColor;stroke-width:1.3}
#review-story .ps-portal-down:focus-visible{outline:2px solid currentColor;outline-offset:4px}
#review-story .ps-portal-finishing .ps-portal-down{opacity:1}
@media(min-width:600px) and (max-height:640px){
 #review-story.ps-horizontal .ps-sequence-item.ps-intro .ps-photo figcaption{position:absolute;top:0;left:calc(100% + 1rem);width:max-content;max-width:calc(var(--ps-view-w) - 10rem);padding-top:0;white-space:nowrap}
}

/* In the vertical story, keep the direction and the guide outside the copy. */
@media (max-width:600px), (max-width:1023px) and (max-height:500px) and (orientation:landscape){
 #review-story:not(.ps-horizontal) .ps-scroll-cue svg{transform:rotate(90deg)}
 #review-story:not(.ps-horizontal) .ps-sequence-axis{
  left:auto;right:10px;mask-image:linear-gradient(transparent,#000 8%,#000 92%,transparent);
 }
}

/* The phone keeps a full final frame over a shorter span of native scroll. */
@media (width < 600px), (width < 1024px) and (max-height: 500px) and (orientation: landscape){
 #review-story:not(.ps-horizontal) .ps-calm{padding-bottom:clamp(32px,6svh,52px)}
 #review-story:not(.ps-horizontal) .ps-portal-label{
  top:max(72px,calc(var(--ps-portal-center,50%) - var(--ps-ph) / 2 - 36px));
 }
 #review-story:not(.ps-horizontal) .ps-portal-down{
  top:min(calc(100% - 58px),calc(var(--ps-portal-center,50%) + var(--ps-ph) / 2 + 12px));bottom:auto;
 }
}
@media (width < 600px){
 #review-story.ps-motion:not(.ps-horizontal) .ps-portal{height:calc(var(--ps-mobile-height,100svh) * 1.62)}
}
@media (width < 600px) and (min-height: 400px) and (orientation: portrait){
 #review-story.ps-motion:not(.ps-horizontal) .ps-portal-stage{
  --ps-portal-lift:clamp(0px,calc(20svh - 55px),126px);
  --ps-portal-center:calc(50% - var(--ps-portal-lift) * (1 - var(--ps-portal-shade,0)));
 }
 #review-story.ps-motion:not(.ps-horizontal) .ps-portal-frame{top:var(--ps-portal-center)}
}
@media (width < 1024px) and (max-height: 500px) and (orientation: landscape){
 #review-story.ps-motion:not(.ps-horizontal) .ps-portal{height:144svh}
}

@media (width < 1024px) and (max-height: 370px) and (orientation: landscape){
 #review-story:not(.ps-horizontal) .ps-portal-label{
  left:max(16px,env(safe-area-inset-left));top:50%;transform:translateY(-50%);
 }
}
