/* PRIGLO 118 — native scrolling and compact 3D motion on touch screens.
   Keep actual section content, 3D scene effects, photo-gallery controls intact. */
@media (max-width:780px) and (pointer:coarse) {
  .bt-invite, .bt-invite .invite-body, .bt-invite .bt-track,
  .bt-invite .bt-viewport, .bt-invite .bt-perspective,
  .bt-invite .bt-scene, .bt-invite .bt-content,
  .bt-invite .bt-hero, .bt-invite .bt-hero-heading,
  .bt-invite .bt-hero-portal, .bt-invite .bt-hero-image,
  .bt-invite .bt-photo-crop, .bt-invite .bt-photo-crop img,
  .bt-invite .bt-hero-bottom, .bt-invite .bt-recipient,
  .ip-invite, .ip-invite .invite-body, .ip-invite .ip-track,
  .ip-invite .ip-viewport, .ip-invite .ip-perspective,
  .ip-invite .ip-scene, .ip-invite .ip-content,
  .ip-invite .ip-hero, .ip-invite .ip-portrait-object,
  .ip-invite .ip-portrait, .ip-invite .ip-image-crop,
  .ip-invite .ip-image-crop img, .ip-invite .ip-hero-copy {
    touch-action:pan-y pinch-zoom !important;
  }
  /* Transforms on the sticky scrollport may impede Safari touch hit-testing;
     the inner perspective still supplies the existing cinematic depth. */
  .bt-live .bt-viewport, .ip-live .ip-viewport {
    transform:none !important;
    -webkit-backface-visibility:visible !important;
    backface-visibility:visible !important;
  }
  .bt-invite .bt-hero-image, .bt-invite .bt-photo-crop img,
  .ip-invite .ip-portrait, .ip-invite .ip-image-crop img {
    -webkit-user-drag:none;
  }
  .bt-invite .bt-photo-glint, .bt-invite .bt-photo-shadow,
  .ip-invite .ip-portrait-aura, .ip-invite .ip-portrait-edge {
    pointer-events:none !important;
  }
}
/* The envelope icon is a luminous ivory line ON the gold wax itself.
   No opaque badge, ellipse or other image backing is added. */
.ti-opening.ti-opening--ivory .ti-ivory-envelope-emblem__icon {
  fill:none !important;
  stroke:#fff9e7 !important;
  stroke-width:4.9 !important;
  stroke-linecap:round !important;
  stroke-linejoin:round !important;
  vector-effect:non-scaling-stroke;
  filter:drop-shadow(0 1px 1px rgba(85,48,8,.7)) drop-shadow(0 0 2px rgba(255,245,205,.75));
  transform-box:fill-box;
  transform-origin:center;
}
.ti-opening.ti-opening--ivory:not(.ti-opening--active) .ti-ivory-envelope-emblem__icon {
  animation:priglo-ivory-envelope-wiggle 2.5s ease-in-out infinite !important;
}
@keyframes priglo-ivory-envelope-wiggle {
  0%, 100% {transform:translateX(0) rotate(0deg)}
  8%, 26% {transform:translateX(-2px) rotate(-11deg)}
  17%, 36% {transform:translateX(2px) rotate(11deg)}
  46%, 80% {transform:translateX(0) rotate(0deg)}
}
.ti-opening.ti-opening--ivory.ti-opening--active .ti-ivory-envelope-emblem__icon {
  animation:none !important;
}
@media (prefers-reduced-motion:reduce) {
 .ti-opening.ti-opening--ivory .ti-ivory-envelope-emblem__icon {animation:none !important;}
}
