#main-image-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
}

.main-image {
    margin-bottom: 0;
    height: 250px;
    max-width: 300px;
    cursor: pointer;
    object-fit: contain !important;
}

.thumbnail-images {
    width: 100%;
    background-color: lightgray;
    border-radius: 8px;
    display: flex;
    gap: 10px;
    height: 80px;
    align-items: center;
}

.thumbnail-images img {
	width: 56px;
	height: 60px;
	margin-bottom: 0;
	border-radius: 8px;
	background-color: white;
	cursor: pointer;
	object-fit: cover;
	border: 2px solid transparent;
	transition: border 0.3s;
	flex-shrink: 0;
}

.thumbnail-images img:first-child {
    margin-left: 10px;
}

.thumbnail-images img:last-child {
    margin-right: 10px;
}

.thumbnail-image.selectedThumbnail {
    border-color: black;
}

/* FULL SCREEN IMAGE VIEWER */

.fullscreen-viewer {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 1002;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    user-select: none;
    /* Prevent text/image selection */
    -webkit-user-drag: none;
    /* Disable default drag behavior */
}

.viewer-content {
    height: calc(100% - 60px);
    display: flex;
    width: 100%;
    justify-content: center;
}

.viewer-header {
    height: 60px;
    z-index: 1010;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    background-color: rgba(0, 0, 0, 0.5);
}

.viewer-footer {
    height: 50px;
    background-color: rgba(0, 0, 0, 0.5);
    width: 100%;
    display: none;
}

.nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: white;
    font-size: 3rem;
    z-index: 1010;
}

#prev-btn {
    left: 20px;
    cursor: pointer;
}

#next-btn {
    right: 20px;
    cursor: pointer;
}

#close-viewer {
    background-color: transparent;
    border: none;
    color: white;
    font-size: 3rem;
    cursor: pointer;
}

#fullscreen-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    user-select: none;
    /* Prevent text/image selection */
    -webkit-user-drag: none;
    /* Disable default drag behavior */
}

.fullscreen-image-count {
    color: white;
    position: absolute;
    left: 20px;
    font-size: 20px;
}

.image-container {
    display: flex;
    flex-wrap: nowrap;
    width: 100%;
    height: 100%;
    position: relative;
    justify-content: center;
    /* Align the images */
    align-items: center;
    transition: transform 0.5s ease-in-out;
    /* Smooth slide transition */
}

.image-container img {
    flex: 0 0 100%;
    /* Each image takes up full width of the container */
    width: 100%;
    height: 100%;
    object-fit: contain;
    user-select: none;
    /* Prevent text/image selection */
    -webkit-user-drag: none;
    /* Disable default drag behavior */
    position: relative;
}

.main-product-image-container {
    height: 400px;
	width: 100%;
	display: flex;
	justify-content: center;
	align-items: center;
}

@media (max-width: 768px) {

    #prev-btn,
    #next-btn {
        bottom: 0;
        top: unset;
        transform: unset;
        height: 50px;
        font-size: 2rem;
        padding: 0;
    }

    #fullscreen-viewer {
        justify-content: flex-start;
    }


    .viewer-content {
        height: calc(100% - 100px);
    }

    .viewer-header {
        height: 50px;
    }

    #close-viewer {
        font-size: 2rem;
    }

    .fullscreen-image-count {
        font-size: 16px;
    }

    .viewer-footer {
        display: unset;
    }
}

/* OPTIONAL MAIN IMAGE CONTAINER CSS FOR CONVENIENCE */

/* 
.thumbnail-images {
    display: flex;
    flex-direction: row;
    gap: 10px;
    margin-bottom: auto;
    height: 200px;
    overflow-y: auto;
    scrollbar-width: none;

}

.thumbnail-image {
    width: 200px;
    height: 200px;
    border-radius: 10px;
    cursor: pointer;
    object-fit: cover;
}

.item-image-container {
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 20px;
    height: calc(100vh - 110px);
    width: 700px;
}

.main-image {
    width: 100%;
    height: 100%;
    max-height: calc(100vh - 350px);
    object-fit: contain;
    cursor: pointer;
    background-color: #e3e3e3;
} 
*/