/* SAENZ BIKES · Novedades image composition
   Single source of truth for product photography geometry.
   JS may set data-image-position but must not set image scale/padding/object-fit. */

#novedades{
  --news-product-scale:1;
  --news-bike-scale:1.65;
}

@media(min-width:761px){
  #novedades .news-slide[data-style="PRODUCT_PREMIUM"] img,
  #novedades .news-slide[data-style="PRODUCT_TEXT"] img{
    width:100%!important;
    height:100%!important;
    object-fit:contain!important;
    box-sizing:border-box!important;
    transform:none!important;
    transform-origin:center center!important;
  }

  #novedades .news-slide[data-image-position="left"][data-style="PRODUCT_PREMIUM"] img,
  #novedades .news-slide[data-image-position="left"][data-style="PRODUCT_TEXT"] img{
    object-position:left center!important;
    padding:2% 48% 2% 6%!important;
  }

  #novedades .news-slide[data-image-position="center"][data-style="PRODUCT_PREMIUM"] img,
  #novedades .news-slide[data-image-position="center"][data-style="PRODUCT_TEXT"] img{
    object-position:center center!important;
    padding:2% 25%!important;
  }

  #novedades .news-slide[data-image-position="right"][data-style="PRODUCT_PREMIUM"] img,
  #novedades .news-slide[data-image-position="right"][data-style="PRODUCT_TEXT"] img,
  #novedades .news-slide:not([data-image-position])[data-style="PRODUCT_PREMIUM"] img,
  #novedades .news-slide:not([data-image-position])[data-style="PRODUCT_TEXT"] img{
    object-position:right center!important;
    padding:2% 5% 2% 48%!important;
  }
}

@media(max-width:760px){
  #novedades .news-slide[data-style="PRODUCT_PREMIUM"]>picture,
  #novedades .news-slide[data-style="PRODUCT_TEXT"]>picture{
    height:clamp(200px,52vw,240px)!important;
    overflow:hidden;
  }

  #novedades .news-slide[data-style="PRODUCT_PREMIUM"] img,
  #novedades .news-slide[data-style="PRODUCT_TEXT"] img{
    width:100%!important;
    height:100%!important;
    object-fit:contain!important;
    object-position:center center!important;
    padding:0!important;
    box-sizing:border-box!important;
    transform:scale(var(--news-product-scale))!important;
    transform-origin:center center!important;
  }

  #novedades .news-slide[data-image-source="PRODUCT"][data-product-scope="BIKE"][data-style="PRODUCT_PREMIUM"] img,
  #novedades .news-slide[data-image-source="PRODUCT"][data-product-scope="BIKE"][data-style="PRODUCT_TEXT"] img{
    transform:scale(var(--news-bike-scale))!important;
  }
}
