h1 {
    margin-top: 1rem;
}
main {
    max-width: 60rem;
}
#post_container {
    display: grid;
    min-height: 31rem;
    width: 100%;
    gap: 0.5rem;
    grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
}
#post_container article {
    overflow: hidden;
}
/*  */
#feed_control_panel {
    max-width: 30rem;
    padding: 0.2rem 0.3rem;    
    margin-top: 1rem;
    margin-bottom: 0.5rem;
    display: flex;
    width: 100%;
    flex-wrap: wrap;
}
#feed_control_panel input {
    width: 25%;
}
/*  */
#load_more_btn[hidden] {
    display: none;
}
#load_more_btn {
    max-width: 10rem;
}
.cont {
    width: 100%;
    max-width: 30rem;
}
.cont .radio-button {
    padding: 1rem 0;
}
/*  */
#feed_order_label {
    display: flex;
    align-items: center;
    background: var(--bg5);
    margin: 1rem 0.5rem;
    font-size: 0.9rem;
    padding: 0.5rem;
}
#feed_order_select {
    width: 100%;
    text-align: center;
    margin-left: 0.4rem;
    padding: 0.5rem 0.25rem;
}
#feed_order_label[hidden] {
    display: none;
}
/*  */
.side-slider {
    max-width: 30rem;
    background: var(--bg3);
}
@media (prefers-color-scheme: light) { 
.side-slider {
    background: var(--bg3);
}}
@media (prefers-color-scheme: dark)  { 
.side-slider {
    background: var(--bg2);
}}
#open_side_slider_btn {
    align-self: start;
    font-size: 0.7rem;
    border: 0.05rem solid var(--border2);
    border-left: none;
    height: 2rem;
    margin-top: 1rem;
    padding: 0.2rem 0.3rem;
    border-radius: 0 0.5rem 0.5rem 0;
}
/* same comment feed CSS as viestivirta.php */
.comment-feed {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    border-bottom: 0.05rem solid var(--border1);
    scrollbar-width: none;
    -ms-overflow-style: none;
    touch-action: pan-y;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: none;
}
.comment-feed > div {
    background: var(--bg5);
    display: flex;
    flex-direction: column;
    padding-top: 0.5rem;
    margin-bottom: 0.5rem;
    border-bottom: 0.05rem solid var(--border2);
}
.comment-feed > div time {
    margin-left: 0.5rem;
    margin-bottom: 0.3rem;
    color: var(--txt1);
    font-size: 0.7rem;
    white-space: nowrap;
}
.comment-feed .source-line {
    margin-left: 0.5rem;
    margin-bottom: 0.3rem;
    display: block;
    font-size: 0.7rem;
    color: var(--muted);
    line-height: 1.35;
    word-break: break-word;
}
.comment-feed .wrapper-div {
    margin-left: 0.5rem;
    display: flex;
    gap: 0.5rem;
    align-items: center;
    padding-bottom: 0.5rem;
}
.comment-feed .wrapper-div img {
    height: 2rem;   
    border-radius: 50%;
    width: 2rem;
}
.comment-feed .message {
    margin: 0 0.5rem;
    padding: 0;
}
.comment-feed .message-body {
    font-size: 0.8rem;
    color: var(--txt1);
}
.thread-link {
    margin-top: 0.5rem;
    font-size: 0.8rem;
    background: var(--bg5);
    width: 100%;
    padding: 0.3rem 0.5rem;
    text-align: end;
    color: var(--cool);
    text-decoration: underline;
    text-underline-offset: 0.12em;
}
#side_comment_timer {
    padding-bottom: 0.5rem;
    font-size: 0.75rem;
    color: var(--muted);
    border-bottom: 0.05rem solid var(--border1);
}