/* V4.12: composição realmente diferente para as grelhas fotográficas.
   O conteúdo (etiquetas, títulos e descrições) permanece HTML acessível,
   nunca incorporado nas fotografias. Só atinge secções .wm48-gallery-section.
*/
body.wmv3 .wm48-gallery-section{padding-block:28px!important;}
body.wmv3 .wm48-gallery-section .retail-fit-grid{
  display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;
  grid-auto-rows:250px!important;align-items:stretch!important;gap:12px!important;
  margin-top:17px!important;
}
body.wmv3 .wm48-gallery-section .retail-fit-grid > .retail-fit-card{
  position:relative!important;display:block!important;isolation:isolate;
  min-width:0!important;width:100%!important;height:250px!important;min-height:0!important;
  padding:0!important;overflow:hidden!important;background:#13233a!important;
  border:0!important;border-radius:17px!important;
  box-shadow:0 8px 20px rgba(13,29,50,.13)!important;
}
body.wmv3 .wm48-gallery-section .retail-fit-grid > .retail-fit-card > img{
  position:absolute!important;inset:0!important;display:block!important;z-index:0!important;
  width:100%!important;height:100%!important;max-height:none!important;min-height:0!important;
  object-fit:cover!important;object-position:center 29%!important;
  margin:0!important;padding:0!important;border:0!important;border-radius:0!important;
  aspect-ratio:auto!important;transform:none!important;
}
body.wmv3 .wm48-gallery-section .retail-fit-grid > .retail-fit-card::before{
  content:"";position:absolute;inset:0;z-index:1;pointer-events:none;
  background:linear-gradient(to top,rgba(5,16,31,.98) 0%,rgba(5,16,31,.95) 32%,rgba(7,19,36,.48) 63%,rgba(6,22,35,.0) 90%)!important;
}
body.wmv3 .wm48-gallery-section .retail-fit-grid > .retail-fit-card > .retail-fit-body{
  position:absolute!important;z-index:2!important;bottom:0!important;left:0!important;right:0!important;
  display:grid!important;grid-template-columns:minmax(0,1fr)!important;
  grid-template-rows:15px 32px minmax(0,1fr)!important;align-items:start!important;
  row-gap:4px!important;box-sizing:border-box!important;
  width:100%!important;height:120px!important;min-height:0!important;
  margin:0!important;padding:10px 15px 15px!important;
  background:transparent!important;flex:none!important;color:#fff!important;
}
body.wmv3 .wm48-gallery-section .retail-fit-grid .retail-fit-body small,
body.wmv3 .wm48-gallery-section .retail-fit-grid .retail-fit-body h3,
body.wmv3 .wm48-gallery-section .retail-fit-grid .retail-fit-body p{
  margin:0!important;padding:0!important;max-height:none!important;min-height:0!important;
  white-space:normal!important;overflow-wrap:break-word!important;hyphens:auto;
  color:#fff!important;text-shadow:0 1px 3px rgba(0,0,0,.25);
}
body.wmv3 .wm48-gallery-section .retail-fit-grid .retail-fit-body small{
  color:#ffac81!important;font-weight:800!important;font-size:10px!important;
  line-height:14px!important;letter-spacing:.07em!important;text-transform:uppercase!important;
}
body.wmv3 .wm48-gallery-section .retail-fit-grid .retail-fit-body h3{
  font-size:17px!important;line-height:1.19!important;letter-spacing:-.025em!important;
  font-weight:750!important;
}
body.wmv3 .wm48-gallery-section .retail-fit-grid .retail-fit-body p{
  font-size:12px!important;line-height:1.28!important;color:#ecf0f8!important;
}
@media(hover:hover){
 body.wmv3 .wm48-gallery-section .retail-fit-grid > .retail-fit-card:hover > img{transform:scale(1.03)!important;transition:transform .4s ease;}
}
@media(min-width:901px){
  body.wmv3 .wm48-gallery-section .retail-fit-grid:has(> :nth-child(6)){
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
  }
}
@media(max-width:900px){
 body.wmv3 .wm48-gallery-section .retail-fit-grid{
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  grid-auto-rows:234px!important;gap:12px!important;
 }
 body.wmv3 .wm48-gallery-section .retail-fit-grid > .retail-fit-card{height:234px!important;}
}
@media(max-width:620px){
 body.wmv3 .wm48-gallery-section{padding-block:24px!important;}
 body.wmv3 .wm48-gallery-section .retail-fit-grid{
   grid-template-columns:repeat(2,minmax(0,1fr))!important;
   grid-auto-rows:216px!important;gap:10px!important;margin-top:14px!important;
 }
 body.wmv3 .wm48-gallery-section .retail-fit-grid > .retail-fit-card{
   height:216px!important;border-radius:14px!important;
 }
 body.wmv3 .wm48-gallery-section .retail-fit-grid > .retail-fit-card > .retail-fit-body{
   padding:11px 11px 12px!important;height:133px!important;
   grid-template-rows:14px 34px minmax(0,1fr)!important;row-gap:3px!important;
 }
 body.wmv3 .wm48-gallery-section .retail-fit-grid .retail-fit-body small{font-size:9px!important;line-height:12px!important;}
 body.wmv3 .wm48-gallery-section .retail-fit-grid .retail-fit-body h3{font-size:14px!important;line-height:1.15!important;}
 body.wmv3 .wm48-gallery-section .retail-fit-grid .retail-fit-body p{font-size:11px!important;line-height:1.22!important;}
}
/* Short, single-line card titles: use the recovered space for the photo instead of blank padding. */
body.wmv3 .wm48-gallery-section .retail-fit-grid.wm11-short-title-grid > .retail-fit-card > .retail-fit-body{
 height:101px!important;grid-template-rows:15px 25px minmax(0,1fr)!important;
}
@media(max-width:620px){
 body.wmv3 .wm48-gallery-section .retail-fit-grid.wm11-short-title-grid > .retail-fit-card > .retail-fit-body{
   height:103px!important;grid-template-rows:14px 24px minmax(0,1fr)!important;
 }
}
@media(max-width:360px){
 body.wmv3 .wm48-gallery-section .retail-fit-grid{
  grid-template-columns:1fr!important;grid-auto-rows:188px!important;
 }
 body.wmv3 .wm48-gallery-section .retail-fit-grid > .retail-fit-card{height:188px!important;}
 body.wmv3 .wm48-gallery-section .retail-fit-grid > .retail-fit-card > .retail-fit-body{
   height:108px!important;grid-template-rows:14px 27px minmax(0,1fr)!important;
 }
}

/* Preserve zoom button in the top-right corner while overlay remains a separate ::before layer. */
body.wmv3 .wm48-gallery-section .retail-photo-zoom::after{
 content:""!important;position:absolute!important;top:10px!important;right:10px!important;
 bottom:auto!important;left:auto!important;width:32px!important;height:32px!important;
 z-index:4!important;background-color:rgba(7,17,31,.62)!important;
}
