.site-ad-admin-thumb {
    width: 56px;
    height: 56px;
    object-fit: cover;
}

.site-ad-admin-preview {
    max-width: 240px;
    width: 100%;
    height: auto;
}

.site-ad-body {
    margin-bottom: 1.25rem;
}

.site-ad-body__link {
    display: block;
    line-height: 0;
}

.site-ad-body__image {
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: .75rem;
    box-shadow: 0 8px 24px rgba(15, 23, 42, .1);
    transition: transform .2s ease, box-shadow .2s ease;
}

.site-ad-body__link:hover .site-ad-body__image {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(15, 23, 42, .14);
}

.site-ad-overlay {
    position: fixed;
    inset: 0;
    z-index: 10050;
    display: flex;
    padding: 1rem;
    background: rgba(15, 23, 42, .55);
    backdrop-filter: blur(2px);
}

.site-ad-overlay--pos-x-left { justify-content: flex-start; }
.site-ad-overlay--pos-x-center { justify-content: center; }
.site-ad-overlay--pos-x-right { justify-content: flex-end; }
.site-ad-overlay--pos-y-top { align-items: flex-start; }
.site-ad-overlay--pos-y-center { align-items: center; }
.site-ad-overlay--pos-y-bottom { align-items: flex-end; }

.site-ad-modal {
    position: relative;
    width: min(var(--site-ad-width, 480px), calc(100vw - 2rem));
    transform: translate(var(--site-ad-offset-x, 0), var(--site-ad-offset-y, 0));
    background: #fff;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(15, 23, 42, .28);
}

.site-ad-modal__close {
    position: absolute;
    top: .65rem;
    right: .65rem;
    z-index: 2;
    width: 2rem;
    height: 2rem;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, .92);
    color: #334155;
    box-shadow: 0 4px 12px rgba(15, 23, 42, .15);
}

.site-ad-modal__image {
    display: block;
    width: 100%;
    height: auto;
}

.site-ad-modal__body {
    padding: 1rem 1.15rem 1.25rem;
}

.site-ad-modal__title {
    font-weight: 700;
    font-size: 1rem;
    color: #111827;
}
