body.kiek-no-scroll {
    overflow: hidden;
}
dialog.kiek-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    border: none;
    background-color: transparent;
    padding: 0;
    margin: 0;
    backdrop-filter: blur(5px);
}
dialog.kiek-container::backdrop,
dialog.kiek-container[open] {
    max-width: 100vw;
    max-height: 100vh;
    overflow: hidden;
}
dialog.kiek-container[open]::backdrop {
    background-color: var(--bodycolor1);
    opacity: .9;
}
.kiek-container .kiek-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}
.kiek-container .kiek-wrapper .kiek-content {
    padding: 2em;
    height: 100%;
    box-sizing: border-box;
    display: flex;
    background-image: url('../../images/icons/loading.gif');
    background-position: 50% 50%;
    background-repeat: no-repeat;
    background-size:32px 32px;
}
.kiek-container .kiek-wrapper .kiek-content figure {
    width: 80%;
    height: 80%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    margin: auto;
    position: relative;
}
.kiek-container .kiek-wrapper .kiek-content figure.kiek-video iframe {
    margin: auto;
    max-width: 100%;
    max-height: 100%;
}
.kiek-container .kiek-wrapper .kiek-content figure img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: var(--blockradius);
}
.kiek-container .kiek-wrapper .kiek-content figure figcaption {
    position: absolute;
    bottom: -3.5em;
    width: 100%;
    text-align: center;
}
.kiek-container .kiek-wrapper button.kiek-nav {
    position: absolute;
    top: 0;
    height: 100%;
    width: 10%;
    cursor: pointer;
    background-color: transparent;
    border: none;
    transition: background-color 200ms;
}
.kiek-container .kiek-wrapper button.kiek-nav:hover {
    background-color: var(--background);
}
.kiek-container .kiek-wrapper button.kiek-nav.kiek-prev {
    left: 0;
}
.kiek-container .kiek-wrapper button.kiek-nav.kiek-next {
    right: 0;
}
.kiek-container .kiek-wrapper button.kiek-nav img {
    display: block;
    margin: auto;
    width: 30px;
    height: 30px;
}
.kiek-container .kiek-wrapper button.kiek-close {
    position: absolute;
    top: 5%;
    left: calc(50% - 15px);
    background-color: transparent;
    color: var(--main);
    border: none;
    cursor: pointer;
    font-size: 1.5em;
    text-align: center;
    line-height: 1;
    padding: 5px;
    margin: 0;
}
.kiek-container .kiek-wrapper button.kiek-close img {
    display: block;
    margin: auto;
    width: 30px;
    height: 30px;
}

@media screen and (max-width: 1000px) {

    .kiek-container .kiek-wrapper {
        height: 100dvh;
    }
    .kiek-container .kiek-wrapper .kiek-content {
        display: flex;
        padding: 45px 0;
        height: 100dvh;
        box-sizing: border-box;
    }
    .kiek-container .kiek-wrapper .kiek-content figure {
        width: 100%;
    }
    .kiek-container .kiek-wrapper .kiek-content figure figcaption {
        position: absolute;
        top: -45px;
        bottom: auto;
        margin: 0;
        width: 100%;
        font-weight: 500;
        text-align: center;
    }
    .kiek-container .kiek-wrapper .kiek-prev-next {
        position: absolute;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 0;
        bottom: 0;
        left: 0;
        right: 0;
        margin: 0 auto;
        width: 100%;
        padding: 0 2em;
        box-sizing: border-box;
    }
    .kiek-container .kiek-wrapper .kiek-prev-next button {
        padding: 45px 0!important;
        width: calc(100% / 3)!important;
    }
    .kiek-container .kiek-wrapper .kiek-prev-next button.kiek-nav {
        position: relative;
        margin: 0;
        padding: 0;
        width: auto;
    }
    .kiek-container .kiek-wrapper .kiek-prev-next button.kiek-close {
        position: relative;
        top: auto;
        left: auto;
        margin: 0 auto;
        padding: 0;
    }
    .kiek-container .kiek-wrapper .kiek-prev-next button.kiek-close img {
        width: 32px;
        height: 32px;
    }
    
}
