/* Mobile layout for demo catalogues embedded inside selected blog articles. */
@media (max-width: 768px) {
  html body .slc-catalogue.slc-catalogue--article-demo {
    display: block !important;
    visibility: visible !important;
    position: relative !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    max-height: none !important;
    padding: 1.5rem 0.65rem !important;
    overflow: visible !important;
    opacity: 1 !important;
  }

  html body .slc-catalogue--article-demo .slc-shell,
  html body .slc-catalogue--article-demo .slc-heading,
  html body .slc-catalogue--article-demo .slc-toolbar,
  html body .slc-catalogue--article-demo .slc-grid {
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    visibility: visible !important;
    opacity: 1 !important;
  }

  html body .slc-catalogue--article-demo .slc-heading {
    margin: 0 auto 1rem !important;
    text-align: center !important;
  }

  html body .slc-catalogue--article-demo .slc-badge {
    margin-bottom: 0.6rem !important;
    padding: 0.3rem 0.55rem !important;
    font-size: 0.65rem !important;
    white-space: normal !important;
    text-align: center !important;
  }

  html body .slc-catalogue--article-demo .slc-heading h2 {
    margin-bottom: 0.45rem !important;
    font-size: 1.25rem !important;
    line-height: 1.25 !important;
  }

  html body .slc-catalogue--article-demo .slc-heading p {
    margin: 0 !important;
    font-size: 0.78rem !important;
    line-height: 1.45 !important;
  }

  html body .slc-catalogue--article-demo .slc-toolbar {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 0.65rem !important;
    padding: 0.75rem !important;
    border-radius: 11px !important;
  }

  html body .slc-catalogue--article-demo .slc-toolbar label {
    min-width: 0 !important;
    gap: 0.3rem !important;
  }

  html body .slc-catalogue--article-demo :is(.slc-provider-select, .slc-search) {
    width: 100% !important;
    min-width: 0 !important;
    min-height: 42px !important;
    padding: 0.6rem 0.7rem !important;
    font-size: 0.875rem !important;
  }

  html body .slc-catalogue--article-demo .slc-status {
    min-height: 1.25rem !important;
    margin: 0.75rem 0 !important;
    font-size: 0.75rem !important;
  }

  html body .slc-catalogue--article-demo .slc-grid,
  html body .slc-catalogue--article-demo .slc-grid[aria-busy="true"] {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 0.75rem !important;
    min-height: 12rem !important;
  }

  html body .slc-catalogue--article-demo .slc-grid:not([aria-busy="true"]) {
    min-height: 0 !important;
  }

  html body .slc-catalogue--article-demo .slc-game-card {
    display: grid !important;
    grid-template-columns: minmax(105px, 38%) minmax(0, 1fr) !important;
    grid-template-rows: 1fr !important;
    width: 100% !important;
    min-width: 0 !important;
    height: auto !important;
    border-radius: 11px !important;
  }

  html body .slc-catalogue--article-demo .slc-game-image {
    width: 100% !important;
    min-width: 0 !important;
    height: 100% !important;
    min-height: 184px !important;
    aspect-ratio: auto !important;
  }

  html body .slc-catalogue--article-demo .slc-game-image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
  }

  html body .slc-catalogue--article-demo .slc-game-body {
    width: 100% !important;
    min-width: 0 !important;
    min-height: 184px !important;
    padding: 0.7rem !important;
  }

  html body .slc-catalogue--article-demo .slc-game-body h3 {
    margin-bottom: 0.35rem !important;
    font-size: 0.82rem !important;
    line-height: 1.25 !important;
    overflow-wrap: anywhere !important;
  }

  html body .slc-catalogue--article-demo :is(.slc-provider, .slc-facts) {
    margin-bottom: 0.4rem !important;
    font-size: 0.68rem !important;
    line-height: 1.35 !important;
  }

  html body .slc-catalogue--article-demo .slc-card-actions {
    gap: 0.4rem !important;
  }

  html body .slc-catalogue--article-demo :is(.slc-play, .slc-real-money) {
    width: 100% !important;
    min-width: 0 !important;
    min-height: 38px !important;
    padding: 0.45rem 0.5rem !important;
    font-size: 0.72rem !important;
    line-height: 1.2 !important;
    white-space: normal !important;
    text-align: center !important;
  }

  html body .slc-catalogue--article-demo .slc-disclaimer {
    margin-top: 0.9rem !important;
    font-size: 0.66rem !important;
    line-height: 1.4 !important;
  }
}

@media (max-width: 360px) {
  html body .slc-catalogue--article-demo .slc-game-card {
    grid-template-columns: minmax(96px, 36%) minmax(0, 1fr) !important;
  }
}

/* Selected article embeds show the requested game cards only. */
html body .slc-catalogue.slc-catalogue--article-demo {
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
}

html body .slc-catalogue--article-demo .slc-shell {
  width: min(1240px, 100%) !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

html body .slc-catalogue--article-demo :is(
  .slc-heading,
  .slc-toolbar,
  .slc-status,
  .slc-pagination,
  .slc-disclaimer
) {
  display: none !important;
}

html body .slc-catalogue--article-demo .slc-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(230px, 290px)) !important;
  justify-content: center !important;
  gap: 1rem !important;
  min-height: 0 !important;
  margin: 0 !important;
}

@media (max-width: 768px) {
  html body .slc-catalogue.slc-catalogue--article-demo {
    padding: 0 0.65rem !important;
  }

  html body .slc-catalogue--article-demo .slc-grid {
    grid-template-columns: minmax(0, 1fr) !important;
    width: 100% !important;
  }
}
