.news-grid{display:block;max-width:760px;margin-inline:auto}.social-post{padding:26px 20px;border:1px solid var(--line,#d1d7de);border-radius:18px;margin-block:18px;overflow-wrap:anywhere;background:var(--surface,transparent)}.post-author{display:flex;gap:12px;align-items:center;margin-bottom:16px}.post-avatar{border-radius:50%;object-fit:cover;flex-shrink:0}.post-author a{text-decoration:none}.post-author time{display:block;font-size:13px;opacity:.7;margin-top:4px}.social-post h1,.social-post h2{font-family:inherit;font-size:22px;line-height:1.4;letter-spacing:normal;margin:14px 0}.social-post h1 a,.social-post h2 a{text-decoration:none}.social-body{font-size:16px;line-height:1.7;max-height:none}.social-post .gallery{margin:18px 0;gap:8px;grid-template-columns:repeat(2,minmax(0,1fr))}.social-post .gallery figure:only-child{grid-column:1/-1}.social-post .gallery img{width:100%;height:auto;max-height:320px;object-fit:contain;border-radius:12px}.post-actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-top:20px;border-top:1px solid var(--line,#d1d7de);padding-top:12px}.post-actions button{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-width:46px;min-height:44px;padding:8px 12px;border:0;border-radius:30px;background:transparent;color:inherit;cursor:pointer;transition:background .18s,transform .18s}.post-actions button:hover{background:rgba(90,130,170,.13);transform:translateY(-1px)}.post-actions button:disabled{opacity:.55;cursor:default}.post-action-status{font-size:13px;flex-basis:100%}.avatar-settings{display:flex;align-items:center;gap:20px;flex-wrap:wrap}.avatar-settings img{width:88px;height:88px;border-radius:50%;object-fit:cover}.footer-links{flex-wrap:wrap}.site-footer a{padding-block:8px}.nav{flex-wrap:wrap}.social-post{animation:post-enter .25s ease-out}@keyframes post-enter{from{opacity:.5;transform:translateY(5px)}to{opacity:1;transform:none}}@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}@media(max-width:600px){.social-post{padding:18px 12px;border-radius:12px}.post-author strong{font-size:15px}.social-post .gallery{grid-template-columns:1fr}.post-actions{gap:8px}.article-page{padding-inline:0}.panel-main h1{font-size:30px;overflow-wrap:anywhere}.panel-tabs{overflow:auto}.post-author{gap:9px}.post-avatar{width:42px;height:42px}}

/* Keep post media compact, preserve proportions and constrain grid children. */
.social-post,.social-post .gallery,.social-post .gallery figure{min-width:0;max-width:100%;box-sizing:border-box}
.social-post .gallery figure{margin:0;overflow:hidden}
.social-post .gallery figure>a{display:flex;align-items:center;justify-content:center;max-width:100%;overflow:hidden;border-radius:12px}
.social-post .gallery img{display:block;width:auto;height:auto;max-width:100%;max-height:320px;object-fit:contain;margin-inline:auto}
.social-post .gallery figcaption{overflow-wrap:anywhere}
@media(max-width:600px){.social-post .gallery img{max-height:240px}}
