CSS, Grid.
0 100%); background-color: #fff; } .panel-1 img { clip-path: polygon(1% 2%, 98.5% 15.75%, 89% 100%, 0 100%); transform: scale(0.95); transform-origin: 70% 22%; } To achieve the border, set the background colour on the div to white, then add the same clip-path to the image within the div, scaling