/**
 * ==========================================================
 * MURI DIGITAL HISTORICAL MUSEUM & ARCHIVES
 * LOCAL BOOTSTRAP FOUNDATION
 * ==========================================================
 *
 * File:
 * /includes/bootstrap.css
 *
 * PURPOSE:
 * ----------------------------------------------------------
 * Bootstrap-compatible local foundation used by the
 * Muri Digital Historical Museum.
 *
 * NOTE:
 * ----------------------------------------------------------
 * This file provides the Bootstrap layout/utilities required
 * by the museum interface. Museum-specific styling belongs in:
 *
 * /includes/theme.css
 * /assets/css/museum.css
 *
 * ==========================================================
 */

/* ==========================================================
   ROOT
   ========================================================== */

:root {
    --bs-primary: #123c32;
    --bs-primary-rgb: 18, 60, 50;

    --bs-secondary: #6f4b2b;
    --bs-secondary-rgb: 111, 75, 43;

    --bs-success: #123c32;
    --bs-success-rgb: 18, 60, 50;

    --bs-warning: #c89b3c;
    --bs-warning-rgb: 200, 155, 60;

    --bs-light: #f7f1e4;
    --bs-dark: #071b16;

    --bs-body-font-family:
        "Poppins",
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    --bs-body-color: #24342f;
    --bs-body-bg: #ffffff;

    --bs-border-color: #e5dfd2;

    --bs-link-color: #123c32;
    --bs-link-hover-color: #c89b3c;
}


/* ==========================================================
   RESET
   ========================================================== */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--bs-body-font-family);
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.6;
    color: var(--bs-body-color);
    background: var(--bs-body-bg);
    -webkit-text-size-adjust: 100%;
    -webkit-tap-highlight-color: transparent;
}

img,
svg {
    vertical-align: middle;
}

img {
    max-width: 100%;
    height: auto;
}

button,
input,
select,
textarea {
    font-family: inherit;
}


/* ==========================================================
   TYPOGRAPHY
   ========================================================== */

h1,
h2,
h3,
h4,
h5,
h6 {
    margin-top: 0;
    margin-bottom: .5rem;
    font-family:
        "Playfair Display",
        Georgia,
        serif;
    font-weight: 700;
    line-height: 1.2;
    color: #123c32;
}

p {
    margin-top: 0;
    margin-bottom: 1rem;
}

a {
    color: var(--bs-link-color);
    text-decoration: none;
}

a:hover {
    color: var(--bs-link-hover-color);
}


/* ==========================================================
   CONTAINER
   ========================================================== */

.container {
    width: 100%;
    padding-right: calc(1.5rem * .5);
    padding-left: calc(1.5rem * .5);
    margin-right: auto;
    margin-left: auto;
}

@media (min-width: 576px) {

    .container {
        max-width: 540px;
    }

}

@media (min-width: 768px) {

    .container {
        max-width: 720px;
    }

}

@media (min-width: 992px) {

    .container {
        max-width: 960px;
    }

}

@media (min-width: 1200px) {

    .container {
        max-width: 1140px;
    }

}

@media (min-width: 1400px) {

    .container {
        max-width: 1320px;
    }

}


/* ==========================================================
   ROW
   ========================================================== */

.row {
    --bs-gutter-x: 1.5rem;
    --bs-gutter-y: 0;

    display: flex;
    flex-wrap: wrap;

    margin-top: calc(-1 * var(--bs-gutter-y));
    margin-right: calc(-.5 * var(--bs-gutter-x));
    margin-left: calc(-.5 * var(--bs-gutter-x));
}

.row > * {
    flex-shrink: 0;
    width: 100%;
    max-width: 100%;
    padding-right: calc(var(--bs-gutter-x) * .5);
    padding-left: calc(var(--bs-gutter-x) * .5);
    margin-top: var(--bs-gutter-y);
}


/* ==========================================================
   COLUMNS
   ========================================================== */

.col {
    flex: 1 0 0%;
}

.col-auto {
    flex: 0 0 auto;
    width: auto;
}

.col-12 {
    flex: 0 0 auto;
    width: 100%;
}

@media (min-width: 576px) {

    .col-sm-6 {
        flex: 0 0 auto;
        width: 50%;
    }

}

@media (min-width: 768px) {

    .col-md-4 {
        flex: 0 0 auto;
        width: 33.33333333%;
    }

    .col-md-6 {
        flex: 0 0 auto;
        width: 50%;
    }

    .col-md-8 {
        flex: 0 0 auto;
        width: 66.66666667%;
    }

    .col-md-12 {
        flex: 0 0 auto;
        width: 100%;
    }

}

@media (min-width: 992px) {

    .col-lg-3 {
        flex: 0 0 auto;
        width: 25%;
    }

    .col-lg-4 {
        flex: 0 0 auto;
        width: 33.33333333%;
    }

    .col-lg-5 {
        flex: 0 0 auto;
        width: 41.66666667%;
    }

    .col-lg-6 {
        flex: 0 0 auto;
        width: 50%;
    }

    .col-lg-7 {
        flex: 0 0 auto;
        width: 58.33333333%;
    }

    .col-lg-8 {
        flex: 0 0 auto;
        width: 66.66666667%;
    }

    .col-lg-9 {
        flex: 0 0 auto;
        width: 75%;
    }

    .col-lg-12 {
        flex: 0 0 auto;
        width: 100%;
    }

}


/* ==========================================================
   DISPLAY
   ========================================================== */

.d-none {
    display: none !important;
}

.d-block {
    display: block !important;
}

.d-flex {
    display: flex !important;
}

@media (min-width: 992px) {

    .d-lg-none {
        display: none !important;
    }

    .d-lg-block {
        display: block !important;
    }

    .d-lg-flex {
        display: flex !important;
    }

}


/* ==========================================================
   FLEX
   ========================================================== */

.flex-column {
    flex-direction: column !important;
}

.flex-row {
    flex-direction: row !important;
}

.flex-wrap {
    flex-wrap: wrap !important;
}

.justify-content-center {
    justify-content: center !important;
}

.justify-content-between {
    justify-content: space-between !important;
}

.justify-content-end {
    justify-content: flex-end !important;
}

.align-items-center {
    align-items: center !important;
}

.align-items-start {
    align-items: flex-start !important;
}

.align-items-end {
    align-items: flex-end !important;
}

.ms-auto {
    margin-left: auto !important;
}

.ms-2 {
    margin-left: .5rem !important;
}

.me-2 {
    margin-right: .5rem !important;
}

.mb-0 {
    margin-bottom: 0 !important;
}

.mb-1 {
    margin-bottom: .25rem !important;
}

.mb-2 {
    margin-bottom: .5rem !important;
}

.mb-3 {
    margin-bottom: 1rem !important;
}

.mb-4 {
    margin-bottom: 1.5rem !important;
}

.mb-5 {
    margin-bottom: 3rem !important;
}

.mt-3 {
    margin-top: 1rem !important;
}

.mt-4 {
    margin-top: 1.5rem !important;
}

.mt-5 {
    margin-top: 3rem !important;
}


/* ==========================================================
   NAVBAR FOUNDATION
   ========================================================== */

.navbar {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;

    padding-top: .5rem;
    padding-bottom: .5rem;
}

.navbar > .container {
    display: flex;
    flex-wrap: inherit;
    align-items: center;
    justify-content: space-between;
}

.navbar-brand {
    padding-top: .3125rem;
    padding-bottom: .3125rem;
    margin-right: 1rem;
    font-size: 1.25rem;
    text-decoration: none;
    white-space: nowrap;
}

.navbar-toggler {
    padding: .25rem .75rem;
    font-size: 1.25rem;
    line-height: 1;
    background: transparent;
    border: 1px solid transparent;
    border-radius: .375rem;
}

.navbar-toggler:hover {
    text-decoration: none;
}

.navbar-toggler:focus {
    text-decoration: none;
    outline: 0;
    box-shadow: 0 0 0 .25rem rgba(200, 155, 60, .25);
}

.navbar-collapse {
    flex-basis: 100%;
    flex-grow: 1;
    align-items: center;
}

.navbar-nav {
    display: flex;
    flex-direction: column;
    padding-left: 0;
    margin-bottom: 0;
    list-style: none;
}

.nav-item {
    list-style: none;
}

.nav-link {
    display: block;
    padding: .5rem 0;
    font-weight: 500;
    color: inherit;
    text-decoration: none;
}

.nav-link:hover,
.nav-link:focus {
    color: #c89b3c;
}

@media (min-width: 992px) {

    .navbar-expand-lg {
        flex-wrap: nowrap;
        justify-content: flex-start;
    }

    .navbar-expand-lg .navbar-nav {
        flex-direction: row;
    }

    .navbar-expand-lg .navbar-nav .nav-link {
        padding-right: .5rem;
        padding-left: .5rem;
    }

    .navbar-expand-lg .navbar-collapse {
        display: flex !important;
        flex-basis: auto;
    }

    .navbar-expand-lg .navbar-toggler {
        display: none;
    }

}


/* ==========================================================
   NAVBAR TOGGLER
   ========================================================== */

.navbar-toggler-icon {
    display: inline-block;
    width: 1.5em;
    height: 1.5em;

    background-image:
        url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28200,155,60,1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");

    background-repeat: no-repeat;
    background-position: center;
    background-size: 100%;
}


/* ==========================================================
   STICKY
   ========================================================== */

.sticky-top {
    position: sticky;
    top: 0;
    z-index: 1020;
}


/* ==========================================================
   BUTTONS
   ========================================================== */

.btn {
    display: inline-block;

    padding: .65rem 1.2rem;

    font-family: var(--bs-body-font-family);
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.5;

    text-align: center;
    vertical-align: middle;

    cursor: pointer;

    border: 1px solid transparent;
    border-radius: .5rem;

    transition:
        color .15s ease-in-out,
        background-color .15s ease-in-out,
        border-color .15s ease-in-out,
        box-shadow .15s ease-in-out,
        transform .15s ease-in-out;
}

.btn:hover {
    text-decoration: none;
}

.btn-primary {
    color: #fff;
    background-color: #123c32;
    border-color: #123c32;
}

.btn-primary:hover {
    color: #fff;
    background-color: #0d2d25;
    border-color: #0d2d25;
}

.btn-light {
    color: #123c32;
    background-color: #f7f1e4;
    border-color: #f7f1e4;
}

.btn-outline-primary {
    color: #123c32;
    border-color: #123c32;
    background: transparent;
}

.btn-outline-primary:hover {
    color: #fff;
    background-color: #123c32;
    border-color: #123c32;
}


/* ==========================================================
   FORMS
   ========================================================== */

.form-control,
.form-select {

    display: block;

    width: 100%;

    padding: .7rem .9rem;

    font-family: var(--bs-body-font-family);
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;

    color: #24342f;
    background-color: #fff;

    border: 1px solid #d8d1c4;
    border-radius: .5rem;

    appearance: none;

    transition:
        border-color .15s ease-in-out,
        box-shadow .15s ease-in-out;
}

.form-control:focus,
.form-select:focus {

    color: #24342f;
    background-color: #fff;

    border-color: #c89b3c;

    outline: 0;

    box-shadow:
        0 0 0 .2rem rgba(200, 155, 60, .15);
}

.form-control::placeholder {
    color: #8a928e;
    opacity: 1;
}


/* ==========================================================
   CARD
   ========================================================== */

.card {

    position: relative;

    display: flex;
    flex-direction: column;

    min-width: 0;

    word-wrap: break-word;

    background-color: #fff;

    background-clip: border-box;

    border: 1px solid rgba(0, 0, 0, .08);

    border-radius: .75rem;
}

.card-body {
    flex: 1 1 auto;
    padding: 1.5rem;
}

.card-title {
    margin-bottom: .75rem;
}


/* ==========================================================
   BADGES
   ========================================================== */

.badge {

    display: inline-block;

    padding: .35em .65em;

    font-size: .75em;
    font-weight: 700;

    line-height: 1;

    color: #fff;

    text-align: center;
    white-space: nowrap;

    vertical-align: baseline;

    border-radius: .375rem;
}

.bg-primary {
    background-color: #123c32 !important;
}

.bg-dark {
    background-color: #071b16 !important;
}

.bg-light {
    background-color: #f7f1e4 !important;
}


/* ==========================================================
   TEXT
   ========================================================== */

.text-center {
    text-align: center !important;
}

.text-start {
    text-align: left !important;
}

.text-end {
    text-align: right !important;
}

.text-white {
    color: #fff !important;
}

.text-muted {
    color: #6c757d !important;
}

.text-primary {
    color: #123c32 !important;
}

.text-warning {
    color: #c89b3c !important;
}


/* ==========================================================
   WIDTH / HEIGHT
   ========================================================== */

.w-100 {
    width: 100% !important;
}

.h-100 {
    height: 100% !important;
}


/* ==========================================================
   POSITION
   ========================================================== */

.position-relative {
    position: relative !important;
}

.position-absolute {
    position: absolute !important;
}

.top-0 {
    top: 0 !important;
}

.bottom-0 {
    bottom: 0 !important;
}

.start-0 {
    left: 0 !important;
}

.end-0 {
    right: 0 !important;
}


/* ==========================================================
   OVERFLOW
   ========================================================== */

.overflow-hidden {
    overflow: hidden !important;
}


/* ==========================================================
   ROUNDED
   ========================================================== */

.rounded {
    border-radius: .5rem !important;
}

.rounded-3 {
    border-radius: .75rem !important;
}

.rounded-pill {
    border-radius: 50rem !important;
}


/* ==========================================================
   SHADOW
   ========================================================== */

.shadow {
    box-shadow:
        0 .5rem 1rem rgba(0, 0, 0, .08) !important;
}

.shadow-sm {
    box-shadow:
        0 .125rem .25rem rgba(0, 0, 0, .075) !important;
}


/* ==========================================================
   OFFCANVAS
   ========================================================== */

.offcanvas {

    position: fixed;

    bottom: 0;

    z-index: 1045;

    display: flex;

    flex-direction: column;

    max-width: 100%;

    visibility: hidden;

    background-color: #fff;

    background-clip: padding-box;

    outline: 0;

    transition:
        transform .3s ease-in-out,
        visibility .3s ease-in-out;
}

.offcanvas-end {

    top: 0;
    right: 0;

    width: 400px;

    border-left: 1px solid rgba(0, 0, 0, .12);

    transform: translateX(100%);
}

.offcanvas.show {

    visibility: visible;

    transform: none;
}

.offcanvas-header {

    display: flex;

    align-items: center;

    justify-content: space-between;

    padding: 1rem 1rem;
}

.offcanvas-body {

    flex-grow: 1;

    padding: 1rem;

    overflow-y: auto;
}

.btn-close {

    box-sizing: content-box;

    width: 1em;
    height: 1em;

    padding: .25em;

    color: #000;

    background:
        transparent
        url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath d='M.293.293a1 1 0 011.414 0L8 6.586 14.293.293a1 1 0 111.414 1.414L9.414 8l6.293 6.293a1 1 0 01-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 01-1.414-1.414L6.586 8 .293 1.707a1 1 0 010-1.414z'/%3e%3c/svg%3e")
        center / 1em auto
        no-repeat;

    border: 0;

    border-radius: .375rem;

    opacity: .5;
}

.btn-close-white {
    filter: invert(1) grayscale(100%) brightness(200%);
}


/* ==========================================================
   OFFCANVAS BACKDROP
   ========================================================== */

.offcanvas-backdrop {

    position: fixed;

    top: 0;
    left: 0;

    z-index: 1040;

    width: 100vw;
    height: 100vh;

    background-color: #000;
}

.offcanvas-backdrop.show {
    opacity: .5;
}


/* ==========================================================
   RESPONSIVE
   ========================================================== */

@media (max-width: 991.98px) {

    .navbar-collapse {
        display: none !important;
    }

    .navbar-expand-lg .navbar-toggler {
        display: block;
    }

}

@media (max-width: 575.98px) {

    .container {
        padding-right: 1rem;
        padding-left: 1rem;
    }

    .offcanvas-end {
        width: min(88vw, 380px);
    }

}


/* ==========================================================
   ACCESSIBILITY
   ========================================================== */

:focus-visible {

    outline: 3px solid rgba(200, 155, 60, .7);

    outline-offset: 3px;
}


/* ==========================================================
   REDUCED MOTION
   ========================================================== */

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {

        scroll-behavior: auto !important;

        transition-duration: .01ms !important;

        animation-duration: .01ms !important;

        animation-iteration-count: 1 !important;

    }

}