/* Keep the supplied artwork whole, including on short landscape screens. */
.entry-ad {
  --entry-ad-ready: 1;
  --ad-top-space: max(22px, env(safe-area-inset-top, 0px));
  --ad-bottom-space: max(22px, env(safe-area-inset-bottom, 0px));
  width: min(520px, calc(100vw - 44px), calc((100vh - 44px) * 0.8002853));
  width: min(520px, calc(100vw - 44px), calc((100svh - var(--ad-top-space) - var(--ad-bottom-space)) * 0.8002853));
  max-width: none;
  max-height: none;
  margin: auto;
  padding: 0;
  border: 0;
  border-radius: 10px;
  overflow: visible;
  color: #fff;
  background: #1b2631;
  box-shadow: 0 24px 90px #0008;
  overscroll-behavior: contain;
}
.entry-ad:not([open]) { display: none; }
.entry-ad::backdrop {
  background: rgb(12 20 28 / 76%);
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
}
.entry-ad__link { display: block; border-radius: inherit; }
.entry-ad__link img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: inherit;
}
.entry-ad__close {
  position: absolute;
  top: 0;
  left: 0;
  transform: translate(-50%, -50%);
  z-index: 1;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid rgb(255 255 255 / 52%);
  border-radius: 50%;
  background: rgb(12 20 28 / 90%);
  color: #fff;
  font: 600 12px/1 var(--font, sans-serif);
  font-variant-numeric: tabular-nums;
  box-shadow: 0 2px 8px #0003;
  touch-action: manipulation;
  cursor: pointer;
}
.entry-ad__close::after {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 50%;
}
.entry-ad__close svg { width: 18px; height: 18px; }
.entry-ad__close[aria-disabled="true"] { cursor: default; }
.entry-ad__close[aria-disabled="false"]:hover { background: #fff; color: #1b2631; }
.entry-ad__close:focus-visible { outline: 2px solid #f4bd83; outline-offset: 1px; }
.entry-ad__link:focus-visible { outline: 3px solid #f4bd83; outline-offset: 3px; }
.entry-ad__sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
html.entry-ad-open { overflow: hidden; }
