.grid-container {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  grid-template-rows: 1fr 350px 350px 350px 350px 350px 1fr;
  gap: 10px;
}

.item-1 {
  grid-column: 1 / 5;
  grid-row: 1 / 2;
  background: linear-gradient(180deg, #0A1931 0%, #185ADB 60%, #6B48FF 100%);
}

.item-4 {
  grid-column: 1 / 5;
  grid-row: 7 / 8;
  background: linear-gradient(180deg, #0A1931 0%, #185ADB 60%, #6B48FF 100%);
}

.item-5 {
  grid-column: 1 / 2;
  grid-row: 2 / 3;
  background: linear-gradient(0deg, #303030 0%, #bababa 26%, #ffffff 53%);
}

.item-6 {
  grid-column: 2 / 3;
  grid-row: 2 / 3;
  background: linear-gradient(0deg, #303030 0%, #bababa 26%, #ffffff 53%);
}

.item-7 {
  grid-column: 3 / 4;
  grid-row: 2 / 3;
  background: linear-gradient(0deg, #303030 0%, #bababa 26%, #ffffff 53%);
}

.item-8 {
  grid-column: 4 / 5;
  grid-row: 2 / 3;
  background: linear-gradient(0deg, #303030 0%, #bababa 26%, #ffffff 53%);
}

.item-9 {
  grid-column: 1 / 2;
  grid-row: 3 / 4;
  background: linear-gradient(0deg, #303030 0%, #bababa 26%, #ffffff 53%);
}

.item-10 {
  grid-column: 2 / 3;
  grid-row: 3 / 4;
  background: linear-gradient(0deg, #303030 0%, #bababa 26%, #ffffff 53%);
}

.item-11 {
  grid-column: 3 / 4;
  grid-row: 3 / 4;
  background: linear-gradient(0deg, #303030 0%, #bababa 26%, #ffffff 53%);
}

.item-12 {
  grid-column: 4 / 5;
  grid-row: 3 / 4;
  background: linear-gradient(0deg, #303030 0%, #bababa 26%, #ffffff 53%);
}

.item-13 {
  grid-column: 1 / 2;
  grid-row: 4 / 5;
  background: linear-gradient(0deg, #303030 0%, #bababa 26%, #ffffff 53%);
}

.item-14 {
  grid-column: 2 / 3;
  grid-row: 4 / 5;
  background: linear-gradient(0deg, #303030 0%, #bababa 26%, #ffffff 53%);
}

.item-15 {
  grid-column: 3 / 4;
  grid-row: 4 / 5;
  background: linear-gradient(0deg, #303030 0%, #bababa 26%, #ffffff 53%);
}

.item-16 {
  grid-column: 4 / 5;
  grid-row: 4 / 5;
  background: linear-gradient(0deg, #303030 0%, #bababa 26%, #ffffff 53%);
}

.item-17 {
  grid-column: 1 / 2;
  grid-row: 5 / 6;
  background: linear-gradient(0deg, #303030 0%, #bababa 26%, #ffffff 53%);
}

.item-18 {
  grid-column: 2 / 3;
  grid-row: 5 / 6;
  background: linear-gradient(0deg, #303030 0%, #bababa 26%, #ffffff 53%);
}

.item-19 {
  grid-column: 3 / 4;
  grid-row: 5 / 6;
  background: linear-gradient(0deg, #303030 0%, #bababa 26%, #ffffff 53%);
}

.item-20 {
  grid-column: 4 / 5;
  grid-row: 5 / 6;
  background: linear-gradient(0deg, #303030 0%, #bababa 26%, #ffffff 53%);
}

.item-21 {
  grid-column: 1 / 2;
  grid-row: 6 / 7;
  background: linear-gradient(0deg, #303030 0%, #bababa 26%, #ffffff 53%);
}

.item-22 {
  grid-column: 2 / 3;
  grid-row: 6 / 7;
  background: linear-gradient(0deg, #303030 0%, #bababa 26%, #ffffff 53%);
}

.item-23 {
  grid-column: 3 / 4;
  grid-row: 6 / 7;
  background: linear-gradient(0deg, #303030 0%, #bababa 26%, #ffffff 53%);
}

/* The flip card container - set the width and height to whatever you want. We have added the border property to demonstrate that the flip itself goes out of the box on hover (remove perspective if you don't want the 3D effect */
.flip-card {
  background-color: transparent;
  width: 300px;
  height: 200px;
  border: 1px solid #f1f1f1;
  perspective: 1000px; /* Remove this if you don't want the 3D effect */
}

/* This container is needed to position the front and back side */
.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  transition: transform 0.8s;
  transform-style: preserve-3d;
}

/* Do an horizontal flip when you move the mouse over the flip box container */
.flip-card:hover .flip-card-inner {
  transform: rotateY(180deg);
}

/* Position the front and back side */
.flip-card-front, .flip-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  -webkit-backface-visibility: hidden; /* Safari */
  backface-visibility: hidden;
}

/* Style the front side (fallback if image is missing) */
.flip-card-front {
  background-color: #bbb;
  color: black;
}

/* Style the back side */
.flip-card-back {
  background-color: dodgerblue;
  color: white;
  transform: rotateY(180deg);
}