.dlbp-overlay {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(9, 12, 20, 0.64);
    backdrop-filter: blur(9px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.dlbp-overlay.is-visible {
    opacity: 1;
    pointer-events: auto;
}

.dlbp-popup {
    position: relative;
    width: min(860px, 100%);
    overflow: hidden;
    border-radius: 28px;
    background: #ffffff;
    box-shadow: 0 28px 90px rgba(0, 0, 0, 0.32);
    transform: translateY(16px) scale(0.97);
    transition: transform 0.25s ease;
}

.dlbp-overlay.is-visible .dlbp-popup {
    transform: translateY(0) scale(1);
}

.dlbp-has-image {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(280px, 0.85fr);
}

.dlbp-no-image {
    width: min(650px, 100%);
}

.dlbp-content {
    padding: clamp(30px, 5vw, 52px);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.dlbp-kicker {
    width: fit-content;
    max-width: 100%;
    margin-bottom: 18px;
    padding: 8px 14px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--dlbp-accent) 13%, white);
    color: var(--dlbp-accent);
    font-size: 12px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.dlbp-content h2 {
    margin: 0 0 16px;
    max-width: 11.5em;
    color: #101828;
    font-size: clamp(30px, 4.6vw, 48px);
    line-height: 1.03;
    font-weight: 850;
    letter-spacing: -0.045em;
}

.dlbp-no-image .dlbp-content h2 {
    max-width: 100%;
}

.dlbp-content p {
    margin: 0 0 28px;
    max-width: 34em;
    color: #5b6678;
    font-size: 16px;
    line-height: 1.65;
}

.dlbp-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    width: fit-content;
    padding: 14px 20px;
    border-radius: 999px;
    background: #1f2328;
    color: #ffffff !important;
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
    box-shadow: 0 16px 38px rgba(17, 24, 39, 0.18);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.dlbp-button:hover,
.dlbp-button:focus {
    transform: translateY(-2px);
    background: var(--dlbp-accent);
    box-shadow: 0 20px 46px color-mix(in srgb, var(--dlbp-accent) 34%, transparent);
}

.dlbp-image-wrap {
    display: block;
    min-height: 430px;
    margin: 16px 16px 16px 0;
    overflow: hidden;
    border-radius: 22px;
    background: #eef2f7;
}

.dlbp-image {
    width: 100%;
    height: 100%;
    min-height: 430px;
    display: block;
    object-fit: cover;
    transform: scale(1.01);
}

.dlbp-scheduled-image-popup {
    width: auto;
    max-width: min(760px, calc(100vw - 48px));
    max-height: calc(100vh - 48px);
    border-radius: 24px;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dlbp-scheduled-image-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    padding: 12px;
    text-decoration: none;
    cursor: default;
}

.dlbp-scheduled-image-link[href] {
    cursor: pointer;
}

.dlbp-scheduled-image-link img {
    display: block;
    width: auto;
    max-width: calc(100vw - 72px);
    height: auto;
    max-height: calc(100vh - 72px);
    object-fit: contain;
    border-radius: 16px;
}

.dlbp-close {
    position: absolute;
    top: 18px;
    right: 18px;
    z-index: 3;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.94);
    color: #101828;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 10px 28px rgba(16, 24, 40, 0.18);
}

.dlbp-no-image .dlbp-close {
    background: #f3f6fb;
}

@media (max-width: 820px) {
    .dlbp-has-image {
        grid-template-columns: 1fr;
        max-height: 90vh;
        overflow-y: auto;
    }

    .dlbp-image-wrap {
        order: -1;
        min-height: 230px;
        margin: 16px 16px 0;
    }

    .dlbp-image {
        min-height: 230px;
    }

    .dlbp-content h2 {
        max-width: 100%;
    }
}

@media (max-width: 520px) {
    .dlbp-overlay {
        align-items: flex-end;
        padding: 14px;
    }

    .dlbp-popup {
        border-radius: 22px;
    }

    .dlbp-content {
        padding: 28px 24px 26px;
    }

    .dlbp-content h2 {
        font-size: 30px;
    }

    .dlbp-close {
        top: 12px;
        right: 12px;
    }

    .dlbp-scheduled-image-popup {
        max-width: calc(100vw - 28px);
        max-height: calc(100vh - 28px);
    }

    .dlbp-scheduled-image-link {
        padding: 8px;
    }

    .dlbp-scheduled-image-link img {
        max-width: calc(100vw - 44px);
        max-height: calc(100vh - 44px);
        border-radius: 14px;
    }
}
