.lnam-ad-slot {
  display: block;
  margin: 24px auto;
  text-align: center;
  clear: both;
  min-height: 1px;
}

.lnam-ad-slot--loading {
  min-height: 0;
}

.lnam-ad {
  display: inline-flex;
  max-width: 100%;
  line-height: 0;
  text-decoration: none;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-sizing: border-box;
}

.lnam-ad--sized {
  width: min(var(--lnam-ad-width, 300px), 100%);
  height: var(--lnam-ad-height, 300px);
}

@supports (aspect-ratio: 1 / 1) {
  .lnam-ad--sized {
    height: auto;
    aspect-ratio: var(--lnam-ad-aspect, 1 / 1);
  }
}

.lnam-ad-image {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
  border: 0;
}

.lnam-ad--sized .lnam-ad-image {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: var(--lnam-ad-fit, contain);
}

.lnam-ad-slot--mobile_sticky_bottom {
  margin: 0;
}

@media (max-width: 767px) {
  .lnam-ad-slot {
    margin: 20px auto;
  }

  .lnam-ad-slot--mobile_sticky_bottom.lnam-ad-slot--filled {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    background: rgba(255, 255, 255, 0.96);
    padding: 8px 12px;
    box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.12);
  }
}
