
body {
    counter-reset: sidenote-counter;
}

.alert-sidenote:before {
    content: counter(sidenote-counter) " ";
    font-size: 1rem;
    top: -0.5rem;
}

.sidenote-number {
    counter-increment: sidenote-counter;
}
.sidenote-number:after {
    content: counter(sidenote-counter);
    font-size: 1rem;
    top: -0.5rem;
    left: 0.1rem;
}

.alert-sidenote {
    float: right;
    clear: right;
    margin-right: -60%;
    width: 50%;
    margin-top: 0.3rem;
    margin-bottom: 0;
    font-size: 1.1rem;
    line-height: 1.3;
    vertical-align: baseline;
    position: relative;
}


div.figure-embedding {
    border: 1px solid rgba(128, 128, 128, 0.3);
    padding: .5rem;
    margin: 1rem auto;
}
div.figure-embedding-content {
    width: 100%;
}
div.figure-embedding-content > :last-child {
    margin-bottom: 0;
}
div.figure-embedding-caption {
    text-align: center;
    font-style: italic;
}


div.imageframe-caption {
    border: 1px solid rgba(128, 128, 128, 0.3);
    padding: .5rem;
}
div.imageframe-caption.imageframe-float-right {
    float: right;
    clear: right;
    margin: .5rem 0 .5rem .5rem;
}
div.imageframe-caption.imageframe-float-left {
    float: left;
    clear: left;
    margin: .5rem .5rem 0 .5rem;
}
div.imageframe {
    text-align: center;
    width: 100%;
    font-weight: bold;
}
@media (max-width: 576px) {
    div.imageframe-caption.imageframe-float-right,
    div.imageframe-caption.imageframe-float-left {
        float: none;
        clear: both;
        margin: .5rem 0;
        width: 100% !important;
    }
}


div.infobox {
    border: 1px solid rgba(128, 128, 128, 0.3);
    padding: .5rem;
    background-color: rgba(0, 0, 0, 0.2);
}
div.infobox.infobox-float-right {
    float: right;
    clear: right;
    margin: .5rem 0 .5rem .5rem;
}
div.infobox.infobox-float-left {
    float: left;
    clear: left;
    margin: .5rem .5rem 0 .5rem;
}
div.infobox-caption {
    text-align: center;
    width: 100%;
    font-weight: bold;
}
table.infobox {
    width: 100%;
    border: none;
    background: none;
}
table.infobox tr {
    border: none;
}
table.infobox td {
    border: none;
    padding: .5rem;
}
@media (max-width: 576px) {
    div.infobox.infobox-float-right,
    div.infobox.infobox-float-left {
        float: none;
        clear: both;
        margin: .5rem 0;
        width: 100% !important;
    }
}
