/*
 * Phones (the public layout has a viewport tag since 2026-11). Many templates put Bootstrap rows
 * outside a .container, or text straight into a row without columns, which only worked while phones
 * showed the desktop page zoomed out: the rows' negative side margins then push the content past the
 * screen edge (sideways scrolling, text touching the edge). Below Bootstrap's sm breakpoint the rows
 * keep no negative margins, so every column and loose row content stays at least 15px from the edge.
 */

/* Home page: the photo-of-the-month archive button, a quarter of the width on the right (as it always was). */
.potm-archive-link {
    float: right;
    width: 25%;
}

@media (max-width: 767px) {
    .row {
        margin-left: 0;
        margin-right: 0;
    }

    /* Long words (e.g. a web address in a heading on the links page) wrap instead of widening the page. */
    h1, h2, h3, h4, p, li, a {
        overflow-wrap: break-word;
    }

    /* The archive button: the full width, where a quarter is too narrow for its label. */
    .potm-archive-link {
        float: none;
        width: auto;
    }
}
