
.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.
   Every slide has the 4:5 portrait shape the team posts in, so cards line up;
   an image of another shape is fitted inside it, centred, over its backdrop. */
.post_slide {
    position: relative;
    display: none;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    background: #000;
}

.post_slide.active {
    display: block;
}

.post img {
    width: 100%;
}

.post_slide img {
    position: relative;
    height: 100%;
    object-fit: contain;
}

/* Scaled up so the blur doesn't fade out at the slide's edges. */
.post_slide img.post_backdrop {
    position: absolute;
    inset: 0;
    object-fit: cover;
    filter: blur(2em) brightness(0.35);
    transform: scale(1.3);
}

/* Play icon over a video's thumbnail; the slide links to the post on X,
   where the video plays. Clicks pass through it to the link. */
.post_slide img.post_play {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 4.5em;
    height: auto;
    transform: translate(-50%, -50%);
    filter: drop-shadow(0 0.08em 0.25em #000000b3);
    pointer-events: none;
    transition: transform 0.3s ease-in-out;
}

.post_video:hover img.post_play {
    transform: translate(-50%, -50%) scale(1.15);
}

/* 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;
}
