.grid-1-2 {
  display: grid;
  grid-template-areas:
    "large first-small"
    "large second-small";
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-bottom: 32px;
  transition: all 0.4s ease-in-out;
}

.grid-2-1 {
  display: grid;
  grid-template-areas:
    " first-small large"
    " second-small large";
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-bottom: 32px;
  transition: all 0.4s ease-in-out;
}

.grid-1-2 .card-img-bg-md,
.grid-1-2 .card-img-bg-md,
.grid-2-1 .card-img-bg-md,
.grid-2-1 .card-img-bg-md {
  width: 100%;
  height: 100%;
}

.grid-1-2 .card-img-bg,
.grid-2-1 .card-img-bg {
  justify-content: flex-end;
}

.large {
  grid-area: large;
  height: 800px;
  width: 100%;
  transition: all 0.4s ease-in-out;
}

.first-small {
  grid-area: first-small;
  width: 100%;
  transition: all 0.4s ease-in-out;
}

.second-small {
  grid-area: second-small;
  width: 100%;
  transition: all 0.4s ease-in-out;
}

@media (max-width: 1024px) {
  .large,
  .first-small,
  .second-small {
    height: 350px;
  }
  .grid-1-2,
  .grid-2-1 {
    display: grid;
    grid-template-areas:
      "large "
      " first-small"
      " second-small";
    grid-template-columns: 1fr;
    gap: 16px;
    margin-bottom: 16px;
  }

  .grid-1-2 h3,
  .grid-2-1 h3 {
    font-size: 24px;
  }
}
