#grid-container {
  display: grid;
  grid-template-rows: repeat(3, 228px);
  grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
  position: relative; /* Make this a positioning root for the overlay */
  max-width: 1920px; /* Set your max-width */
  margin: auto; /* Horizontally centers the container */
}

.grid-item {
  /* aspect-ratio: 96 / 228;
  width: 100%;
  height: 100%; */
  transition: opacity 1.5s ease-in-out;
  width: 96px;
  height: 228px;
}

.rounded-bottom-left {
  border-bottom-left-radius: 100px;
}

#image-overlay {
  background-size: cover;
  background-repeat: no-repeat;
  position: absolute;
  z-index: 2;
  height: 456px;
  width: 288px;
  background-image: url("../assets/images/overlay_fox_tall.png");
}

.top-right-overlay::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("../assets/images/overlay_curve.png");
  background-size: cover;
  background-position: center;
  z-index: 1;
}

.grid-container-wrap {
  position: relative;
}

.hero-text {
  color: white;
}

.hero-text h1 {
  font-size: 2.5rem;
  margin-bottom: 10px;
}

@media (min-width: 1090px) {
  .hero-text h1 {
    font-size: 3rem;
  }
}

.hero-text h2 {
  font-family: "Review", "sans-serif";
  font-size: 1.5rem;
}

@media (min-width: 1090px) {
  .hero-text h2 {
    font-size: 2rem;
  }
}

/* Hero on small screens */

.hero-small--img {
  background-image: url("../assets/images/fox_tall.png");
  height: 288px;
  width: 100%;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.hero-small {
  padding: 50px 10px 0;
  background-image: url("../assets/images/hero_bg_mobile.jpg");
  background-size: cover;
  background-position: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-small h1,
.hero-small h2 {
  color: white;
}

.hero-small h1 {
  font-size: 2.5rem;
  margin-bottom: 10px;
}

.hero-small h2 {
  font-size: 1.5rem;
  margin-bottom: 5rem;
}

@media (max-width: 480px) {
  #grid-container,
  #image-overlay {
    display: none;
  }
  .hero-small {
    display: flex;
  }
}

@media (min-width: 481px) {
  .hero-small {
    display: none;
  }
}
