.image {
  $height: 252px;
  $width: 447px;

  aspect-ratio: 7/9;
  background: url('/images/background_a.jpg');
  background-size: 500px 281px;
  border-radius: $unit;
  box-sizing: border-box;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.2);
  display: block;
  isolation: isolate;
  flex-grow: 2;
  flex-shrink: 0;
  height: $height;
  margin-right: $unit * 3;
  max-height: $height;
  max-width: $width;
  overflow: hidden;
  position: relative;
  transition: box-shadow 0.15s ease-in-out;
  width: $width;
  z-index: 1;

  // prettier-ignore
  @media only screen 
        and (max-width: 800px) 
        and (max-height: 920px) 
        and (-webkit-min-device-pixel-ratio: 2) {
          margin-right: 0;
          width: 100%;
    }

  @include breakpoint(phone) {
    aspect-ratio: 16/9;
    margin: 0;
    width: 100%;
    height: inherit;
  }

  img {
    -webkit-filter: drop-shadow(4px 4px 8px rgba(0, 0, 0, 0.48));
    filter: drop-shadow(4px 4px 8px rgba(0, 0, 0, 0.48));
    position: relative;
    top: $unit * -4;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    z-index: 2;
  }

  .overlay {
    backdrop-filter: blur(5px) saturate(100%) brightness(80%) opacity(1);
    background: none;
    position: absolute;
    isolation: isolate;
    z-index: 9;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1;
  }
}
