/* Lazy loading of images */
.notloaded {
    opacity: 0;
    transform: scale(.9);
}

.loaded {
    background: none;
    opacity: 1;
    transform: scale(1);
    transition: all 400ms ease-in;
}

@media screen and (prefers-reduced-motion: reduce) {
    .loaded {
        transition: none;
    }
}

a:focus,
a:active,
input:focus,
textarea:focus {
    outline: 2px solid #4da3d4;
}

noscript p {
    background-color: crimson;
    line-height: 2em;
    padding: 0 10px;
    color: white;
    font-size: .9em;
}

.video {
    position: relative;
    padding-bottom: 56.25%;
    padding-top: 30px;
    height: 0;
    overflow: hidden;
}

.video iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.categories {
    list-style: none;
    display: inline;
    padding: 0;
}

.categories li {
    display: inline-block;
}

.categories li:not(:first-child):not(:last-child):after {
    content: ", ";
}

.socialsharing {
    text-align: center;
}

.socialsharing a {
    display: inline-block;
    padding: .7em;
    line-height: 0;
    margin-bottom: 2em;
}

.socialsharing path {
    fill: gray;
}

.socialsharing svg {
    width: 24px;
    height: 24px;
}

.pagination {
    padding-bottom: 2em;
    margin-top: 1em;
}

.pagination a {
    border: 1px solid #bbb;
    background: #f1f1f1;
    color: #222;
    display: inline-block;
    padding: 4px 15px;
    text-decoration: none;
}

.pagination a[rel=next] {
    float: right;
}

.pagination a:hover,
.pagination a:focus {
    background: #dfdfdf;
}

/* Footer */
.sitefooter {
    background-color: #1a1a2e;
    color: #ccc;
    padding: 2rem 0 1rem;
    font-size: .9em;
}

.sitefooter .container {
    margin: 0 auto;
}

.sitefooter ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem 1rem;
    justify-content: center;
}

.sitefooter li {
    display: inline-block;
}

.sitefooter a {
    color: #e0e0e0;
    text-decoration: none;
    transition: color 0.2s;
}

.sitefooter a:hover {
    color: #fff;
    text-decoration: underline;
}

.sitefooter p {
    text-align: center;
    font-size: .85em;
    margin-top: 1rem;
    color: #999;
}

/* Print styles */
@media print {
    @page {
        margin: 2cm;
    }

    body {
        color: #000;
        background: #fff;
        font: 12pt/1.5 Calibri, serif;
        -webkit-print-color-adjust: exact;
    }

    nav, aside, footer, #comments, [data-src], .video {
        display: none;
    }

    article {
        page-break-after: always;
    }

    h1, h2, h3, h4, h5, h6, img {
        page-break-after: avoid;
        page-break-inside: avoid;
    }

    blockquote, table, pre {
        page-break-inside: avoid;
    }

    ul, ol, dl {
        page-break-before: avoid;
    }

    .post pre {
        background: none;
        border: none;
        box-shadow: none;
        font-family: monospace;
    }

    a[href^="http"]:after, a[href^="//"]:after {
        content: " <" attr(href) "> ";
    }
}
