.lbm-pl-modal {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

.lbm-pl-modal.is-open {
    display: flex;
}

.lbm-pl-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.62);
}

.lbm-pl-dialog {
    position: relative;
    width: 100%;
    max-height: calc(100vh - 40px);
    overflow: auto;
    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 20px 80px rgba(0, 0, 0, 0.35);
    z-index: 2;
    box-sizing: border-box;
}

.lbm-pl-dialog.lbm-pl-image-only {
    overflow: hidden;
}

.lbm-pl-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.72);
    color: #ffffff;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    z-index: 3;
}

.lbm-pl-close:hover,
.lbm-pl-close:focus {
    background: rgba(0, 0, 0, 0.9);
    outline: 2px solid currentColor;
    outline-offset: 2px;
}

.lbm-pl-image-wrap {
    line-height: 0;
    background: #ffffff;
    text-align: center;
}

.lbm-pl-image-link {
    display: block;
    line-height: 0;
    text-decoration: none !important;
}

.lbm-pl-image-link:focus {
    outline: 3px solid rgba(0, 94, 51, 0.35);
    outline-offset: -3px;
}

.lbm-pl-image {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 14px 14px 0 0;
}

.lbm-pl-image-only .lbm-pl-image {
    width: auto;
    max-width: 100%;
    max-height: calc(100vh - 40px);
    margin: 0 auto;
    border-radius: 14px;
}

.lbm-pl-body {
    padding: 24px;
    color: #222222;
    font-family: inherit;
}

.lbm-pl-body-actions-only {
    padding: 16px 20px 20px;
    text-align: center;
}

.lbm-pl-title {
    margin: 0 0 12px;
    color: inherit;
    font-size: clamp(1.35rem, 2.2vw, 2rem);
    line-height: 1.2;
}

.lbm-pl-content {
    font-size: 1rem;
    line-height: 1.6;
}

.lbm-pl-content p:first-child {
    margin-top: 0;
}

.lbm-pl-content p:last-child {
    margin-bottom: 0;
}

.lbm-pl-actions {
    margin-top: 20px;
}

.lbm-pl-body-actions-only .lbm-pl-actions {
    margin-top: 0;
}

.lbm-pl-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 42px;
    padding: 10px 18px;
    border: 0;
    border-radius: 8px;
    background: #005e33;
    color: #ffffff !important;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none !important;
    cursor: pointer;
    transition: transform 0.18s ease, opacity 0.18s ease;
}

.lbm-pl-button:hover,
.lbm-pl-button:focus {
    opacity: 0.92;
    transform: translateY(-1px);
    outline: 2px solid rgba(0, 94, 51, 0.3);
    outline-offset: 2px;
}

body.lbm-pl-no-scroll {
    overflow: hidden;
}

.lbm-pl-lightbox-frame,
.lbm-pl-lightbox-image {
    display: block;
    width: 100%;
    border: 0;
}

.lbm-pl-lightbox-frame {
    min-height: min(78vh, 760px);
}

.lbm-pl-lightbox-image {
    height: auto;
    max-height: 78vh;
    object-fit: contain;
    background: #ffffff;
}

.lbm-pl-lightbox-title {
    margin: 0 0 12px;
    font-size: 1.1rem;
    line-height: 1.3;
}

@media (max-width: 600px) {
    .lbm-pl-modal {
        padding: 12px;
        align-items: flex-start;
        padding-top: 24px;
    }

    .lbm-pl-dialog {
        max-height: calc(100vh - 48px);
        border-radius: 12px;
    }

    .lbm-pl-image {
        border-radius: 12px 12px 0 0;
    }

    .lbm-pl-image-only .lbm-pl-image {
        max-height: calc(100vh - 48px);
        border-radius: 12px;
    }

    .lbm-pl-body {
        padding: 20px 16px;
    }

    .lbm-pl-body-actions-only {
        padding: 14px 14px 16px;
    }

    .lbm-pl-button {
        width: 100%;
    }
}
