main {
    padding: 20px;
}

.window {
    width: 90%;
    margin: 0 auto;
}

.window-body {
    padding: 8px;
}

/* Área de posts = painel branco "afundado" (sunken), como um explorador de arquivos */
.posts-container {
    background: #fff;
    box-shadow: inset -1px -1px #fff, inset 1px 1px grey,
                inset -2px -2px #dfdfdf, inset 2px 2px #0a0a0a;
    padding: 12px;
}

.posts-container nav {
    background: #000080;
    padding: 10px;
    margin: -16px -16px 0 -16px;
    width: calc(100% + 32px);
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 16px;
}

.post-item {
    text-align: center;
    background: white;
    padding: 8px;
    display: flex;
    flex-direction: column;
    height: 160px;
}

.post-image {
    width: 64px;
    height: 64px;
    object-fit: cover;
    margin: 0 auto 8px;
}

.post-title {
    margin: 4px 0;
    font-size: 12px;
    word-wrap: break-word;
    max-width: 100%;
    height: 36px;
    overflow: hidden;
}

.post-button {
    font-size: 12px;
    margin-top: auto;
}

@media (max-width: 768px) {
    nav {
        flex-direction: column;
        gap: 20px;
    }

    nav ul {
        flex-direction: column;
        text-align: center;
    }
}

.posts-container .title-bar {
    /* Os estilos padrão do 98.css serão suficientes */
}

.title-bar-text {
    color: white;
}

/* Ajustando os botões para ficarem mais visíveis no fundo azul */
.title-bar-controls button {
    background-color: #c0c0c0;
}

/* Ajustando a janela interna */
.inner-window {
    width: 100%;
    margin: 0;
}

.inner-window .window-body {
    padding: 16px;
}