/* HP3DX - layout 1:1. O fundo é a própria foto ampliada e desfocada.
   Não há margens, padding visual, faixas vazias ou bordas em volta da foto. */
.hp3dx-media-square {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  isolation: isolate;
  background: #dce2e3;
  border-radius: inherit;
}
.hp3dx-media-square__background {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(28px);
  transform: scale(1.2);
  pointer-events: none;
  z-index: 0;
}
.hp3dx-media-square::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(145deg, rgba(255,255,255,.12), rgba(29,44,54,.12));
  z-index: 1;
  pointer-events: none;
}
.hp3dx-media-square__foreground {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 0;
  z-index: 2;
}
/* Capas 1:1 e composições WebP pré-processadas: ocupar 100% do quadrado. */
.hp3dx-media-square--cover .hp3dx-media-square__foreground {
  object-fit: cover;
}
/* Foto retangular não pré-composta: foreground inteiro + fundo ampliado.
   O container permanece visualmente cheio, sem margens brancas. */
.hp3dx-media-square--detail { border-radius: 12px; }
@media (prefers-reduced-motion: reduce) {
  .hp3dx-media-square, .hp3dx-media-square * { transition: none !important; }
}
