/* Banners con imagen: usar su altura real, sin los espacios reservados a AdSense. */
html body .oj-ad-slot.oj-ad-image {
  display:flex!important;
  flex-direction:column!important;
  align-items:center!important;
  justify-content:flex-start!important;
  gap:10px!important;
  height:auto!important;
  min-height:0!important;
  padding:0!important;
  margin:12px auto!important;
}
html body .oj-ad-slot.oj-ad-image .oj-ad-label {
  display:block!important;
  margin:0!important;
  padding:0!important;
  line-height:1.2!important;
}
html body .oj-ad-slot.oj-ad-image > :not(.oj-ad-label) {
  height:auto!important;
  min-height:0!important;
  max-width:100%!important;
  margin:0!important;
  padding:0!important;
}
html body .oj-ad-slot.oj-ad-image > :is(div,p,figure) > :is(div,p,figure,a) {
  height:auto!important;
  min-height:0!important;
  margin:0!important;
  padding:0!important;
}
html body .oj-ad-slot.oj-ad-image img {
  display:block!important;
  max-width:100%!important;
  height:auto!important;
  margin:0 auto!important;
}
html body .oj-ad-slot.oj-ad-image img[width="0"],
html body .oj-ad-slot.oj-ad-image img[height="0"] {
  position:absolute!important;
  width:0!important;
  height:0!important;
  min-width:0!important;
  min-height:0!important;
  margin:0!important;
  padding:0!important;
  visibility:hidden!important;
  pointer-events:none!important;
}
html body .wp-block-shortcode:has(> .oj-ad-slot.oj-ad-image) {
  margin-block:12px!important;
  padding-block:0!important;
}

/* Portada: Novedades → banner → título de la sección siguiente. */
html body.home .oj-home-news-section:has(+ .wp-block-shortcode .oj-ad-home_after_hero.oj-ad-image),
html body.home .oj-home-news-section:has(+ .oj-ad-home_after_hero.oj-ad-image) {
  padding-bottom:12px!important;
}
html body.home .oj-home-news-section + .wp-block-shortcode:has(.oj-ad-home_after_hero.oj-ad-image) {
  margin-block:0!important;
}
html body.home .wp-block-shortcode:has(> .oj-ad-home_after_hero.oj-ad-image) + .oj-section,
html body.home .oj-ad-home_after_hero.oj-ad-image + .oj-section {
  padding-top:12px!important;
  margin-top:0!important;
}

/* Las alturas publicitarias fijas se mantienen para AdSense y se quitan en imágenes. */
html body .oj-shop-band-affiliate .oj-ad-slot.oj-ad-image,
html body .oj-home-amazon-billboard .oj-ad-slot.oj-ad-image,
html body .oj-ad-sidebar_rectangle.oj-ad-image {
  height:auto!important;
  min-height:0!important;
}
html body.single-oj_park .oj-ad-slot.oj-ad-image {
  margin-block:12px!important;
}
html body.single-oj_park .oj-ad-slot.oj-ad-image + :is(h2,.wp-block-heading) {
  margin-top:12px!important;
}
.oj-park-shell .oj-ad-slot.oj-ad-image::before {
  content:none!important;
}
