::selection {
    background: #cccccc;
    color: #000;
    text-shadow: none;
}

pre {
    background-color: #272822;
    line-height: 1.4;
    overflow-x: auto;
    padding: 1em;
}

h1::before {
    color: #fbff15;
    content: "# ";
}

h2::before {
    color: #fbff15;
    content: "## ";
}

h3::before {
    color: #fbff15;
    content: "### ";
}

h4::before {
    color: #fbff15;
    content: "#### ";
}

h5::before {
    color: #fbff15;
    content: "##### ";
}

h6::before {
    color: #fbff15;
    content: "###### ";
}

.toc {
    background-color: #272822;
    color: white;
}

a {
    border-bottom: 3px solid #fbff15;
    color: inherit;
}

a:hover {
    background-color: #fbff15;
    color: black;
}

.site-description a {
    color: #ddd;
}

.site-description a:hover {
    color: black;
}

.tags a {
    border-bottom: 3px solid #fbff15;
}

.tags a:hover {
    background-color: #fbff15;
    color: black;
}

.site-title a {
    color: white;
    text-decoration: none !important;
}

.header nav,
.footer {
    border-color: #333;
}

.highlight {
    background-color: #333;
}

.soc:hover {
    color: black;
}

.draft-label {
    color: rgb(255, 255, 255);
    background-color: #2c15ff;
}

footer {
    border-top-color: #999999;
}

img {
    border: 0;
}

#gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    grid-auto-rows: 250px;
    gap: 10px;
}

#gallery-grid a {
    border-bottom: 0;
    overflow: hidden;
    border-radius: 8px;
    display: block;
}

#gallery-grid img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (max-width: 768px) {
    #gallery-grid {
        grid-template-columns: repeat(3, 1fr);
        grid-auto-rows: 1fr;
    }

    #gallery-grid a {
        aspect-ratio: 1;
    }
}

.splide__slide:before {
    content: ""
}