/* Responsive and small-screen fixes layered on top of custom.css / responsive.css / k-style.css */

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { overflow-x: hidden; }
img, video, iframe, embed, object { max-width: 100%; }
img { height: auto; }
table { max-width: 100%; }

/* Long URLs / e-mail addresses must wrap instead of overflowing */
p, li, td, .footer a { overflow-wrap: break-word; word-wrap: break-word; }

@media (max-width: 767px) {
    /* Inline content photos: full width instead of a squeezed float */
    .img-left, .img-right { float: none !important; display: block; margin: 0 auto 16px !important; }

    /* Wide data tables (phone numbers etc.) scroll sideways inside the page */
    .table, table.table-bordered { display: block; width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }

    /* Readable body copy instead of stretched justified lines */
    p[align="justify"], div[align="justify"], .text-justify { text-align: left !important; }

    /* Map embeds keep a usable height */
    iframe[src*="google.com/maps"] { width: 100% !important; min-height: 280px; }
}
