body.plain a{
    color: var(--color);
}

body.plain a:hover{
    color: var(--color);
    text-decoration: underline;
    text-decoration-skip-ink: none;
}
body.plain header{
    width: 100vw;
    font-size: 7.95vw;
    padding: 1.5vw 2vw 0 2vw;
    line-height: 0.9;
    flex: 1;
}

body.plain nav#topNav{
    padding: 0 2vw 1.5vw 2vw;
    display: flex;
}
body.plain nav#topNav ul{
    display: flex;
    justify-content: space-between;
    flex-direction: column;
    align-items: baseline;
}
body.plain nav a{
    display: block;
    font-size: clamp(6svh,7.95vw,120px);
    line-height: 1.2;
}
body.plain nav li{
    list-style: none;
}


body.plain #content{
    padding: 0 0 15svh 0;
    position: relative;
}
body.plain main img {
    /*    background: var(--color);*/
    /* Only render when in viewport */
    content-visibility: auto;
}

body.plain .slider{
    z-index: 1;
    position: relative;
    top: 0;
    height: auto;
    width: 100%;
    overflow: hidden;
    margin-bottom: 4rem;
    display: flex;
    flex-direction: column;
}
body.plain .slider figure{
    width: 98vw;
    max-width: 98vw;
    height: auto;
    position: relative;
    /*    margin: 0 auto;*/
    margin: 0 auto 2svh auto;
    overflow: hidden;
}
body.plain .slider:has(figure.maximize){
    z-index: 1;
}
body.plain .slider figure.maximize{
    position: fixed;
}


body.plain .slider figure.maximize, body.plain .slider figure.maximize.hidden{
    width: 100vw !important;
    max-width: 100vw !important;
    height: 100svh !important;
    position: fixed;
    padding: 2vw;
    margin: 0 auto;
    overflow: hidden;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-content: center;
    justify-content: center;
    align-items: center;
    cursor: zoom-out;
    z-index: 3;
}
body.plain .slider figure.maximize .image-container{
    width: 100%;
    height: 80svh;
    position: relative;
    margin: 0 auto;
    overflow: hidden;
    background-position: center;
    background-size: contain;
    background-repeat: no-repeat;
}

body.plain .slider figure.maximize img{
    height: 100%;
    width: 100%;
    filter: blur(5px);
    object-fit: contain;
    transition: .5s all ease-in-out;
}

body.plain .slider figure .image-container{
    width: 98vw;
    height: auto;
    position: relative;
    margin: 0 auto;
    overflow: hidden;
}
body.plain .slider figure figcaption{margin: 0 0 2rem 0;
}
body.plain .slider figure.hidden{
    opacity: 1;
    height: auto;
    width: 98vw;
    max-width: 98vw;
}
body.plain .slider figure img{
    height: 100%;
    width: 100%;
    transform: translate(0%, 0%);
    filter: blur(0px);
    object-fit: contain;
    transition: 0s all ease-in-out;
}
body.plain .slider figure img.loaded{
    visibility: visible;
    opacity: 1;
    filter: blur(0px);
}
body.plain .buttons{
    display: none;
}
body.plain .buttons .button{
    opacity: 0.5;
    transition: 0s all ease-in-out;
    cursor: pointer;
    width: 25%;
}
body.plain .buttons .button.next{
    text-align: right;
}
body.plain .buttons .button:hover, .buttons .button:active{
    opacity: 1;
}

body.plain .slider dialog{
    opacity: 0;
    position: fixed;
    inset-block-start: 0px;
    inset-block-end: 0px;
    max-height: 100svh;
    user-select: text;
    visibility: visible;

    overflow: hidden;
    overflow-y: auto;

    padding: $padding-s;
    border: 0px solid transparent;
    background: transparent;
    color: var(--color);


    transition: all 0.7s ease-out;
    
    display: none;
}
body.plain .slider dialog::backdrop {
    filter: invert(0);
    opacity: .95 !important;
}
body.plain .slider dialog.isVisible{
    opacity: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: space-evenly;
}
body.plain .slider dialog figure{
    cursor: default;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
}
body.plain .slider dialog figure img{
    filter: blur(0px);
}

body.plain #imageDialog img{
    cursor: zoom-out;
}



body.plain .image-dialog img {
    max-width: 90%;
    max-height: 80vh;
    object-fit: contain;
}


body.plain #date{
    font-size: clamp(6svh,7.95vw,15svh);
    line-height: 1;
}



body.plain h2{
    font-size: clamp(var(--font-size),10svh,10vw);
    padding: 1.5vw 1vw 0 1vw;
}


.desktop{
    display: block;
}
.mobile{
    display: none;
}






body.plain .active{
    text-decoration: underline;
    text-decoration-color: var(--color);
    text-decoration-skip-ink: none;
}
body.plain .active h1{
    text-decoration: underline;
    text-decoration-color: var(--color);
    text-decoration-skip-ink: none;
}

/*
body.plain a{
color: var(--color) !important;
}
body.plain nav a:hover{
color: var(--background) !important;
background: var(--color);
}
*/


body.plain.error #content h1{
    color: var(--color);
}
body.plain footer{
    z-index: 2;
}
