
.engine-hidden{display:none!important}.results-meta{margin:0 0 1.25rem}.results-meta>div+div{margin-top:.45rem}.soprannome-note{margin-top:1rem;font-style:italic}.record-register-link{margin:1.6rem 0 .15rem}
.record-register-link .antenati-button{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:.42rem;
  min-height:2.75rem;
  padding:.65rem 1.1rem;
  color:#fff;
  background:var(--result-brown);
  border-radius:4px;
  font-weight:700;
  text-decoration:none;
  line-height:1.25;
}
.record-register-link .antenati-button:hover,
.record-register-link .antenati-button:focus-visible{
  background:#57301a;
}
@media(max-width:620px){
  .record-register-link .antenati-button{width:100%;text-align:center}
}.record-detail-toolbar{gap:.65rem;flex-wrap:wrap}.record-detail-toolbar .back-link{justify-content:center}


/* v17: restore the approved fixed-photo scrolling effect on result and complete-record pages. */
body.record-photo-page{position:relative;background:var(--result-brown);}
body.record-photo-page::before{content:"";position:fixed;z-index:-2;inset:0;background-color:var(--result-brown);background-image:linear-gradient(rgba(35,24,17,.10),rgba(35,24,17,.28)),var(--record-photo);background-position:center;background-size:cover;background-repeat:no-repeat;}
body.record-photo-page::after{content:"";position:fixed;z-index:-1;inset:0;background:linear-gradient(90deg,rgba(40,25,14,.10),rgba(40,25,14,.02) 55%,rgba(40,25,14,.12));pointer-events:none;}
body.record-photo-page .result-hero{background:transparent;}
body.record-photo-page .result-hero .result-photo{opacity:0;}
body.record-photo-page .results-surface,body.record-photo-page .record-detail-surface{background:rgba(244,241,235,.90);backdrop-filter:blur(1px);}
@media(max-width:760px){body.record-photo-page::before{background-position:center;background-size:cover;}body.record-photo-page .results-surface,body.record-photo-page .record-detail-surface{background:rgba(244,241,235,.93);}}

/* v20 visual refinements: preserve full portrait subjects without head-cropping.
   A full-height contained image sits over a softly darkened cover of the same photo. */
body.record-photo-page.record-photo-contain::before{
  background-image:var(--record-photo),linear-gradient(rgba(35,24,17,.24),rgba(35,24,17,.38)),var(--record-photo);
  background-position:center,center,center;
  background-size:auto 100svh,cover,cover;
  background-repeat:no-repeat,no-repeat,no-repeat;
}
@media(max-width:760px){body.record-photo-page.record-photo-contain::before{background-size:contain,cover,cover;}}

/* Layer 5B: Birth hero — preserve the full Braccia family portrait without duplicated side images. */
body.record-photo-page.birth-photo-preserve::before{
  background-color:#6b5542;
  background-image:linear-gradient(90deg,rgba(65,43,27,.34),rgba(65,43,27,.04) 18%,rgba(65,43,27,.04) 82%,rgba(65,43,27,.34)),var(--record-photo);
  background-position:center,center;
  background-size:100% 100%,auto 100svh;
  background-repeat:no-repeat,no-repeat;
}
@media(max-width:760px){
  body.record-photo-page.birth-photo-preserve::before{
    background-size:100% 100%,contain;
  }
}


/* Layer 5C revised: Complete Marriage Record — group photo left, couple right.
   The two-photo stage is fixed so the page retains the established scrolling/parallax behavior.
   Both photographs remain uncropped; on wide screens the title sits in the brown lower border. */
body.record-photo-page.marriage-photo-pair::before{
  background:#5f4938;
}
body.record-photo-page.marriage-photo-pair::after{
  background:linear-gradient(90deg,rgba(38,24,15,.12),rgba(38,24,15,.02) 52%,rgba(38,24,15,.10));
}
body.record-photo-page.marriage-photo-pair .marriage-pair-hero{
  min-height:100svh;
  display:block;
  overflow:visible;
  background:transparent;
}
body.record-photo-page.marriage-photo-pair .marriage-pair-stage{
  position:fixed;
  z-index:0;
  inset:0;
  display:grid;
  grid-template-columns:minmax(420px,1.28fr) minmax(250px,.72fr);
  gap:clamp(1.5rem,3.6vw,4rem);
  align-items:center;
  justify-content:center;
  padding:clamp(5.3rem,8vw,7rem) clamp(2rem,5.5vw,5.5rem) clamp(6.6rem,10vw,8rem);
  background:#5f4938;
  pointer-events:none;
}
body.record-photo-page.marriage-photo-pair .marriage-pair-stage::after{
  content:"";
  position:absolute;
  inset:0;
  z-index:-1;
  background:linear-gradient(90deg,rgba(63,44,30,.24),rgba(63,44,30,.06) 50%,rgba(63,44,30,.18));
}
body.record-photo-page.marriage-photo-pair .marriage-pair-frame{
  position:relative;
  overflow:hidden;
  background:#e8dcc6;
  border:clamp(7px,.7vw,11px) solid rgba(239,228,207,.92);
  box-shadow:0 18px 38px rgba(30,18,10,.34);
}
body.record-photo-page.marriage-photo-pair .marriage-pair-frame img{
  display:block;
  width:100%;
  height:100%;
  object-fit:contain;
}
body.record-photo-page.marriage-photo-pair .marriage-pair-wedding{
  justify-self:end;
  width:min(100%,61vw,860px);
  max-height:calc(100svh - 13rem);
  aspect-ratio:593/376;
  transform:rotate(-.35deg);
}
body.record-photo-page.marriage-photo-pair .marriage-pair-couple{
  justify-self:start;
  width:min(100%,31vw,440px);
  max-height:calc(100svh - 13rem);
  aspect-ratio:1342/2004;
  transform:rotate(.35deg);
}
body.record-photo-page.marriage-photo-pair .result-hero-copy{
  z-index:2;
  padding-bottom:clamp(2.1rem,3.8vw,3.6rem);
}
body.record-photo-page.marriage-photo-pair .record-detail-surface{
  position:relative;
  z-index:3;
}
@media(max-width:900px){
  body.record-photo-page.marriage-photo-pair .marriage-pair-hero{min-height:100svh;}
  body.record-photo-page.marriage-photo-pair .marriage-pair-stage{
    grid-template-columns:1fr;
    grid-template-rows:minmax(0,.82fr) minmax(0,1.18fr);
    gap:1rem;
    padding:5.3rem 1.15rem 5.4rem;
  }
  body.record-photo-page.marriage-photo-pair .marriage-pair-wedding{
    justify-self:center;
    width:min(90vw,650px);
    max-height:38svh;
  }
  body.record-photo-page.marriage-photo-pair .marriage-pair-couple{
    justify-self:center;
    width:min(68vw,350px);
    max-height:46svh;
  }
  body.record-photo-page.marriage-photo-pair .result-hero-copy{
    padding:5rem 1.15rem 2.5rem;
    background:linear-gradient(0deg,rgba(63,44,30,.72),transparent 38%);
  }
}

/* Layer 5C solo revision: Complete Marriage Record — one centered couple photograph.
   The image stage remains fixed to preserve the established scrolling/parallax behavior.
   The full photograph is kept intact and given prominence without cropping the couple. */
body.record-photo-page.marriage-photo-solo::before{
  background:#5f4938;
}
body.record-photo-page.marriage-photo-solo::after{
  background:linear-gradient(90deg,rgba(38,24,15,.12),rgba(38,24,15,.02) 52%,rgba(38,24,15,.10));
}
body.record-photo-page.marriage-photo-solo .marriage-solo-hero{
  min-height:100svh;
  display:block;
  overflow:visible;
  background:transparent;
}
body.record-photo-page.marriage-photo-solo .marriage-solo-stage{
  position:fixed;
  z-index:0;
  inset:0;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:clamp(5.1rem,7vw,6.5rem) clamp(1.2rem,4vw,4rem) clamp(6.4rem,9vw,7.6rem);
  background:#5f4938;
  pointer-events:none;
}
body.record-photo-page.marriage-photo-solo .marriage-solo-stage::after{
  content:"";
  position:absolute;
  inset:0;
  z-index:-1;
  background:linear-gradient(90deg,rgba(63,44,30,.20),rgba(63,44,30,.04) 50%,rgba(63,44,30,.20));
}
body.record-photo-page.marriage-photo-solo .marriage-solo-frame{
  width:min(88vw,1180px);
  max-height:calc(100svh - 11.8rem);
  aspect-ratio:3/2;
  overflow:hidden;
  background:#e8dcc6;
  border:clamp(7px,.7vw,11px) solid rgba(239,228,207,.92);
  box-shadow:0 18px 38px rgba(30,18,10,.34);
}
body.record-photo-page.marriage-photo-solo .marriage-solo-frame img{
  display:block;
  width:100%;
  height:100%;
  object-fit:contain;
  object-position:center;
}
body.record-photo-page.marriage-photo-solo .result-hero-copy{
  z-index:2;
  padding-bottom:clamp(2.1rem,3.8vw,3.6rem);
}
body.record-photo-page.marriage-photo-solo .record-detail-surface{
  position:relative;
  z-index:3;
}
@media(max-width:900px){
  body.record-photo-page.marriage-photo-solo .marriage-solo-stage{
    padding:5.2rem 1rem 5.5rem;
  }
  body.record-photo-page.marriage-photo-solo .marriage-solo-frame{
    width:min(94vw,760px);
    max-height:calc(100svh - 10.7rem);
  }
  body.record-photo-page.marriage-photo-solo .result-hero-copy{
    padding:5rem 1.15rem 2.5rem;
    background:linear-gradient(0deg,rgba(63,44,30,.72),transparent 38%);
  }
}


/* Layer 5D: Death Page 2 — Campanile hero.
   Preserve the complete vertical photograph, avoid duplicated side images,
   and retain the established fixed-photo scrolling/parallax behavior. */
body.record-photo-page.death-photo-campanile::before{
  background-color:#5f4938;
  background-image:linear-gradient(90deg,rgba(52,35,23,.24),rgba(52,35,23,.04) 32%,rgba(52,35,23,.04) 68%,rgba(52,35,23,.24)),var(--record-photo);
  background-position:center,center;
  background-size:100% 100%,auto 96svh;
  background-repeat:no-repeat,no-repeat;
}
body.record-photo-page.death-photo-campanile::after{
  background:linear-gradient(90deg,rgba(38,24,15,.14),rgba(38,24,15,0) 36%,rgba(38,24,15,0) 64%,rgba(38,24,15,.14));
}
@media(max-width:760px){
  body.record-photo-page.death-photo-campanile::before{
    background-size:100% 100%,contain;
  }
}


/* Layer 5E: Complete Death Record — preserve more of the former Death Page 2 image,
   but crop slightly tighter so the white outer photo edges do not show. */
body.record-photo-page.death-complete-preserve::before{
  background-color:#5b4636;
  background-image:
    linear-gradient(90deg,rgba(49,32,22,.22),rgba(49,32,22,.03) 30%,rgba(49,32,22,.03) 70%,rgba(49,32,22,.22)),
    var(--record-photo);
  background-position:center,center;
  background-size:100% 100%,auto 104svh;
  background-repeat:no-repeat,no-repeat;
}
body.record-photo-page.death-complete-preserve::after{
  background:linear-gradient(90deg,rgba(38,24,15,.12),rgba(38,24,15,0) 36%,rgba(38,24,15,0) 64%,rgba(38,24,15,.12));
}
@media(max-width:760px){
  body.record-photo-page.death-complete-preserve::before{
    background-size:100% 100%,auto 102svh;
    background-position:center,center;
  }
}


/* Layer 5F: Complete Birth Record — approved enhanced musicians photo.
   Single centered image; no duplicated side photograph; fixed scrolling/parallax retained. */
body.record-photo-page.birth-complete-musicians::before{
  background-color:#5f4938;
  background-image:linear-gradient(rgba(35,24,17,.08),rgba(35,24,17,.20)),var(--record-photo);
  background-position:center,center;
  background-size:100% 100%,cover;
  background-repeat:no-repeat,no-repeat;
}
body.record-photo-page.birth-complete-musicians::after{
  background:linear-gradient(90deg,rgba(40,25,14,.08),rgba(40,25,14,0) 45%,rgba(40,25,14,.08));
}
@media(max-width:760px){
  body.record-photo-page.birth-complete-musicians::before{
    background-size:100% 100%,cover;
    background-position:center,center;
  }
}
