/* Roma Digitalis — object-specific restored illumination, 31 Oct 2026.
   The original artworks remain untouched. The coloured texture is derived from
   each existing portrait; the outer glow is applied AFTER its alpha mask. */

/* An outer wrapper makes the light bloom only from the selected sculpted object,
   rather than from the entire rectangular portrait. */
#cicero .art-glow-wrap,#virgil .art-glow-wrap{
  position:absolute;inset:0;pointer-events:none;z-index:3;
  opacity:var(--ignite);
  filter:drop-shadow(0 0 5px rgba(255,164,72,.9))
         drop-shadow(0 0 14px rgba(255,108,16,.75))
         drop-shadow(0 0 26px rgba(255,89,8,.35));
  will-change:opacity;
}
#cicero .art-glow-wrap .art-accent,#virgil .art-glow-wrap .art-accent{
  opacity:1!important;transform:none!important;z-index:1;
  -webkit-mask-size:contain;mask-size:contain;
  -webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;
  -webkit-mask-position:center bottom;mask-position:center bottom;
  -webkit-mask-mode:alpha;mask-mode:alpha;
  filter:grayscale(1) sepia(1) saturate(13)
         hue-rotate(-17deg) brightness(1.7) contrast(1.22);
}
/* Clasp for Cicero; hand-held parchment for Vergil. */
#cicero .art-glow-wrap .art-accent{
  -webkit-mask-image:url('/art-accents/cicero-brooch-mask.svg');
  mask-image:url('/art-accents/cicero-brooch-mask.svg');
}
#virgil .art-glow-wrap .art-accent{
  -webkit-mask-image:url('/art-accents/vergil-scroll-mask.svg');
  mask-image:url('/art-accents/vergil-scroll-mask.svg');
}
#cicero .art-base,#virgil .art-base{
  filter:grayscale(1) contrast(1.08) brightness(.78);
}
/* Keep the original Caesar artwork but restore the more dramatic, slightly
   laurel-cropped framing requested over the later zoom-out. */
#caesar .art-base,#caesar .art-accent{
  transform:scale(1.10);
  transform-origin:52% 63%;
}
/* The Augustus photograph has a true-black raster background against the site's
   near-black ink. Screen blending removes that rectangular black boundary,
   while edge feathering dissipates the cuirass at left/right and below. */
#augustus .art-visual{
  mix-blend-mode:screen;
  -webkit-mask-image:
    linear-gradient(to right,transparent 0%,#000 17%,#000 82%,transparent 100%),
    linear-gradient(to top,transparent 0%,#000 33%,#000 100%);
  mask-image:
    linear-gradient(to right,transparent 0%,#000 17%,#000 82%,transparent 100%),
    linear-gradient(to top,transparent 0%,#000 33%,#000 100%);
  -webkit-mask-composite:source-in;
  mask-composite:intersect;
}
@media(max-width:700px){
  #cicero .art-glow-wrap .art-accent,#virgil .art-glow-wrap .art-accent{
    -webkit-mask-position:center top;mask-position:center top;
  }
  #caesar .art-base,#caesar .art-accent{
    transform:scale(1.075);transform-origin:50% 40%;
  }
  #augustus .art-visual{
    -webkit-mask-image:
      linear-gradient(to right,transparent 0%,#000 10%,#000 90%,transparent 100%),
      linear-gradient(to top,transparent 0%,#000 31%,#000 100%);
    mask-image:
      linear-gradient(to right,transparent 0%,#000 10%,#000 90%,transparent 100%),
      linear-gradient(to top,transparent 0%,#000 31%,#000 100%);
  }
}
