/* Costume Privé Paris — Blog related blocks — MINIMAL FIX
   Only fixes :
   1) Uniform image aspect-ratio on related articles (portrait breaks layout)
   2) Products block empty right slot (when <4 items) */

/* ============ ARTICLES SIMILAIRES : uniform image aspect-ratio 16:10 ============ */
.ybc_blog_content_block_item > a.ybc_item_img,
.ybc_blog_content_block_item > a.ybc_item_img_ladyload {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  position: relative;
  background: #fafaf9;
}

.ybc_blog_content_block_item > a.ybc_item_img img,
.ybc_blog_content_block_item > a.ybc_item_img_ladyload img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 400ms ease;
}

.ybc_blog_content_block_item:hover > a.ybc_item_img img {
  transform: scale(1.04);
}

.ybc_blog_content_block_item .loader_lady_custom {
  display: none;
}

/* ============ PRODUITS : fill empty slot if < 4 items ============ */
#ybc-blog-related-products .blog-product-list.slick-slider .slick-list {
  width: 100% !important;
}

#ybc-blog-related-products .blog-product-list.slick-slider .slick-track {
  display: flex !important;
  width: 100% !important;
  transform: none !important;
  gap: 24px;
}

#ybc-blog-related-products .ajax_block_product.slick-slide {
  flex: 1 1 0 !important;
  width: auto !important;
  min-width: 0 !important;
  max-width: none !important;
  float: none !important;
}

/* Products image : aspect-ratio 1:1 uniform (fashion products) */
#ybc-blog-related-products .left-block > a,
#ybc-blog-related-products .left-block > a.ybc_item_img,
#ybc-blog-related-products .ybc_item_img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  position: relative;
  background: #fafaf9;
}

#ybc-blog-related-products .left-block img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 400ms ease;
}

#ybc-blog-related-products .ajax_block_product:hover img {
  transform: scale(1.04);
}

#ybc-blog-related-products .loader_lady_custom {
  display: none;
}
