/* JobLik 0.33.93
   Mobile public-gallery behavior:
   - keep the two gallery CTAs sticky at the top while vehicle cards scroll;
   - keep desktop identity/header layout untouched;
   - suppress the dark site footer only when the direct global gallery has no approved ads. */

.agi-global-mobile-sticky{display:none}

/* Empty direct gallery: the user must not scroll into the dark global footer. */
html.joblik-global-gallery-empty footer,
html.joblik-global-gallery-empty .site-footer,
html.joblik-global-gallery-empty .public-footer,
html.joblik-global-gallery-empty .v064-footer,
html.joblik-global-gallery-empty [data-site-footer]{
  display:none!important;
}

@media (max-width:767px){
  /* Sticky needs non-clipping ancestors. */
  .automotive-gallery-only,
  .automotive-gallery-only .v064-featured{
    overflow:visible!important;
  }

  /* The desktop/in-card action set is replaced by the dedicated mobile bar. */
  .automotive-gallery-only .agi-card.agi-global-public .agi-global-actions{
    display:none!important;
  }

  /* With actions no longer absolutely placed under the identity card, remove
     the historical reserve margin and let the sticky bar own its own height. */
  .automotive-gallery-only .agi-card.agi-global-public{
    margin-bottom:8px!important;
  }

  .automotive-gallery-only .agi-global-mobile-sticky{
    direction:rtl!important;
    position:-webkit-sticky!important;
    position:sticky!important;
    top:0!important;
    z-index:120!important;
    display:grid!important;
    grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;
    gap:8px!important;
    width:calc(100% + 2px)!important;
    margin:0 -1px 10px!important;
    padding:8px 10px!important;
    background:rgba(247,250,253,.97)!important;
    border-top:1px solid rgba(255,121,0,.22)!important;
    border-bottom:1px solid rgba(255,121,0,.55)!important;
    box-shadow:0 5px 14px rgba(16,41,61,.10)!important;
    backdrop-filter:blur(8px)!important;
    -webkit-backdrop-filter:blur(8px)!important;
    box-sizing:border-box!important;
  }

  .automotive-gallery-only .agi-global-mobile-action{
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    min-width:0!important;
    height:40px!important;
    margin:0!important;
    padding:0 8px!important;
    background:#fff!important;
    border:1px solid #ef9a42!important;
    border-radius:10px!important;
    color:#df6b00!important;
    font-family:inherit!important;
    font-size:12px!important;
    font-weight:900!important;
    line-height:1!important;
    text-align:center!important;
    text-decoration:none!important;
    white-space:nowrap!important;
    box-sizing:border-box!important;
  }

  .automotive-gallery-only .agi-global-mobile-action:active{
    transform:translateY(1px);
  }

  /* Do not let the empty-state block create an artificial long page before
     the (suppressed) footer. */
  html.joblik-global-gallery-empty .automotive-gallery-only .v064-cars-row{
    min-height:0!important;
    padding-bottom:18px!important;
  }
}
