/* UKreklamy v1.11.1: restore image framing while keeping vertical parallax.
   v1.11 enlarged actual imagery (hero +330px and image scale, cards 1.28x,
   works 1.25x). That excessive crop pushed subjects out of view.
   These rules affect only the picture, never the frame, header, or copy. */
@media (min-width: 801px) and (prefers-reduced-motion: no-preference) {
  /* Restore the v1.10-sized hero image, not the v1.11 zoomed version.
     Reserve 120px above and below for movement so the image never exposes a gap. */
  .ukr-hero-v17 .heroart.has-image .ukr-hero-photo {
    inset: -120px 0 auto 0 !important;
    top: -120px !important;
    left: 0 !important;
    width: 100% !important;
    height: calc(100% + 240px) !important;
    max-height: none !important;
    transform: translate3d(0, clamp(0px, var(--ukr-v111-hero-shift, 0px), 105px), 0) !important;
    will-change: transform;
  }
  /* Make the small overscan vertical, not a 28% enlargement of the picture. */
  .ukr-category .visual.has-image {
    position: relative;
    overflow: hidden;
  }
  .ukr-category .visual.has-image img {
    position: absolute;
    inset: -40px 0 auto 0;
    width: 100% !important;
    height: calc(100% + 80px) !important;
    max-width: none;
    object-fit: cover;
    transform: translate3d(0, clamp(-32px, var(--ukr-v111-card-shift, 0px), 32px), 0) !important;
  }
  /* Avoid the aggressive 1.25x zoom on portfolio photography. */
  .workvisual img {
    transform: translate3d(0, clamp(-8px, var(--ukr-v111-card-shift, 0px), 8px), 0) scale(1.045) !important;
  }
}
