/**
 * Ad slot; reserves size with a grey "Advertisement" box. Depends on global tokens.
 */

.ssr-ad {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 24px auto;
  text-align: center;
  background: var(--ssr-color-neutral-300);
}

/* Sizes (desktop); widths cap on small screens via max-width. */
.ssr-ad--billboard {
  width: 970px;
  max-width: 100%;
  min-height: 250px;
}

.ssr-ad--banner {
  width: 336px;
  max-width: 100%;
  min-height: 280px;
}

.ssr-ad--infeed {
  width: 100%;
  min-height: 250px;
}

@media (max-width: 1023px) {
  .ssr-ad--billboard {
    width: 336px;
    min-height: 280px;
  }
}

.ssr-ad__placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.ssr-ad__image {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.ssr-ad__label {
  margin-top: 6px;
  font: 400 11px/16px var(--ssr-font-family);
  color: var(--ssr-color-neutral-700);
}
