/* animations */

.animation_container {
    display: none;
    margin: 1rem auto;
    position: relative;
    overflow: hidden;
}

.anim-preload-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    display: flex;
    width: 100%;
    height: 100%;
    justify-content: center;
    align-items: center;
}
.anim-preload-wrapper img {
    max-width: 480px; /* smallest possible value in 2-column layout */
}

.animation_container.small {
    background-color: rgba(255, 255, 255, 1.00);
    width: 350px;
    height: 470px
}

.animation_container.large {
    background-color: rgba(255, 255, 255, 1.00);
    /*width: 600px;*/
    height: 400px
}

.animation_container canvas {
    position: absolute;
    display: block;
    background-color: rgba(255, 255, 255, 1.00);
}

.animation_container .dom_overlay_container {
    pointer-events: none;
    overflow: hidden;
    position: absolute;
    left: 0px;
    top: 0px;
    display: block;
}

.animation_container.small .dom_overlay_container {
    width: 350px;
    height: 470px;
}

.animation_container.large .dom_overlay_container {
    width: 600px;
    height: 400px;
}

/* matching ".img-box li .sources-link" in main.css */

.animation_container .sources-link.interactive {
    position: absolute;
    top: -12px;
    right: -12px;
    font-size: 1.25rem;
}

.animation_container .caption.interactive {
    position: absolute;
    bottom: -20px;
    left: 0;
}

@media (max-width: 599px) {
    .animation_container.small {
        display: block;
        margin-bottom: 30px;
    }
}

@media (min-width: 600px) {
    .animation_container.large {
        display: block;
        margin-bottom: 30px;
    }
}

/* Test */
#diag_meta .animation_container {
    /*display: block;*/
}