<!-- Bilder -->
<div class="mod mbxxl">
    <div class="inner">
        <div class="bd">

            <details>
                <summary class="r-margin clickable h5">Standard 4:3 image format</summary>
                <pre><code>{{{example-1}}}</code></pre>
            </details>

            <p>By default the image fills either the full width or height of the container without cropping, centered both horizontally and vertically.</p>
            <div class="line">
                <div class="unit size1of3">
                    <figure class="r-margin">
                        <div class="format4by3 bg-sardine">
                            <img class="centered-image" src="dist/img/dummies/spade-510x384.jpg" title="510 x 384 pixels">
                        </div>
                        <figcaption>Standard 4:3 image</figcaption>
                    </figure>
                </div>
                <div class="unit size1of3">
                    <figure class="r-margin">
                        <div class="format4by3 bg-sardine">
                            <img class="centered-image" src="dist/img/dummies/spade-341x510.jpg" title="341 x 510 pixels">
                        </div>
                        <figcaption>Portrait image</figcaption>
                    </figure>
                </div>
                <div class="unit size1of3">
                    <figure class="r-margin">
                        <div class="format4by3 bg-sardine">
                            <img class="centered-image" src="dist/img/dummies/spade-510x287.jpg" title="510 x 287 pixels">
                        </div>
                        <figcaption>Wider landscape image</figcaption>
                    </figure>
                </div>
            </div>

            <h2>Aspect ratios</h2>
            <details>
                <summary class="r-margin clickable h5">Widescreen 16:9 image format</summary>
                <pre><code>{{{example-2}}}</code></pre>
            </details>

            <p>Sets the relative width and height of the image container.</p>
            <div class="mll mrl">
                <table class="outerborder">
                    <thead>
                        <tr>
                            <th>Ratio</th>
                            <th>Description</th>
                        </tr>
                    </thead>
                    <tbody>
                        <tr>
                            <th scope="row"><code>.format1by1</code></th>
                            <td>Square format (equal sides).</td>
                        </tr>
                        <tr>
                            <th scope="row"><code>.format4by3</code></th>
                            <td>Standard mobile and digital camera format.</td>
                        </tr>
                        <tr>
                            <th scope="row"><code>.format3by2</code></th>
                            <td>Professional camera format.</td>
                        </tr>
                        <tr>
                            <th scope="row"><code>.format16by9</code></th>
                            <td>Widescreen format intended for images that span the full width of the page.</td>
                        </tr>
                        <tr>
                            <th scope="row"><code>.format2by1</code></th>
                            <td>Even wider format.</td>
                        </tr>
                    </tbody>
                </table>
            </div>

            <h2>Responsive helpers</h2>
            <details>
                <summary class="r-margin clickable h5">16:9 on desktop, 3:2 on mobile</summary>
                <pre><code>{{{example-3}}}</code></pre>
            </details>

            <p>Applies image formats depending on screen size.</p>
            <p class="mal">
                <strong>lt</strong> = less than
            </p>
            <div class="r-margin">
                <table class="outerborder">
                    <tr>
                        <td><code>.format1by1-lt768</code></td>
                        <td>Format 1:1 <strong>under</strong> 768px</td>
                    </tr>
                    <tr>
                        <td><code>.format4by3-lt768</code></td>
                        <td>Format 4:3 <strong>under</strong> 768px</td>
                    </tr>
                    <tr>
                        <td><code>.format3by2-lt768</code></td>
                        <td>Format 3:2 <strong>under</strong> 768px</td>
                    </tr>
                    <tr>
                        <td><code>.format16by9-lt768</code></td>
                        <td>Format 16:9 <strong>under</strong> 768px</td>
                    </tr>
                    <tr>
                        <td><code>.format2by1-lt768</code></td>
                        <td>Format 2:1 <strong>under</strong> 768px</td>
                    </tr>
                </table>
            </div>

            <h2>Cropping</h2>
            <details>
                <summary class="r-margin clickable h5">Horizontal cropping</summary>
                <pre><code>{{{example-4}}}</code></pre>
            </details>

            <p>Cropping applied to an image possibly wider than its container, filling the height and cropped on the sides.</p>
            <div class="line">
                <div class="unit size1of3">
                    <figure class="r-margin">
                        <div class="format4by3 bg-sardine">
                            <img class="centered-image" src="dist/img/dummies/spade-510x287.jpg" title="510 x 287 pixels">
                        </div>
                        <figcaption>Original</figcaption>
                    </figure>
                </div>
                <div class="unit size1of3">
                    <figure class="r-margin">
                        <div class="format4by3 bg-sardine">
                            <img class="centered-image crop-horizontal" src="dist/img/dummies/spade-510x287.jpg" title="510 x 287 pixels">
                        </div>
                        <figcaption>Cropped</figcaption>
                    </figure>
                </div>
            </div>
            <hr>
            <details>
                <summary class="r-margin clickable h5">Vertical cropping</summary>
                <pre><code>{{{example-5}}}</code></pre>
            </details>

            <p>Cropping applied to an image possibly higher than its container, filling the width and cropped top and bottom.</p>
            <div class="line">
                <div class="unit size1of3">
                    <figure class="r-margin">
                        <div class="format4by3 bg-sardine">
                            <img class="centered-image" src="dist/img/dummies/spade-341x510.jpg" title="341 x 510 pixels">
                        </div>
                        <figcaption>Original</figcaption>
                    </figure>
                </div>
                <div class="unit size1of3">
                    <figure class="r-margin">
                        <div class="format4by3 bg-sardine">
                            <img class="centered-image crop-vertical" src="dist/img/dummies/spade-341x510.jpg" title="341 x 510 pixels">
                        </div>
                        <figcaption>Cropped</figcaption>
                    </figure>
                </div>
            </div>
        </div>
    </div>
</div>
