/* Local mirror safety fixes: keep the static copy readable without changing upstream markup. */

html,
body {
  max-width: 100%;
}

@media (max-width: 767px) {
  .coinpoker-table,
  .tablepress {
    display: block;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    white-space: nowrap;
    width: 100% !important;
  }

  .coinpoker-table th,
  .coinpoker-table td,
  .tablepress th,
  .tablepress td {
    white-space: nowrap;
  }
}

.cta--community .cta-image,
.cta--community .img-w-100 {
  max-width: 100%;
}

.cta--community .cta-image img,
.cta--community .img-w-100 img {
  display: block;
  height: auto;
  max-width: 100%;
  object-fit: contain;
}

@media (min-width: 768px) {
  .cta--community .cta-image img[alt="Community Image"] {
    width: 100%;
  }
}

.youtube-video-carousel,
.youtube-video-carousel .slick-list {
  max-width: 100%;
  overflow: hidden;
}

.youtube-video-carousel .slick-track {
  align-items: stretch;
  display: flex !important;
}

.youtube-video-carousel .slick-slide,
.youtube-video-carousel .slick-slide > div,
.youtube-video-carousel .video-slide {
  box-sizing: border-box;
  height: auto;
}

.youtube-video-carousel .video-slide img {
  aspect-ratio: 16 / 9;
  display: block;
  height: auto;
  max-height: none;
  object-fit: cover;
  width: 100%;
}

@media (max-width: 767px) {
  .youtube-video-carousel .video-slide {
    min-width: min(290px, calc(100vw - 32px));
    width: min(290px, calc(100vw - 32px));
  }
}

.wp-block-embed.is-type-video .wp-block-embed__wrapper {
  max-width: 100%;
  overflow: hidden;
}

.wp-block-embed.is-type-video iframe {
  aspect-ratio: 16 / 9;
  display: block;
  height: auto !important;
  max-width: 100%;
  width: 100% !important;
}

/* Safety net: unsupported languages stay hidden even on pages that were mirrored before pruning. */
.language-switcher__dropdown-item:has(a[data-lang="de"]),
.language-switcher__dropdown-item:has(a[data-lang="nl"]),
.language-switcher__dropdown-item:has(a[data-lang="fr"]),
.language-switcher__dropdown-item:has(a[data-lang="pt"]),
.language-switcher__dropdown-item:has(a[data-lang="es"]),
.language-switcher__dropdown-item:has(a[data-lang="it"]),
.language-switcher__dropdown-item:has(a[data-lang="ru"]),
.language-switcher__dropdown-item:has(a[data-lang="tr"]) {
  display: none !important;
}
