.forum-rbp {
    margin-top: 6px;
}

.forum-d1 {
    padding-left: 5px; padding-right: 5px;
}

.forum-d2 {
    padding: 5px;
}

.forum-d3 {
    margin-top: 15px;
}

.forum-d4 {
    padding-left: 15px; width: 200px;
}

.forum-tdw {
    width: 30px;
}

.forum-fw, .quote table, .imgtbl, .postImage table {
    width: 1px;
    width: 100%;
    table-layout: fixed;
}

.forum-message { vertical-align: top; }
.forum-message img {max-width: 100%!important; width: auto!important; height: auto !important; display: block;}
.forum-message .righttext img, .forum-message .emoticon {display: inline;}

.forum-name {
    width: 65%;
}

.forum-name a {
    font-size: 18px;
}

.forum-post, .forum-topic {
    width: 7%;
}

.forum-lastpost {
    width: 160px;
}

.forum-lastpost-img {
    display: inline-block;
    float: right;
    width: 20px;
    height: 10px;
    background: url(../i/icon_latest_reply.gif) no-repeat;
}

.d-rfloat {
    float: right;
}

.forum-author {
    width: 15%;
}

.forum-author2 {
    width: 140px;
    vertical-align: top;
}

.forum-threads {
    width: 50%;
}

.forum-item {
    padding: 7px;
}

.forum-item .notfirst {
    border-top: 3px solid #E6E6E6;
}

.first-forum-item { margin-top: 10px; }

.forum-posted {
    color: #999;
    border-bottom: 1px solid #CCC;
    width: 380px;
}

.hidescroll {
    overflow: hidden;
}

.padding10 {
    padding: 10px;
}

.hrb {
    border: 0px; border-bottom: 1px solid #CCC;
}

.forum-open, .forum-lock, .forum-sticky {
    width: 30px;
    height: 18px;
}

.forum-open { background: url(../i/open.gif) no-repeat; }

.forum-lock { background: url(../i/folder_lock.gif) no-repeat; }

.forum-sticky {    background: url(../i/folder_sticky.gif) no-repeat; }

.even { background: #f3f3f3; }

.even, .odd {
    padding: 5px 0px;
}

.forum-user-ibox {
    margin: 5px;
}

.quote {
    border: 1px solid #CCC;
    border-left: 3px solid #DCDCCD;
}

.quote table {
    border-collapse: collapse;
}

.quoted {
    padding: 5px;
    color: #222;
    background: #EBEBEC;
    font-weight: bold;
}

.quotetext {
    padding: 5px;
}

.quotetext .quote {
    margin: 5px;
}

.quote .removedquotes:before {
    content: '...';
    background: #ebebec;
    border: 1px solid #ebebec;
    padding: 0 5px;
}

.crumb {
    padding-left:15px;
}
.thread-controls {
    padding-left: 15px;
    margin-bottom: 5px;
}

.pbvideo {
    max-width: 600px;
}

/* hide right column on narrow screens */
@media screen and (max-width: 1024px) {
    #col2-mr-r {display: none;}
    #col2-mr-m {margin-right: 0;}
}

/* posting form ad beside the form. Under this width the two do not fit, and display:none means no ad request. Flex stays off there so the responsive textarea width:100% keeps a block parent */
.forum-postform-ad {display: none;}
@media screen and (min-width: 1101px) {
    .forum-postform-row {display: flex; align-items: flex-start;}
    .forum-postform-main {flex: 0 1 auto; min-width: 0;}
    .forum-postform-ad {display: block; flex: 1 0 300px; padding: 0 8px; text-align: center;}
}

/* sticky rail ad: grid stretches the rail to the height of the content so the ad has room to stick. :has limits it to pages with the rail, the posting forms and search are col1 */
.forum-sticky-rail {display: none;}
@media screen and (min-width: 1025px) {
    .page_forum #content-container:has(> #col2-mr-r) {display: grid; grid-template-columns: minmax(0, 1fr) 330px;}
    .page_forum #content-container:has(> #col2-mr-r) > * {grid-column: 1 / -1;}
    .page_forum #content-container:has(> #col2-mr-r) > #col-wrap {grid-column: 1; float: none; width: auto;}
    .page_forum #content-container:has(> #col2-mr-r) > #col-wrap > #col2-mr-m {margin-right: 0;}
    .page_forum #content-container:has(> #col2-mr-r) > #col2-mr-r {grid-column: 2; float: none; margin-left: 0; display: flex; flex-direction: column;}
    .page_forum #content-container:has(> #col2-mr-r) > #col2-mr-r > #inner-r {flex: 1 1 auto;}
    .forum-sticky-rail {display: block; position: sticky; top: 8px; text-align: center;}
}

/* empty rail box. Top padding balances the <br /> layout/hbox.php leaves under the content */
.forum-rail-empty {padding-top: 15px; text-align: center;}

/* right rail lists: 10 rows, 2 where the rail stacks above the content. The 10 is also in forum_railExpandToggle() */
.forum-rail-list:not(.forum-rail-expanded) tr.box:nth-child(n+11) {display: none;}
.forum-rail-more {display: none; padding: 4px; text-align: center;}
.forum-rail-more-desktop {display: block;}
.forum-rail-toggle {padding: 0; border: 0; background: none; color: #105CFF; font: inherit; cursor: pointer;}
.forum-rail-hide, .forum-rail-all {display: none;}
.forum-rail-expanded .forum-rail-show {display: none;}
.forum-rail-expanded .forum-rail-hide, .forum-rail-expanded .forum-rail-all {display: inline;}
@media screen and (max-width: 900px) {
    .forum-rail-list:not(.forum-rail-expanded) tr.box:nth-child(n+3) {display: none;}
    .forum-rail-more {display: block;}
}
