/* Article */

article {
    overflow: hidden;
}

article header {
    position: relative;
}

article footer {
    margin-bottom: 1rem;
}

article header ul:not(:first-child) {
    padding: 0 1rem;
}

@media print {
    article footer {
        display: none;
    }
}

article section {
    font-size: 2rem;
    line-height: 3rem;
    font-weight: 500;
    padding: 0 2rem;
}

article section[dir=rtl] {
    text-align: right;
}

article section.limited {
    display: block;
    max-height: 60rem;
    overflow: hidden;
    margin: 0;
    mask-image: linear-gradient(to bottom, black calc(100% - 10rem), transparent);
}

@media screen and (max-width: 1024px) {
    article section.limited {
        max-height: 40rem;
    }
}

article img,
article video {
    max-width: 100%;
    height: auto;
    animation: fadein 0.2s;
}

/* Some CSS to style the quote XHTML generated by Movim */

article section > div div.quote {
    display: block;
    border-radius: 2px;
    border: 1px solid rgba(0, 0, 0, 0.12);
    padding: 1rem 2rem;
    margin-bottom: 1rem;
    box-sizing: border-box;
}

article section > div div.quote:before,
article section > div div.quote:after {
    content: '';
    display: none;
}

article section > div div.quote ul {
    display: flex;
    flex-flow: row wrap;
}

article section > div div.quote ul:not(.list):not(.tabs):not(.grid) > li {
    list-style-type: none;
    padding-left: 0;
}

article section > div div.quote ul li > * {
    margin-right: 1rem;
}

article section > div div.quote li:first-child {
    flex: 1 75%;
    padding-right: 2rem;
    box-sizing: border-box;
}

@media screen and (max-width: 1024px) {
    article section > div div.quote li {
        flex: 1 100%;
    }
}

article section > div div.quote li img {
    max-height: 10rem;
    max-width: 100%;
    float: right;
}

article section > div img.big_picture {
    display: block;
    margin-bottom: 1rem;
    border-radius: 0.25rem;
}

article section > div img.big_picture:last-child {
    margin-bottom: 0;
}

article section > div img.active:hover {
    cursor: pointer;
}

article section > div div.video_embed {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 */
    margin-bottom: 2rem;
    border-radius: 0.25rem;
    overflow: hidden;
    height: 0;
}

article section > div div.video_embed iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

article ul li.pic img {
    max-width: 30rem;
    max-height: 30rem;
}

article section > div div hr {
    margin: 2rem 0;
}

/* Spoiler */

article input[type=checkbox].spoiler {
    display: none;
}

article input[type=checkbox].spoiler:not(:checked) + section {
    position: relative;
}

article input[type=checkbox].spoiler:not(:checked) + section > div > * {
    opacity: 0.05;
    pointer-events: none;
    filter: blur(1rem);
}

article section label.spoiler,
article input[type=checkbox].spoiler:checked + section label.spoiler {
    display: none;
}

article input[type=checkbox].spoiler + section label.spoiler {
    text-align: center;
    display: block;
    position: absolute;
    top: calc(50% - 5rem);
    left: calc(50% - 5rem);
    width: 10rem;
    height: 10rem;
    line-height: 10rem;
    font-size: 4rem;
    border-radius: 100%;
    background-color: rgb(var(--movim-accent));
    color: rgba(var(--movim-font), 0.87);
    box-shadow: var(--elevation-1);
}

article section label.spoiler:hover {
    cursor: pointer;
    font-variation-settings: 'FILL' 1;
    box-shadow: var(--elevation-2);
}

/* Table */

article table {
    border-collapse: collapse;
    margin-top: 2rem;
    margin-bottom: 2rem;
}

article table tbody tr:hover {
    background-color: rgba(var(--movim-font), 0.05);
}

article table tbody tr td {
    font-size: 1.8rem;
}

article table td {
    padding: 0.3rem 0.5rem;
    border: thin solid rgba(var(--movim-font), 0.20);
}

article table th {
    padding: 0 0.5rem;
    font-size: 1.7rem;
    text-align: center;
}
