.wam-ad-slot {
    display: block;
    max-width: 100%;
}
.wam-ad-link {
    display: block;
    max-width: 100%;
    line-height: 0;
}
.wam-ad-image {
    display: block;
    width: auto;
    max-width: 100%;
    height: auto;
    border: 0;
}


.wam-ad-image {
    width: 100%;
    max-width: 100%;
    height: auto;
}
.wam-fullscreen-trigger { display: none !important; }
.wam-fullscreen-overlay {
    position: fixed;
    inset: 0;
    z-index: 2147483000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    padding: 12px;
    background: #fff;
    overflow: auto;
}
.wam-fullscreen-continue {
    display: inline-block;
    margin: 0 0 12px;
    padding: 8px 12px;
    color: #222 !important;
    font-size: 14px;
    line-height: 1.4;
    text-decoration: none !important;
    opacity: 1;
    visibility: visible;
    transition: text-decoration-color .18s ease;
    cursor: pointer;
    align-self: center;
}
.wam-fullscreen-ad-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: calc(100% - 44px);
    min-height: 0;
    line-height: 0;
}
.wam-fullscreen-ad-image {
    display: block;
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    border: 0;
}
body.wam-fullscreen-open { overflow: hidden !important; }
.wam-fullscreen-overlay:hover .wam-fullscreen-continue,
.wam-fullscreen-overlay:focus-within .wam-fullscreen-continue {
    text-decoration: underline !important;
}
/* Touch devices have no reliable hover, so keep the exit link available. */
@media (hover: none), (pointer: coarse) {
    .wam-fullscreen-continue {
        opacity: 1;
        visibility: visible;
    }
}
@media (max-width: 600px) {
    .wam-fullscreen-overlay { padding: 8px; }
    .wam-fullscreen-continue { margin-bottom: 8px; }
    .wam-fullscreen-ad-link { height: calc(100% - 38px); }
}


/* Hide empty paragraph artifacts some page builders add around the shortcode. */
p:has(+ .wam-ad-slot):empty,
p:has(+ .wam-ad-slot):has(> br:only-child),
.wam-ad-slot + p:empty,
.wam-ad-slot + p:has(> br:only-child) {
    display: none !important;
}
