body {
    /*font-size: 1.1em;*/
    color: var(--text-color);
}

#main {
  width: auto;
  max-width: 1200px;
  padding: 0;
  /*overflow-y: auto;*/
  background: var(--background-dark);
}

#mainbanner {
    background-image: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)), url("/static/titancraftweb/img/color/coloreditor.jpg");
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    /*min-height: 300px;*/
    height: 160px;
    /*max-height: 600px;*/
    padding: 40px;
    justify-content: center;
    text-align: center;
}

#mainbanner h1 {
    color: white;
    line-height: 1.3;
    margin-bottom: 5px;
}

.banner {
    width: auto;
    border-top-style: solid;
    border-bottom-style: solid;
    border-width: 1px;
    border-color: var(--background-dark);
}

h1 {
    color: var(--text-color-aquamarine);
    line-height: ;
}

h3 {
    color: white;
}

.article p, ul {
    color: whitesmoke;
}

.article .btn {
    display: inline-block;
    min-width: 220px; 
    padding: 15px 20px;
}

.newsbody {
    padding: 20px;
}

.bodytext {
    font-size: large;
    height: auto;
}

.bodytext p {
    line-height: 1.8;
    margin: 0 0 10px 10px;
}

.subsection {
    margin: 10px 0;
}

#editorimg {
    width: 100%;
    max-width: 900px;
    margin: auto;
    /*display: block;*/
}

#editorimg img {
    width: 100%;
    height: auto;
    box-shadow: 2px 2px 10px black;
}

.imagediv {
    line-height: 0;
}

.imagegrid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px; /* Gap between images */
    width: 90%;
    margin-right: auto;
    margin-left: auto;
}

.imagegrid img {
    width: calc(50% - 10px); /* Two images per row with gap adjustment */
    box-shadow: 2px 2px 10px black;
}

@media only screen and (max-width: 1000px) {
    #editorimg img {
        width: 100%;
    }
}

@media screen and (max-width: 750px) {
  .imagegrid img {
    width: calc(100% - 20px); /* Single image per row on smaller screens */
  }
}

/* Mobile */
@media only screen and (max-width: 560px) {
    .imagegrid {
        width: 100%;
        gap: 10px;
    }
    .imagegrid img {
        width: calc(100% - 10px); /* Single image per row on smaller screens */
      }
}
