/* Article */

article {
    overflow: hidden;
}

article header {
    position: relative;
}

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

article section.limited {
    display: block;
    max-height: 60rem;
    overflow: hidden;
}

article section.limited:after {
    content: "";
    display: block;
    background: linear-gradient(to bottom, rgba(var(--movim-background-main), 0), rgba(var(--movim-background-main), 1));
    width: 100%;
    height: 10rem;
    position: absolute;
    bottom: 0;
    pointer-events: none;
}

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

article img,
article video {
    max-width: 100%;
    height: auto;
}

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

article section content 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 content div.quote:before,
article section content div.quote:after {
    content: '';
    display: none;
}

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

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

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

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

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

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

article section content img.big_picture {
    display: block;
    margin: 0rem auto;
    margin-bottom: 1rem;
}

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

article section content div.video_embed {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 */
    margin-bottom: 2rem;
    height: 0;
}

article section content 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;
}

/* 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 content > * {
    opacity: 0.05;
    pointer-events: none;
}

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%;
    opacity: 0.9;
    background-color: gray;
    color: white;
}

article section label.spoiler:hover {
    cursor: pointer;
}
