/* Komponen bersama: kerangka foto selama foto dimuat (V54). Kelasnya dipasang oleh image-skeleton.js di folder ini.
   Kotak --leaf-wash (warna tempat foto, styling guide §9.13) yang berdenyut pelan ke --leaf-tint; diam bila sistem meminta
   gerak dikurangi, kecuali ?gerak=1 (html.nk-gerak). */
/* :root and the doubled class outrank the photo rules of the components (e.g. .tk-mozaik img{background:…}) without
   !important; the state only lasts while the photo loads */
:root img.nk-kerangka.nk-kerangka,:root img.nk-kerangka--galat.nk-kerangka--galat{background-color:var(--leaf-wash)}
:root [data-tema="gelap"] img:is(.nk-kerangka,.nk-kerangka--galat){background-color:#334037}   /* dark photo dialogs: the dark placeholder of §9.13 */
/* the pulse changes the background colour, not opacity: an opacity animation would override photos that are hidden on
   purpose (opacity:0, e.g. the second Tim pose). A colour change on a few boxes for a moment costs only paint */
@keyframes nk-kerangka{50%{background-color:var(--leaf-tint)}}
@keyframes nk-kerangka-gelap{50%{background-color:#2E3A32}}
@media (prefers-reduced-motion:no-preference){
  :root img.nk-kerangka.nk-kerangka{animation:nk-kerangka 1.5s var(--ease-in-out) infinite}
  :root [data-tema="gelap"] img.nk-kerangka.nk-kerangka{animation-name:nk-kerangka-gelap}
}
html.nk-gerak img.nk-kerangka.nk-kerangka{animation:nk-kerangka 1.5s var(--ease-in-out) infinite}
html.nk-gerak [data-tema="gelap"] img.nk-kerangka.nk-kerangka{animation-name:nk-kerangka-gelap}
/* the photo has arrived: it fades in (500 ms, the same fade as the homepage Tim people; 300 ms with reduced motion, still
   a fade). Only from opacity 0, so a photo hidden on purpose (opacity:0) stays hidden */
@keyframes nk-kerangka-masuk{from{opacity:0}}
:root img.nk-kerangka--masuk{animation:nk-kerangka-masuk .5s ease both}   /* --dur-3 */
@media (prefers-reduced-motion:reduce){
  html:not(.nk-gerak) img.nk-kerangka--masuk{animation-duration:.3s}   /* --dur-2 */
}
/* ?kerangka=1 / ?kerangka=putar (review only): the photo is drawn as an empty picture so its skeleton shows, even after it has loaded; like a
   photo that is still loading, it keeps only the size its width/height or CSS give it */
html.nk-kerangka-tahan img.nk-kerangka.nk-kerangka{content:linear-gradient(transparent,transparent)}
