/* Prevent user scroll in the background */
html:has(dialog[open]){
    overflow: hidden;
}

::backdrop {
    background: rgba(0,0,0,0.7);
    opacity: 0.75;
    /* pointer-events: none;    */
}

.popup-ad-module{
    background-color: transparent;
    border: none;
    margin: auto;
    padding: 0;
    position: fixed;
    inset: 0;
    margin-top: 14%;

}

.popup-ad-module:focus-visible{
    border: none !important;
    outline: none !important;
    
}

.popup-ad--close{
    cursor: pointer;
}

.popup-ad--content{
    max-width: 500px;
    height: auto;

    a{
        display: inline-block;
        height: 100%;
        width: 100%;
        z-index: 2;
    }
    img{
        width: 100%;
        height: auto;
    }

    .popup-ad--close{
        z-index: 3;
        
        outline: 1px solid red;
        position: absolute;
        font-size: 3rem;
        cursor: pointer;
        display:block;
        width: 10%;
        height: 10%;

        opacity: 0;

        &.pp{
            top: 8.7%;
            right: 11%;
        }
    }
}