.image-container {
  position: relative;
  display: inline-block;
  /* Adjust as needed for layout */
}

.image-container img {
  display: block;
  width: 100%;
  /* Or set to desired width */
  height: auto;
  /* Maintain aspect ratio */
}

.image-container .image-text {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  background-color: rgba(0, 0, 0, 0.6);
  /* Optional for better contrast */
  color: white;
  padding: 5px 10px;
  text-align: center;
  font-size: 1rem;
  /* Adjust as needed */
  width: 100%;
  /* Optional: to stretch across the image */
  box-sizing: border-box;
  /* Ensures padding doesn’t affect width */
}