.navbar {
    z-index: 1000 !important;
}

#bg {
    z-index: 10 !important;
    pointer-events: none;
}

.navbar-burger {
    margin-left: auto;
}

main {
    min-height: 85vh;
}

.card-gallery {
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    align-items: flex-start;
    /* overflow-x: auto; */
    /* padding: 1.5rem 0rem; */
    gap: 1.45rem;
    row-gap: 4rem;
    margin-bottom: 4rem;
    margin-top: 1rem;
}

.x-scroll {
    overflow-x: auto;
}

.card-gallery .card {
    width: 250px;
}

#past-gallery .card .card-thumb {
    transition: filter 0.1s;
    filter: brightness(90%)
}

#past-gallery .card:hover .card-thumb {
    filter: brightness(100%)
}

.card-image figure {
    aspect-ratio: 5 / 7;
    margin-bottom: -2px;
}

.card-thumb {
    border: 1px solid #ededed;
    z-index: 2;
    /* position: absolute; */
    position: relative;
}

.card-image .hover-content {
    cursor: pointer;
    display: none;
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
}

.card-image:hover img {
    overflow: hidden;
    filter: blur(2px);
}

.card-image:hover .hover-content {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.479);
    color: white;
    z-index: 3;
}

.card .collapse {
    /* position: absolute; */
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    height: 3rem;
    margin-top: -3.1rem;
    width: 100%;
    transition: margin 0.1s, box-shadow 0.1s, z-index 0.2s;
    overflow: hidden;
    background-color: white;
    z-index: 1;
}

.card-content {
    height: 7.5rem;
    padding: 0.25rem 1.5rem;
    display: flex;
    align-items: center;
    overflow: auto;
}

.card-content .content {
    text-overflow: ellipsis;
    /* white-space: nowrap; */
    display: block;
    overflow: hidden;
}

.card:hover>.collapse {
    /* max-height: 1000px;     */
    margin-top: 0px;
    margin-bottom: -3rem;
    box-shadow: 0 0.5em 1em -0.125em rgb(10 10 10 / 10%), 0 0px 0 1px rgb(10 10 10 / 2%);
}

/* 
.stack:not(:last-child) {
    margin-right: 1.45rem;
} */

#ui-layer {
    z-index: 200;
}

.next-steps {
    background-color: white;
    padding: 1vw;
    gap: 0.5vw;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 10;
    border-radius: 0px;
}

.next-steps .actions {
    display: flex;
    gap: 1vw;
}

.demo-show {
    transition: filter 0.5s, opacity 0.5s;
    opacity: 0;
    pointer-events: none;
}
.demo-show.blur {
    opacity: 1;
    pointer-events: auto;
}

.blur .attr {
    z-index: 1000;
}

#ui-layer {
    display: flex;
}

.demo-hide {
    transition: filter 0.5s, opacity 0.5s;
}

.demo-hide.blur {
    filter: blur(8px);
    opacity: 0.5;
    transition: filter 1s, opacity 1s;
}

#bg {
    opacity: 0;
    transition: opacity 0.5s, transform 0.5s;
    transform: scale(0.75);
}

#bg.active {
    opacity: 1;
    transition: opacity 1s, transform 1s;
    transform: scale(1);
}


#envelope-layer {
    background-color: rgba(0, 0, 0, 0.13);
}

@media only screen and (max-width: 600px) {
    .next-steps {
        padding: 3vw;
    }

    .card-gallery {
        justify-content: center;
        padding: 1.5rem 0rem;
    }

}