/* Devlog image viewer: large left image with 3 stacked thumbnails on the right */
.image-viewer {
    display: flex;
    gap: 20px;
    align-items: stretch; /* ensure thumbs container matches large image height */
    margin: 20px 0 40px;
}

.image-viewer .large-image {
    width: 68%;
    height: auto;
    border-radius: 6px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.35);
    display: block;
}

/* Two vertically stacked thumbnails that align to the top and bottom of the large image */
.image-viewer .thumbs {
    width: 32%;
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* push first to top and last to bottom */
    gap: 12px;
}

.image-viewer .thumbs img {
    width: 100%;
    height: calc((100% - 12px) / 2); /* split available height between two thumbs */
    object-fit: cover;
    border-radius: 4px;
    cursor: pointer;
    border: 2px solid transparent;
    box-shadow: 0 4px 10px rgba(0,0,0,0.25);
}

.image-viewer .thumbs img.active {
    border-color: #3b82f6;
    transform: translateY(-1px);
}

/* Responsive: stack thumbnails under the large image on small screens */
@media (max-width: 768px) {
    .image-viewer {
        flex-direction: column;
        gap: 12px;
    }
    .image-viewer .large-image,
    .image-viewer .thumbs {
        width: 100%;
    }
    .image-viewer .thumbs {
        flex-direction: row;
        gap: 10px;
        height: auto;
    }
    .image-viewer .thumbs img {
        height: 80px;
        width: calc((100% - 10px) / 2);
    }
}

/* Paragraph spacing for devlog posts: prefer <p> tags instead of <br><br>.
   This gives a consistent vertical rhythm and is easy to adjust. */
.devlog-content .post p {
    margin-top: 0;
    margin-bottom: 1.25rem; /* adjust this value for larger/smaller gaps */
    line-height: 1.7;
}

.devlog-content .post p + p {
    /* optional: slightly larger gap between consecutive paragraphs */
    margin-top: 0.5rem;
}

/* Responsive inline image used in posts (roadmap preview, etc.) */
.devlog-content .post .post-image {
    width: 100%;
    max-width: 900px;
    height: auto;
    display: block;
    margin: 0 0 1rem;
    border-radius: 6px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.12);
}
