/* BAQUE Visual System 1.8.0
 * Consistent 1:1 photography for commerce/inspiration cards and galleries.
 * Scoped to BAQUE editorial pages; editorial heroes, stories, details and
 * full-width feature photographs deliberately retain their own proportions.
 */
:where(.baque-fs,.baque-e-gallery,.baque-e-products,.baque-core-scenes){--baque-photo-surface:#f1ece5;--baque-photo-gap:clamp(12px,1.7vw,24px)}

/* Keep product and gallery frames square, regardless of original image size. */
.baque-fs .baque-fs-type .wp-block-image,
.baque-fs .baque-fs-img-type,
.baque-fs .baque-fs-img-model,
.baque-fs .baque-fs-img-gallery,
.baque-fs .baque-fs-img-stack,
.baque-fs .baque-fs-gallery-primary .wp-block-image,
.baque-fs .baque-fs-gallery-secondary .wp-block-image,
.baque-mesas .baque-mesas-photo .wp-block-image,
.baque-mesas .baque-mesas-product .wp-block-image,
.baque-fs .baque-seat-finish-grid .wp-block-image,
.baque-sp .baque-sp-wood .wp-block-image,
.baque-e-gallery .baque-e-tile__img,
.baque-e-products .baque-e-product__img {
  position:relative!important;
  display:block!important;
  width:100%!important;
  height:auto!important;
  min-height:0!important;
  max-height:none!important;
  aspect-ratio:1 / 1!important;
  overflow:hidden!important;
  border:0;
  border-radius:1px;
  margin:0!important;
  background-color:var(--baque-photo-surface,#f1ece5);
}

/* Explicit absolute sizing wins over fixed heights from older landing CSS. */
.baque-fs .baque-fs-type .wp-block-image > img,
.baque-fs .baque-fs-img-type > img,
.baque-fs .baque-fs-img-model > img,
.baque-fs .baque-fs-img-gallery > img,
.baque-fs .baque-fs-img-stack > img,
.baque-fs .baque-fs-gallery-primary .wp-block-image > img,
.baque-fs .baque-fs-gallery-secondary .wp-block-image > img,
.baque-mesas .baque-mesas-photo .wp-block-image > img,
.baque-mesas .baque-mesas-product .wp-block-image > img,
.baque-fs .baque-seat-finish-grid .wp-block-image > img,
.baque-sp .baque-sp-wood .wp-block-image > img,
.baque-e-gallery .baque-e-tile__img > img,
.baque-e-products .baque-e-product__img > img {
  position:absolute!important;
  inset:0!important;
  display:block!important;
  width:100%!important;
  height:100%!important;
  min-height:0!important;
  max-height:none!important;
  aspect-ratio:1/1!important;
  object-fit:cover!important;
  object-position:center center;
  border-radius:0!important;
}

/* Harmonise desktop mosaics and row spacing, without touching storytelling splits. */
.baque-mesas .baque-mesas-mosaic {
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  align-items:start!important;
  gap:var(--baque-photo-gap)!important;
}
.baque-mesas .baque-mesas-mosaic > .wp-block-column {min-width:0!important;grid-column:auto!important;}
.baque-mesas .baque-mesas-photo{height:auto!important;min-height:0!important;}
.baque-fs .baque-fs-type-row,.baque-mesas .baque-mesas-product-grid,.baque-fs .baque-seat-finish-grid{align-items:stretch!important;gap:var(--baque-photo-gap)!important;}
.baque-fs .baque-fs-type-row > .wp-block-column,.baque-mesas .baque-mesas-product-grid > .wp-block-column{min-width:0!important;}
.baque-fs .baque-fs-type .wp-block-image + h3 {margin-top:18px!important;}
.baque-fs .baque-fs-type .wp-block-image {flex-shrink:0;}
.baque-fs .baque-seat-gallery-stack{gap:12px!important;}
.baque-fs .baque-seat-gallery-stack .baque-fs-photo-caption{margin:0!important;}
.baque-e-gallery .wp-block-column{min-width:0!important;}
.baque-core-scenes .baque-core-scene-image{width:100%!important;aspect-ratio:1/1!important;height:auto!important;object-fit:cover!important;}

/* Mobile: preserve square cards with a deliberate, consistent grid. */
@media(max-width:781px){
 .baque-fs .baque-fs-type-row{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:14px!important;}
 .baque-fs .baque-fs-type-row > .wp-block-column{width:100%!important;min-width:0!important;}
 .baque-mesas .baque-mesas-product-grid,.baque-mesas .baque-mesas-mosaic{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:14px!important;}
 .baque-mesas .baque-mesas-mosaic > .wp-block-column:first-child{grid-column:auto!important;}
 .baque-e-gallery{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:12px!important;}
 .baque-fs .baque-seat-finish-grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:14px!important;}
}
@media(max-width:520px){
 .baque-fs .baque-fs-type-row,.baque-mesas .baque-mesas-mosaic,.baque-mesas .baque-mesas-product-grid,.baque-fs .baque-seat-finish-grid{grid-template-columns:1fr!important;}
 .baque-fs .baque-fs-type-row{gap:22px!important;}
 .baque-e-gallery{grid-template-columns:repeat(2,minmax(0,1fr))!important;}
}
@media(prefers-reduced-motion:reduce){
 .baque-fs .baque-fs-img-type > img,.baque-fs .baque-fs-img-gallery > img,.baque-mesas .baque-mesas-photo img {transition:none!important;transform:none!important;}
}
