/* Additions for the static rebuild: breakpoint toggles, the slider and cleaned-up markup. */

img {
    height: auto;
}

.bg-dark {
    background-color: #333333;
}
.bg-light {
    background-color: #f5f6fa;
}
.on-dark {
    color: #ffffff;
}
.text-olive {
    color: #808000;
}
.text-black {
    color: #000000;
}

/* Menu subheadings: an olive box with white text and an offset olive frame, like the bread slide. */
.menu-heading {
    display: table;
    position: relative;
    margin: 2.5em auto 1.5em;
    padding: .3em 1.25em;
    font-size: 1.25em;
    background-color: rgba(128, 128, 0, .85);
    color: #ffffff;
}
.menu-heading::before {
    content: '';
    position: absolute;
    inset: -8px;
    border: 1px solid #808000;
}

/* With the 1.3em padding under the paragraph above, this puts 2em on both sides of the rule. */
.content hr {
    margin: .7em 0 2em;
}
.content hr:first-child {
    margin-top: 0;
}
.content hr:last-child {
    margin-bottom: 0;
}

.same-height {
    position: relative;
}
.about-heading {
    margin-top: 1.5em;
}

.slider,
.banner {
    max-width: 1920px;
    margin: 0 auto;
}
.banner img {
    display: block;
    width: 100%;
}

.feature-img {
    padding-bottom: 3.7em;
}

.footer-contact {
    display: flex;
    justify-content: space-between;
    gap: 2em;
}
.footer-contact .contact-item {
    margin-bottom: 20px;
}

#navToggle {
    padding: 0;
    border: 0;
    border-radius: 0;
    background: none;
    box-shadow: none;
    line-height: 1;
}

/* Slider */
.slider {
    position: relative;
}
.slider-viewport {
    overflow: hidden;
}
.slider-track {
    display: flex;
    margin: 0;
    padding: 0;
    list-style: none;
    transition: transform 1s;
}
.slider-track li {
    flex: 0 0 100%;
    padding: 0;
}
.slider-track img {
    display: block;
    width: 100%;
}
.slider-prev,
.slider-next {
    position: absolute;
    bottom: 60px;
    z-index: 1;
    width: 31px;
    height: 61px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent url('/assets/images/layout/controls.png') no-repeat;
    box-shadow: none;
    text-indent: -9999px;
    overflow: hidden;
}
.slider-prev:hover,
.slider-next:hover,
.slider-prev:active,
.slider-next:active {
    background-color: transparent;
    box-shadow: none;
}
.slider-prev {
    left: 0;
    background-position: 0 0;
}
.slider-prev:hover {
    background-position: 0 -61px;
}
.slider-next {
    right: 0;
    background-position: -31px 0;
}
.slider-next:hover {
    background-position: -31px -61px;
}

@media (min-width: 768px) {
    .mobile.menu {
        display: none;
    }
    .slider-track img,
    .banner img {
        max-height: clamp(400px, calc(21.7vw + 30px), 447px);
        object-fit: cover;
    }
    .slider-track .slide-text-left,
    .slider-track .slide-text-edge {
        object-position: center top;
    }
}

@media (max-width: 767px) {
    header .page,
    header .group {
        height: 100%;
        padding: 0;
    }
    header .group {
        display: flex;
        align-items: center;
    }
    header .col {
        margin: 0;
    }
    header .logo {
        top: 0;
        width: auto;
        height: 52px;
        margin: 0;
    }
    .mobile.menu {
        width: auto;
        margin-left: auto;
    }
    .mobile.menu .nav-right {
        float: none;
    }
    #navToggle {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
    }
    .mobile.menu .nav-right .glyph-icon {
        width: auto;
        height: auto;
        line-height: 1;
    }
    .mobile.menu .nav-right .glyph-icon:before {
        display: block;
    }
    .mobile.menu .chevronL:before {
        top: 0;
        left: 0;
    }
    .pad-top-small .section { padding-top: 20px; }
    .pad-top-medium .section { padding-top: 30px; }
    .pad-top-large .section { padding-top: 40px; }
    .pad-top-xlarge .section { padding-top: 80px; }
    .pad-bot-small .section { padding-bottom: 20px; }
    .pad-bot-medium .section { padding-bottom: 30px; }
    .pad-bot-large .section { padding-bottom: 40px; }
    .pad-bot-xlarge .section { padding-bottom: 80px; }
    .content .col {
        margin-bottom: 3em;
    }
    .content .col:last-child {
        margin-bottom: 0;
    }
    #menu,
    .showSidenav #menu {
        overflow-y: auto;
    }
    .feature-img {
        padding-bottom: 1.3em;
    }
    .feature-img img {
        max-width: 200px;
    }
    .footer-contact {
        flex-direction: column;
        align-items: center;
        gap: 20px;
        text-align: center;
    }
    .slider-prev,
    .slider-next {
        bottom: 12px;
    }
    .slider-track img,
    .banner img {
        aspect-ratio: 3 / 2;
        object-fit: cover;
    }
    .banner .crop-left {
        object-position: 27% center;
    }
    .slider-track .slide-text-left {
        object-position: 7% center;
    }
    .slider-track .slide-text-edge {
        object-position: 0 center;
    }
}
