/* Ferrari 550 v25: page-scoped mobile framing corrections. */

/* Preserve the complete portrait paddock photograph instead of forcing its
   native 2:3 composition into the legacy mobile 4:3 story frame. */
@media (max-width: 640px) and (orientation: portrait) {
  .feature-550 .story-duo figure:last-child {
    block-size: auto !important;
    min-block-size: 0 !important;
    aspect-ratio: 1866 / 2800 !important;
  }

  .feature-550 .story-duo figure:last-child img {
    display: block;
    inline-size: 100% !important;
    block-size: 100% !important;
    min-block-size: 0 !important;
    object-fit: contain !important;
    object-position: center !important;
    transform: none !important;
  }
}

/* Short landscape browser viewports previously cropped roughly the upper
   third of these images. Let each panel follow its source ratio and scroll. */
@media (max-width: 1024px) and (orientation: landscape) {
  .feature-550 #long-bonnet {
    block-size: auto !important;
    min-block-size: 0 !important;
    aspect-ratio: 2164 / 1500 !important;
  }

  .feature-550 #movement {
    block-size: auto !important;
    min-block-size: 0 !important;
    aspect-ratio: 2200 / 1467 !important;
  }

  .feature-550 #long-bonnet > img,
  .feature-550 #movement > img {
    object-fit: contain !important;
    object-position: center !important;
  }
}
