/* Styles for the CoverPop.js plugin */


html,
body {
    overflow: auto;
}

body {
    position: relative;
}

.CoverPop-open,
.CoverPop-open body {
    overflow: hidden;
}

#CoverPop-cover {
    display: none;
    position: fixed;
    overflow-y: auto;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
    padding: 20px;
    background: rgba(0, 0, 0, .7);
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    -webkit-animation: fade-in .25s ease-in;
    -moz-animation-name: fade-in .25s ease-in;
    -ms-animation-name: fade-in .25s ease-in;
    -o-animation-name: fade-in .25s ease-in;
    animation: fade-in .25s ease-in;
}

    .CoverPop-open #CoverPop-cover {
        display: flex;
    }

.CoverPop-content {
    width: min(90vw, 900px);
    max-height: calc(100vh - 40px);
    margin: auto;
    padding: 10px;
    background: var(--coverpop-background, #fff);
    text-align: center;
    box-sizing: border-box;
    overflow: auto;
}

.CoverPop-content img {
    display: block;
    width: 100%;
    height: auto;
}

.CoverPop-close {
    display: block;
    padding-top: 10px;
    font-weight: bold;
    color: var(--coverpop-link-color, #000);
}


@-webkit-keyframes fade-in {
    0% { opacity: 0; }
    25% { opacity: 0; }
    100% { opacity: 1; }
}
