:root {
    --app-navbar-min-height: 5rem;
}

@media (min-width: 576px) {
    :root {
        --app-navbar-min-height: 5.5rem;
    }
}

@media (min-width: 768px) {
    :root {
        --app-navbar-min-height: 6rem;
    }
}

a {
    text-decoration: none;
}

a:hover {
    text-decoration: none;
}

html,
body {
    /*overflow-x: hidden; !* Prevent scroll on narrow devices *!*/
}
body {
    padding-top: var(--app-navbar-min-height);
}

.bi {
    vertical-align: -.125em;
    fill: currentColor
}

/** Offcanvas **/

@media (max-width: 991.98px) {
    .offcanvas-collapse {
        position: fixed;
        top: var(--app-navbar-min-height);
        bottom: 0;
        left: 100%;
        width: 100%;
        padding-right: 1rem;
        padding-left: 1rem;
        overflow-y: auto;
        visibility: hidden;
        background-color: #343a40;
        transition: transform .3s ease-in-out, visibility .3s ease-in-out;
    }
    .offcanvas-collapse.open {
        visibility: visible;
        transform: translateX(-100%);
    }
}
/** End Offcanvas **/

/** Nav Scroller **/

/* Make the wrapper scroll horizontally */
.nav-scroller {
    overflow-x: auto;
    background-color: #F1F1F1;
}

/* Keep the breadcrumb on one line and scrollable */
.nav-scroller .breadcrumb {
    display: flex;          /* keep Bootstrap default */
    flex-wrap: nowrap;      /* no wrapping */
    white-space: nowrap;
    --bs-breadcrumb-padding-x: 1.2rem;
    --bs-breadcrumb-padding-y: 1.2rem;
    --bs-breadcrumb-item-padding-x: .5rem;
    --bs-breadcrumb-margin-bottom: 0;
}

/* Prevent items from squishing */
.nav-scroller .breadcrumb-item {
    display: flex;
    align-items: center;
}

/* Fix the divider overlapping by removing the float */
.nav-scroller .breadcrumb-item + .breadcrumb-item::before {
    float: none;
    padding-right: 0;
    content: "";
    display: block;
    width: 0.9rem;
    height: 0.9rem;
    margin: 0 .5rem 0 0;
    background-image: var(--bs-breadcrumb-divider);
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

/** End Nav Scroller **/

/** Carousel **/
.carousel-full {
    height: calc(100vh - 132px);
    .carousel-item {
        height: 100%;
    }
}
.carousel-caption {
    bottom: 3rem;
    z-index: 10;
}
@media (min-width: 40em) {
    .carousel-caption p {
        margin-bottom: 1.25rem;
        font-size: 1.25rem;
        line-height: 1.4;
    }
}
.bd-placeholder-img {
    font-size: 1.125rem;
    text-anchor: middle;
    -webkit-user-select: none;
    -moz-user-select: none;
    user-select: none
}

/** End Carousel **/

/** Section Pin **/
@supports(animation-timeline: view()) {

    @keyframes move {
        to {
            /* Move horizontally so that right edge is aligned against the viewport */
            transform: translateX(calc(-100% + 100vw));
        }
    }

    #sectionPin {
        /* Stretch it out, so that we create room for the horizontal scroll animation */
        height: 500vh;
        overflow-x: visible; /* To make position sticky work … */
        display: flex;
        view-timeline-name: --section-pin-tl;
        view-timeline-axis: block;
    }

    .pin-wrap-sticky {
        /* Stick to Top */
        height: 100vh;
        width: 100vw;
        position: sticky;
        top: 0;
        overflow-x: hidden;
    }

    .pin-wrap {
        height: 100vh;
        width: 250vmax;
        display: flex;
        justify-content: flex-start;
        align-items: center;
        padding: 0 0 0 5vw;

        /* Hook animation */
        will-change: transform;
        animation: linear move forwards;

        /* Link animation to view-timeline */
        animation-timeline: --section-pin-tl;
        animation-range: contain 0% contain 100%;

        img {
            height: 100vh;
            width: auto;
            max-width: 100%;
            object-fit: cover;
        }

        > * {
            min-width: 60vmax;
            padding: 0 0 0 2vmax;
        }
    }
}
/** End Section Pin **/

@scroll-timeline nav-fade-timeline {
    scroll-source: body;
    orientation: landscape;
    range: auto;
}

#mainNav {
    /*background-color: rgb(255, 255, 255);*/
    /*animation: fadeNav 1s linear both;*/
    /*animation-timeline: nav-fade-timeline;*/
    /*animation-range: 0% 300px;*/
    min-height: var(--app-navbar-min-height);
}

@keyframes fadeNav {
    from { background-color: rgba(33, 37, 41, 0); }
    to { background-color: rgba(33, 37, 41, 1); }
}

.search-wrapper {
    background-color: rgba(52, 58, 64, 1);
    border: 1px solid rgb(62, 70, 78);
    border-radius: 0.5rem;
    transition: border-color 0.15s ease-in, box-shadow 0.15s ease-in;
}

.search-wrapper:focus-within {
    background-color: rgb(65, 73, 87);
    border-color: rgba(13, 110, 253, 0.8);
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

.search-icon {
    /*padding: 0.75rem 1rem;*/
    /*color: #6c757d;*/
}


.search-wrapper > .form-control {
    --bs-body-bg: transparent;
}

.search-wrapper > .form-control:focus {
    /*flex: 1;*/
    /*border: none;*/
    /*outline: none;*/
    /*padding: 0.75rem 0.5rem;*/
    /*font-size: 1rem;*/
    /*transition: width 100ms ease-in;*/
    /*&:focus {*/
    /*    width: 250px;*/
    /*}*/
    box-shadow: none;
}

/*.filter-button {*/
/*    padding: 0.75rem 1rem;*/
/*    background: none;*/
/*    border: none;*/
/*    color: #6c757d;*/
/*    cursor: pointer;*/
/*    transition: color 0.15s ease-in-out;*/
/*}*/

/*.filter-button:hover {*/
/*    color: #0d6efd;*/
/*}*/

/*.filter-button:focus {*/
/*    outline: 2px solid #0d6efd;*/
/*    outline-offset: -2px;*/
/*}*/

.categories hgroup {
    display: flex;
    flex-direction: column-reverse;
}

.categories h2 {
    border-top: 1px solid rgba(33, 37, 31, .25);
    border-bottom: 1px solid rgba(33, 37, 31, .25);
    padding: 1rem .5rem;
    margin: 1.5rem 0;
    font-size: 1rem;
}

.categories ul {
    display: grid;
    grid-template-columns: 1fr;
    gap: .5rem;
}

@media (min-width: 576px) {
    .categories ul {
        grid-template-columns: repeat(2, 1fr);   /* tablet: 2 columns */
    }
}

@media (min-width: 768px) {
    .categories ul {
        grid-template-columns: repeat(3, 1fr);   /* desktop: 3 columns */
    }
}

/* Closed state */
#sidebarMenu [data-bs-toggle="collapse"] .btn-icon {
    display: inline-block;
    transition: transform .2s ease;
}

/* When the collapse is open */
#sidebarMenu [aria-expanded="true"] .btn-icon {
    transform: rotate(90deg);   /* clockwise */
}

[popover] {
    max-width: min(80rem, 130vw);
    max-height: 80vh;
    overflow: auto;
}

[popover]:popover-open {
    position: fixed;
    inset: 50% auto auto 50%;
    transform: translate(-50%, -50%);
    margin: 0;
    z-index: 50;
}

[popover]::backdrop {
    background: rgba(15, 23, 42, 0.55);
}
