<div class="card">
  <img src="https://i.imgur.com/QhJUaLm.jpeg" />
  <div class="card__corner-top"> </div>
  <div class="card__corner-bottom"> </div>
  <div class="card__text"> Ellie </div>
</div>
body {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background-color: #604e42;
  .card {
    max-width: 300px;
    background-color: white;
    padding: 10px;
    padding-bottom: 50px;
    position: relative;
    overflow: hidden;
    img {
      max-width: 100%;
      vertical-align: middle;
    }
    
    $corners: ("top", "bottom");
    @each $corner in $corners {
      &__corner-#{$corner} {
        width: 100px;
        height: 100px;
        background-color: #604e42;
        position: absolute;
        z-index: 2;

        $offsetX: 0px;
        $offsetY: 0px;
        $blur: 8px; 
        $spread: 5px;
        $color: rgb(50, 40, 27);
        $translate: 80%;
        @if ($corner == "top") {
          top: 0px;
          left: 0px;
          transform: rotate(45deg) translate($translate * -1);
          $shadow: $offsetX $offsetY $blur $spread $color;
           box-shadow: $shadow;
          -webkit-box-shadow: $shadow;
        }
        @if ($corner == "bottom") {
          bottom: 0;
          right: 0;
          transform: rotate(45deg) translate($translate);
          $shadow: $offsetX * -1 $offsetY * -1 $blur $spread $color;
          box-shadow: $shadow;
          -webkit-box-shadow: $shadow;
        }
      }
    }
    &__text {
      font-family: monospace;
      font-size: 20px;
      position: absolute;
      left: 50%;
      bottom: 0;
      color: rgb(10,0,97);
      transform: translate(-50%, -50%);
    }
  }
}
View Compiled

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

This Pen doesn't use any external JavaScript resources.