/* Betano CZ: the hero's absolute image positioning must not reach offer logos. */
.v539 .v539-flag,
.v539 .v539-pic,
.v539 .v539-pic picture,
.v539 .v539-pic img {
  position: static;
  inset: auto;
}
.v539 .v539-pic picture {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: auto;
}
.v539 .v539-pic img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 21 / 13;
  object-fit: cover;
}

/* Homepage: preserve the decorative full-width art, but let the actual
   heading + two cards + lead determine the hero's height. */
#content > .home-hero {
  aspect-ratio: auto;
  min-height: min(56.25vw, 900px);
}

#content > .home-hero > .hero-copy {
  position: relative;
  inset: auto;
  width: min(650px, 46vw);
  min-width: 0;
  margin-left: max(5vw, 40px);
  padding-block: clamp(40px, 6.2vw, 100px);
}

#content > .home-hero > picture > img {
  object-position: center top;
}

@media (max-width: 700px) {
  #content > .home-hero {
    min-height: 0;
  }

  #content > .home-hero > .hero-copy {
    width: auto;
    margin-inline: 24px;
    padding-top: min(calc(56.25vw - .25rem), 315px);
    padding-bottom: 32px;
  }
}

/* Eight featured article pages already stack correctly at <=1100px.
   On wider screens retain the art behind the right-hand copy, while
   making only that copy participate in height calculation. */
@media (min-width: 1101px) {
  #content .featured-article-hero {
    min-height: clamp(620px, 56.28vw, 940px);
  }

  #content .featured-article-hero > .article-visual {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100% !important;
    min-height: 0 !important;
  }

  #content .featured-article-hero > .article-visual > .featured-picture,
  #content .featured-article-hero > .article-visual > .featured-picture > img {
    display: block;
    width: 100%;
    height: 100%;
  }

  #content .featured-article-hero > .article-visual > .featured-picture > img {
    object-fit: contain;
    object-position: left top;
  }

  #content .featured-article-hero > .article-heading {
    position: relative;
    inset: auto;
    width: min(700px, 48%);
    min-width: 0;
    min-height: 0;
    margin-left: auto;
  }
}

/* Twenty-one casino-guide pages use in-flow heading/verdict already.
   Their desktop fixed height and zero-minimum first row are the crop
   constraint. Keep their columns, background picture and mobile rules. */
@media (min-width: 1101px) {
  #content .casino-guide .casino-guide-hero {
    height: auto;
    grid-template-rows: auto auto;
  }
}

#content .casino-guide .casino-guide-heading,
#content .article-hero > .article-heading {
  min-width: 0;
}
