/* This parent container styles the image itself and sets up the positioning context */
.image-container {
  position: relative;
  width: 290px;
  height: 530px;
  overflow: hidden;
}

.text-overlay-gradient {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 55%;
  padding: 10px 30px;
  color: #fff;
  text-align: center;
  box-sizing: border-box;
  background: #616a59;
}

        .text-overlay-gradient h1 {
            margin-top: 0;
            margin-bottom: 10px;
            font-size: 2.5em;
        }

        .text-overlay-gradient p {
            margin-top: 0;
            font-size: 1.2em;
            line-height: 1.1;
        }