@media (min-width: 1020px) {
  html[data-counter-copy-comparison] #site-home #homepage-hero .reference-art-stage {
    /* Keep the portrait cropped on taller viewports as well as wide ones. */
    height: min(var(--reference-desktop-visible-stage, 780px), calc(40vw - 20px)) !important;
  }
}

@media (744px <= width < 1020px) {
  #proothisis-homepage[data-home-composition][data-square-topic] #site-home #homepage-hero .fifty-square-card[data-service="ai"] .ai-statue__canvas {
    /* Fit the bust to the visible stage instead of scaling it to tablet width. */
    inset: 7% auto auto 50% !important;
    width: auto !important;
    /* The shader fades the last part of the canvas. Crop its transparent tail at the stage edge. */
    height: 122% !important;
    aspect-ratio: 934 / 1138;
  }
}

@media (744px <= width < 1020px) {
  #proothisis-homepage[data-home-composition][data-gallery-study][data-square-topic] #site-home #homepage-hero .fifty-square-card[data-service="ai"] .gallery-card-image {
    mask-image: none !important;
  }
}