:root {
    --thebg: rgb(10, 10, 10);
    --thepink: rgba(230, 0, 230, 1);
    --theyellow: rgba(230, 230, 0, 1);
}
* {
    margin: 0;
    padding: 0;
}
html, body {
    height: 100%;
}
body {
    background: var(--thebg);
    background-size: 100% 100%;
    background-repeat: no-repeat;
    
    color: #FFF;
    font-size: 20px;
    font-family: Arial, Helvetica, sans-serif;
    letter-spacing: 0.2rem;
    line-height: 1.5;
}
body.shopOpen {
    overflow: hidden;
}

::selection {
    color: black;
    background: var(--theyellow);
}

hr {
    margin: 10rem 3rem;
    border: none;
    border-bottom: 1rem dashed var(--thepink);
    opacity: 0.3;
}

ul {
    margin-left: 2rem;
}

img {
    max-width: 100%;
}

a {
    position: relative;
    color:var(--thepink);
    text-decoration: none;
    border-bottom: 2px dotted var(--thepink);
}
a:hover {
    color:var(--thepink);
    border-bottom: 2px solid var(--thepink);
}
a[href^="http"]:after {
    content: '';
    position: absolute;
    bottom: -6px;
    width: 0;
    height: 0;
    border-top: 5px solid transparent;
    border-bottom: 5px solid transparent;
    border-left: 5px solid var(--thepink);
}

p {
    margin: 1.5rem 0;
}

h2 {
    font-size: 3rem;
}
.infotitle {
    margin-top: 3rem;
}
.infotitle span {
    position: relative;
    cursor: help;
    display: block;
    font-size: 0.8rem;
    font-family: 'Courier New', Courier, monospace;
    color: var(--theyellow);
    font-style: italic;
    margin-bottom: 1rem;
    z-index: 1000;
}
.infotitle span:after {
    opacity: 0;
    transition: all 0.1s;
    content: attr(data-extrainfo);
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--thepink);
    color: #FFF;
    z-index: 1001;
}
.infotitle span:hover:after {
    opacity: 1;
    transform: rotate3d(0, 0, 1, -1deg) scale(1.2);
}

.boomlink {
    font-family: 'Courier New', Courier, monospace;
    display: inline-block;
    border-radius: 4px;
    cursor: help;
    color:var(--theyellow);
    position: relative;
    border: none;
    position: relative;
    transition: all 0.2s;
    padding: 1rem;
    z-index: 1;
}
.boomlink:hover, .boomlink.pinned {
    z-index: 2;
    border: none;
    color: rgba(0,0,0,1);
    background-color: var(--theyellow);
}
.boomlink .info {
    transition: all 0.2s;
    opacity: 0;
    position: absolute;
    left: 0;
    top: 100%;
    background-color: var(--thepink);
    padding: 0.25rem;
    color: #FFF;
    font-size: 0.8rem;
    font-weight: bold;
    pointer-events: none;
}
.boomlink:hover .info, .boomlink.pinned .info {  
    transform: rotate3d(0, 0, 1, -3deg) scale(1.2);
    opacity: 1;
}
.boomlink:after {
    content: '';
    position: absolute;
    top: 0.1rem;
    right: 1rem;
    width: 1rem;
    height: 1rem;
    background-image: url(../img/boom-pin.svg);
    background-size: contain;
    background-repeat: no-repeat;
    transform: rotateZ(-45deg);
    transition: all 0.2s;
    opacity: 0;

    
}
.boomlink:hover:after {
    right: 0.5rem;
    opacity: 1;
}
.boomlink.pinned:after {
    right: 0;
    top: 0.25rem;
    opacity: 1;
    height: 0.75rem;
    transform: rotateZ(0deg);
    animation-duration: 4s;
    animation-name: pinBlink;
    animation-iteration-count: 1;
}
    @keyframes pinBlink{
        0% {
            opacity: 1;
        }
        70% {
            opacity: 1;
        }
        75% {
            opacity: 0;
        }
        80% {
            opacity: 1;
        }
        85% {
            opacity: 0;
        }
        90% {
            opacity: 1;
        }
        95% {
            opacity: 0;
        }
        99% {
            opacity: 1;
        }
        100% {
            opacity: 0;
        }
    }

.icon-custom:before {
    content: "";
    display: inline-block;
    width: 1em;
    height: 1em;
    margin-right: 5px;
    background-size: contain;
}
.icon-threejs:before {
    background-image: url(../img/icon-threejs.svg);
}
.icon-affinity:before {
    background-image: url(../img/icon-affinity.png);
}
.icon-ludumdare:before {
    background-image: url(../img/icon-ludumdare.svg);
}
.icon-audacity:before {
    background-image: url(../img/icon-audacity.png);
}
.icon-lmms:before {
    background-image: url(../img/icon-lmms.png);
}

#background-render {
    object-fit: cover;
    width: 100vw;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 0;
    filter: blur(2px);
    image-rendering: pixelated;
    opacity: 0.1;
}
#background-overlay {
    content: '';
    position: none;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1;
    background: rgb(0,0,0);
    background: linear-gradient(0deg, rgba(0,0,0,1) 0%, rgba(0,0,0,0.1) 100%);
}

.pagewrapper {
    position: relative;
    display: flex;
    flex-direction: column;
    
    margin: 0 auto;
    padding: 0 2rem;
    
    min-height: 100%;
    max-width: 1200px;

    z-index: 100;
}

header {
    position: relative;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;

    margin-top: 9%;
    margin-bottom: 10%;
}

.vertical-spacer {
    width: 0;
    height: 100%;
    margin: 0 0 0 6rem;
    border-right: 1.5rem dotted var(--thepink);
}

.row {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}
.column {
    width: 100%;
}
.contentblock {
    padding: 1rem 3rem;
}

.imageblock {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    height: 100%;
    width: 100%;
    line-height: 2;
    /*transform: rotateZ(-3deg);*/
}
    .imageblock ul {
        display: flex;
        flex-wrap: wrap;
        justify-content: start;
    }
    .imgblock ul {
        list-style: none;
    }

footer {
    margin-top: 15%;
    padding: 0 1rem;
    font-size: 0.8rem;
    font-weight: bold;
    background-color: var(--thepink);
}
#randomdate {
    font-family: 'Courier New', Courier, monospace;
    font-weight: normal;
    font-style: italic;
}

/* THREE JS NRDM RENDER COMPONENT */
#NRDM {
    position: relative;
    height: 0;
    width: 70%;
    padding-bottom: 25%;
}
#NRDM:after {
    content: '';
    position: absolute;
    top: 0;
    right: -2rem;
    bottom: 0;
    left: 0;
    background-image: url(../img/design.svg);
    background-size: 40%;
    background-position: 100% 100%;
    background-repeat: no-repeat;
    z-index: 200;
}

#NRDM-renderer.mask {
    -webkit-mask-image: url(../img/NRDM.svg);
    mask-image: url(../img/NRDM.svg);
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    mask-size: 100% 100%;
}
#NRDM-renderer {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 100;
}

/* SLOTMACHINE COMPONENT */
#slotmachine-container {
    padding: 0 0 0 2rem;
    width: 20%;
    min-width: 180px;
    display: flex;
    justify-content: center;
}

#slotmachine {
    position: relative;
    display: flex;
    flex-direction: column;
    align-content: center;
    justify-content: space-between;

    border: 8px solid var(--theyellow);
    background-image: url(../img/slotmachine.webp);
    background-position: 0 0;
    background-size: cover;

    width: 180px;
    height: 260px;
    z-index: 100;
}
    #slotmachine.king:before {
        content: '';
        background-image: url(../img/crown.svg);
        background-position: 0 0;
        background-repeat: no-repeat;
        background-size: 100% 100%;
        position: absolute;
        top: -100px;
        height: 120px;
        left: 20%;
        right: 20%;
        z-index:99;
        opacity: 0.5;

        animation-duration: 0.25s;
        animation-name: scoreking;
        animation-iteration-count: infinite;
    }
        @keyframes scoreking {
            0% {opacity: 0;}
            50% {opacity: 0.5;}
            100% {opacity: 0;}
        }

    #slotmachine.king:after {
        content: '';
        background-image: url(../img/kingstar.svg);
        background-position: 0 0;
        background-repeat: no-repeat;
        background-size: cover;
        position: absolute;
        top: -20px;
        left: 0;
        right: 0;
        height: 35%;
        z-index: 90;
        opacity: 0;
        animation-duration: 0.1s;
        animation-name: scoreking;
        animation-iteration-count: 6;
    }
    @keyframes scorekingglow {
        0% {opacity: 0; transform: rotateZ(0);}
        100% {opacity: 0.2; transform: rotateZ(360deg);}
    }
    #slotmachine .score {
        font-family: 'Courier New', Courier, monospace;
        font-weight: bold;
        display: flex;
        justify-content: space-between;
        
        background-color: #111;
        background: linear-gradient(0deg, rgba(27,27,27,1) 0%, rgba(50,38,0,1) 50%, rgba(27,27,27,1) 100%); 
        border: 1px dotted rgb(255, 208, 0); 
        color: rgb(255, 208, 0);
        text-shadow: 0 0px 0px #FFF, 0 -1px 15px #ff0, 0 -5px 5px #ff8000, 0 -18px 20px #F00;
        box-shadow: 2px 0px 10px 10px rgba(255, 208, 0, 0.1) inset;

        margin: 2.5rem 2.5rem 1rem 2.5rem;
        padding: 0 0.35rem;

        animation-duration: 3s;
        animation-name: scorefire;
        animation-iteration-count: infinite;
    }
    #slotmachine .score span {
        align-self: flex-end;        
    }
    @keyframes scorefire {
        0% { text-shadow: 0 -1px 4px #FFF, 0 -2px 10px #ff0, 0 -10px 20px #ff8000, 0 -18px 40px #F00;}
        25% { text-shadow: 0 -1px 2px #FFF, 0 -2px 5px #ff0, 0 -10px 10px #ff8000, 0 -10px 20px #F00;}
        50% { text-shadow: 0 -1px 4px #FFF, 0 -2px 10px #ff0, 0 -10px 20px #ff8000, 0 -18px 40px #F00;}
        75% { text-shadow: 0 -1px 2px #FFF, 0 -2px 5px #ff0, 0 -10px 10px #ff8000, 0 -10px 20px #F00; }
        100% { text-shadow: 0 -1px 4px #FFF, 0 -2px 10px #ff0, 0 -10px 20px #ff8000, 0 -18px 40px #F00;}
    }
      
    #slotmachine #btn-action {
        font-size: 14px;
        font-weight: bold;
        line-height: 9px;

        position: relative;
        align-self: center;

        background: rgb(218,166,0);
        background: linear-gradient(0deg, rgba(218,166,0,1) 0%, rgba(255,194,0,1) 4%, rgba(255,225,129,1) 50%, rgba(255,194,0,1) 96%, rgba(218,166,0,1) 100%);
        border-top: 2px solid rgb(255, 208, 53);
        border-right: 2px solid rgb(218,166,0);
        border-bottom: 2px solid rgb(218,166,0);
        border-left: 2px solid rgb(177, 138, 10);
        cursor: pointer;
        color: rgb(255, 246, 208);
        text-shadow: 0px 0px 2px rgba(0,0,0,0.7);
        box-shadow: 0 0 10px 4px rgba(220, 200, 100, 0.5);

        margin-bottom: 1rem;
        width: 80px;
        height: 40px;
        z-index: 102;

        overflow: hidden;
        transition: all 0.2s;

        animation-name: goldenShine;
        animation-duration: 2s;
        animation-iteration-count: infinite;
    }
        @keyframes goldenShine {
            0% {
                box-shadow: 0 0 8px 3px rgba(220, 200, 100, 0.25);
            }
            50% {
                box-shadow: 0 0 12px 4px rgba(235, 209, 83, 0.7);
            }
            100% {
                box-shadow: 0 0 8px 3px rgba(220, 200, 100, 0.25);
            }            
        }
    #slotmachine #btn-action:hover {
        background: linear-gradient(0deg, rgb(206, 161, 14) 0%, rgba(255,225,129,1) 4%, rgba(255,194,0,1) 50%, rgba(255,225,129,1) 96%, rgba(206, 161, 14) 100%);
        border-top: 2px solid rgba(206, 161, 14);
        color: rgba(255,255,255,0.9);
    }
    #slotmachine #btn-action:active {
        color: rgb(255, 241, 180);
        text-shadow: 0px 0px 2px var(--thepink);
        border-top: 2px solid rgb(177, 138, 10);
        box-shadow: 0 0 10px 1px rgb(220, 200, 100);
    }
    #slotmachine #btn-action:before {
        content:'';
        position: absolute;
        top: -45px;
        left: 0;
        right: 0;
        height: 45px;
        background: rgb(255,207,58);
        background: linear-gradient(0deg, rgba(255,207,58,0) 0%, rgba(255,193,0,0.5) 48%, rgba(255,207,58,0) 100%);
        transition: all 0.4s;
    }
    #slotmachine #btn-action:hover:active:before {
        transition: all 0.1s;
        top:-45px;
    }
    #slotmachine #btn-action:hover:before {
        top: 45px;
    }
    #slotmachine #btn-action:after {
        content:'';
        position: absolute;
        top: 0;
        left: -20px;
        bottom: 0;
        width: 20px;
        border-radius: 100% 0;
        background: rgb(255,228,146);
        background: linear-gradient(0deg, rgba(255,228,146,1) 0%, rgba(255,255,255,0) 100%); 
        transition: all 0.2s;
    }
    #slotmachine #btn-action:hover:active:after {
        transition: all 0.1s;
        left:-90px;
    }
    #slotmachine #btn-action:hover:after {
        left: 90px;
    }

.wheels {
    position: relative;
    align-self: center;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;

    background: rgb(17,17,17);
    background: linear-gradient(0deg, rgba(0,0,0,1) 0%, rgba(157,157,157,1) 50%, rgba(0,0,0,1) 100%);
    border: 3px solid #111;

    height: 75px;
    width: 100px;
}
    .wheels:after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        bottom: 0;
        right: 0;
        box-shadow: inset 1px 2px 5px 3px rgba(0,0,0,0.3);
    }
#wheel-0, #wheel-1, #wheel-2 {
    height: 75px;
    width: 25px;
    
    background-image: url(../img/wheel-mini.png); 
    background-position: 0 0;
    background-repeat: repeat-y;
    box-shadow: 2px 0 2px 2px rgba(0,0,0,0.25);
}
#wheel-1 {
    background-position-y: 75px;
}
#wheel-2 {
    background-position-y: 25px;
}

#slotmachine-fct {
    pointer-events: none;
    position: absolute;
    top: -30%;
    left: 40%;
    z-index: 200;
    padding: 0.2rem;
    transition: all 0.5s;    
    transform: rotateZ(60deg);
    opacity: 0;
    color: var(--theyellow);
    text-align: center;
}
#slotmachine-fct.pop {
    animation-duration: 1s;
    animation-name: fctAnim;
    animation-iteration-count: 1;
}
@keyframes fctAnim {
    0% { 
        text-shadow: 0 -1px 4px #FFF, 0 -2px 10px #ff0, 0 -10px 20px #ff8000, 0 -18px 40px #F00;
        top: -30%;
        transform: rotateZ(50deg);
        opacity: 0;
    }
    25% { 
        text-shadow: 0 -1px 2px #FFF, 0 -2px 5px #ff0, 0 -10px 10px #ff8000, 0 -10px 20px #F00;
        top: -10%;
        transform: rotateZ(20deg);
        opacity: 1;
    }
    30% { 
        text-shadow: 0 -1px 4px #FFF, 0 -2px 10px #ff0, 0 -10px 20px #ff8000, 0 -18px 40px #F00;
        top: -5%;
        transform: rotateZ(10deg);
        opacity: 1;
    }
    75% { 
        text-shadow: 0 -1px 2px #FFF, 0 -2px 5px #ff0, 0 -10px 10px #ff8000, 0 -10px 20px #F00; 
        top: 0;
        transform: rotateZ(0);
        opacity: 1;
    }
    100% { 
        text-shadow: 0 -1px 4px #FFF, 0 -2px 10px #ff0, 0 -10px 20px #ff8000, 0 -18px 40px #F00;
        top: -10%;
        transform: rotateZ(0);
        opacity: 0;
    }
}

#shop {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0,0,0,0);
    z-index: 2000;
    overflow-y: scroll;
    padding-top: 5rem;
}
#shop.shopOpen {
    display: block;
    background-color: var(--thebg);

    animation-duration: 0.2s;
    animation-name: shopFade;
    animation-iteration-count: 1;
}
    @keyframes shopFade {
        0% {
            background-color: rgba(0,0,0,0.0);        
        }
        100% {
            background-color: rgba(0,0,0,0.9);
        }
    }

.shop-close-btn {
    cursor: pointer;
    padding: 0.2rem 0.4rem;
    position: fixed;
    top: 3rem;
    right: 4rem;
    width: 4rem;
    height: 4rem;
    border: 8px double white;
    background-color: #F00;
    color: white;
    font-weight: bold;
    font-size: 1.2rem;
}
.shop-close-btn:hover {
    background-color: rgb(185, 0, 0);
}

.latest-purchase {   
    position: relative;
    margin-top: 3rem;
    
}
    .latest-purchase:after {
        border: 8px double var(--theyellow);
        content: '';
        position: absolute;
        top: 0;
        right: 0;
        bottom: 0;
        left: 0;

        animation-duration: 0.1s;
        animation-name: latestFlickering;
        animation-iteration-count: 8;
    }
    @keyframes latestFlickering {
        0% {
            opacity: 0;
        }
        100% {
            opacity: 1;
        }
    }


.fixed-ui {
    position: fixed;
    right: 3rem;
    z-index: 1000;
}
.fixed-ui.top {
    top: 3rem;
}
.fixed-ui.bottom {
    bottom: 3rem;
}
.shop-open-btn, .more-info-btn, .content-btn {
    cursor: pointer;
    padding: 0.5rem 0.5rem 0.25rem 0.5rem;
    width: 4rem;
    background: none;
    border: 8px double rgba(255,255,255,0.5);
    color: white;
    font-weight: bold;
    font-family: 'Courier New', Courier, monospace;
    background-color: rgba(0,0,0,0);
    transition: all 0.5s;
}
.more-info-btn, .content-btn { 
    opacity: 0.5;
}
.shop-open-btn:hover, .more-info-btn:hover, .content-btn:hover {
    background-color: rgb(200, 0, 200);
    border-color: rgba(255,255,255,1);
    border: 8px double white;
}
.more-info-btn:hover, .content-btn:hover { 
    opacity: 1;
}

.fixed-ui .shop-open-btn img, .fixed-ui .more-info-btn img, .fixed-ui .content-btn img {
    /*width: 80%;*/
    width: 100%;
}
.fixed-ui .shop-open-btn img {
    width: 80%;
    animation-duration: 20s;
    animation-name: shopBlink;
    animation-iteration-count: infinite;
    animation-delay: 100ms;
}
    @keyframes shopBlink {
        0% { opacity: 0.5; }
        94% { opacity: 0.5; }
        95% { opacity: 1; }
        96% { opacity: 0.5; }
        97% { opacity: 1; }
        98% { opacity: 0.5; }
        99% { opacity: 1; }
        100% { opacity: 0.5; }
    }
.fixed-ui .shop-open-btn:hover img {
    animation-name: none;
    opacity: 1;
}

#shop .vendor {
    margin-top: 4rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

#shopkeeper-portrait {
    position: relative;
    margin-right: 3rem;
    image-rendering: pixelated;
    min-width: 20%;
    
    padding: 5rem;
    background-image: url(../img/shopkeeper.apng);
    background-repeat: no-repeat;
    background-size: contain;
    background-position: 50% 50%;    
}
#shopkeeper-portrait.change {
    background-image: url(../img/shopkeeper-talking.apng);
}

#shopkeeper-portrait.change:after {
    width: 1.8rem;
    height: 0.9rem;
    background-color: rgba(0,0,0,1);
}

#shop .vendor .text {
    width: 100%;    
    padding: 2rem;
    border: 8px double white;
    font-family: 'Courier New', Courier, monospace;
    transition: all 0.5s;
    font-weight: bold;
    min-height: 8rem;
}
#shop .vendor .text .yellow {
    color: var(--theyellow);
}
#shop .vendor .text .pink {
    color: var(--thepink);
}

#shop-funds {
    text-align: center;
    width: auto;
    padding: 1rem;
    border: 8px double rgba(255,255,255,0.5);
    transition: all 0.5s;
    font-family: 'Courier New', Courier, monospace;
    font-weight: bold;
}
#shop-funds:before { 
    content: '$';
}

#shop .vendor .text.change {
    border-color: rgba(230, 230, 0, 1);
}
#shop-funds.change {
    border-color: rgb(230, 65, 0);
}

#dlc-shop {
    margin: 2rem 0;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: center;
    list-style: none;
    border: 8px double var(--theyellow);
}

#dlc-shop li {
    position: relative;
    color: #000;
    padding: 2rem;
    height: 100%;
    box-sizing: border-box;
}

#dlc-shop li .card {
    cursor: pointer;
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 220px;
    height: auto;
    font-size: 0.9rem;
    font-weight: bold;
    line-height: 1.5;
    box-sizing: border-box;
    color: white;
}
#dlc-shop li .card .price {
    position: absolute;
    top: 2rem;
    right: 2rem;
    font-size: 2rem;
    font-weight: bold;
    font-family: 'Courier New', Courier, monospace;
    padding: 0.25rem 1rem;
    border-top: 2px dotted var(--thepink);
    border-right: 2px dotted var(--thepink);
    border: 2px dotted var(--theyellow);
    text-shadow: 1px 1px 5px var(--thebg);
    background-color: rgba(230, 230, 0, 0.5);
}
#dlc-shop li .card .stock, #dlc-shop li .card .price {
    color: white;
}
#dlc-shop li .card:hover {
    color: var(--thepink);
}
#dlc-shop li .card img {
    margin-bottom: 0.5rem;
    max-width: 100%;
    border: 2px dotted var(--thepink);
}
#dlc-shop li .card .stock {
    font-style: italic;
    font-weight: normal;
    margin-top: 0.25rem;
}

#dlc-shop li .card.disabled {
    filter: saturate(0);
    cursor: not-allowed;
}
#dlc-shop li .card.disabled .price { 
    display: none;
}

.lockedDLC {
    display: none;
}

#dlc-area {
    display: flex;
    flex-direction: column;
    height: 100%;
}
#dlc-area h2 {
    margin-bottom: 4rem;
}
#dlc-area hr {
    margin: 4rem 3rem;
    border-bottom: 2px dotted var(--thepink);
}
#dlc-area hr.intro {
    margin: 10rem 3rem 0rem 3rem;
}
#dlc-area hr.outro {
    margin: 0rem 3rem 9rem 3rem;
}
#dlc-area .player-score-display {
    color: var(--theyellow);
    font-family: 'Courier New', Courier, monospace;
    font-weight: bold;
}

.grid .row {
    flex-wrap: wrap;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
}
.contentblock.dlc {
    text-align: center;
    font-size: 1.1rem;
}
.grid .contentblock:not(.intro) {
    width: 25%;
    font-size: 0.8rem;
}
.grid .contentblock:not(.intro) a {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    height: 100%;
    color: white;
}
.grid .contentblock img {
    filter: saturate(0.5);
    transition: all 0.5s;
}
.grid .contentblock a:hover img {
    filter: saturate(1);
}

.art img {
    filter: saturate(0.5);
    cursor: zoom-in;
}

.art img:hover {
    filter: saturate(1);
}

#lightbox {
    pointer-events: none;
    position:fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    padding: 5rem;
    z-index: 9001;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: rgba(0,0,0,0);
    transition: background-color 1s;
}
#lightbox.active {
    pointer-events: all;
    background-color: rgba(0,0,0,0.8);
}
#lightbox img {
    max-height: 100%;
    max-width: 100%;
}

.nrdm-yt-container { 
    position: relative; 
    padding-bottom: 56.25%; 
    padding-top: 30px; 
    height: 0; 
    width: 100%;
    overflow: hidden; 
}

.nrdm-yt-container iframe, .nrdm-yt-container object, .nrdm-yt-container embed { 
    position: absolute; 
    top: 0;    
    left: 0; 
    width: 100%; 
    height: 100%;
}

.fake-preload {
    display: none;
}