.Inventory {
    display: flex;
    flex-direction: column;
    /* flex-wrap: wrap; */
    width: 100%;
    height: 100%;
    /* background-color:cadetblue; */
}

h4 {
    margin: 10px;
    padding: 10px;
}

.image-section.main {
    display: flex;
    flex-wrap: wrap; 
    gap: 20px; 
    height:fit-content;
    justify-content: center; 
    overflow: visible;
    padding: 20px;
}

.imgContainer {
    display: flex;
    flex-direction: column-reverse; 
    align-items: center;
    justify-content: center;

    width: 240px;
    height: fit-content;
    object-fit: cover; 
    padding: 10px;

    position: relative; 
}

.imgContainer:hover {
    border-radius: 10px;;
    border: 1px solid var(--main-bg-color); 
}
.imgSmallBox:hover {
    border-radius: 10px;;
    border: 1px solid white; 
    padding: 10px;
    cursor: pointer;
}

.imgContainer img {
    width: 100%;
    cursor: pointer;
    max-width: 100%;
    height: 240px;
    object-fit: cover; 
}

.caption {
    margin-top: 10px; 
    text-align: center;
    font-size: 14px;
    font-style: italic;
    cursor: pointer;
    color: rgba(0, 0, 0, 0.7);
}

.image-section.showcase {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: max-content;
    height: max-content;
    max-width: 1200px;
    max-height: 80%;
    min-height: 700px;

    background: whitesmoke;
    background-image: linear-gradient(to bottom, #fff, var(--main-bg-color)); 
    /* padding: 0px 0px 10px 0px; */
    padding: 0;
    margin: 0;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    overflow: auto;
    z-index: 9998;

    animation: flipIn 0.6s ease-out forwards;
    /* transform-style: preserve-3d; */
}

.image-section .showcase .showImage img {
    max-width: 300px;
    max-height: 300px;
    object-fit: cover;
    border: 2px solid transparent;
    transition: border 0.3s ease;
}

.titleBar-showcase {
    display: flex; 
    width: 100%;
    background-color: var(--second-bg-color);
    color: white;
    height: 40px; 
    padding: 0px 10px;
    box-sizing: border-box;    
    align-items: center;
    position: sticky;
    top: 0;
}
.imageDesc {
    display: flex; 
    align-items: center;
    justify-content: center;
    flex-direction: column;
    width: 80%;
    height: auto;
}
p.descript {
    width: 80%;
    height: auto;
    margin-top: 10px;
    text-align: center;
    color: rgba(0, 0, 0, 0.7);
    background-color: transparent; 
    border: none;
    outline: none; 
}
.showImage {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    margin-top: 0;
    padding-top: 0;
    margin-bottom: 20px;
}
.showImage img {
    width: 100%;
    max-width: 400px;
    margin: 10px;
}



/*============*/

.titleBar-showpict {
    display: flex; 
    width: 100%;
    background-color: var(--second-bg-color);
    color: white;
    height: 40px; 
    padding: 10px;
    box-sizing: border-box;    
    position: sticky;
    top: 0;
}

.close-showcase, .close-showpict {
    position: absolute;
    right: 10px;
    background-color: var(--main-bg-color);
    color: #fff;
    border: none;
    cursor: pointer;
}

.close-showcase:hover, .close-showpict:hover {
    background-color: #c00;
}

.image-showpict {
    display: none;
    position: fixed;

    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    /* width: 600px;
    height: 600px; */
    width: 1200px;
    max-height: 80%;
    min-height: 700px;

    background: whitesmoke;
    /* padding: 0px 0px 10px 0px; */
    margin: 0;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    overflow:hidden;
    overflow-y: auto;
    z-index: 9999;

    animation: slideInUp 0.4s ease-out forwards;     


}

#loadingIndicator {
    display: block;
    flex-direction: column;
    align-items: center;

    font-size: 20px; 
    padding: 10px;
    gap: 10px; 
    /* background-color: #28a745; */

    width:max-content;
    color:white;
    background-color: var(--darker-bg-color);
    border-radius: 5px;
    border: 2px solid;
    border-color: white;

    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); /* Center the form on the page */
    z-index: 99999;

}

#divVideos {
    display: flex;
    flex-wrap: wrap;
    height: 500px;
    justify-content:space-evenly;
    overflow: hidden;
}

.showVid {
    height: 500px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.showVid video {
    height: 100%;  
    width: auto;  
    width:max-content;
    object-fit: contain;  
}


/*   ====  */
.enlargeVid {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 0;
    height: 0;
    background-color: rgba(0, 0, 0, 0.8);
    border-radius: 10px;
    padding: 20px;
    display: none;
    opacity: 0;
    transition: all 0.5s ease-in-out;
    overflow: hidden; 
    z-index: 1001;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.enlargeVid.active {
    width: 400px;  
    height: 84%;  
    opacity: 1;
}

.titleBar-showVid {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
    font-size: 16px;
    margin-bottom: 10px;
    z-index: 1002; 
}

.close-video {
    background: transparent;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
}
.close-video:hover {
    background-color: red;
}
.videoShowcase {
    width: 100%;
    height: 94%;
    display: flex;
    justify-content: center;
    align-items: center; 
    position: relative;
    /* background-color: #555; */
    overflow: hidden; 
    overflow-y: auto;
}

.videoShowcase video {
    max-width: 100%;  
    max-height: 100%; 
    object-fit: contain;  
    /* transform: scale(1.6);  */
    /* transform: scale(3);  */
    transform-origin: center;
    width: 100%;
    height: calc(100%-200px);
    object-fit: fill; 
    z-index: 1;
}

.message-badge {
    background-color: #ff4d4f;
    color: #fff;
    border-radius: 50%;
    padding: 2px 6px;
    font-size: 12px;
    z-index: 1000 !important;
}


/* Apply to all scrollable elements */
*::-webkit-scrollbar {
    width: 4px; /* Set the width of the scrollbar */
}

*::-webkit-scrollbar-track {
    background: #f1f1f1; /* Track color */
}

*::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px; /* Optional: round the thumb edges */
}

*::-webkit-scrollbar-thumb:hover {
    background: #555; 
}
/* FireFox :Apply to all scrollable elements */
* {
    scrollbar-width: thin; /* Make the scrollbar thin */
    scrollbar-color: #888 #f1f1f1; /* Thumb color and track color */
}

@media (max-width: 1200px) {
    .image-section.showcase, .image-showpict, #divVideos {
        width: 80%;
    }
}


@keyframes popInCenter {
    0% {
        transform: translate(-50%, -50%) scale(0.5);
        opacity: 0;
    }
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}
.animation-fadeIn {
    animation: fadeIn 0.4s ease-out forwards;
}

@keyframes slideInUp {
    from {
        transform: translate(-50%, 20%) scale(1);
        opacity: 0;
    }
    to {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
}
.animation-slideInUp {
    animation: slideInUp 0.5s ease-out forwards;
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.95);
    }
    100% {
        transform: scale(1);
    }
}
.animation-bounceIn {
    animation: bounceIn 0.6s ease-out forwards;
}


@keyframes flipIn {
    0% {
        transform: translate(-50%, -50%) perspective(800px) rotateY(90deg);
        opacity: 0;
    }
    100% {
        transform: translate(-50%, -50%) perspective(800px) rotateY(0deg);
        opacity: 1;
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}
.fade-out {
    animation: fadeOut 0.4s ease-out forwards;
}

@keyframes bounceInCentered {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.3);
    }
    50% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.05);
    }
    70% {
        transform: translate(-50%, -50%) scale(0.95);
    }
    100% {
        transform: translate(-50%, -50%) scale(1);
    }
}
