.card-deck {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
  }

.postcard {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    overflow: hidden;
    margin-bottom: 20px;
    flex: 1 0 auto;
}
.postcard img {
    max-width: 100%;
    border-bottom: 1px solid #eaeaea;
}
.postcard-body {
    padding: 20px;
}
.postcard-title {
    font-size: 1.5em;
    margin-bottom: 15px;
}
.postcard-text {
    font-size: 1em;
    color: #555;
}

.image-container {
    position: relative;
}

.card-img-top {
    display: block;
    width: 100%;
    height: auto;
}

.overlay-text {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.5); /* semi-transparent black background */
    color: rgb(255, 255, 255);
    text-align: left;
    padding: 10px;
}

.card-title a {
    color: rgb(255, 255, 255);
    text-decoration: none;
    font-size: 1.5rem;
}

.card-title a:hover {
    text-decoration: underline;
}

.img-post-container {
    position: relative;
    display: inline-block;
    width: 100%;
}

.img-post img {
    display: block;
    width: 100%;
    height: auto;
}

.overlay-text-banner {
    position: absolute;
    bottom: 0; /* Positions the title container at the bottom */
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.5); /* Adds a semi-transparent background */
    color: white;
    padding: 10px 20px;
    text-align: left; /* You can change to center if needed */
}

.overlay-text-banner h1 {
    margin: 0;
    font-size: 2rem;
    color: white; /* Ensures the font is white */
}

