/* Clip only the photo, keeping card text and controls outside the zoom. */
.portfolio-project-card > .mcp-image-frame {
  display: block; position: absolute; inset: 0; overflow: hidden;
  background: var(--bg, #111219); border-radius: inherit;
}
.mcp-portfolio-refresh .portfolio-archive .portfolio-project-card > .mcp-image-frame {
  position: relative; inset: auto; width: 100%; aspect-ratio: 4 / 3;
  flex: none; border-radius: 8px;
}
.mcp-portfolio-refresh .portfolio-archive .mcp-image-frame > .project-image {
  position: absolute; inset: 0; width: 100%; height: 100%; aspect-ratio: auto;
  border-radius: 0;
}
.mcp-home-2026 .h26-project-photo > .mcp-image-frame {
  display: block; position: relative; width: 100%; aspect-ratio: 4 / 3;
  overflow: hidden; border-radius: var(--radius, 8px); background: var(--bg, #111219);
}
.mcp-home-2026 #progetti .mcp-image-frame img {
  display: block; position: absolute; inset: 0; width: 100%; height: 100%;
  aspect-ratio: auto; border-radius: 0;
}
.single-mcp_portfolio .mcp-block-hero--split .hero-visual { overflow: hidden; }
