.button-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 5%;
  width: 100%;
  margin: 0 auto;
}

.button-grid button {
  width: 100%;
  aspect-ratio: 2.25;
  padding: 0;
  border: none;
  border-radius: 0.5rem;
  background-color: #007bff;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative; /* allow overlays and ensure text sits above the image */
  overflow: hidden;
  color: #ffffff;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 1rem;
}

/* optional semi-transparent overlay to improve text contrast */
.button-grid button::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.18);
  z-index: 1;
  border-radius: inherit;
}

/* ensure any text/content inside the button sits above the image/overlay */
.button-grid button > * {
  position: relative;
  z-index: 2;
}

.button-grid button:hover {
  scale: 1.05;
  transition: scale 0.2s ease-in-out;
}




.btn-image {
    position: relative;
    border: none;
    padding: 0;
    cursor: pointer;
    overflow: hidden;
}

.btn-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.btn-image span {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;

    padding: 10px;
    text-align: center;
    color: white;
    background: rgba(0,0,0,0.5);
}
