/* Narrow, centered layout — theme overlay for PrivateBin's bootstrap5 template.
 *
 * Restores the feel of the old bootstrap3 template, which used
 * <div class="container"> (fixed, centered) instead of container-fluid.
 *
 * Bootstrap 3's ladder was 750 / 970 / 1170 px; this reproduces it exactly.
 * Mobile (< 768 px) is untouched and stays full width.
 *
 * Install as:  css/narrow.css
 * Linked from: tpl/narrow.php  (a copy of tpl/bootstrap5.php + one <link>)
 * Selected by: cfg/conf.php  ->  template = "narrow"
 *
 * The stock tpl/bootstrap5.php and css/bootstrap5/* are never modified, so
 * "template = "bootstrap5"" is always a working fallback. After a PrivateBin
 * upgrade, re-create tpl/narrow.php from the new bootstrap5.php and re-add the
 * <link> for this file.
 */

@media (min-width: 768px) {
    .container-fluid {
        max-width: 750px;
        margin-left: auto;
        margin-right: auto;
    }
}

@media (min-width: 992px) {
    .container-fluid {
        max-width: 970px;
        margin-left: auto;
        margin-right: auto;
    }
}

@media (min-width: 1200px) {
    .container-fluid {
        max-width: 1170px;
        margin-left: auto;
        margin-right: auto;
    }
}

/* Keep long unbroken paste text inside the narrower column. */
#message,
#replymessage {
    max-width: 100%;
}

/* The header/navbar spans the full viewport width — only the content column
 * is constrained. Higher specificity than the .container-fluid rules above,
 * so no !important is needed. */
.navbar .container-fluid {
    max-width: none;
    margin-left: 0;
    margin-right: 0;
}
