/* CLIENT-PHOTOS-COHERENCE-20261103-I02 — one square photo frame per context.
   Original photographs stay whole and proportional. Opaque photo surfaces hide
   no scene beneath them; card rows follow the photo instead of covering it. */

html body #app,
html body #modalBackdrop{
  --pb-product-photo-size:240px;
  --pb-product-detail-photo-size:min(360px,65vh);
  --pb-product-detail-photo-size:min(360px,65dvh);
  --pb-product-photo-surface:#100516;
}
@media (max-width:740px){
  html body #app{
    --pb-product-photo-size:220px;
  }
}
/* Different detail sheets have different column widths. A shared narrow-screen
   cap fits both legacy and special sheets without altering their layout. */
@media (max-width:1024px){
  html body #modalBackdrop{
    --pb-product-detail-photo-size:min(260px,calc(100vw - 104px),65vh);
    --pb-product-detail-photo-size:min(260px,calc(100vw - 104px),65dvh);
  }
}

html body #app#app#app#app#app#app#app#app#app#app#app#app#app
  :is(.client-card-pizza,.client-card-dessert,.client-card-boisson).client-catalog-compact-card,
html body #app#app#app#app#app#app#app#app#app#app#app#app#app
  .client-catalog-compact-card:is([data-pb-journey-product^="pizza:"],[data-pb-journey-product^="dessert:"],[data-pb-journey-product^="boisson:"]){
  grid-template-rows:auto 1fr !important;
  height:auto !important;
  block-size:auto !important;
  min-height:0 !important;
  min-block-size:0 !important;
  max-height:none !important;
  max-block-size:none !important;
}

html body #app#app#app#app#app#app#app#app#app#app#app#app#app
  :is(.client-card-pizza,.client-card-dessert,.client-card-boisson).client-catalog-compact-card > img,
html body #app#app#app#app#app#app#app#app#app#app#app#app#app
  .client-catalog-compact-card:is([data-pb-journey-product^="pizza:"],[data-pb-journey-product^="dessert:"],[data-pb-journey-product^="boisson:"]) > img{
  display:block !important;
  width:min(calc(100% - 16px),var(--pb-product-photo-size)) !important;
  inline-size:min(calc(100% - 16px),var(--pb-product-photo-size)) !important;
  max-width:100% !important;
  max-inline-size:100% !important;
  height:auto !important;
  block-size:auto !important;
  min-height:0 !important;
  min-block-size:0 !important;
  max-height:none !important;
  max-block-size:none !important;
  aspect-ratio:1 !important;
  box-sizing:border-box !important;
  margin:8px auto 0 !important;
  padding:0 !important;
  border:0 !important;
  border-radius:0 !important;
  object-fit:contain !important;
  object-position:center !important;
  background:var(--pb-product-photo-surface) !important;
  opacity:1 !important;
  filter:none !important;
  backdrop-filter:none !important;
  -webkit-backdrop-filter:none !important;
  transform:none !important;
  clip-path:none !important;
  align-self:start !important;
}

/* Keep the approved signature grid; only its centered photo frame changes. */
html body #app#app#app#app#app#app#app#app#app#app#app#app#app
  .client-signature-pizza > img{
  display:block !important;
  width:min(100%,var(--pb-product-photo-size)) !important;
  inline-size:min(100%,var(--pb-product-photo-size)) !important;
  max-width:100% !important;
  max-inline-size:100% !important;
  height:auto !important;
  block-size:auto !important;
  min-height:0 !important;
  min-block-size:0 !important;
  max-height:none !important;
  max-block-size:none !important;
  aspect-ratio:1 !important;
  box-sizing:border-box !important;
  margin-inline:auto !important;
  padding:0 !important;
  border:0 !important;
  border-radius:0 !important;
  object-fit:contain !important;
  object-position:center !important;
  background:var(--pb-product-photo-surface) !important;
  opacity:1 !important;
  filter:none !important;
  backdrop-filter:none !important;
  -webkit-backdrop-filter:none !important;
  transform:none !important;
  clip-path:none !important;
  align-self:center !important;
  justify-self:center !important;
}

/* The wrapper and image have exactly the same square, without extra insets. */
html body #app#app#app#app#app#app#app#app#app#app#app#app#app
  .mockup[data-page="menu"] [data-pb-component="category-card"] > .category-image-button{
  display:block !important;
  width:min(100%,var(--pb-product-photo-size)) !important;
  inline-size:min(100%,var(--pb-product-photo-size)) !important;
  max-width:100% !important;
  max-inline-size:100% !important;
  height:auto !important;
  block-size:auto !important;
  min-height:0 !important;
  min-block-size:0 !important;
  max-height:none !important;
  max-block-size:none !important;
  aspect-ratio:1 !important;
  box-sizing:border-box !important;
  margin-inline:auto !important;
  padding:0 !important;
  border:0 !important;
  border-radius:0 !important;
  background:var(--pb-product-photo-surface) !important;
  opacity:1 !important;
  filter:none !important;
  backdrop-filter:none !important;
  -webkit-backdrop-filter:none !important;
  overflow:hidden !important;
  align-self:start !important;
}
html body #app#app#app#app#app#app#app#app#app#app#app#app#app
  .mockup[data-page="menu"] [data-pb-component="category-card"] > .category-image-button > img{
  display:block !important;
  width:100% !important;
  inline-size:100% !important;
  max-width:100% !important;
  max-inline-size:100% !important;
  height:auto !important;
  block-size:auto !important;
  min-height:0 !important;
  min-block-size:0 !important;
  max-height:none !important;
  max-block-size:none !important;
  aspect-ratio:1 !important;
  box-sizing:border-box !important;
  margin:0 !important;
  padding:0 !important;
  border:0 !important;
  border-radius:0 !important;
  object-fit:contain !important;
  object-position:center !important;
  background:var(--pb-product-photo-surface) !important;
  opacity:1 !important;
  filter:none !important;
  backdrop-filter:none !important;
  -webkit-backdrop-filter:none !important;
  transform:none !important;
  clip-path:none !important;
}

html body #app#app#app#app#app#app#app#app#app#app#app#app#app
  .pb-cart-suggestion > img{
  display:block !important;
  width:min(100%,128px) !important;
  inline-size:min(100%,128px) !important;
  max-width:100% !important;
  max-inline-size:100% !important;
  height:auto !important;
  block-size:auto !important;
  min-height:0 !important;
  min-block-size:0 !important;
  max-height:none !important;
  max-block-size:none !important;
  aspect-ratio:1 !important;
  box-sizing:border-box !important;
  margin-inline:auto !important;
  padding:0 !important;
  border:0 !important;
  border-radius:0 !important;
  object-fit:contain !important;
  object-position:center !important;
  background:var(--pb-product-photo-surface) !important;
  opacity:1 !important;
  filter:none !important;
  backdrop-filter:none !important;
  -webkit-backdrop-filter:none !important;
  transform:none !important;
  clip-path:none !important;
}

/* Both legacy and special detail photos use the available square, capped by
   the viewport. Their wrapper adds no hidden border, padding or second layer. */
html body #modalBackdrop#modalBackdrop#modalBackdrop#modalBackdrop#modalBackdrop
  :is(.lot01-product-sheet-pizza,.lot01-product-sheet-dessert,.lot01-product-sheet-boisson) .lot01-product-media{
  display:block !important;
  width:min(100%,var(--pb-product-detail-photo-size)) !important;
  inline-size:min(100%,var(--pb-product-detail-photo-size)) !important;
  max-width:100% !important;
  max-inline-size:100% !important;
  height:auto !important;
  block-size:auto !important;
  min-height:0 !important;
  min-block-size:0 !important;
  max-height:none !important;
  max-block-size:none !important;
  aspect-ratio:1 !important;
  box-sizing:border-box !important;
  margin-inline:auto !important;
  padding:0 !important;
  border:0 !important;
  border-radius:0 !important;
  background:var(--pb-product-photo-surface) !important;
  opacity:1 !important;
  filter:none !important;
  backdrop-filter:none !important;
  -webkit-backdrop-filter:none !important;
  overflow:hidden !important;
  align-self:start !important;
}
html body #modalBackdrop#modalBackdrop#modalBackdrop#modalBackdrop#modalBackdrop
  :is(.lot01-product-sheet-pizza,.lot01-product-sheet-dessert,.lot01-product-sheet-boisson) .lot01-product-media > img,
html body #modalBackdrop#modalBackdrop#modalBackdrop#modalBackdrop#modalBackdrop
  :is(.product-detail-pizza,.product-detail-dessert,.product-detail-boisson) > .grid.two > .contact-panel > img{
  display:block !important;
  width:min(100%,var(--pb-product-detail-photo-size)) !important;
  inline-size:min(100%,var(--pb-product-detail-photo-size)) !important;
  max-width:100% !important;
  max-inline-size:100% !important;
  height:auto !important;
  block-size:auto !important;
  min-height:0 !important;
  min-block-size:0 !important;
  max-height:none !important;
  max-block-size:none !important;
  aspect-ratio:1 !important;
  box-sizing:border-box !important;
  margin:0 auto !important;
  padding:0 !important;
  border:0 !important;
  border-radius:0 !important;
  object-fit:contain !important;
  object-position:center !important;
  background:var(--pb-product-photo-surface) !important;
  opacity:1 !important;
  filter:none !important;
  backdrop-filter:none !important;
  -webkit-backdrop-filter:none !important;
  transform:none !important;
  clip-path:none !important;
  align-self:start !important;
}
