/* Dimau glow kit, 1 Dec 2026 (Donovan: "Every image is to animate and expand, and all content is to light up when you hover over them").
   Shared file: the same bytes go into every Dimau app. dimau-glow.js tags the page; this file styles the tags.
   [data-dg]    a content photo: slow drift, grows and brightens on hover, opens full size on click/tap
   [data-dg-frame]  the photo's own box, clips the growth so it never spills over neighbours
   .dg-bg           a moving copy of a photo-card background (.pc boxes keep their words on top)
   [data-dg-glow]   a card, panel or box: lights up with a sky-blue glow on hover or keyboard focus
   .dg-box          the glass lightbox that shows a photo full size */

[data-dg-frame]{overflow:hidden}
[data-dg]{transition:scale .7s cubic-bezier(.2,.7,.2,1),filter .45s ease;transform-origin:50% 50%;will-change:transform;cursor:zoom-in;animation:dg-drift 16s ease-in-out infinite alternate}
[data-dg=link]{cursor:pointer}
[data-dg]:nth-of-type(2n){animation-duration:19s;animation-direction:alternate-reverse}
@keyframes dg-drift{from{transform:scale(1.02) translate3d(-.6%,-.4%,0)}to{transform:scale(1.07) translate3d(.6%,.5%,0)}}
[data-dg]:hover,[data-dg-glow]:hover [data-dg],[data-dg-frame]:hover [data-dg],a:focus-visible [data-dg]{scale:1.1;filter:brightness(1.1) saturate(1.12)}

.dg-bg{position:absolute;inset:0;z-index:-1;border-radius:inherit;pointer-events:none;
  background:linear-gradient(180deg,rgba(4,20,46,.48) 0%,rgba(4,20,46,.62) 45%,rgba(4,20,46,.84) 100%),var(--pc-img) center/cover no-repeat;
  transition:scale .8s cubic-bezier(.2,.7,.2,1),filter .45s ease;animation:dg-drift 18s ease-in-out infinite alternate}
:is(#pc#pc#pc,html) .pc.pc[data-dg-bg]{background:rgba(4,20,46,.55)!important}
.pc:hover>.dg-bg,.pc:focus-within>.dg-bg{scale:1.08;filter:brightness(1.14) saturate(1.1)}

[data-dg-glow]{transition:box-shadow .35s ease,border-color .35s ease,background-color .35s ease}
[data-dg-glow]:hover,[data-dg-glow]:focus-within{box-shadow:0 0 0 2px rgba(56,189,248,.9),0 0 34px 6px rgba(56,189,248,.55),0 24px 52px -18px rgba(14,116,184,.6)!important;border-color:rgba(56,189,248,.95)!important}
[data-dg-glow]:hover :is(h2,h3,h4,strong),[data-dg-glow]:focus-within :is(h2,h3,h4,strong){text-shadow:0 0 14px rgba(125,211,252,.55),0 1px 3px rgba(0,0,0,.25)}

.dg-box{position:fixed;inset:0;z-index:2147483000;display:grid;place-items:center;padding:24px;margin:0;width:100%;height:100%;max-width:none;max-height:none;border:0;
  background:rgba(4,20,46,.45);backdrop-filter:blur(18px) saturate(1.3);-webkit-backdrop-filter:blur(18px) saturate(1.3);opacity:0;transition:opacity .3s ease}
.dg-box::backdrop{background:transparent}
.dg-box.dg-open{opacity:1}
.dg-box figure{margin:0;max-width:min(1100px,94vw);border-radius:22px;padding:10px;background:rgba(255,255,255,.14);border:1px solid rgba(255,255,255,.35);
  box-shadow:0 0 40px rgba(56,189,248,.35),0 30px 80px -20px rgba(0,0,0,.6);transform:scale(.82);transition:transform .45s cubic-bezier(.2,.9,.25,1.15)}
.dg-box.dg-open figure{transform:scale(1)}
.dg-box img{display:block;max-width:100%;max-height:80vh;width:auto;height:auto;border-radius:14px;margin:auto}
.dg-box figcaption{color:#fff;font:500 15px/1.4 system-ui,sans-serif;padding:10px 6px 2px;text-align:center;text-shadow:0 1px 3px rgba(0,0,0,.5)}
html body .dg-box button.dg-x{position:absolute;padding:0!important;display:grid;place-items:center;top:16px;right:16px;width:44px;height:44px;border-radius:50%;border:1px solid rgba(255,255,255,.5);background:rgba(255,255,255,.2);color:#fff!important;font-size:26px!important;line-height:1;cursor:pointer;border-radius:50%!important;backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px)}
html body .dg-box button.dg-x:hover,html body .dg-box button.dg-x:focus-visible{background:rgba(255,255,255,.35);box-shadow:0 0 18px rgba(125,211,252,.7)}

@media (prefers-reduced-motion:reduce){
  [data-dg],.dg-bg{animation:none!important;transition:filter .3s ease;scale:1!important}
  [data-dg]:hover,[data-dg-frame]:hover [data-dg],[data-dg-glow]:hover [data-dg],.pc:hover>.dg-bg{scale:1}
  .dg-box,.dg-box figure{transition:none;transform:none}
}
html.dg-off [data-dg],html.dg-off .dg-bg{animation:none!important}
