
/* =========================================================
   KERST POPUP - THE VINE
   ========================================================= */

/* ALGEMENE POPUP - DESKTOP EN MOBIEL */

.kerst-overlay {
    display: flex;
    visibility: hidden;

    position: fixed;
    inset: 0;
    z-index: 10000;

    background: rgba(0, 0, 0, 0.65);

    align-items: center;
    justify-content: center;

    padding: 15px;
    box-sizing: border-box;
}

.kerst-overlay.kerst-actief {
    visibility: visible;
}

/* PERKAMENT CONTAINER */

.kerst-popup-container {
    position: relative;

    width: 100%;
    max-width: 580px;
    max-height: 90vh;

    padding: 0;
    box-sizing: border-box;

    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;

    opacity: 0;
    transform: scale(0.96);

    transition:
        opacity 3s ease-in-out,
        transform 3s ease-in-out;
}

.kerst-overlay.kerst-actief .kerst-popup-container {
    opacity: 1;
    transform: scale(1);
}

/* PERKAMENT AFBEELDING */

.kerst-perkament-link {
    display: block;
    line-height: 0;
}

.kerst-perkament-link img {
    display: block;

    width: 100%;
    max-width: 100%;
    max-height: calc(90vh - 30px);

    height: auto;
    object-fit: contain;

    border-radius: 5px;
}

/* SLUITKNOP */

.kerst-sluiten {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 2;

    padding: 7px 13px;

    border: 1px solid #C9A86A;
    border-radius: 20px;

    background: #436652;
    color: #FAFAF5;

    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

.kerst-sluiten:hover {
    background: #345440;
}


/* =========================================================
   MOBIELE WEERGAVE
   Zelfstandige positionering op telefoons
   ========================================================= */

@media screen and (max-width: 700px) {

    .kerst-overlay {
        position: fixed !important;
        inset: 0 !important;

        width: 100vw !important;
        height: 100vh !important;
        height: 100dvh !important;

        display: flex !important;
        align-items: center !important;
        justify-content: center !important;

        padding: 10px;
        box-sizing: border-box;
    }

    .kerst-popup-container {
        position: relative;

        width: calc(100vw - 30px) !important;
        max-width: 580px;

        max-height: 80vh;
        max-height: 80dvh;

        margin: auto;
        padding: 0;

        transform: scale(0.96);
    }

    .kerst-overlay.kerst-actief .kerst-popup-container {
        transform: scale(1);
    }

    .kerst-perkament-link img {
        display: block;

        width: 100%;
        max-width: 100%;

        max-height: 80vh;
        max-height: 80dvh;

        height: auto;
        object-fit: contain;
    }

    .kerst-sluiten {
        top: 5px;
        right: 5px;
    }
}
