.ad__in_article {
  min-width: 120px;
  margin: 0 auto 0.75rem auto;
  width: 100%;
  display: flex;
  justify-content: center;
}

ins.horizontal_top {
  width: 100%;
  height: 100%;
  max-width: 970px !important;
  overflow: hidden;
  max-height: 280px !important; /* Default max-height for desktop */
  margin-bottom: 16px;
}

/* For very large screens (1280px and above) */
@media screen and (min-width: 1280px) {
  ins.horizontal_top {
    min-height: 250px;
    margin: 0 auto 16px;
  }
}

/* For desktops up to 991px wide */
@media screen and (max-width: 991px) {
  ins.horizontal_top {
    max-width: 940px !important;
  }
}

/* For large mobile devices up to 767px wide */
@media screen and (max-width: 767px) {
  ins.horizontal_top {
    max-width: 740px !important;
    max-height: 280px !important; /* Increased max-height for mobile */
  }
}

/* For very small screens up to 479px wide */
@media screen and (max-width: 479px) {
  ins.horizontal_top {
    max-width: 100% !important;
    min-height: 250px;
    max-height: 280px !important; /* Increased max-height for mobile */
  }

  .ad__in_article {
    max-width: calc(100vw - 2rem);
  }
}  


.ad__vertical_sidepanel {
  position: relative;
  width: 100%;
  max-width: 300px;
  text-align: center;
  min-height: 50px; /* Fixed vertical space for side ads */
  margin: 10px auto 0 auto;
}


@media screen and (min-width: 1280px) {
  .ad__vertical_sidepanel {
    max-width: 420px;
  }
}

.ad__vertical_sidepanel.fixed {
  position: fixed;
  margin-top: 2rem;
}

.adsbygoogle {
  margin: 0 auto;
  width: 100%;
}

.ad {
  width: 100%;
}

/* Unfilled ads */
.adsbygoogle[data-ad-status="unfilled"] {
  display: none !important;
}

.ad__in_article:has(.adsbygoogle[data-ad-status="unfilled"]) {
  display: none !important;
}
