.imgl,
.imglwc {
    float: left;
    margin: 0.4em 1em 1em 0;
    width: 25%;
}

.imgl {
    clear: left;
}

.imgr,
.imgrwc {
    float: right;
    margin: 0.4em 0 1em 1em;
    width: 25%;
}

.imgr {
    clear: right;
}

hr {
    clear: both;
}

@media screen and (max-width: 600px) {

    .imgl,
    .imgr,
    .imglwc,
    .imgrwc {
        float: none !important;
        width: 100% !important;
        margin: 1em 0 1em 0 !important;
    }
}

.w-20 {
    width: calc(var(--spacing) * 20);
}

.w-24 {
    width: calc(var(--spacing) * 24);
}

@font-face {
    font-family: "Baumans";
    src: url("/fonts/Baumans-Regular.ttf") format("truetype");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

.font-baumans {
    font-family: "Baumans", system-ui, sans-serif;
}

.prose :where(code):not(:where([class~=not-prose],[class~=not-prose] *)):before,
.prose :where(code):not(:where([class~=not-prose],[class~=not-prose] *)):after {
    content: none !important;
}

/* Site title in the header (the theme's "site_title" button) */
header a[accesskey="!"] {
    font-family: "Baumans", system-ui, sans-serif;
}

/* Profile avatar: larger than the theme default and without the hover spin */
.not-prose > img.aspect-square.rounded-full {
    width: calc(var(--spacing) * 24);
    animation: none !important;
}

/* Image popup, see static/js/lightbox.js */
.lightbox {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100dvh;
    max-width: none;
    max-height: none;
    margin: 0;
    padding: 0;
    border: 0;
    background: rgb(0 0 0 / 0.92);
    overscroll-behavior: contain;
    touch-action: pan-y pinch-zoom;
}

.lightbox[open] {
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox::backdrop {
    background: transparent;
}

html:has(.lightbox[open]) {
    overflow: hidden;
}

.lightbox-image {
    max-width: 100vw;
    max-height: 100dvh;
    object-fit: contain;
    user-select: none;
    -webkit-user-drag: none;
}

.lightbox-button {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    border-radius: 9999px;
    background: rgb(0 0 0 / 0.5);
    color: #fff;
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
}

.lightbox-button[hidden],
.lightbox-counter[hidden] {
    display: none;
}

.lightbox-button:hover {
    background: rgb(255 255 255 / 0.2);
}

.lightbox-close {
    top: 0.75rem;
    right: 0.75rem;
}

.lightbox-prev,
.lightbox-next {
    top: 50%;
    transform: translateY(-50%);
    padding-bottom: 0.3rem;
}

.lightbox-prev {
    left: 0.75rem;
}

.lightbox-next {
    right: 0.75rem;
}

.lightbox-counter {
    position: absolute;
    bottom: 0.75rem;
    left: 50%;
    transform: translateX(-50%);
    padding: 0.15rem 0.75rem;
    border-radius: 9999px;
    background: rgb(0 0 0 / 0.5);
    color: #fff;
    font-size: 0.875rem;
}
