/* Reset some basic elements */
body, h1, h2, h3, p, a {
  margin: 0;
  padding: 0;
  font-family: 'Poppins', sans-serif;
}

.container-tiles {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* Two columns for desktop */
  gap: 10px;
  width: 86%;
  margin: 0 auto;
}

.cell {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-sizing: border-box;
}

.text-content-home-tiles {
  color: var(--text-color);
  background-color: var(--background-color);
  padding: 10px;
  text-align: center;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  font-size: 1em;
  line-height: 2.5em;
  margin: 0;
  box-sizing: border-box;
}

.text-content-home-tiles h2, .text-content-home-tiles h3 {
  margin: 5px 0;
}

.image-content {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  aspect-ratio: 1 / 1; /* Maintain square ratio */
}

/* Mobile view */
@media (max-width: 768px) {
  .container-tiles {
    grid-template-columns: 1fr; /* Single column for mobile */
    width: 100%; /* Ensure it uses full width on mobile */
    gap: 10px;
    /*padding: 0 5px; /* Optional: Add some padding to the sides */
  }
  .cell {
    width: 100%;
    height: auto; /* Let the content adjust naturally */
    padding: 0 !important;
    margin: 0 !important;
  }
  .text-content-home-tiles, .image-content {
    width: 100%;
    height: auto; /* Let the content adjust naturally */
    padding: 0 !important;
    margin: 0 !important;
  }
  .image-content {
    /*aspect-ratio: auto; /* Remove fixed aspect ratio */
  }
  .text-content-home-tiles {
    font-size: 1em;
    line-height: 2em;
  }
  .text-content-home-tiles h2, .text-content-home-tiles h3 {
    margin: 5px 0;
  }
}
