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: 10rem;
    margin-bottom: 10rem;
}

.x-scroll {
    overflow-x: auto;
}

.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: 10rem;
    margin-top: -10.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: -10rem;
    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;
} */




@media only screen and (max-width: 600px) {
    /* .stack:not(:last-child) {
        margin-right: unset;
        margin-bottom: 1.5rem;
    } */

    .card-gallery {
        justify-content: center;
        padding: 1.5rem 0rem;
    }



}