/* Potê Batata Pro — enquadramento responsivo das fotos de conteúdo.
   Preserve a imagem integral nos setores; artes decorativas 3D da Central ficam full-bleed. */
img{max-width:100%}
.content,.box,.card,.cardbody,.photo,.creative,.creative .image{min-width:0}
.recipe-detail-photo{
  display:grid;place-items:center;
  width:100%;min-width:0;
  height:clamp(220px,43vw,420px);
  max-height:420px;
  margin:0 0 20px;
  padding:12px;
  overflow:hidden;
  border-radius:17px;
  background:radial-gradient(ellipse at 50% 34%,#405066 0%,#222c3b 55%,#121b28 100%);
  border:1px solid #8d9fb348;
  box-sizing:border-box;
}
.recipe-detail-photo img{
  display:block;width:100%;height:100%;
  min-width:0;max-width:100%;max-height:100%;
  object-fit:contain!important;
  object-position:center center;
  border-radius:10px;
  transform:none!important;
}
.photo{display:grid;place-items:center;min-width:0}
.photo img,.card .photo img,.unavailable-card .photo img{
  display:block;width:100%;height:100%;max-width:100%;max-height:100%;
  object-fit:contain!important;object-position:center!important;
  transform:none!important;
}
.photo .emoji{max-width:100%;max-height:100%}
.creative{width:100%;max-width:min(100%,460px);min-width:0}
.creative .image{min-width:0;overflow:hidden}
.creative .image img{display:block;width:100%;height:100%;max-width:100%;max-height:100%;object-fit:contain!important;object-position:center center!important}
.card .photo,.box .photo{background:radial-gradient(ellipse at 48% 38%,#435369,#243246 58%,#15202e 100%)}
.pote-float-account img,#poteFloatAvatar img,#poteProfilePreview img{max-width:100%}
@media(max-width:850px){
 .recipe-detail-photo{height:clamp(210px,58vw,330px);padding:9px;margin-bottom:16px}
 .photo img,.card .photo img,.creative .image img{object-position:center center!important}
}
@media(max-width:450px){
 .recipe-detail-photo{height:clamp(210px,66vw,270px);border-radius:14px;padding:7px}
 .card .photo{height:clamp(120px,34vw,170px)}
}
@media(prefers-reduced-motion:reduce){.photo img,.card .photo img{transition:none!important}}

/* RECEITAS E FICHAS: moldura exatamente 1:1 e imagem integral sem recortar.
   Aplicação restrita ao catálogo de receitas e à ficha técnica; não altera vitrines nem criativos. */
.recipe-catalog-card .photo{
  width:100%;
  aspect-ratio:1 / 1;
  height:auto!important;
  min-height:0;
  padding:7px;
  overflow:hidden;
}
.recipe-catalog-card .photo img{
  display:block;
  width:100%;
  height:100%;
  max-width:100%;
  max-height:100%;
  object-fit:contain!important;
  object-position:center!important;
  transform:none!important;
}
.recipe-detail-photo{
  aspect-ratio:1 / 1;
  width:100%;
  max-width:420px;
  height:auto!important;
  max-height:none;
  min-height:0;
  margin:0 auto 20px;
}
.recipe-detail-photo img{
  width:100%;
  height:100%;
  object-fit:contain!important;
  object-position:center!important;
}
@media(max-width:450px){
 .recipe-catalog-card .photo{height:auto!important;aspect-ratio:1 / 1}
 .recipe-detail-photo{height:auto!important;aspect-ratio:1 / 1;max-width:100%;margin:0 auto 16px}
}
