.hero-grid {
  display: grid;
  grid-template-areas:
    "a b c"
    "d b e";
  grid-template-columns: 1fr 2fr 1fr;
  grid-template-rows: 50% 50%;
  gap: 0px;
  height: 600px;
  max-width: 100%;
  margin: 0 auto;
}

.hero-item {
  background-size: cover;
  background-position: center;
  position: relative;
  color: #fff;
  display: flex;
  align-items: flex-end;
  padding: 15px;
  transition: transform 0.3s ease;
}

.hero-item h2 {
  font-size: 1.3rem;
  line-height: 1.3;
  font-weight: 500;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.8);
  margin: 0;
}

.hero-item:hover {
  transform: scale(1.02);
  z-index: 2;
}

.hero-item .overlay-link {
  text-decoration: none;
  color: inherit;
  display: flex;
  width: 100%;
  height: 100%;
  align-items: flex-end;
  text-align: center;
  justify-content: center;
}

/* Grid positioning */
.item-1 {
  grid-area: a;
}
.item-2 {
  grid-area: b;
  height: 90%;
}
.item-3 {
  grid-area: c;
}
.item-4 {
  grid-area: d;
}
.item-5 {
  grid-area: e;
}

@media screen and (max-width: 768px) {
  .hero-grid {
    display: none;
  }
}
