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;
}
dialog.kiek-container::backdrop,
dialog.kiek-container[open] {
    max-width: 100vw;
    max-height: 100vh;
    overflow: hidden;
}
dialog.kiek-container::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;
}
.kiek-container .kiek-wrapper .kiek-content figure figcaption {
    position: absolute;
    bottom: -2em;
    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 {
    width: 30px;
    height: 30px;
    margin: auto;
}
.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: 2em;
    padding: 5px;
    margin: 0;
}
.kiek-container .kiek-wrapper button.kiek-close img {
    width: 30px;
    height: 30px;
}

@media screen and (max-width: 1000px) {
    .kiek-container .kiek-wrapper .kiek-content figure {
        width: 100%;
    }
}
