
/* --------------------------------
File#: _1_skeleton
-------------------------------- */
:root {
    /* colors */
    --sw2-color-primary-hsl: 250, 84%, 54%;
    --sw2-color-bg-hsl: 0, 0%, 100%;
    --sw2-color-contrast-high-hsl: 230, 7%, 23%;
    --sw2-color-contrast-higher-hsl: 230, 13%, 9%;
    --sw2-color-contrast-lower-hsl: 240, 4%, 85%;

    --ske-animation-duration: 1s;
    --ske-radius: 0.25em;
}

.ske {
    position: relative;
    background-color: hsla(var(--sw2-color-contrast-higher-hsl), 0.1);
    overflow: hidden;
}
.ske::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, hsla(var(--sw2-color-contrast-higher-hsl), 0), hsla(var(--sw2-color-contrast-higher-hsl), 0.1), hsla(var(--sw2-color-contrast-higher-hsl), 0));
    background-repeat: no-repeat;
    background-size: 500px 100%;
    background-position: -500px 0;
    will-change: background-position;
    -webkit-animation: ske-background var(--ske-animation-duration) infinite;
    animation: ske-background var(--ske-animation-duration) infinite;
}

@-webkit-keyframes ske-background {
    from {
        background-position: -500px 0;
    }
    to {
        background-position: calc(100% + 500px) 0;
    }
}

@keyframes ske-background {
    from {
        background-position: -500px 0;
    }
    to {
        background-position: calc(100% + 500px) 0;
    }
}
.ske--circle {
    height: 0;
    padding-bottom: 100%;
    border-radius: 50%;
    -webkit-clip-path: circle(50% at 50% 50%);
    clip-path: circle(50% at 50% 50%);
}

.ske--rect,
[class*=ske--rect-],
.ske--square {
    border-radius: var(--ske-radius);
    -webkit-clip-path: inset(0% 0% 0% 0% round var(--ske-radius));
    clip-path: inset(0% 0% 0% 0% round var(--ske-radius));
}

[class*=ske--rect-],
.ske--square {
    height: 0;
    padding-bottom: calc(100%/(var(--ske-aspect-ratio)));
}

.ske--rect-16\:9 {
    --ske-aspect-ratio: 16/9;
}

.ske--rect-4\:3 {
    --ske-aspect-ratio: 4/3;
}

.ske--square, .ske--rect-1\:1 {
    --ske-aspect-ratio: 1/1;
}

.ske--text {
    height: 1em;
    border-radius: var(--ske-radius);
    -webkit-clip-path: inset(0% 0% 0% 0% round var(--ske-radius));
    clip-path: inset(0% 0% 0% 0% round var(--ske-radius));
}
.ske img{
    opacity: 0;
    visibility: hidden;
}
img.loaded{
    opacity: 1;
    transition: opacity 1s ease-in-out;
    visibility: visible;
}
