/* vars */
:root {
    --main-width: 75%;
    --font-size: 2em;
    --primary: #FFFFFF;
    --secondary: #000000;
    --grey: #7D7D7D;
    --light-grey: #C4C4C4;
    --image-div-height:  20rem;
}

@media (orientation: portrait) {
    :root {
        --main-width: 90%;
        --font-size: 1.5em;
        --image-div-height: 15rem;
    }

    #return {
        visibility: hidden;
    }

    #content {
        width: 70% !important;
    }

    .image-div p {
        margin-top: 0.1rem;
    }
}

/* css */
body {
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    font-family: Ronzino, sans-serif;
    font-size: var(--font-size);
    text-align: justify;
    text-justify: inter-word;
    /* background: black; */
    filter: blur(1px);
}

#return {
    z-index: 3;
    top: 0;
    left: 0;
    padding: 1.3em 2em 2em 2em;
    position: fixed;
    visibility: hidden;
}

#main {
    width: var(--main-width);
    background: white;
}

#header {
    padding: 1em;
    margin: 1em 0 1em 0;
    border-style: none none dotted none;
    border-width: 0.125rem;
    border-color: var(--light-grey);
}

#page {
    margin: 0 0 5em 0;
    padding: 0;
    display: flex;
    flex-direction: row;
}

#sidebar {
    /*height: min-content;
    padding-bottom: 1rem;*/
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    border-style: none dotted none none;
    border-width: 0.125rem;
    border-color: var(--light-grey);
    overflow: hidden;
}

#content {
    width: 80%;
    padding-left: 2rem;
}

#content h1:first-child {
    margin-top: 0;
}

#content p:first-child {
    margin-top: 0;
}

#content .image-div:first-child {
    margin-top: 0;
}

a:visited {
    color: blue;
}

/* link/image div */
.link-div {
    text-decoration: none;
    color: var(--secondary) !important;
}

.image-div {
    height: var(--image-div-height);
    background-color: var(--primary);
    margin-bottom: 2rem !important;
}

.image-div:hover {
    filter: invert();
}

.image-div h1 {
    margin: 0;
}

.image-div h2 {
    margin: 0;
    color: var(--grey);
}

.image-div img {
    height: var(--image-div-height);
    float: right;
    margin-left: 2rem;
}

/* video/image div */
.media-list {
    width: 100%;
    display: flex;
    flex-direction: column;
}

.attribution {
    z-index: 3;
    padding: 0.5em;
    position: absolute;
    text-decoration: none !important;
    font-style: italic;
    font-size: 2rem;
    color: black;
    background-color: white;
    visibility: hidden;
}

.media-single a, .media-double a{
    line-height: 0;
}

.media-single {
    display: flex;
}

.media-single video {
    flex-grow: 1;
}

.media-single img {
    flex-grow: 1;
    width: 100%;
}

.media-double {
    flex-grow: 1;
    display: flex;
    flex-direction: row;
}

.media-double video {
    flex-grow: 1;
    width: 100%;
}

.media-double img {
    flex-grow: 1;
    width: 100%;
}

.media-single a:hover, .media-double a:hover {
    filter: invert();
}

.media-single a:hover .attribution, .media-double a:hover .attribution{
    visibility: visible;
}