<div class="uk-section uk-height-viewport uk-flex uk-flex-middle">
    <div class="uk-container">

        <div uk-margin>
            <a class="uk-button uk-button-default" href="#modal-1" uk-toggle>Open</a>
            <a class="uk-button uk-button-default uk-margin-small-top" href="#modal-2" uk-toggle>Close outside</a>
            <a class="uk-button uk-button-default uk-margin-small-top" href="#modal-full-split" uk-toggle>Full</a>
            <a class="uk-button uk-button-default uk-margin-small-top" href="#modal-nobody" uk-toggle>Center</a>
        </div>

        <div id="modal-1" uk-modal>
            <div class="uk-modal-dialog">
                <button class="uk-modal-close-default" type="button" uk-close></button>
                <div class="uk-modal-header">
                    <h2 class="uk-modal-title">Header</h2>
                </div>
                <div class="uk-modal-body">
                    <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
                </div>
                <div class="uk-modal-footer uk-text-right">
                    <button class="uk-button uk-button-default uk-modal-close" type="button">Cancel</button>
                    <a href="#modal-2" class="uk-button uk-button-primary" uk-toggle>Next</a>
                </div>
                <div class="uk-modal-caption">Caption</div>
            </div>
        </div>

        <div id="modal-2" uk-modal>
            <div class="uk-modal-dialog">
                <button class="uk-modal-close-outside" type="button" uk-close></button>
                <div class="uk-modal-header">
                    <h2 class="uk-modal-title">Header</h2>
                </div>
                <div class="uk-modal-body">
                    <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
                </div>
                <div class="uk-modal-footer uk-text-right">
                    <button class="uk-button uk-button-default uk-modal-close" type="button">Cancel</button>
                    <a href="#modal-1" class="uk-button uk-button-default" uk-toggle>Previous</a>
                    <a href="#modal-full-split" class="uk-button uk-button-primary" uk-toggle>Next</a>
                </div>
                <div class="uk-modal-caption">Close outside</div>
            </div>
        </div>

        <div id="modal-full-split" class="uk-modal-full" uk-modal>
            <div class="uk-modal-dialog">
                <button class="uk-modal-close-full" type="button" uk-close></button>
                <div class="uk-grid-collapse uk-child-width-1-2@s uk-flex-middle" uk-grid>
                    <div class="uk-background-cover test-img" uk-height-viewport></div>
                    <div class="uk-padding-large">
                        <h1>Headline</h1>
                        <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
                        <p class="uk-margin-medium">
                            <button class="uk-button uk-button-default uk-modal-close" type="button">Cancel</button>
                            <a href="#modal-1" class="uk-button uk-button-default" uk-toggle>Previous</a>
                            <a href="#modal-nobody" class="uk-button uk-button-primary" uk-toggle>Next</a>
                        </p>
                    </div>
                </div>
            </div>
        </div>

        <div id="modal-nobody" uk-modal="center: true">
            <div class="uk-modal-dialog">
                <button class="uk-modal-close-outside" type="button" uk-close></button>
                <canvas width="900" height="600" class="test-img"></canvas>
                <div class="uk-modal-caption">Center <a href="#modal-full-split" uk-toggle>Previous</a></div>
            </div>
        </div>
</p>
    </div>
</div>
