.asp-overlay {
    position: fixed;
    inset: 0;
    z-index: 999999;
    background: var(--asp-overlay, rgba(0,0,0,.68));
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    box-sizing: border-box;
}
.asp-overlay.asp-active { display: flex; }
.asp-popup {
    position: relative;
    width: min(92vw, var(--asp-width));
    height: var(--asp-height);
    max-height: 90vh;
    overflow: auto;
    background: var(--asp-bg);
    color: var(--asp-text);
    border-radius: var(--asp-radius);
    padding: var(--asp-padding);
    box-sizing: border-box;
    box-shadow: 0 24px 80px rgba(0,0,0,.35);
    animation: aspIn .28s ease both;
}
.asp-popup.asp-layout-image_only {
    line-height: 0;
}
.asp-layout-image_left {
    display: grid;
    grid-template-columns: minmax(0, var(--asp-content-width)) 1fr;
    gap: 0;
}
.asp-media {
    width: 100%;
    height: var(--asp-media-height);
}
.asp-media a {
    display: block;
    width: 100%;
    height: 100%;
}
.asp-media img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: inherit;
    object-fit: var(--asp-fit);
    object-position: var(--asp-position);
    border-radius: var(--asp-image-radius);
}
.asp-popup[style*="--asp-media-height:auto"] .asp-media,
.asp-popup[style*="--asp-media-height: auto"] .asp-media {
    height: auto;
}
.asp-popup[style*="--asp-media-height:auto"] .asp-media img,
.asp-popup[style*="--asp-media-height: auto"] .asp-media img {
    height: auto;
}
.asp-content {
    padding: 28px;
    line-height: 1.6;
}
.asp-content h2 {
    margin: 0 0 12px;
    font-size: clamp(24px, 4vw, 42px);
    line-height: 1.1;
    color: var(--asp-text);
}
.asp-text p:first-child { margin-top: 0; }
.asp-btn {
    display: inline-flex;
    margin-top: 14px;
    padding: 12px 22px;
    border-radius: 999px;
    background: var(--asp-accent);
    color: #fff !important;
    text-decoration: none !important;
    font-weight: 700;
}
.asp-close {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 9;
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 50%;
    background: var(--asp-close-bg);
    color: var(--asp-close-color);
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
}
body.asp-no-scroll { overflow: hidden; }
@keyframes aspIn {
    from { opacity: 0; transform: translateY(18px) scale(.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
@media (max-width: 768px) {
    .asp-overlay { padding: 12px; }
    .asp-popup {
        width: var(--asp-mobile-width);
        height: var(--asp-mobile-height);
        max-height: 88vh;
    }
    .asp-layout-image_left {
        display: block;
    }
    .asp-content {
        padding: 22px;
    }
}
