/* sticky footer (flexbox) */
.footer-sticky {
    flex: none;
}

.sticky {
    display: flex;
    flex-direction: column;
    height: 100vh;
}

.sticky-skip {
    flex: 1;
    margin-bottom: 2rem;
}

/* Override Bulma section class spec, which for some reason adds
 * space on the left and right.
 */
div .section {
    padding: 0 0 1rem 0;
}

/* Override RST table border attribute */
table {
    border: none;
}

/* RST figure class, copied from Bulma figure#tag */
.content .figure {
    margin-left: 2em;
    margin-right: 2em;
    text-align: center;
}

.content .figure:not(:first-child) {
    margin-top: 2em;
}

.content .figure:not(:last-child) {
    margin-bottom: 2em;
}

.content .figure img {
    display: inline-block;
}

.content .figure .caption {
    font-style: italic;
}

/* RST about-container class */
.about-container {
    margin-bottom: 1rem;
}

.about-container p:first-child {
    font-size: 1.2em;
    margin-bottom: 0;
}

/* better handling of img tag */
p img {
    display: block;
    position: relative;
    height: auto;
    width: 100%;
}

/* Special handling for aside-menu */
.aside-column {
    width: 185px;
    text-align: right;
}

.aside-fixed {
    position: fixed;
    top: 0;
    width: inherit;
}

#menu-top {
    display: inherit;
}

header {
    margin-top: 2rem;
}

/* Some responsive changes to style */
@media screen and (min-width: 769px), print {
    #menu-top {
        display: none;
    }
}

@media screen and (max-width: 768px) {
    .aside-column {
        width: auto;
        text-align: left;
    }
    #menu-aside {
        display: none;
    }
    header {
        margin-top: 0;
    }
    .sticky-skip {
        margin-left: 1rem;
        margin-right: 1rem;
    }
}
