/* Static repeated section titles, rasterized once for consistent typography. */
.graphic-background-text[data-heading] > .moving-type {
  animation:none!important;
  will-change:auto!important;
}
.graphic-background-text.heading-loop,
.about-marquee .marquee-core.heading-loop {
  width:auto!important;
  overflow:hidden!important;
  animation:none!important;
  will-change:auto!important;
}
.about-marquee .marquee-core.heading-loop { width:100%!important; transform:none!important; position:relative; }
.heading-tile {
  position:absolute;
  top:0;
  display:flex;
  align-items:center;
  width:max-content;
  padding-right:var(--heading-gap,0px);
  white-space:nowrap;
  animation:none!important;
  transform:translateX(var(--heading-offset,0px));
  will-change:auto!important;
}
.heading-loop .heading-raster { display:block; flex:none; max-width:none; object-fit:contain; }

/* About retains its own seamless, compositor-only marquee. */
@keyframes about-title-loop {
  from {transform:translate3d(var(--heading-offset,0px),0,0)}
  to {transform:translate3d(calc(var(--heading-offset,0px) - var(--about-period)),0,0)}
}
.about-marquee .heading-tile {
  animation:about-title-loop var(--about-duration,12s) linear infinite!important;
  will-change:transform!important;
}
@media(prefers-reduced-motion:reduce) {
  .about-marquee .heading-tile {animation:none!important;will-change:auto!important}
}
/* A final unpaired card stays centred at its usual size on narrow screens. */
@media(max-width:700px) {
  .portfolio-unified .gallery-stage[data-gallery-count="7"] .gallery-item:last-child {
    grid-column:1 / -1!important;
    width:calc((100% - 12px) / 2)!important;
    justify-self:center!important;
    margin-top:0!important;
  }
}
