body, html {
    font-family: "Verdana", sans-serif;
    background-color: #e1e3de;
}

hr {
    opacity: 0.4;
}

.container {
    max-width: 1090px;
    margin: 0 auto;
}

.main-grid {
    background-color: white;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-column-gap: 2em;
    grid-row-gap: 2.6em;
    padding: 1em 1em;
}

.main-grid div {
    margin: auto;
}

/*.main-grid.gallery div a img {
    margin: 0 auto;
}*/

.framed-img {
    object-fit: contain;
    max-width: 100%;
    max-height: 280px;
    padding: 0.6em;
    border: 1px solid rgba(0,0,0,0.3);
}

.img-lg {
    max-width: 100%;
    max-height: 400px;
}

.img-sm {
    max-width: 100%;
    max-height: 210px;
}

.full-img {
    text-align: center;
    width: 90%;
    padding: 0.8em;
    margin: 0 auto;
    border: 1px solid rgba(0,0,0,0.3);
    pointer-events: none;
}

.main-grid div a {
    display: block;
    font-style: italic;
}

.admin-list .admin-list-item {
    background-color: white;
    display: grid;
    grid-template-columns: 1fr 2fr;
    grid-column-gap: 0.5em;
    padding: 1em 2em;
}

.admin-list .admin-list-item img {
    margin: 0 auto;
    cursor: grab;
}

.toolbar {
    font-size: 90%;
}

.bio-grid {
    background-color: white;
    display: grid;
    grid-template-columns: 3fr 1fr;
    grid-column-gap: 1em;
    padding: 1em 1em;
}

header {
    padding: 0.8em 1em;
    background-color: #8a967d;
    color: white;
    border-bottom: 1px solid #acbd93;
}

header > div{
    display: flex;
    flex-flow: row nowrap;
    justify-content: space-between;
    align-items: center;
}

header h1 {
    font-size: 120%;
}

header nav a {
    padding: 0 6px;
    color: inherit;
    text-decoration: none;
}

header nav a:hover {
    color: #e5e6e3;
    text-decoration: underline;
}

header nav a:last-child {
    padding-right: 0;
}

footer {
    text-align: center;
}

footer > div {
    padding: 1em 0;
    background-color: #ecedea;
    border-top: 1px solid #d6d9d0;
}

footer a {
    color: inherit;
}

footer a:hover {
    color: #333333;
}

main > .container, footer > .container {
    -webkit-box-shadow: rgba(0, 0, 0, 0.2) 0 2px 6px 0;
    -moz-box-shadow: rgba(0, 0, 0, 0.2) 0 2px 6px 0;
    box-shadow: rgba(0, 0, 0, 0.2) 0 2px 6px 0;
}

footer > .container {
    -webkit-border-radius: 0 0 5px 5px;
    -moz-border-radius: 0 0 5px 5px;
    border-radius: 0 0 5px 5px;
}

.upload-section, .page-info, .flash-messages, .news-list {
    background-color: white;
    padding: 1.3em 1em;
}

.news-list {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.news-item {
    width: 100%;
    padding: 1em;
    margin-bottom: 1.0em;
    display: flex;
    flex-direction: row;
    gap: 1rem;
    justify-content: space-between;
}

.event-thumb {
    padding-right: 10px;
    height: 180px;
}

.news-list .news-item:last-child {
    margin-bottom: 0.25em;
}

.news-year-title {
    padding-bottom: 1em;
}

.date::before, .email::before, .date::before {
    display: inline-block;
    margin-right: 6px;
}

.info::before {
    content: url("info.png");
    margin-right: 7px;
}

.email::before {
    content: url("email.png");
}

.date::before {
    content: url("date.png");
}

.fname-label {
    color: gray;
}

.ext-link {
    color: #36c;
    text-decoration: none;
    cursor: pointer;
}

.ext-link-icon {
    background-image: url("https://en.wikipedia.org/w/skins/Vector/resources/skins.vector.styles/images/link-external-small-ltr-progressive.svg");
    background-position: center right;
    background-repeat: no-repeat;
    background-size: 0.857em;
    padding-right: 1em;
}

.ext-link:hover {
    color: #3056a9;
    text-decoration: underline;
}

.ext-link:active {
    color: #233566;
    text-decoration: underline;
}

#new-upload, #img-preview-event {
    display: none;
}

.inline-form form {
    display: inline-block;
}

button, .button {
  padding: 0.1em 0.3em;
  margin: 0.3em 0em;
  border: 1px solid rgba(0, 0, 0, 0.2);
  border-radius: 3px;
  background-color: inherit;
  color: inherit;
  cursor: pointer;
  min-width: 100px;
}

button:hover, .button:hover {
  background-color: rgba(220, 220, 220, 0.75);
}

.red-hover:hover {
    background-color: rgba(220, 200, 200, 0.75);
}

.pagination {
    text-align: center;
}

.pagination a, .pagination span {
    padding-left: 0.15em;
    padding-right: 0.15em;
}

.pagination a.left-arrow {
    padding-right: 0.6em;
}

.pagination a.right-arrow {
    padding-left: 0.6em;
}

.post-caption {
    margin-bottom: -2px;
}

.post-year {
    margin-top: -6px;
    opacity: 0.85;
}

.privacy-page hr {
    margin-top: 0.9em;
    margin-bottom: 0.9em;
    opacity: 0.2;
}

.event-two-col {
    display: grid;
    grid-template-columns: 50% 50%;
    grid-column-gap: 1rem;
}


@media only screen and (max-width: 600px) {
    .main-grid {
        grid-template-columns: 1fr 1fr;
        grid-row-gap: 2em;
    }

    .framed-img {
        object-fit: contain;
        padding: 0.2em;
    }

    .bio-grid {
        grid-template-columns: 1fr;
        grid-column-gap: 0em;
        grid-row-gap: 1.4em;
    }

    .bio-grid .framed-img {
        max-width: 50%;
    }

    .full-img {
        width: 94%;
        padding: 0.4em;
    }

    .admin-list {
        grid-template-columns: 1fr;
        grid-column-gap: 0em;
        grid-row-gap: 2em;
        padding: 1em 1em;
    }
}

@media only screen and (max-width: 440px) {
    header {
        font-size: 90%;
    }

    .news-item {
        flex-direction: column;
        margin-bottom: 1.3em;
    }

    .event-two-col {
        grid-template-columns: 1fr;
        grid-row-gap: 2rem;
    }
}
