.buddy-restored {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0 clamp(28px, 4vw, 56px);
}

.buddy-restored::before {
  align-self: center;
  aspect-ratio: 3 / 2;
  background: url("/assets/beverage-buddy-hero-card.png") center / contain no-repeat;
  content: "";
  filter:
    drop-shadow(0 22px 42px rgba(0, 7, 20, 0.42))
    drop-shadow(0 0 24px rgba(132, 238, 240, 0.12));
  grid-column: 2;
  grid-row: 1;
  justify-self: end;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent), linear-gradient(to bottom, transparent, #000 10%, #000 90%, transparent);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent), linear-gradient(to bottom, transparent, #000 10%, #000 90%, transparent);
  mask-composite: intersect;
  width: clamp(248px, 24vw, 340px);
}

.buddy-restored > header {
  grid-column: 1;
  grid-row: 1;
  max-width: 780px;
  min-width: 0;
}

.buddy-restored > div {
  grid-column: 1 / -1;
  grid-row: 2;
  min-width: 0;
}

@media (max-width: 700px) {
  .buddy-restored {
    grid-template-columns: minmax(0, 1fr);
    gap: 30px;
  }

  .buddy-restored::before,
  .buddy-restored > header,
  .buddy-restored > div {
    grid-column: 1;
  }

  .buddy-restored::before {
    grid-row: 1;
    justify-self: center;
    width: min(88vw, 310px);
  }

  .buddy-restored > header {
    grid-row: 2;
  }

  .buddy-restored > div {
    grid-row: 3;
    margin-top: 0;
  }
}
