.wa-loading {
    position: absolute;
    width: 100%;
    left:0;right:0;top:0;bottom:0;
    background-color: rgba(0,0,0,0.2);
    border-radius: 3px;
    z-index: 100;
    display: block;

    opacity: 1;
    animation-name: wa-loading;
    animation-iteration-count: 1;
    animation-timing-function: ease-in;
    animation-duration: 0.3s;
}

@keyframes wa-loading {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

@-webkit-keyframes wa-spin {
    from {-webkit-transform:rotate(0deg);}
    to {-webkit-transform:rotate(360deg);}
}

@keyframes wa-spin {
    from {transform:rotate(0deg);}
    to {transform:rotate(360deg);}
}

.wa-loading::after {
    content:'';
    display:block;
    position:absolute;
    left:calc(50% - 20px);top:calc(50% - 20px);
    width:40px;height:40px;
    border-style:solid;
    border-color:black;
    border-top-color:transparent;
    border-width: 4px;
    border-radius:50%;
    -webkit-animation: wa-spin .8s linear infinite;
    animation: wa-spin .8s linear infinite;
}


.wa-loading-inline {
    position: absolute;
    width: 100%;
    left:0;right:0;top:0;bottom:0;
    background-color: rgba(0,0,0,0.2);
    border-radius: 3px;
    z-index: 100;
    display: block;

    opacity: 1;
    animation-name: wa-loading;
    animation-iteration-count: 1;
    animation-timing-function: ease-in;
    animation-duration: 0.3s;
}

.wa-loading-inline::after {
    content:'';
    display:block;
    position:absolute;
    left:calc(50% - 20px);top:calc(50% - 20px);
    width:40px;height:40px;
    border-style:solid;
    border-color:black;
    border-top-color:transparent;
    border-width: 4px;
    border-radius:50%;
    -webkit-animation: wa-spin .8s linear infinite;
    animation: wa-spin .8s linear infinite;
}

.wa-aspect-ratio-box-before {
    width: 1px;
    margin-left: -1px;
    float: left;
    height: 0;
}
.wa-aspect-ratio-box {
    border: solid 1px black;
}
.wa-aspect-ratio-box-after {
    display: table;
    clear: both;
}