#gallery{
    display: flex;
    background-color: var(--black);
    height: 100vh;
    padding: 0;
    position: relative;
    overflow: hidden;
}

.cross-gallery{
    width: 50px;
    height: 50px;
    position: absolute;
    right:1em ;
    top: 1em;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;

}

.cross-gallery>*{
    transform: scale(1.25);
    color: var(--accent);
}

.column-gallery{
    flex: 0 0 20%;
    max-width: 250px;

    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    gap:10px;
    overflow-y: scroll;
}

.column-gallery .column-image-container +.column-image-container{
    margin-top: 0.15em;
}

.column-image-container{
    cursor: pointer;
    width: 100%;
}

.column-images{
    height: 100%;
    width: 100%;
    object-fit: cover;
}

.main-gallery{
    width:100%;
    height: 100%;
    display: flex;
    overflow-x: hidden;
}

.main-image-container{
    flex:0 0 100%;
    padding: 1em;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}



#gallerySlider{
    width: 100%;
    height: 100%;
    flex-wrap: nowrap;
    display: flex;
}

.main-image{
    width : 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}


@media (max-width : 768px){
    #gallery{
        flex-direction: column-reverse;
    }
    
    .main-gallery{
        width: 100%;
        height: 90vh;
    }
    
    .column-gallery{
        z-index: 10;
        min-width: 100%;
        max-width: none;
        height: 10vh;
        flex-direction: row;
        overflow-x: auto!important;
        overflow-y: hidden;
        background: var(--black);

        position: relative;
    }
    
    .column-image-container{
        cursor: pointer;
        width: 25vw;
        height: 100%;
        flex-shrink: 0; 
        position: relative;
    }
    
    .column-gallery .column-image-container +.column-image-container{
        margin-top: 0;
        /* margin-left: 1em; */
    }
    
    .column-image {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    
}

