body {
    min-height: 100vh;
}

main {
    flex-grow: 1;
}

.SelectedWorkWrapper {
    width: 95%;
    max-width: var(--MaxWidth);
    height: 100%;
    /* min-height: 55vh; */
    margin: 5rem auto;
    display: flex;
    flex-direction: column;
    gap: 2rem;

}

/* ----------------------------------
---------------Filters---------------
------------------------------------- */

.PortfolioFilter {
    display: flex;
    gap: 1rem;
}

.PortfolioFilter li {
    padding: 0.5rem 1rem;
    border: var(--FontColor) solid 2px;
    border-radius: 20px;
    transition: all 0.5s ease-out;
}

body .PortfolioFilter li:not(body.All .PortfolioFilter li:nth-of-type(1), body.FE .PortfolioFilter li:nth-of-type(2), body.UX .PortfolioFilter li:nth-of-type(3), body.VD .PortfolioFilter li:nth-of-type(4), body.OO .PortfolioFilter li:nth-of-type(5)) {
    opacity: 0.25;
}

.PortfolioFilter li:hover {
    transform: scale(1.1);
    background-color: var(--FontSubColor);
}

.PortfolioFilter li.NotActive:hover {
    opacity: 0.5;
}

.NoItems{
    display: none;
}

.NoItems:not(body.All .NoItems, body.FE .NoItems, body.UX .NoItems, body.VD .NoItems, body.OO .NoItems){
    display: block;
}

/* ----------------------------------
----------------Items----------------
------------------------------------- */

/* lay-out */

.PortfolioItems > li {
    display: none;
}

body.UX .PortfolioItems li.UX,
body.FE .PortfolioItems li.FE,
body.VD .PortfolioItems li.VD,
body.OO .PortfolioItems li.OO {
    display: block;
}

.PortfolioItems {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    /* grid-template-rows: 1fr 1fr 1fr; */
    gap: 2.5rem;
    overflow: clip;
    overflow-clip-margin: 2.5vw;
}

/* project */

.Project{
    position: relative;
    display: block;
    transition: all 0.5s ease-out;
}

.Project:hover{
    transform: scale(1.05) rotate(1deg);
    z-index: 10;
    transition: all 0.5s ease-out;
}

.Project figure{
    position: relative;
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    background-color: #2B2B2B;
    border-radius: 5px;
    transform-origin: center;
    text-decoration: none;
    overflow: hidden;
    background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.Project .ProjectTitle {
    width: 80%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.Project .ProjectTitle img{
    width: 100%;
}

.Project figure video {
    position: absolute;
    top: 0;
    left: 0;
    min-height: 100%;
    width: 100%;
    transition: cubic-bezier(0.075, 0.82, 0.165, 1) 1s;
    opacity: 0;
    z-index: 1;
}

.Project:hover figure video{
    opacity: 1;
    transition: cubic-bezier(0.075, 0.82, 0.165, 1) 1s;
}

/* tags */
.ProjectTags{
    display: flex;
    gap: 0.3rem;
    position: absolute;
    bottom: 0.3rem;
    left: 0.3rem;
    z-index: 3;
    transition: cubic-bezier(0.075, 0.82, 0.165, 1) 1s;
    transform: translate(-0.3rem, 1rem);
    opacity: 0;
}

.Project:hover .ProjectTags{
opacity: 1;
transform: translate(0rem, 0rem);
}

.ProjectTags li{
    color: var(--FontColor);
    font-weight: 300;
    font-size: 0.75rem;
    padding: 0.3rem 0.5rem;
background-color: var(--FontSubColor);
    color: var(--FontColor);
    text-align: center;
    border-radius: 10px;
}


/* ----------------------------------
----------Specifiek project----------
------------------------------------- */

/* iisko */

.ProjectIisko figure{
    background-color: white;
}
.ProjectIisko figure::before{
background-image: url(../projecten/iisko/background.jpg);   
    content: "";
    background-size: cover;
    position: absolute;
    top: 0px;
    right: 0px;
    bottom: 0px;
    left: 0px;
    opacity: 0.4;
}

.ProjectIisko>img{
    position: absolute;
    bottom: -1rem;
    right: -0.5rem;
    width: 4rem;
z-index: 1;
}

/* Schoolbibliotheek Amsterdam */

.ProjectSchoolBibliotheekAdam figure{
    background-color: #ffffff;
}

.ProjectSchoolBibliotheekAdam figure::before{
    background-color: #E7BB45;
    content: "";
    width: 72%;
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
}

.ProjectSchoolBibliotheekAdam .ProjectTitle{
    display: flex;
justify-content: space-between;
}

.ProjectSchoolBibliotheekAdam .ProjectTitle img:nth-of-type(1){
width: 10%;
}

.ProjectSchoolBibliotheekAdam .ProjectTitle img:nth-of-type(2){
    width: 60%;
    }

/* SimDate */

.ProjectSimDate figure{
    background-image: url(../projecten/SimDate/background.jpg);
}
.ProjectSimDate figure video{
    min-width: 110%;
    left: -5%;
}

.ProjectSimDate>img{
    position: absolute;
    right: -1rem;
    bottom: -1rem;
    width: 5rem;
    z-index: 2;
}

/* Instant Remake */

.ProjectInstantRemake figure{
    background-color: #000000;
}

/* Plog de dag */

.ProjectPlogDeDag figure{
    background-color: #ffffff;
}

.ProjectPlogDeDag figure video{
    background-color: #000000;
}

/* Millow */

.ProjectMillow figure{
    background-color: #E4F3FE;
}

.ProjectMillow .ProjectTitle{
    width: 60%;
    padding-right: 20%;
}

.ProjectMillow >img{
    position: absolute;
    bottom: -1rem;
    right: -1rem;
    width: 30%;
    z-index: 1;
    transition: all 0.5s ease-out;
}

.ProjectMillow:hover >img{
    width: 20%;
}

/* WeEat */

.ProjectWeEat figure{
background-color: #ffffff;
}

.ProjectWeEat figure .ProjectTitle{
    width: 70%;
}

/* Doosman */

.ProjectDoosMan figure{
    background-color: #BCCCD9;
}

.ProjectDoosMan .ProjectTitle{
    width: 40%;
}

/* Baseline */

.ProjectBaseLine figure {
    background-color: #16151c;
}

.ProjectBaseLine .CyberCarLine {
    position: absolute;
    left: -2rem;
    width: 1rem;
    height: .1rem;
    background-color: #53aabb;
    box-shadow: rgba(27, 193, 208, 0.4) -1px 1px,
        rgba(27, 193, 208, 0.3) -2px 2px,
        rgba(27, 193, 208, 0.2) -3px 3px,
        rgba(27, 193, 208, 0.1) -4px 4px;

    animation: MovingCyberCarLineToRight linear infinite;
}

.ProjectBaseLine .CyberCarLine:first-of-type{
    animation-delay: 0s;
    animation-duration: 3s;
    top: 20%;
}

.ProjectBaseLine .CyberCarLine:nth-of-type(2){
    animation-delay: 1s;
    animation-duration: 4s;
    top: 30%;
}

.ProjectBaseLine .CyberCarLine:nth-of-type(3){
    animation-delay: .75s;
    animation-duration: 3.5s;
    top: 10%;
}

.ProjectBaseLine .CyberCarLine:nth-of-type(4){
    animation-delay: 3s;
    animation-duration: 2s;
    top: 25%;
}

.ProjectBaseLine .CyberCarLine:nth-of-type(5){
    animation-delay: 1.25s;
    animation-duration: 3s;
    bottom: 10%;
}

.ProjectBaseLine .CyberCarLine:nth-of-type(6){
    animation-delay: 0s;
    animation-duration: 2.5s;
    bottom: 20%;
}

.ProjectBaseLine .CyberCarLine:nth-of-type(7){
    animation-delay: .75s;
    animation-duration: 3.5s;
    bottom: 30%;
}

.ProjectBaseLine .CyberCarLine:nth-of-type(8){
    animation-delay: 3s;
    animation-duration: 3.5s;
    bottom: 35%;
}

@keyframes MovingCyberCarLineToRight {
    0% {
        transform: translateX(0);
    }

    50%,  100%  {
        transform: translateX(50rem);
    }
}

/* Eeveelutions */

.ProjectEeveelutions figure{
    background-image: url(../projecten/Eeveelutions/Background.jpg);
}

.ProjectEeveelutions >img {
    position: absolute;
    width: 6rem;
    height: auto;
    bottom: -2rem;
    right: -2rem;
    z-index: 3;
}

/* Verban de mens uit de wildernis */

.ProjectVDM figure{
    background-image: url(../projecten/Artikel-VerbanMensUitDeWildernis/Background.svg);

}

/* Poggen met designer kleding */

.ProjectPogMetDesigner figure{
    background-color: #181819;
}

.ProjectPogMetDesigner figure::before{
    content: "";
position: absolute;
top: 0;
bottom: 0;
left: 0;
right: 0;
opacity: 0.5;
border-radius: 5px;
    background-image: url(../projecten/PoggenMetDesigner/Background.jpg);
    background-position: center;
  background-repeat: no-repeat;
  background-size: 120%;
}

/* Stoppen met roken */

.ProjectStoppenMetRoken figure{
    background-color: #bbe0ef;
}

.ProjectStoppenMetRoken .ProjectTitle{
    width: 70%;
}

.ProjectStoppenMetRoken figure>img{
    position: absolute;
    width: 30%;
    bottom: 0;
}

/* SleepPlantzz */

.ProjectSleepPlantzz figure{
    background-color: #191A23;
}

/* ----------------------------------
-----------Media Queries-------------
------------------------------------- */

@media (max-width: 778px){
    .PortfolioFilter{
        flex-wrap: wrap;
    }
}