#screen_portfolio {
    padding-top: 5px;
}

#screen_portfolio > main {
    flex-direction: column;
}

#portfolio_articles,
#portfolio_sections {
    max-width: 1100px;
}

#portfolio_articles article,
#portfolio_sections article  {
    background-color: white;
    box-shadow: 0 0 5px rgba(0,0,0,.3);
}

#portfolio_sections {
    display: flex;
    padding: 0 10px;
}

#portfolio_sections article {
    flex: 1 0 calc((100% - 20px) / 3);
    margin: 5px;
}

#portfolio_sections article:first-child {
    margin-left: 0;
}

#portfolio_sections article:last-child {
    margin-right: 0;
}


#portfolio_articles article:hover,
#portfolio_articles article.active,
#portfolio_sections article:hover,
#portfolio_sections article.active {
    box-shadow: 0 5px 10px rgba(0,0,0,.5);
    cursor: pointer;
}

#portfolio_sections article {
    display: grid;
    grid-template-columns: 100%;
    grid-template-rows: 100%;
    /* border-radius: 30px; */
}

#portfolio_sections article header {
    background-repeat: no-repeat;
    background-size: cover;
    background-position-y: 50%;
    opacity: .1;
    /* border-radius: 30px; */

    height: 100%;
    width: 100%;
    grid-row: 1;
    grid-column: 1
}

#portfolio_sections article main {
    display: flex;
    position: relative;
    align-items: center;
    justify-content: space-between;
    box-sizing: border-box;
    padding: 10px;

    grid-row: 1;
    grid-column: 1;
}

#portfolio_articles article img {
    width: 100%;
}

#portfolio_articles article header i,
#portfolio_sections article main i {
    display: inline;
    background-color: #909090;
    color: white;
    border-radius: 50px;
}

#portfolio_sections article main i {
    padding: 14px;
}

#portfolio_sections article:hover main i {
    box-shadow: 0 0 5px rgba(0,0,0,.5);
}

#portfolio_sections article.active main i {
    background-color: #277ffa;
}

#portfolio_sections article main h2 {
    margin: 0;
    font-size: 1.4em;
    font-weight: 800;
    text-transform: uppercase;
}

#portfolio_articles {
    margin-top: 10px;
    padding-bottom: 5px;
    padding-top: 5px;
    position: relative;
    overflow-y: hidden;
}

#portfolio_articles #scrollwrapper {
    display: flex;
    overflow-x: scroll;
    white-space: nowrap;
    padding: 5px;
    margin-bottom: -22px;
}

#portfolio_articles #scrollwrapper article {
    flex: 0 0 190px;
}

#portfolio_articles .simplebar-content {
    display: flex;
}

#portfolio_articles_section {
    position: relative;
}

#portfolio_articles_section > div {
    position: absolute;
    width: 150px;
    height: 100%;
    z-index: 99;
    opacity: 0;

    height: calc(100% - 15px);
    top: 10px;

    cursor: pointer;

    display: flex;
    flex-direction: column;
    justify-content: center;

    transition: visibility 0s, opacity 0.2s ease-in-out ;
}

#portfolio_articles_section > div > i {
    color: white;
    font-size: 2.5em;
    text-shadow: 0 0 5px black;
    margin: 20px;
}

#portfolio_articles_section > div:hover > i {
    font-size: 3.5em;
    text-shadow: 0 0 10px black;
}


#portfolio_articles_section .leftShadow {
    left: 0;
    align-items: flex-start;
    background: -moz-linear-gradient(left, rgba(0,0,0,.5) 0%, rgba(255,255,255,0) 100%); /* FF3.6-15 */
    background: -webkit-linear-gradient(left, rgba(0,0,0,.5) 0%,rgba(255,255,255,0) 100%); /* Chrome10-25,Safari5.1-6 */
    background: linear-gradient(to right, rgba(0,0,0,.5) 0%,rgba(255,255,255,0) 100%); /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */
    filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#999999', endColorstr='#00ffffff',GradientType=1 ); /* IE6-9 */
}

#portfolio_articles_section .rightShadow {
    right: 0;
    align-items: flex-end;
    background: -moz-linear-gradient(left, rgba(255,255,255,0) 0%, rgba(0,0,0,.5) 100%); /* FF3.6-15 */
    background: -webkit-linear-gradient(left, rgba(255,255,255,0) 0%,rgba(0,0,0,.5) 100%); /* Chrome10-25,Safari5.1-6 */
    background: linear-gradient(to right, rgba(255,255,255,0) 0%,rgba(0,0,0,.5) 100%); /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */
    filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#00ffffff', endColorstr='#999999',GradientType=1 ); /* IE6-9 */
}

#portfolio_articles article.hidden {
    display: none;
}

#portfolio_articles article {
    display: inline-block;
    margin: 5px;
}

#portfolio_articles article header {
    position: relative;
    background-position-x: 50%;

    background-size: contain;
    background-repeat: no-repeat;
}

#portfolio_articles article header i {
    padding: 8px;
    font-size: .8em;
    position: absolute;
    bottom: -10px;
    right: 7px;
}

#portfolio_articles article main {
    max-width: 150px;
    margin: 10px 10px 20px;
    white-space: normal;
}

#portfolio_articles.grid #scrollwrapper {
    flex-wrap: wrap;
    overflow-x: hidden;
    margin-bottom: 0;
    padding: 0;
}

#portfolio_articles.grid #scrollwrapper article {
    flex: 0 0 auto;
    width: calc((100% / 2) - 10px);
}

#article_view {
    position: fixed;
    height: 100vh;
    width: 100%;
    top: 0;
    left: 0;
    background-color: rgba(0,0,0,0.9);
    z-index: 9999;
    box-shadow: 0 0 20px gray;
    opacity: 1;
    transition: opacity 0.2s;
}

#article_view.hide {
    opacity: 0;
    transition: opacity 0.2s;
}

#article_view.hidden {
    display: none;
}

#article_view main {
    display: flex;
    margin: 0 auto;
    background-color: white;
    box-shadow: 0 0 10px gray;
    width: calc(100% - 20px);
    max-width: 600px;
    max-height: 100vh;
    position: relative;
    opacity: 1;
    transition: opacity 1s;
}

#article_view main .close {
    position: absolute;
    width: 50px;
    height: 50px;
    right: 30px;
    top: 10px;
    background-color: rgba(0,0,0,.1);
    transition: .2s;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-size: 1.3em;
    border-radius: 50%;
}

#article_view main .close:hover {
    cursor: pointer;
    background-color: rgba(255,255,255,.3);
    color: black;
    transition: .2s;
    box-shadow: 0 0 10px black;
}

#article_view main.hidden {
    opacity: 0;
    display: none;
}

#article_view main article {
    padding-top: 2em;
}

#article_view main header {
    background-repeat: no-repeat;
    background-size: contain;
    background-position: 50%;
    /* background-color: #ccc; */
}

#article_view main article table {
    margin: 1em 20px;
    font-size: .8em;
}

#article_view main article table td {
    padding: .1em 0;
    vertical-align: top;
}

#article_view main article table tr td:last-child {
    padding-left: 1em;
}

#article_view main article h2,
#article_view main article p {
    margin-left: 20px;
    margin-right: 20px;
}

#article_view main.hidden {
    display: none;
}

#article_view main .portfolio_header_big {
    margin: 0;
    width: 100%;
}

#article_view main .images {
    height: 96px;
    display: flex;
    overflow-x: auto;
    overflow-y: hidden;
    /* background-color: #ccc; */
    padding: 2.5px;
}

#article_view main .images img {
    height: calc(100% - 5px);
    margin: 2.5px;
    cursor: pointer;
}

#article_view main .images img:hover, #article_view main .images img:active, #article_view main .images img:focus  {
    margin: 5px;
    height: calc(100% - 10px);
}

#article_view main article{
    flex: 1 1 auto;
    overflow-y: auto;
}

#article_view main article img {
}

#article_view main article h1 {
    font-weight: 200;
    margin: .3em 20px 0;
    font-size: 4em;
}

.simplebar-track.vertical{
    display: none !important;
}

@media(max-width:960px){

    #article_view main {
        flex-direction: column;
    }

    #article_view main .images {
        height: 150px;
    }

    /* #article_view main .images img {
        margin: 5px;
        height: 100%;
        width: unset;
    } */


}

@media(max-width: 600px){
    #portfolio_sections {
    }

    #portfolio_sections article {
        flex: 1 1 calc(100% / 3);
        margin: 0;
        box-shadow: unset;
    }

    #portfolio_sections article main {
        flex-direction: column;
    }

    #portfolio_sections article main h2 {
        font-size: .7em;
        margin-top: 10px;
    }
}

@media(min-width: 600px){

    #portfolio_articles article {
        margin: 10px;
    }

    #portfolio_sections article main {
        padding-right: 20px;
    }

    #portfolio_articles.grid #scrollwrapper article {
        flex: 0 0 auto;
        width: calc((100% / 4) - 20px);
    }
    
    #portfolio_articles article header i {
        padding: 8px;
        font-size: 1em;
        position: absolute;
        bottom: -10px;
        right: 15px;
    }
    

}