* {
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
}

body {
    margin: 0;
    background: #161616 url('../img/dutchboy.png') center top / cover fixed no-repeat;
    color: #d4d4d4;
    font: 15px/1.55 Arial, Helvetica, sans-serif;
    overflow-x: hidden;
}

a {
    color: #e6e6e6;
    text-decoration: none;
}

a:visited {
    color: #e6e6e6;
}

a:hover,
a:focus {
    color: #ffffff;
    text-decoration: underline;
}

img,
video,
iframe,
embed,
object {
    max-width: 100%;
}

.container {
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto;
}

.site-header {
    padding: 30px 0;
    margin-bottom: 30px;
    background: rgba(0, 0, 0, 0.72);
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.brand {
    display: inline-block;
    color: #ffffff;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 42px;
    line-height: 1.1;
    letter-spacing: 0.02em;
    text-decoration: underline;
    text-underline-offset: 8px;
}

.brand:visited {
    color: #ffffff;
}

.site-nav {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
    margin-top: 22px;
}

.site-nav a {
    font-weight: 700;
}

.page-wrap {
    min-height: 70vh;
}

.blog-grid {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(240px, 1fr);
    gap: 36px;
    align-items: start;
}

.post-list,
.post-card,
.post-card *,
.post-content,
.post-content * {
    min-width: 0;
}

.post-card {
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr);
    width: 100%;
    max-width: 100%;
    margin: 0 0 24px;
    background: rgba(0, 0, 0, 0.76);
    border: 1px solid rgba(255, 255, 255, 0.12);
    overflow: hidden;
}

.post-thumbnail {
    display: block;
    width: 240px;
    height: 180px;
    background: #080808;
    overflow: hidden;
}

.post-thumbnail img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-summary {
    padding: 18px 20px;
    overflow: hidden;
}

h1,
h2,
h3 {
    margin-top: 0;
    color: #ffffff;
    line-height: 1.18;
    overflow-wrap: anywhere;
}

.post-card h2 {
    margin: 0 0 9px;
    font-size: 25px;
}

.post-card h2 a,
.post-card h2 a:visited {
    color: #ffffff;
}

.post-meta {
    margin: 0 0 10px;
    color: #aaaaaa;
    font-size: 13px;
}

.excerpt {
    margin: 0 0 12px;
    color: #d0d0d0;
    overflow-wrap: anywhere;
}

.read-more,
.read-more:visited {
    display: inline-block;
    color: #e34b45;
    font-size: 13px;
    font-weight: 700;
}

.read-more:hover,
.read-more:focus {
    color: #ff6d66;
}

.tag-list {
    display: flex;
    gap: 7px;
    flex-wrap: wrap;
    max-width: 100%;
    margin: 0 0 12px;
    overflow: hidden;
}

.tag-list a,
.tag-list a:visited {
    max-width: 100%;
    color: #bbbbbb;
    font-size: 13px;
    overflow-wrap: anywhere;
}

.sidebar {
    min-width: 0;
    padding-left: 26px;
    border-left: 1px solid rgba(255, 255, 255, 0.2);
}

.sidebar section {
    width: 100%;
    max-width: 100%;
    padding: 18px;
    margin-bottom: 20px;
    background: rgba(0, 0, 0, 0.66);
    overflow: hidden;
}

.sidebar h3 {
    margin-bottom: 14px;
    padding-bottom: 8px;
    border-bottom: 2px solid #b8322d;
}

.sidebar p {
    max-width: 100%;
    overflow-wrap: anywhere;
}

.sidebar .tag-cloud {
    display: flex;
    gap: 7px;
    flex-wrap: wrap;
    align-content: flex-start;
    width: 100%;
    max-width: 100%;
    max-height: 260px;
    padding: 2px 8px 2px 0;
    overflow-x: hidden;
    overflow-y: auto;
    scrollbar-color: #b8322d rgba(255, 255, 255, 0.08);
    scrollbar-width: thin;
}

.sidebar .tag-cloud a,
.sidebar .tag-cloud a:visited {
    display: inline-block;
    max-width: 100%;
    padding: 4px 7px;
    color: #d4d4d4;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 13px;
    line-height: 1.3;
    overflow-wrap: anywhere;
}

.sidebar .tag-cloud a:hover,
.sidebar .tag-cloud a:focus {
    color: #ffffff;
    background: rgba(184, 50, 45, 0.45);
    border-color: #b8322d;
    text-decoration: none;
}

/* Neutral names prevent browser ad filters from hiding this section. */
.sidebar-gallery {
    display: block !important;
    width: 100%;
    max-width: 100%;
}

.sidebar-gallery-list,
.sidebar-gallery-images {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    width: 100%;
    max-width: 100%;
}

.sidebar-gallery-images a {
    display: block;
    width: min(100%, 200px);
    max-width: 200px;
    margin: 0 auto;
    padding: 0;
    background: transparent;
    border: 0;
    line-height: 0;
}

.sidebar-gallery-images img {
    display: block;
    width: 100%;
    max-width: 200px;
    height: auto;
    margin: 0;
    padding: 0;
    background: #080808;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.sidebar-gallery-images a:hover img,
.sidebar-gallery-images a:focus img {
    border-color: #b8322d;
}

.pagination {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin: 28px 0;
}

.pagination a,
.pagination span {
    padding: 7px 11px;
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid #555555;
}

.pagination span {
    color: #ffffff;
    border-color: #c43b35;
}

.post-content {
    width: 100%;
    max-width: 100%;
    padding: 24px;
    background: rgba(0, 0, 0, 0.76);
    overflow: hidden;
}

.featured-image {
    display: block;
    width: 100%;
    height: auto;
    max-height: 680px;
    margin: 0 auto 22px;
    background: #090909;
    object-fit: contain;
}

.post-body {
    max-width: 100%;
    overflow-wrap: anywhere;
}

.post-body a,
.post-body a:visited {
    color: #e34b45;
    font-weight: 600;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.post-body a:hover,
.post-body a:focus {
    color: #ff7b86;
}

.post-body img {
    display: block;
    max-width: 100% !important;
    height: auto !important;
}

/* aMember/Plyr retains control of established video dimensions. */
.post-body video {
    max-width: 100%;
}

.post-body iframe {
    display: block;
    width: 100% !important;
    max-width: 100% !important;
}

.post-body table {
    display: block;
    max-width: 100%;
    overflow-x: auto;
}

.empty-state {
    padding: 20px;
    background: rgba(0, 0, 0, 0.7);
}

.site-footer {
    padding: 24px 0;
    margin-top: 40px;
    background: rgba(0, 0, 0, 0.72);
    border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.form-card,
.admin-card {
    width: 100%;
    max-width: 1000px;
    padding: 22px;
    margin-bottom: 24px;
    background: rgba(0, 0, 0, 0.78);
    border: 1px solid #555555;
    overflow: hidden;
}

.form-card label {
    display: block;
    color: #ffffff;
    font-weight: 700;
}

.form-card input,
.form-card textarea,
.form-card select {
    display: block;
    width: 100%;
    max-width: 100%;
    padding: 9px;
    margin: 5px 0 16px;
    color: #111111;
    background: #ffffff;
    border: 1px solid #aaaaaa;
}

.form-card textarea {
    resize: vertical;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table th,
.admin-table td {
    padding: 10px;
    border-bottom: 1px solid #555555;
    text-align: left;
}

.inline-form {
    display: inline;
}

.link-button {
    padding: 0;
    color: #e6e6e6;
    background: none;
    border: 0;
    cursor: pointer;
}

.button,
.button:visited {
    display: inline-block;
    padding: 9px 14px;
    margin: 3px;
    color: #ffffff;
    background: #b8322d;
    border: 0;
    text-decoration: none;
    cursor: pointer;
}

.button:hover,
.button:focus {
    color: #ffffff;
    background: #d0453f;
}

@media (max-width: 800px) {
    .blog-grid {
        grid-template-columns: 1fr;
    }

    .sidebar {
        padding: 25px 0 0;
        border-top: 1px solid #555555;
        border-left: 0;
    }

    .post-card {
        grid-template-columns: 180px minmax(0, 1fr);
    }

    .post-thumbnail {
        width: 180px;
        height: 150px;
    }

    .brand {
        font-size: 34px;
    }

    .sidebar .tag-cloud {
        max-height: 220px;
    }
}

@media (max-width: 560px) {
    .container {
        width: min(100% - 20px, 1120px);
    }

    .post-card {
        display: block;
    }

    .post-thumbnail {
        width: 100%;
        height: 220px;
    }

    .post-summary,
    .post-content {
        padding: 16px;
    }

    .brand {
        font-size: 29px;
    }

    .sidebar .tag-cloud {
        max-height: 200px;
    }
}