#dpb-overlay.dpb-overlay {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.7);
    box-sizing: border-box;
}

#dpb-overlay.dpb-overlay.dpb-is-visible {
    display: flex;
}

#dpb-overlay .dpb-dialog {
    position: relative;
    width: 1000px;
    max-width: calc(100vw - 2rem);
    max-height: calc(100vh - 2rem);
    margin: 0;
    box-sizing: border-box;
}

#dpb-overlay .dpb-scroll {
    position: relative;
    max-height: calc(100vh - 2rem);
    overflow: auto;
    -webkit-overflow-scrolling: touch;
    background: transparent;
}

#dpb-overlay .dpb-link,
#dpb-overlay .dpb-link:hover,
#dpb-overlay .dpb-link:focus {
    display: block;
    text-decoration: none;
    outline: none;
}

#dpb-overlay .dpb-image {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    margin: 0 auto;
}

#dpb-overlay .dpb-close {
    position: absolute;
    top: 0.3rem;
	right: 0.3rem;
    z-index: 2;
    width: 2rem;
    height: 2rem;
    border: 0;
    border-radius: 999px;
    cursor: pointer;
    font-size: 2rem;
    line-height: 1.1;
    color: #111;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

#dpb-overlay .dpb-close:hover,
#dpb-overlay .dpb-close:focus {
    background: #fff;
    outline: none;
}

body.dpb-lock-scroll {
    overflow: hidden;
}