/* Abu Namous v2.2.2 — unified vehicle photography baseline.
   Vehicle images stay fully visible, centered and uncropped on a calm neutral frame.
   The homepage editorial hero remains edge-to-edge cover via patch-v220. */

:root{
  --anm-vehicle-photo-bg:#dfe5e8;
}

/* All vehicle-card media frames: same neutral presentation everywhere. */
.anm-theme .anm-market-card > .anm-market-media,
.anm-theme .anm-vehicle-card > .anm-vehicle-media,
.anm-home-main .anm-vehicle-card > .anm-vehicle-media,
.anm-catalog-section .anm-vehicle-card > .anm-vehicle-media,
.anm-related-section .anm-vehicle-card > .anm-vehicle-media{
  background:var(--anm-vehicle-photo-bg)!important;
  overflow:hidden!important;
}

/* Remove decorative blurred fills so portrait photos look exactly like the approved example. */
.anm-theme .anm-market-card .anm-market-slide::before,
.anm-theme .anm-market-card .anm-market-slide::after{
  display:none!important;
  content:none!important;
}

.anm-theme .anm-market-card .anm-market-slide,
.anm-theme .anm-market-card .anm-market-slide.is-active{
  background:var(--anm-vehicle-photo-bg)!important;
  overflow:hidden!important;
}

/* Cards, catalog, search, homepage products and related vehicles: full car, no crop. */
.anm-theme .anm-market-card .anm-market-slide > img,
.anm-theme .anm-market-card .anm-market-slide > picture > img,
.anm-theme .anm-market-card .anm-market-slide > .wp-post-image,
.anm-theme .anm-vehicle-card .anm-vehicle-media > img,
.anm-home-main .anm-vehicle-card .anm-vehicle-media > img,
.anm-catalog-section .anm-vehicle-card .anm-vehicle-media > img,
.anm-related-section .anm-vehicle-card .anm-vehicle-media > img{
  display:block!important;
  width:100%!important;
  height:100%!important;
  min-width:0!important;
  min-height:0!important;
  max-width:100%!important;
  max-height:100%!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
  background:transparent!important;
  object-fit:contain!important;
  object-position:center center!important;
  transform:none!important;
}

.anm-theme .anm-market-card:hover .anm-market-slide > img,
.anm-theme .anm-vehicle-card:hover .anm-vehicle-media > img{
  transform:none!important;
}

/* Single vehicle / Woo product gallery uses the same visual language. */
.anm-product-gallery-v214 .anm-gallery-main,
.anm-single-vehicle .anm-gallery-main{
  background:var(--anm-vehicle-photo-bg)!important;
  overflow:hidden!important;
}

.anm-product-gallery-v214 .anm-gallery-main::before,
.anm-product-gallery-v214 .anm-gallery-main::after{
  display:none!important;
  content:none!important;
}

.anm-product-gallery-v214 .anm-gallery-main .anm-gallery-stage-button{
  width:100%!important;
  height:100%!important;
  padding:0!important;
  margin:0!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  background:transparent!important;
  border:0!important;
}

.anm-product-gallery-v214 .anm-gallery-main .anm-gallery-stage-button > img,
.anm-product-gallery-v214 .anm-gallery-main > img,
.anm-single-vehicle .anm-gallery-main > img{
  display:block!important;
  width:100%!important;
  height:100%!important;
  max-width:100%!important;
  max-height:100%!important;
  margin:0!important;
  padding:0!important;
  background:transparent!important;
  object-fit:contain!important;
  object-position:center center!important;
  transform:none!important;
}

/* Thumbnails match the main image treatment. */
.anm-product-gallery-v214 .anm-gallery-thumb,
.anm-single-vehicle .anm-gallery-thumb{
  background:var(--anm-vehicle-photo-bg)!important;
  overflow:hidden!important;
}

.anm-product-gallery-v214 .anm-gallery-thumb img,
.anm-single-vehicle .anm-gallery-thumb img{
  display:block!important;
  width:100%!important;
  height:100%!important;
  margin:0!important;
  padding:0!important;
  background:transparent!important;
  object-fit:contain!important;
  object-position:center center!important;
  transform:none!important;
}

/* Maintain a consistent image-first card canvas across breakpoints. */
@media (min-width:1181px){
  .anm-theme .anm-market-card > .anm-market-media{
    height:325px!important;
    min-height:325px!important;
    max-height:325px!important;
    flex-basis:325px!important;
  }
}

@media (min-width:641px) and (max-width:1180px){
  .anm-theme .anm-market-card > .anm-market-media{
    height:300px!important;
    min-height:300px!important;
    max-height:300px!important;
    flex-basis:300px!important;
  }
}

@media (max-width:640px){
  .anm-theme .anm-market-card > .anm-market-media{
    height:315px!important;
    min-height:315px!important;
    max-height:315px!important;
    flex-basis:315px!important;
  }
}
