/* ------------------------------------------------------- */
/* ------------------- GLOBAL STYLES START --------------- */
/* ------------------------------------------------------- */
#cms-header,
#cms-gallery,
#cms-footer,
.see-all-button,
.alert-container {
    display: none !important;
}

:root {
    --dark-gray: #747578;
    --medium-gray: #c8c8c8;
    --white: #ffffff;
    --black: #000000;
    --arrow-right: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%27-16%200%20928%201024%27%3E%3Cg%20transform%3D%27translate%280%2C960%29%20scale%281%2C-1%29%27%3E%3Cpath%20fill%3D%27%23747578%27%20stroke%3D%27%23747578%27%20stroke-width%3D%2732%27%20stroke-linejoin%3D%27miter%27%20stroke-miterlimit%3D%272%27%20d%3D%27M436.202%20883.798l-39.598-39.598c-9.372-9.372-9.372-24.568%200-33.942l310.26-310.258h-682.864c-13.254%200-24-10.746-24-24v-56c0-13.254%2010.746-24%2024-24h682.864l-310.26-310.26c-9.372-9.372-9.372-24.568%200-33.942l39.598-39.598c9.372-9.372%2024.568-9.372%2033.942%200l418.828%20418.828c9.372%209.372%209.372%2024.568%200%2033.942l-418.83%20418.828c-9.372%209.374-24.568%209.374-33.94%200z%27%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E");
    --arrow-left: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%27-16%200%20928%201024%27%3E%3Cg%20transform%3D%27translate%28896%2C960%29%20scale%28-1%2C-1%29%27%3E%3Cpath%20fill%3D%27%23747578%27%20stroke%3D%27%23747578%27%20stroke-width%3D%2732%27%20stroke-linejoin%3D%27miter%27%20stroke-miterlimit%3D%272%27%20d%3D%27M436.202%20883.798l-39.598-39.598c-9.372-9.372-9.372-24.568%200-33.942l310.26-310.258h-682.864c-13.254%200-24-10.746-24-24v-56c0-13.254%2010.746-24%2024-24h682.864l-310.26-310.26c-9.372-9.372-9.372-24.568%200-33.942l39.598-39.598c9.372-9.372%2024.568-9.372%2033.942%200l418.828%20418.828c9.372%209.372%209.372%2024.568%200%2033.942l-418.83%20418.828c-9.372%209.374-24.568%209.374-33.94%200z%27%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E");
    --arrow-right-white: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%27-16%200%20928%201024%27%3E%3Cg%20transform%3D%27translate%280%2C960%29%20scale%281%2C-1%29%27%3E%3Cpath%20fill%3D%27%23ffffff%27%20stroke%3D%27%23ffffff%27%20stroke-width%3D%2732%27%20stroke-linejoin%3D%27miter%27%20stroke-miterlimit%3D%272%27%20d%3D%27M436.202%20883.798l-39.598-39.598c-9.372-9.372-9.372-24.568%200-33.942l310.26-310.258h-682.864c-13.254%200-24-10.746-24-24v-56c0-13.254%2010.746-24%2024-24h682.864l-310.26-310.26c-9.372-9.372-9.372-24.568%200-33.942l39.598-39.598c9.372-9.372%2024.568-9.372%2033.942%200l418.828%20418.828c9.372%209.372%209.372%2024.568%200%2033.942l-418.83%20418.828c-9.372%209.374-24.568%209.374-33.94%200z%27%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E");
    --arrow-left-white: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%27-16%200%20928%201024%27%3E%3Cg%20transform%3D%27translate%28896%2C960%29%20scale%28-1%2C-1%29%27%3E%3Cpath%20fill%3D%27%23ffffff%27%20stroke%3D%27%23ffffff%27%20stroke-width%3D%2732%27%20stroke-linejoin%3D%27miter%27%20stroke-miterlimit%3D%272%27%20d%3D%27M436.202%20883.798l-39.598-39.598c-9.372-9.372-9.372-24.568%200-33.942l310.26-310.258h-682.864c-13.254%200-24-10.746-24-24v-56c0-13.254%2010.746-24%2024-24h682.864l-310.26-310.26c-9.372-9.372-9.372-24.568%200-33.942l39.598-39.598c9.372-9.372%2024.568-9.372%2033.942%200l418.828%20418.828c9.372%209.372%209.372%2024.568%200%2033.942l-418.83%20418.828c-9.372%209.374-24.568%209.374-33.94%200z%27%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E");
    --close: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2016%2016%27%3E%3Cpath%20fill%3D%27none%27%20stroke%3D%27%23747578%27%20stroke-width%3D%271.75%27%20d%3D%27M1%201l14%2014m0-14L1%2015%27%2F%3E%3C%2Fsvg%3E");
    --close-white: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2016%2016%27%3E%3Cpath%20fill%3D%27none%27%20stroke%3D%27%23ffffff%27%20stroke-width%3D%271.75%27%20d%3D%27M1%201l14%2014m0-14L1%2015%27%2F%3E%3C%2Fsvg%3E");
}

* {
    box-sizing: border-box;
    font-smooth: auto;
    -webkit-font-smoothing: subpixel-antialiased;
    -moz-osx-font-smoothing: auto;
}

html,
body,
#home,
* {
    font-family: "Roboto Condensed", sans-serif !important;
    line-height: 28px;
    letter-spacing: -0.25px;
    -webkit-text-size-adjust: 100%;
}

#home .see-all-container {
    margin-bottom: 15px;
}

#home .see-all-container * {
    font-family: "Roboto", sans-serif !important;
    font-size: 14px;
    line-height: 21px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
}
/* ------------------------------------------------------- */
/* ------------------- GLOBAL STYLES END ----------------- */
/* ------------------------------------------------------- */

/* ------------------------------------------------------- */
/* ------------- SLIDER BUTTONS START -------------------- */
/* ------------------------------------------------------- */
#home .slider-button {
    border-radius: 99999px;
    border: 1px solid var(--medium-gray);
    background-color: var(--white);
    background-repeat: no-repeat;
    background-position: center;
    background-size: auto 16px;
    width: 44px;
    min-width: 44px;
    max-width: 44px;
    height: 44px;
    min-height: 44px;
    max-height: 44px;
    padding: 0;
    margin-right: 8px;
    transition:
        border 0.3s ease 0s,
        background 0.3s ease 0s;

    & svg {
        display: none;
    }
}

#home .slider-button {
    background-image: var(--arrow-left);
}

#home .slider-button:hover,
#home .slider-button:focus {
    border-color: var(--dark-gray);
    background-color: var(--dark-gray) !important;
    background-image: var(--arrow-left-white);
}
/* ------------------------------------------------------- */
/* -------------- SLIDER BUTTONS END --------------------- */
/* ------------------------------------------------------- */

/* ------------------------------------------------------- */
/* -------------- IMAGE LIGHTBOX START ------------------- */
/* ------------------------------------------------------- */
#app #lightbox {
    background: #ffffffd9;
    backdrop-filter: blur(4px);

    .main .header {
        margin-top: 20px;
        
        .numbers {
            background-color: var(--white);
            color: var(--dark-gray);
            border: 1px solid var(--medium-gray);
            padding: 6px 16px;
            border-radius: 50px;
            filter: drop-shadow(1px 1px 10px var(--medium-gray));
        }
    }

    .image-wrapper .image {
        filter: drop-shadow(1px 1px 40px var(--medium-gray));
    }

    .svg-wrapper {
        border-radius: 99999px;
        border: 1px solid var(--medium-gray);
        background-color: var(--white);
        background-repeat: no-repeat;
        background-position: center;
        background-size: auto 16px;
        width: 44px;
        min-width: 44px;
        max-width: 44px;
        height: 44px;
        min-height: 44px;
        max-height: 44px;
        padding: 0;
        filter: drop-shadow(1px 1px 10px var(--medium-gray));
        transition:
            border 0.3s ease 0s,
            background 0.3s ease 0s;

        & svg {
            display: none;
        }

        &:hover,
        &:focus {
            border-color: var(--dark-gray);
            background-color: var(--dark-gray);
        }
    }

    .close .svg-wrapper {
        background-image: var(--close);
        background-size: auto 14px;

        &:hover,
        &:focus {
            background-image: var(--close-white);
        }
    }

    .left-arrow .svg-wrapper {
        background-image: var(--arrow-left);

        &:hover,
        &:focus {
            background-image: var(--arrow-left-white);
        }
    }

    .right-arrow .svg-wrapper {
        background-image: var(--arrow-right);

        &:hover,
        &:focus {
            background-image: var(--arrow-right-white);
        }
    }
}
/* ------------------------------------------------------- */
/* --------------- IMAGE LIGHTBOX END -------------------- */
/* ------------------------------------------------------- */

/* ------------------------------------------------------- */
/* ------------------ LIVE FEED START -------------------- */
/* ------------------------------------------------------- */
#home .live-feed-lf8 {
    --custom-lf-v7-avatar-width: 49px;
    --custom-lf-v7-border-radius: 0;
    --custom-lf-v7-gallery-img-pd: 56.25%;
    --custom-lf-v7-description-max-height: 224px; /* 8 lines at 28px */

    @media only screen and (min-width: 1700px) {
        --custom-lf-v7-avatar-width: 63px;
    }

    .slider-button svg,
    .gallery-controls .button svg {
        display: none;
    }

    .see-all-container.bold h2 {
        border-right: none;
    }

    .gallery-controls {
        align-items: center;
        bottom: 16px;
    }

    .gallery-controls .button {
        border-radius: 99999px;
        border: 1px solid #ffffff12;
        background-color: var(--white);
        background-repeat: no-repeat;
        background-position: center;
        background-size: auto 16px;
        transition: border .3s ease 0s, background .3s ease 0s;
        transform: none;
        backdrop-filter: blur(1px);
        width: 44px;
        height: 44px;
        
        &.left {
            background-image: var(--arrow-left-white);
        }

        &.right {
            background-image: var(--arrow-right-white);
        }
    }

    /* padding to match current vendor styles - START */
    .wrapper {
        padding: 0;
        padding-top: 40px;
        padding-bottom: 40px;

        @media (min-width: 760px) {
            padding-top: 60px;
            padding-bottom: 60px;
        }

        @media (min-width: 900px) {
            padding-top: 84px;
            padding-bottom: 90px;
        }
        /* padding to match current vendor styles - END */
        
        .cards-slider .slider-button {
            display: none;
        }
    
        .buttons-container {
            display: block;
        }
    }

    .cards-wrapper {
        gap: 20px;
    }

    .cards-wrapper .card {
        flex-wrap: wrap;
        max-width: 95%;
        margin: 10px auto 30px;
        border-radius: var(--custom-lf-v7-border-radius);
        box-shadow: var(--custom-lf-v7-card-box-shadow, 4px 4px 14px 0px rgb(1 2 5 / 25%));
        flex-basis: 100%;
        flex-shrink: 0;
        background-color: var(--post-bg-color);
        flex-direction: column;

        @media (min-width: 800px) {
            flex-basis: 50%;
            max-width: calc(50% - 10px);
        }

        @media (min-width: 960px) {
            flex-basis: 33.33%;
            max-width: calc(33.33% - 10px);
        }

        &:not(:has(.card-gallery)) {
            position: relative;
            isolation: isolate;
            overflow: hidden;

            &::before {
                content: "";
                order: -1;
                width: 100%;
                height: 0;
                padding-top: var(--custom-lf-v7-gallery-img-pd, 100%);
                border-radius: var(--custom-lf-v7-border-radius) var(--custom-lf-v7-border-radius) 0 0;
                background: var(--live-feed-fallback-img-url) center / cover no-repeat;
                background-color: var(--bg-color);
            }

            &::after {
                content: "";
                display: var(--custom-lf-v7-gallery-overlay-display, block);
                position: absolute;
                top: 0;
                left: 0;
                width: 100%;
                height: 0;
                padding-top: var(--custom-lf-v7-gallery-img-pd, 100%);
                background: linear-gradient(transparent 0, transparent 33%, var(--image-gradient-color) 100%);
                opacity: var(--image-gradient-opacity);
                z-index: 1;
                border-radius: var(--custom-lf-v7-border-radius) var(--custom-lf-v7-border-radius) 0 0;
            }

            .card-content {
                border-top-left-radius: 0;
                border-top-right-radius: 0;
            }
        }
    }

    .cards-wrapper .card-description {
        font-weight: 300;
        width: auto;

        a {
            font-weight: 400;
            text-decoration: underline;
        }
    }

    .card-description .custom-description {
        max-height: var(--custom-lf-v7-description-max-height);
        overflow-y: auto;
        overscroll-behavior: contain;
        scrollbar-width: thin;
        padding-bottom: 16px;

        > :first-child {
            margin-top: 0;
        }

        > :last-child {
            margin-bottom: 0;
        }

        p,
        ul,
        ol {
            margin: 0 0 12px;
        }

        ul,
        ol {
            padding-left: 20px;
        }

        li > p {
            margin: 0;
        }

        /* Fade the bottom edge while there is more to scroll. Only runs when the
           description overflows; browsers without scroll timelines get no fade. */
        @supports (animation-timeline: scroll()) {
            mask-image: linear-gradient(to bottom, #000 calc(100% - var(--custom-lf-v7-description-fade)), transparent);
            animation: custom-lf-v7-description-fade linear both;
            animation-timeline: scroll(self);
        }
    }

    .card .image-gallery .gallery-track {
        border-top-left-radius: var(--custom-lf-v7-border-radius);
        border-top-right-radius: var(--custom-lf-v7-border-radius);
    }

    .card .card-gallery {
        order: 0;
        margin-bottom: auto;
        width: 100%;
        height: 0;
        padding-top: var(--custom-lf-v7-gallery-img-pd, 100%);
        position: relative;

        .image-gallery {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;

            .gallery-overlay {
                display: var(--custom-lf-v7-gallery-overlay-display, block);
            }

            .gallery-controls .buttons .button {
                background-color: var(--custom-lf-v7-gallery-btn-bg-color, transparent);
            }
        }
    }

    /* Gallery rebuilt at 600px and below by boulder_live_feed_full_description_fallback.js.
       LF8's ImageGallery styles are Vue-scoped and do not reach injected markup,
       so its base rules are repeated here. */
    .card .custom-gallery .image-gallery {
        .gallery-track {
            position: relative;
            width: 100%;
            height: 100%;
            margin: 0;
            padding: 0;
            overflow: hidden;
            z-index: 0;
        }

        .gallery-overlay,
        .gallery-slide,
        .gallery-image {
            position: absolute;
            inset: 0;
            margin: 0;
            padding: 0;
        }

        .gallery-overlay {
            background: linear-gradient(transparent 0, transparent 33%, var(--image-gradient-color) 100%);
            opacity: var(--image-gradient-opacity);
            z-index: 1;
        }

        .gallery-slide {
            transform: translateX(-100%);
            transition: transform .3s ease-out;

            &.is-active {
                transform: translateX(0);
            }

            &.is-active ~ .gallery-slide {
                transform: translateX(100%);
            }
        }

        .gallery-image > img {
            display: block;
            width: 100%;
            height: 100%;
            object-fit: cover;
            object-position: center;
            border: none;
        }

        .gallery-controls {
            position: absolute;
            display: flex;
            justify-content: space-between;
            box-sizing: border-box;
            width: 100%;
            padding: 0 16px;
            z-index: 2;

            .indicators {
                color: var(--indicators-color);
                font-size: 16px;
            }

            .buttons {
                display: flex;
                gap: 8px;
            }

            .button {
                padding: 0;
                cursor: pointer;
            }
        }
    }

    .card-content {
        order: 1;
        border-radius: var(--custom-lf-v7-border-radius);
        width: 100%;
        position: relative;
        justify-content: flex-start;
        box-sizing: border-box;
        flex: 1;

        /* Avatar sits beside the author/time at the top; description runs full width below. */
        .card-header {
            display: grid;
            grid-template-columns: var(--custom-lf-v7-avatar-width) 1fr;
            grid-template-rows: auto auto;
            align-content: center;
            column-gap: 14px;
            row-gap: 4px;
            padding-bottom: 14px;
            width: auto;

            img {
                grid-row: 1 / span 2;
                width: var(--custom-lf-v7-avatar-width);
                height: var(--custom-lf-v7-avatar-width);
                object-fit: cover;
                margin: 0;
            }

            .author {
                align-self: end;
                text-wrap: balance;
            }

            .time-ago {
                align-self: start;
                margin-left: 0;
            }
        }
    }
}

@property --custom-lf-v7-description-fade {
    syntax: "<length>";
    inherits: false;
    initial-value: 0px;
}

@keyframes custom-lf-v7-description-fade {
    0%, 85% {
        --custom-lf-v7-description-fade: 48px;
    }

    100% {
        --custom-lf-v7-description-fade: 0px;
    }
}
/* ------------------------------------------------------- */
/* ------------------- LIVE FEED END --------------------- */
/* ------------------------------------------------------- */
