add this to your global.css:
/* ---------------------------
MOBILE-FIRST RESPONSIVE LAYER
Paste this AFTER your existing CSS
--------------------------- */
/* 1) sane defaults */
:root{
--container-max: 1280px;
--gutter: 14px;
}
*,
*::before,
*::after{ box-sizing: border-box; }
img{ max-width:100%; height:auto; }
/* 2) containers: stop forcing fixed widths/min-widths */
.wrapper,
.width,
#container,
.mobile-fullwidth{
width: 100% !important;
max-width: var(--container-max);
margin-inline: auto !important;
padding-inline: var(--gutter);
}
#container{
min-width: 0 !important; /* remove the 990px floor */
}
/* 3) header & logo: center nicely on mobile, relax image sizing */
#logo .wrapper{
width: 100% !important;
display: flex;
justify-content: center;
}
#logo img{
margin-top: 1.25rem; /* smaller on phones */
max-width: clamp(160px, 40vw, 260px);
height: auto;
}
/* 4) nav: wrap & scroll on small screens */
#header .menu-nav,
#header ul.menu{
display:flex;
flex-wrap: wrap;
gap: 6px;
overflow:auto;
-webkit-overflow-scrolling: touch;
}
#header ul.menu li{ display: contents; } /* let <a> flow */
#header ul.menu li a{
display:inline-flex;
align-items:center;
padding:10px 12px !important;
line-height: 1.2 !important;
}
/* 5) layout splits: stack on mobile */
.main-container{ display:flex; flex-wrap:wrap; }
/* sidebar drops under content on mobile, floats at ≥ 992px */
.sidebar{ padding-left: 0 !important; width: 100%; order: 2; }
.whole{ width: 100%; order: 1; }
@media (min-width: 992px){
.whole{ flex: 1 1 auto; order: 1; }
.sidebar{ flex: 0 0 320px; padding-left: 15px !important; order: 2; }
}
/* 6) post layout: column on phones, row on desktop */
.post-box{ display:flex; flex-direction: column; }
.post-author{ width: 100%; border-right: 0; }
.post-content{ width: 100%; }
@media (min-width: 900px){
.post-box{ flex-direction: row; }
.post-author{ width: 220px; border-right: 1px solid #1d1d1d; }
.post-content{ flex: 1 1 auto; }
}
/* 7) grids → CSS Grid with fluid columns */
.forums,
.subforums{
display: grid !important;
gap: 10px;
}
.forums{ grid-template-columns: repeat(1, minmax(0,1fr)); }
.subforums{ grid-template-columns: repeat(1, minmax(0,1fr)); }
@media (min-width: 600px){
.forums{ grid-template-columns: repeat(2, minmax(0,1fr)); }
.subforums{ grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (min-width: 900px){
.forums{ grid-template-columns: repeat(3, minmax(0,1fr)); }
}
@media (min-width: 1280px){
.forums{ grid-template-columns: repeat(4, minmax(0,1fr)); }
}
/* kill old fixed widths that fight the grid */
.forums .forum,
.subforums .forum{
max-width: none !important;
width: auto !important;
margin-left: 0 !important;
margin-right: 0 !important;
}
/* 8) announcements → wrap as cards */
.forum-announcements{
display: grid !important;
grid-template-columns: repeat(1, minmax(0,1fr));
gap: 10px;
}
.forum-announcement{
width: auto !important;
margin-right: 0 !important;
margin-bottom: 0 !important;
}
@media (min-width: 768px){
.forum-announcements{ grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (min-width: 1100px){
.forum-announcements{ grid-template-columns: repeat(3, minmax(0,1fr)); }
}
/* 9) tables: allow scroll on small screens */
table{ width: 100%; }
.table-responsive{ overflow-x:auto; -webkit-overflow-scrolling:touch; }
.table-responsive > table{ min-width: 640px; }
/* 10) utilities: mobile show/hide without nuking desktop */
.mobile-show{ display: none; }
.mobile-hide{ display: initial !important; }
@media (max-width: 800px){
.mobile-show{ display:block !important; }
.mobile-hide{ display:none !important; }
.post_management_buttons{
float:none !important;
text-align:center;
}
.profile-buttons{
position: static !important;
margin: 10px 0 !important;
display: flex !important;
justify-content: center;
}
.author_avatar img{ width:70px !important; height:70px !important; }
}
/* 11) mid-screen polish (801–1366px) */
@media (min-width:801px) and (max-width:1366px){
.wrapper,
.width,
#container,
.mobile-fullwidth{
width: 96% !important;
max-width: 96% !important;
}
}
/* 12) map pins: keep tappable sizes on mobile */
.map-container .point{ width: .8rem; height: .8rem; }
@media (min-width: 900px){
.map-container .point{ width: .6rem; height: .6rem; }
}
/* 13) prefers-reduced-motion: stop heavy anims for accessibility */
@media (prefers-reduced-motion: reduce){
.map-container .point{ animation: none; transition: none; }
*{ scroll-behavior: auto; }
}