option {
    color: #000;
}

.custom-product-gallery,
.custom-page-gallery
{
    display: flex;
    gap: 20px;
}

.thumbnails-column {
    width: 120px;
    max-height: 700px;
    overflow-y: hidden;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.thumbnail {
    width: 100%;
    height: auto;
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.thumbnail.active,
.thumbnail:hover {
    opacity: 1;
}

.main-image-column {
    flex-grow: 1;
	height: 700px;
}

.main-image {
    width: 100%;
    height: 100% !important;
	max-height: 700px !important;
    object-fit: cover;
}



.custom-page-gallery .thumbnail,
.custom-product-gallery .thumbnail { 
	 position: relative; overflow: hidden; 
}

.custom-page-gallery .thumbnail-overlay,
.custom-product-gallery .thumbnail-overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: #ccc;
}

.custom-page-gallery .main-image-column,
.custom-product-gallery .main-image-column { 
	position: relative; 
}

.custom-page-gallery .main-image,
.custom-product-gallery .main-image {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}



/* Media query for mobile devices */
@media screen and (max-width: 1024px) {
    .custom-product-gallery,
	.custom-page-gallery{
        flex-direction: column-reverse;
    }

    .thumbnails-column {
        width: 100%;
        max-height: none;
        overflow-x: auto;
        overflow-y: hidden;
        flex-direction: row;
        padding: 10px 0;
    }

    .thumbnail {
        width: auto;
        height: 160px; /* Adjust as needed */
        flex-shrink: 0;
    }

    .main-image-column {
        margin-bottom: 10px;
		height: auto;
    }

    .main-image {
        max-height: 400px; /* Adjust as needed */
        object-fit: contain;
    }
}

@media (max-width: 1024px) {
	.custom-page-gallery .main-image-column,
	.custom-product-gallery .main-image-column { 
		position: relative;
		height: 300px;
	}
}