// =====================================
// @include aspect-ratio(4, 3);
// =====================================
@mixin aspect-ratio($width, $height) {
    position: relative;

    &:before {
        display: block;
        width: 100%;
        padding-top: calc($height / $width) * 100%;

        background-color: transparentize(#373d45, .9);

        content: "";
    }

    > img,
    > picture {
        position: absolute;
        top: 0;
        right: 0;
        bottom: 0;
        left: 0;
    }
}