/*
 * Image framing is applied only when the Services / Portfolio public
 * renderer provides a validated image focal point. Keep the uploaded image
 * unchanged and make the three previews match the real cover behavior.
 */
.nex8-public-v2 img.nex8-media-focal,
.nex8-home img.nex8-media-focal {
  object-fit: cover !important;
  max-width: none;
}
.nex8-public-v2 .nex8-portfolio-dialog-media img.nex8-media-focal{padding:0!important}

/* Uploaded originals stay intact; enclosing Home/card/dialog media regions crop zoom safely. */
.nex8-home img.nex8-media-focal,
.nex8-public-v2 img.nex8-media-focal{transform-origin:center center;max-height:none}

/* MEDIA-FOCAL-03: same photo rectangle as the editor (cover, edge-to-edge).
   The Home portfolio carousel previously kept a padded GRID image and contain
   layout; a 52%/65% focal point then represented a different crop than preview. */
.nex8-public-v2 .nex8-home .nex8-portfolio-carousel-track .nex8-work-visual:has(> img.nex8-media-focal){
  padding:0!important;
  overflow:hidden;
}
.nex8-public-v2 .nex8-home .nex8-portfolio-carousel-track .nex8-work-visual>img.nex8-media-focal{
  display:block;
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  max-width:none;
  max-height:none;
  margin:0;
  padding:0;
  border:0;
  object-fit:cover!important;
  filter:none;
  transition:none!important;
}

/* Standardize the listing image and details as uncropped media rectangles.
   Only uploaded/focal images are targeted; demo graphics remain unchanged. */
.nex8-public-v2 .portfolio-showcase-media>img.nex8-media-focal,
.nex8-public-v2 .service-card-media>img.nex8-media-focal,
.nex8-public-v2 .nex8-portfolio-dialog-media>img.nex8-media-focal,
.nex8-public-v2 .nex8-service-dialog-media>img.nex8-media-focal{
  display:block;
  width:100%;
  height:100%;
  max-width:none;
  max-height:none;
  margin:0;
  padding:0;
  object-fit:cover!important;
  transition:none!important;
}

/* Uploaded photos must honor saved zoom even under hover/reduced-motion.
   The public script applies an important inline transform deliberately. */
.nex8-public-v2 img.nex8-media-focal{will-change:auto}
