/* ==========================================================================
   AJNA SIGNATURE FRAMES — arched-window image treatment (replaces the half-moon crop)
   Loaded by ajna-footer.php. Scoped to .aj-arch; safe fallbacks if unsupported.
   ========================================================================== */
body .aj-arch,
body .e-con.aj-split .aj-split__media .aj-arch{
  position:relative; isolation:isolate;
  width:min(100%,540px)!important; max-width:540px!important;
  height:auto!important; aspect-ratio:4/5!important;
  margin-inline:auto; margin-block:18px 8px;
  border-radius:999px 999px 30px 30px!important;
  overflow:visible!important;
}
body .aj-arch .elementor-widget-container,
body .aj-arch figure,
body .aj-arch a{display:block;width:100%;height:100%;margin:0;border-radius:inherit}
body .aj-arch img{
  width:100%!important; height:100%!important; object-fit:cover; object-position:center 42%;
  border-radius:999px 999px 30px 30px!important; display:block;
  box-shadow:0 38px 70px -34px rgba(8,12,9,.55);
  transition:transform 1.4s cubic-bezier(.2,.7,.2,1), filter .8s;
}
/* gold offset outline behind the arch */
body .aj-arch::before{
  content:""; position:absolute; z-index:-1; inset:-14px -16px 16px 16px;
  border:1px solid var(--aj-gold,#b08850); opacity:.75;
  border-radius:999px 999px 34px 34px; transition:transform .9s cubic-bezier(.2,.7,.2,1), opacity .6s;
  pointer-events:none;
}
/* second hairline arch, further out, very faint (depth) */
body .aj-arch::after{
  content:"\25C6"; position:absolute; z-index:2; right:-22px; bottom:42px;
  width:88px; height:88px; border-radius:50%; display:grid; place-items:center;
  font-size:15px; line-height:1; color:var(--aj-gold,#b08850);
  background:var(--aj-ivory,#f7f3ec);
  box-shadow:0 0 0 1px var(--aj-gold,#b08850) inset, 0 0 0 7px var(--aj-ivory,#f7f3ec) inset, 0 0 0 8px rgba(176,136,80,.55) inset, 0 14px 30px -14px rgba(0,0,0,.45);
  pointer-events:none;
}
.aj-section--dark .aj-arch::after,
.aj-section--forest .aj-arch::after,
body .e-con[class*="--dark"] .aj-arch::after{
  background:var(--aj-ink,#0b0b0a);
  box-shadow:0 0 0 1px var(--aj-gold,#b08850) inset, 0 0 0 7px var(--aj-ink,#0b0b0a) inset, 0 0 0 8px rgba(176,136,80,.55) inset, 0 14px 30px -14px rgba(0,0,0,.6);
}
/* alternate: arch on the right side of a split mirrors its outline + seal to the other side */
body .e-con.aj-split--rev .aj-arch::before,
body .aj-split__media--right .aj-arch::before{inset:-14px 16px 16px -16px}
body .e-con.aj-split--rev .aj-arch::after,
body .aj-split__media--right .aj-arch::after{right:auto;left:-22px}
@media (hover:hover){
  body .aj-arch:hover img{transform:scale(1.045)}
  body .aj-arch:hover::before{transform:translate(-6px,6px);opacity:1}
}
/* slow ring rotation on the seal (decorative) */
@media (prefers-reduced-motion:no-preference){
  body .aj-arch::after{animation:ajSealPulse 7s ease-in-out infinite}
  @keyframes ajSealPulse{0%,100%{transform:translateY(0)}50%{transform:translateY(-8px)}}
}
@media (max-width:899px){
  body .aj-arch,body .e-con.aj-split .aj-split__media .aj-arch{width:min(100%,440px)!important;margin-block:10px 6px;border-radius:999px 999px 24px 24px!important}
  body .aj-arch img{border-radius:999px 999px 24px 24px!important}
  body .aj-arch::before{inset:-10px -10px 10px 10px;border-radius:999px 999px 28px 28px}
  body .aj-arch::after{width:68px;height:68px;right:-8px;bottom:30px;font-size:13px}
}
.aj-arch--round{aspect-ratio:1/1!important;border-radius:50%!important}
.aj-arch--round img,.aj-arch--round::before{border-radius:50%!important}
