.hero h1 {
  color: white;
  margin: 10% 6% 0% 6%;
  font-size: 4rem;
}

.content {
  margin: 2% 6% 1% 6%;
}
.grid__layout {
  display: grid;
  gap: 3rem;
  grid-template-columns: 1fr 1fr 1fr 1fr;
}
.grid__item {
  display: flex;
  flex-direction: column;
  position: relative;
}

.gradient-overlay {
  position: absolute;
  background: black;
  height: 100%;
  width: 100%;
  z-index: 1;
  background: linear-gradient(
    rgba(255, 255, 255, 0) 0%,
    rgba(0, 0, 0, 0.7) 100%
  );
}
.grid__item img {
  width: clamp(100px, 100%, 400px);
  height: 240px;
  opacity: 0.7;
  outline: 1px solid white;
  position: relative;
  display: block;
}
.grid__item img::after {
  content: none;
  position: absolute;
  background-color: black;
}
.grid__item .text__container {
  position: absolute;
  z-index: 2;
  bottom: 10%;
  left: 5%;
  padding: 2%;
  width: 90%;
}
.grid__item p {
  color: white;
}

@media screen and (max-width: 1100px) {
  .grid__layout {
    gap: 2rem;
    grid-template-columns: 1fr 1fr 1fr;
  }
  .hero h1 {
    font-size: 2rem;
    margin-top: 100px;
  }
}

@media screen and (max-width: 900px) {
  .grid__layout {
    gap: 1rem;
  }
  .grid__item p {
    font-size: 0.8rem;
  }
}
@media screen and (max-width: 700px) {
  .grid__layout {
    grid-template-columns: 1fr 1fr;
  }
  .hero h1 {
    font-size: 1.6rem;
  }
}
@media screen and (max-width: 500px) {
  .grid__item p {
    font-size: 0.6rem;
  }
  .grid__item img {
    height: 200px;
  }
  .hero h1 {
    font-size: 1.3rem;
  }
}

@media screen and (max-width: 430px) {
  .grid__item img {
    height: 140px;
  }
}
