/* Native creative dimensions stay intact; both rails fit or neither is shown. */
.site-ad-rail { display: none; position: fixed; top: var(--site-ad-top, 96px); width: 300px; height: 894px; z-index: 5; }
.site-ad-rail-left { right: calc(50% + 636px); }
.site-ad-rail-right { left: calc(50% + 636px); }
.site-ad-rail:not([hidden]) { display: flex; flex-direction: column; gap: 8px; }
.site-ad-slot { display: flex; flex-direction: column; align-items: center; }
.site-ad-label { margin-bottom: 4px; color: var(--muted, #aaa); font: 10px/14px sans-serif; }
.site-ad-slot .admax-ads { flex: none; vertical-align: top; }
body:has(.image-zoom[open]) .site-ad-rail { visibility: hidden; }
.reader-inline-ad { display: none; }
@media (min-width: 800px) {
  .reader-inline-ad:not([hidden]) { display: block; width: 728px; margin: 24px calc((100% - 728px) / 2); text-align: center; }
  .reader-inline-ad-label { margin-bottom: 6px; color: var(--muted, #aaa); font-size: 10px; line-height: 14px; }
  .reader-inline-ad .admax-ads { vertical-align: top; }
}
@media (max-width: 1919px) { .site-ad-rail:not([hidden]) { display: none; } }
.reader-inline-ad[data-ad-device="mobile"]:not([hidden]) { display: block; width: 100%; min-height: 270px; margin: 24px 0; text-align: center; }
.reader-inline-ad[data-ad-device="mobile"] .reader-inline-ad-label { margin-bottom: 6px; color: var(--muted, #aaa); font-size: 10px; line-height: 14px; }
.reader-inline-ad[data-ad-device="mobile"] .admax-ads { vertical-align: top; }
.mobile-content-ad { display: none; }
.mobile-content-ad:not([hidden]) { display: block; margin-block: 24px; text-align: center; }
.mobile-content-ad-inner { min-height: 270px; }
.mobile-content-ad .reader-inline-ad-label { margin-bottom: 6px; color: var(--muted, #aaa); font-size: 10px; line-height: 14px; }
.mobile-content-ad .admax-ads { vertical-align: top; }
