/* Real-photo screens: same featured title, text placement, and gradient
   as #thanksgiving-guide, #ice-teem, and #holiday-checkup. The real photo
   stays whole and sharp at natural/1.25, never cropped, never stacked,
   with no blurred copy behind it. If it cannot fill the featured frame
   sharply, it remains centered on #0f1f12.
   Does not touch the cover, featured AI art, the Photo Memories
   slideshow, Grace Notes, the bio, music, the Back pill, or the
   magazine back-cover frame. */

#welcome.page,
#resources.page,
#news.page,
#connect.page,
#archive.page,
#support.page{
  --fh-feat-band:clamp(260px,48svh,520px);
  --fh-photo-h:min(var(--fh-avail-h), calc(var(--fh-avail-w) * var(--fh-nat-h) / var(--fh-nat-w)));
  --fh-disp-w:min(var(--fh-avail-w), calc(var(--fh-photo-h) * var(--fh-nat-w) / var(--fh-nat-h)));
  --fh-band:min(max(var(--fh-feat-band), var(--fh-photo-h)), calc(100svh - var(--fh-hdr) - 8px));
}

#welcome.page::after,
#resources.page::after,
#news.page::after,
#connect.page::after,
#archive.page::after,
#support.page::after{
  left:0!important;
  right:0!important;
  width:100%!important;
  max-width:none!important;
  height:var(--fh-band)!important;
  max-height:var(--fh-band)!important;
  margin-left:0!important;
  margin-right:0!important;
  background-size:var(--fh-disp-w) var(--fh-photo-h)!important;
  background-repeat:no-repeat!important;
  background-position:50% 50%!important;
  background-color:#0f1f12!important;
  -webkit-mask-image:none!important;
  mask-image:none!important;
}

#welcome .page-body,
#resources .page-body,
#news .page-body,
#connect .page-body,
#archive .page-body,
#support .page-body{
  padding-top:calc(var(--fh-band) * .94)!important;
  background:linear-gradient(180deg,transparent 0,transparent calc(var(--fh-band) * .82),rgba(12,28,16,.66) calc(var(--fh-band) * .92),rgba(12,28,16,.66) 100%)!important;
}

/* Keep the sharp photo clear; start the veil where the featured text gradient begins. */
#welcome .veil,
#resources .veil,
#news .veil,
#connect .veil,
#archive .veil,
#support .veil{
  top:calc(var(--fh-band) * .82)!important;
}

/* Standalone authentic issue pages (not Photo Memories). */
html body.fh-auth-full:not(.fh-pm-page){
  --fh-feat-band:clamp(260px,48svh,520px);
  --fh-photo-h:min(var(--fh-avail-h), calc(var(--fh-avail-w) * var(--fh-nat-h) / var(--fh-nat-w)));
  --fh-disp-w:min(var(--fh-avail-w), calc(var(--fh-photo-h) * var(--fh-nat-w) / var(--fh-nat-h)));
  --fh-band:min(max(var(--fh-feat-band), var(--fh-photo-h)), calc(100svh - var(--fh-hdr) - 8px));
}

html body.fh-auth-full:not(.fh-pm-page) .photo-gap{
  width:100%!important;
  max-width:none!important;
  height:var(--fh-band)!important;
  max-height:var(--fh-band)!important;
  margin-left:0!important;
  margin-right:0!important;
  background-size:var(--fh-disp-w) var(--fh-photo-h)!important;
  background-repeat:no-repeat!important;
  background-position:50% 50%!important;
  background-color:#0f1f12!important;
  -webkit-mask-image:none!important;
  mask-image:none!important;
}

html body.fh-auth-full:not(.fh-pm-page) .photo-gap + .page-body{
  margin-top:calc(var(--fh-band) * -1)!important;
  padding-top:calc(var(--fh-band) * .94)!important;
  background:linear-gradient(180deg,transparent 0,transparent calc(var(--fh-band) * .82),rgba(12,28,16,.66) calc(var(--fh-band) * .92),rgba(12,28,16,.66) 100%)!important;
  position:relative;
  z-index:2;
  -webkit-backdrop-filter:none!important;
  backdrop-filter:none!important;
}

html body.fh-auth-full:not(.fh-pm-page) .photo-gap + .page-body p,
html body.fh-auth-full:not(.fh-pm-page) .photo-gap + .page-body li{
  text-shadow:0 1px 3px rgba(0,0,0,.85),0 2px 14px rgba(0,0,0,.7);
}
html body.fh-auth-full:not(.fh-pm-page) .photo-gap + .page-body h2,
html body.fh-auth-full:not(.fh-pm-page) .photo-gap + .page-body h3{
  text-shadow:0 1px 2px rgba(0,0,0,.75),0 0 22px rgba(0,0,0,.45);
}

/* Standalone issue pages use a side-anchored gold-bordered panel (pb-left /
   pb-right). For the featured treatment, center that column like the magazine
   featured screens and drop the border so it does not cut through the photo. */
html body.fh-auth-full:not(.fh-pm-page) article.page{
  max-width:none!important;
  width:100%!important;
}
html body.fh-auth-full:not(.fh-pm-page) .photo-gap + .page-body,
html body.fh-auth-full:not(.fh-pm-page) .photo-gap + .page-body.pb-right,
html body.fh-auth-full:not(.fh-pm-page) .photo-gap + .page-body.pb-left{
  margin-left:auto!important;
  margin-right:auto!important;
  max-width:860px!important;
  width:auto!important;
  border:0!important;
  box-shadow:none!important;
  border-radius:0 0 18px 18px!important;
  -webkit-backdrop-filter:none!important;
  backdrop-filter:none!important;
}
