body {
  height: 100vh;
  background: linear-gradient(lightgray, darkgray);
  margin: 0; 
}

.frame {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 600px;
  height: 400px;
  perspective: 1000px;
  transform: translateX(-50%) translateY(-50%);
}

.frame .card {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  border-radius: 5px;
  background: white;
  box-shadow: 0 0 2px rgba(30, 30, 20, 0.5);
  transform-origin: 50% 50%;
  overflow: hidden;
}

.frame .card img {
  display: block;
  position: relative;
  width: 150%;
  height: auto;
  transform-origin: 50% 50%;
}
