:root {
    --image-area: 88%;
    --product-font-size: 22px;
    --button-height: 60px;
    // for debug comment out the none entry
    --border-display: 1px solid red;
    --border-display: none;
}

/*
 * Hide the vertical scrollbar on the page 
 */
html {
    scrollbar-width: none;
}

body::-webkit-scrollbar {
    display: none;
}

body {
    overflow-y: hidden;
    -ms-overflow-style: none;
    scrollbar-width: none;
}


#top-bar-wrap {
    display: none;
}

.main-scrolling-divZZ {
    height: calc( 100% - 90px );
    overflow-y: auto;
    overflow-x: hidden;
}

#pageContent {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 10px; 
    margin: 0;
    padding: 5px;
    padding-left: 30px;
    padding-right: 30px;

/*
    height: calc( 100% - 90px );
    overflow-y: auto;
    overflow-x: hidden;
    */

    overflow-x: auto;
    height: calc( 100vh - 130px);

}

#pageContentFLEX {
    display: flex;
    flex-wrap: wrap; 
    justify-content: space-between; 
    gap: 10px; 
    flex-direction: row;
    margin: 0;
    padding: 0;
}

.product-item {
    box-sizing: border-box; 
    background-color: #ffffff;
    /* height: 300px; */
    border-radius: 20px;
    padding: 2px;
    aspect-ratio: 1 / 1;
}

.product-itemFLEX {
    flex: 1 0 calc(20% - 2px); 
    box-sizing: border-box; 
    background-color: #ffffff;
    height: 250px;
    border-radius: 10px;
}

.product-item-link-container {
    display: flex;
    flex-wrap: wrap; 
    gap: 2px; 
    flex-direction: column;
    height: calc( 100% - 1px);
}

.product-item-image {
    padding: 0px;
    display: flex;
    justify-content: center;
    align-items: center;
    height: calc( var(--image-area) - 2px);
    /* height: calc(85% - 2px); */
    /* width: auto; */
    object-fit: contain;
    text-align: center;
    border: var( --border-display );
}

.product-item-image img {
    max-height: 100%;
    /* width: auto; */
    max-width: calc( 100% - 20px);
    width: 500;
    height: 500;
    border: var( --border-display );
}


.product-item-title {
    display: grid;
    padding-top: 0px;
    justify-content: center;
    align-items: center;
    place-items: center;
    text-align: center;
    height: calc(100% - var(--image-area) - 2px);
    z-index: 100;
    padding-bottom: 10px;
    /* vertical-align: middle;  */
    border: var( --border-display );
}

.product-item-title-p {
    width: calc(100% - 10px);
    color: var( --e-global-color-accent );
    font-size: var( --product-font-size);
    line-height: calc( var( --product-font-size) + 2px);
    font-weight: bold;
}

@media ( max-width: 600px ){
    #pageContent {
        height: calc( 100vh - 160px);
    }
    #buttonsContainer {
        display: none;
    }

    #learn-heading-container {
        height: 100px;
        padding-top: 30px;
    }

    #learn-heading-container .elementor-heading-title {

    }

    #pageContent {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
        width: calc( 100vw - 2px);
    }

    .product-item {
        /*height: 200px; */
    }

    .product-item-image {
        /* height: calc(60% - 2px); */
    }

    .product-item-image img {
    }


    .product-item-title {
        padding: 0px 8px 0px 8px;
    }

    .product-item-title-p {
        width: calc(100% - 10px);
        font-size: 20px; 
        line-height: 22px;
        font-weight: bold;
        padding: 0px 0px 0px 0px;

        /* move the labels up so that there is no overflow into the next image */
        position: relative;
        top: -40px;
    }

    .product-item-image img {

    }


}
