.light .sidebar-scrollbox::before {
    content: url(../figures/logo.svg)
}

.rust .sidebar-scrollbox::before {
    content: url(../figures/logo-dark.svg)
}

.coal .sidebar-scrollbox::before {
    content: url(../figures/logo-dark.svg)
}

.navy .sidebar-scrollbox::before {
    content: url(../figures/logo-dark.svg)
}

.ayu .sidebar-scrollbox::before {
    content: url(../figures/logo-dark.svg)
}

:root {
    --content-max-width: 850px;
    --md-admonition-icon--disclaimer: url(../disclaimer/warningt32.png);
}

:is(.admonition):is(.disclaimer) {
    border-color: rgba(247, 215, 0, 1) !important;
    color: black !important;
    background-color: white !important;
}

:is(.disclaimer)> :is(.admonition-title, summary) {
    background-color: rgba(247, 215, 0, 0.5) !important;
}

:is(.disclaimer)> :is(.admonition-title, summary)::before {
    background-color: rgba(0, 0, 0, 1) !important;
    mask-image: var(--md-admonition-icon--disclaimer) !important;
    -webkit-mask-image: var(--md-admonition-icon--disclaimer) !important;
    mask-repeat: no-repeat;
    -webkit-mask-repeat: no-repeat;
    mask-size: contain;
    -webkit-mask-repeat: no-repeat;
}

.disclaimer {
    padding: 1em;
    border: 4px solid rgba(247, 215, 0);
}

* mark {
    background-color: rgba(247, 215, 0, 0.5) !important;
    color: red !important;
}

#gallerywrapper {
    width: 640px;
    height: 550px;
    margin: 0 auto;
    position: relative;
    font-family: verdana, arial, sans-serif;
}

#gallerywrapper #gallery {
    position: absolute;
    left: 0;
    top: 0;
    height: 550px;
    width: 640px;
    overflow: hidden;
    text-align: center;
}

#gallerywrapper #gallery div {
    width: 640px;
    height: 900px;
    padding-top: 10px;
    position: relative;
}

#gallerywrapper #gallery div img {
    clear: both;
    display: block;
    margin: 0 auto;
    border: 0;
}

#gallerywrapper #gallery div h3 {
    padding: 10px 0 0 0;
    margin: 0;
    font-size: 18px;
}

#gallerywrapper #gallery div p {
    padding: 5px 0;
    margin: 0;
    font-size: 12px;
    line-height: 18px;
}

#gallery .previous {
    display: inline;
    float: left;
    margin-left: 80px;
    text-decoration: none;
    font-size: 12px;
}

#gallery .next {
    display: inline;
    float: right;
    margin-right: 80px;
    text-decoration: none;
    font-size: 12px;
}

/* https://github.com/mermaid-js/mermaid/issues/1984 */
.mermaid svg {
    height: auto;
}
