/* AVIF art direction: the picture wrapper does not create a new layout box. */
.rmh-responsive-photo { display:contents; }


/* Restaurar los hero de fichas tras envolver la fotografía en <picture>.
   La regla antigua usa .page-hero--photo > .page-hero__bg y ya no coincide. */
.page-hero--photo { position: relative; isolation: isolate; }
/* El picture es una capa absoluta; no modifica la altura del hero. */
.page-hero--photo > picture.rmh-responsive-photo { 
  position:absolute;inset:0;display:block;width:100%;height:100%;z-index:0;
}
.page-hero--photo picture.rmh-responsive-photo > img.page-hero__bg {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: .37;
  filter: saturate(.75);
  z-index: 0;
  pointer-events: none;
}
.page-hero--photo::after { z-index: 0; pointer-events: none; }
.page-hero--photo > .container { position:relative; z-index:1; }
