/* Special ad banner (728x90) */

.ad-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
  font-family: sans-serif;
}

.ad-title {
  text-transform: uppercase;
  color: #6c757d;
  font-size: 10px;
  letter-spacing: 1px;
  margin-bottom: 0.25rem;
  user-select: none;
}

.ad-banner-box {
  position: relative;
  overflow: hidden;
  background-color: transparent;
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
  transition: opacity 0.2s ease;
}

.ad-banner-box:not(.ad-banner-box-lmenu) {
  width: 100%;
  max-width: 728px;
  aspect-ratio: 728 / 90;
}

.ad-banner-box:not(.ad-banner-box-lmenu) .ad-link {
  position: absolute;
  inset: 0;
  display: block;
}

.ad-banner-box:not(.ad-banner-box-lmenu) .ad-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.ad-link {
  display: block;
  width: 100%;
  height: 100%;
}

.ad-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ad-badge {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 2;
  background-color: rgba(255, 255, 255, 0.75);
  padding: 0 0.25rem;
  border-bottom-left-radius: 0.375rem;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 9px;
  color: #6c757d;
  user-select: none;
  pointer-events: none;
  opacity: 1;
}

.ad-banner-box:hover {
  opacity: 0.95;
}


@media (hover: hover) and (pointer: fine) {
  .ad-badge {
    opacity: 0;
    transition: opacity 0.2s ease-in-out;
  }

  .ad-banner-box:hover .ad-badge {
    opacity: 1;
  }
}

.has-special-ad #ats-insert_ads-3-wrapper,
.has-special-ad [id="ats-insert_ads-3-wrapper"],
.has-special-ad #ats-insert_ads-19-wrapper,
.has-special-ad [id="ats-insert_ads-19-wrapper"] {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  max-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  pointer-events: none !important;
}

/* Left menu special ad */
.ad-container-lmenu {
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
  max-width: 140px;
  width: 100%;
}

.ad-banner-box-lmenu {
  width: 100%;
  max-width: 140px;
  aspect-ratio: 140 / 600;
}

.ad-banner-box-lmenu .ad-link {
  position: absolute;
  inset: 0;
  display: block;
}

.ad-banner-box-lmenu .ad-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}
