/* 1.0.326 — mobile Background preset strip. */
@media (max-width: 768px) {
  #fotor-root .editor-shell.is-mobile
  .left-panel--tool-ai-background .mobile-tool-content--full {
    padding-right: 0 !important;
    padding-left: 0 !important;
  }

  #fotor-root .editor-shell.is-mobile
  .left-panel--tool-ai-background .mobile-preset-strip {
    align-items: stretch !important;
    gap: 8px !important;
    padding: 3px 8px !important;
    box-sizing: border-box !important;
    scroll-padding-inline: 8px !important;
  }

  /* Background previews are landscape scenes; give them enough width to be
     recognizable instead of treating them like portrait preset thumbnails. */
  #fotor-root .editor-shell.is-mobile
  .left-panel--tool-ai-background .mobile-preset-card:not(.adjust-mobile-page .mobile-preset-card) {
    position: relative !important;
    flex: 0 0 112px !important;
    width: 112px !important;
    min-width: 112px !important;
    max-width: 112px !important;
    height: 100% !important;
    overflow: hidden !important;
    border-radius: 11px !important;
  }

  #fotor-root .editor-shell.is-mobile
  .left-panel--tool-ai-background .mobile-preset-card.active:not(.adjust-mobile-page .mobile-preset-card),
  #fotor-root .editor-shell.is-mobile
  .left-panel--tool-ai-background .mobile-preset-card[aria-pressed="true"]:not(.adjust-mobile-page .mobile-preset-card),
  #fotor-root .editor-shell.is-mobile
  .left-panel--tool-ai-background .mobile-preset-card[aria-selected="true"]:not(.adjust-mobile-page .mobile-preset-card) {
    flex-basis: 124px !important;
    width: 124px !important;
    min-width: 124px !important;
    max-width: 124px !important;
  }

  #fotor-root .editor-shell.is-mobile
  .left-panel--tool-ai-background .mobile-preset-card::before {
    content: "" !important;
    position: absolute !important;
    z-index: 4 !important;
    right: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    height: 58% !important;
    background: linear-gradient(180deg, transparent, rgba(2,5,9,.88)) !important;
    pointer-events: none !important;
  }

  #fotor-root .editor-shell.is-mobile
  .left-panel--tool-ai-background .mobile-preset-thumb img {
    object-fit: cover !important;
    object-position: center !important;
  }

  #fotor-root .editor-shell.is-mobile
  .left-panel--tool-ai-background .mobile-preset-name {
    right: 7px !important;
    bottom: 5px !important;
    left: 7px !important;
    z-index: 5 !important;
    max-height: 25px !important;
    font-size: 10px !important;
    font-weight: 780 !important;
    line-height: 12px !important;
    text-shadow: 0 1px 3px rgba(0,0,0,.95) !important;
  }
}

@media (max-width: 370px) {
  #fotor-root .editor-shell.is-mobile
  .left-panel--tool-ai-background .mobile-preset-card:not(.adjust-mobile-page .mobile-preset-card) {
    flex-basis: 106px !important;
    width: 106px !important;
    min-width: 106px !important;
    max-width: 106px !important;
  }

  #fotor-root .editor-shell.is-mobile
  .left-panel--tool-ai-background .mobile-preset-card.active:not(.adjust-mobile-page .mobile-preset-card) {
    flex-basis: 118px !important;
    width: 118px !important;
    min-width: 118px !important;
    max-width: 118px !important;
  }
}
