
.content {
    flex-direction: column;
}

#posts_wrapper {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2em;
}

#socials {
    text-align: center;
}

#socials > p {
    font-size: 1.2em;
    text-transform: uppercase;
}

.post {
    max-width: 30em;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.post > a {
    transition: background-color 0.8s ease-in-out;
}

.post_media {
    position: relative;
    width: 80%;
    z-index: 10;
    padding: 0.2em;
    line-height: 0;
    box-sizing: border-box;
    background: #fff5;
}

/* Carousel: render one image at a time so a multi-image post stays the
   height of a single image. Single-image posts have just one slide. */
.post_slide {
    display: none;
}

.post_slide.active {
    display: block;
}

.post img {
    width: 100%;
}

/* Prev/next flip arrows, only added by JS when there is more than one image.
   Uses the same overlay SVGs as the gallery slider for visual consistency. */
.post_nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    padding: 0;
    border: none;
    background: none;
    line-height: 0;
    cursor: pointer;
    z-index: 2;
}

.post_nav img {
    display: block;
    width: 2.5em;
    filter: drop-shadow(0 0.08em 0.25em #000000b3);
}

.post_nav.prev {
    left: 0.5em;
}

.post_nav.next {
    right: 0.5em;
}

/* Position dots indicating the current image. */
.post_dots {
    position: absolute;
    bottom: 0.8em;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 0.45em;
    padding: 0.45em 0.6em;
    border-radius: 1em;
    background: #00000080;
    z-index: 2;
    line-height: 0;
}

.post_dot {
    width: 0.55em;
    height: 0.55em;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: #ffffffcc;
    cursor: pointer;
    transition: background-color 0.8s ease-in-out;
}

.post_dot.active {
    background: #FE0000;
}

.post_text {
    position: relative;
    padding: 1.5em;
    background: #fff5;
    color: #fff;
}

/* When an image precedes it, pull the text panel up to overlap the image. */
.post_media + .post_text {
    top: -3em;
    margin: 0 0 -3em;
    padding: 4em 1.5em 1.5em;
}

.post p {
    margin-bottom: 0;
    text-align: left;
}

.post_media:hover + .post_text, .post_text:hover {
    background: #FE0000aa;
}
