.blinds-product-gallery {
	width: min(560px, 100%);
	max-height: 712px;
}

.blinds-main-image-container {
	position: relative;
	width: 100%;
	height: 560px;
}

.blinds-main-image {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #fff;
    z-index: 0;
    cursor: pointer;
}

.blinds-main-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    object-fit: contain;
    transition: transform 0.3s ease-out;
    will-change: transform;
}

.blinds-main-image img.current {
    position: relative;
}

/* Navigation Controls */
.blinds-nav-button {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 50px;
	height: 50px;
	background-color: rgba(255, 255, 255, 0.8);
	border: none;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	z-index: 5;
	box-shadow: 0 0 6px #00000029;
}

.blinds-nav-button:hover,
.blinds-nav-button:focus {
	background-color: rgba(255, 255, 255, 0.8);
	outline: none;
}

.blinds-prev {
	left: 15px;
}
.blinds-next {
	right: 15px;
}



.blinds-product-gallery-chevron-left svg{
	transform: rotate(180deg);
	margin-top: 6px;
	margin-right: 3px;
}

.blinds-product-gallery-chevron-left svg path{
	fill: #6a5d87;
}

.blinds-product-gallery-chevron-right svg{
	margin-top: 6px;
	margin-left: 3px;
}

.blinds-product-gallery-chevron-right svg path{
	fill: #6a5d87;
}




.blinds-main-swiper {
    width: 100%;
    height: 100%;
}

.blinds-main-swiper .swiper-slide {
    width: 100%;
    height: 100%;
}

.blinds-main-swiper .blinds-main-image {
    width: 100%;
    height: 100%;
}




/* Thumbnail Section */
.blinds-thumbnails-slider {
	width: 75%;
	position: relative;
	margin-top: 20px;
	transition: width 0.3s ease;
}

.blinds-product-gallery:not(:has(.blinds-video-thumbnail-wrapper)) .blinds-thumbnails-slider {
	width: 100%;
}

.blinds-thumbnail {
	height: 100%;
	cursor: pointer;
	background-color: #fff;
}

.swiper-slide.swiper-slide-duplicate {
	cursor: pointer;
}

.blinds-thumbnail.active {
	box-shadow: 0 0 6px #0000004d;
	border-radius: 4px;
}

.blinds-thumbnail.active img {
	border: 1px solid #747474;
}

.blinds-thumbnail img:hover {
	border: 1px solid #747474;
}

.blinds-thumbnail img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

/* Thumbnail Navigation */
.blinds-thumbnails-button-prev,
.blinds-thumbnails-button-next {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 30px;
	height: 30px;
	background-color: rgba(255, 255, 255, 0.8);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer !important;
	z-index: 2;
	border: 1px solid rgba(0, 0, 0, 0.1);
}

.blinds-thumbnails-button-prev:hover,
.blinds-thumbnails-button-next:hover {
	background-color: #fff;
}

.blinds-video-thumbnail-wrapper {
	position: absolute;
	left: 0;
	z-index: 2;
	width: calc(25% - 8px); /* maybe 8px */
	aspect-ratio: 1;
}

.blinds-video-thumbnail {
	width: 100%;
	height: 100%;
	background-color: gray;
	background-repeat: no-repeat;
	background-position: center center;
	background-size: cover;
	object-fit: cover;
	display: flex;
	justify-content: center;
	align-items: center;
	transition: ease-in-out 0.2s;
}

.blinds-video-thumbnail svg {
	transition: ease-in-out 0.2s;
}

.blinds-video-thumbnail svg:hover {
	transform: scale(1.1);
}

.blinds-product-discount-banner {
	position: absolute;
	z-index: 4;
	display: flex;
	justify-content: center;
	align-items: center;
}

.blinds-product-discount-banner span {
	position: absolute;
	text-align: center;
	font-size: 16px;
	font-weight: bold;
}

.blinds-banner-text-wrapper {
	position: absolute;
	max-width: 80px;
	text-align: center;
	word-wrap: break-word;
	z-index: 4;
}

.blinds-banner-text-wrapper p {
	margin: 0;
	padding: 0;
	line-height: 0.8;
}

/* Ribbon Banner */
.blinds-product-badges-container {
	position: absolute;
	right: 0;
	z-index: 2;
	width: auto;
	display: flex;
	flex-direction: column;
	gap: 0px;
}

.blinds-product-ribbon-banner-wrapper {
	position: relative;
	right: -4px;
	z-index: 3;
	width: fit-content;
	min-width: 120px;
}

.blinds-product-ribbon-banner-body {
	color: white;
	padding: 3px 16px 3px 26px;
	font-size: 18px;
	clip-path: polygon(0 0, 100% 0%, 100% 99%, 10% 100%);
	box-shadow: 0 2px 4px #00000066;
	background-color: #4266ae;
	width: fit-content;
	white-space: nowrap;
}

.blinds-product-ribbon-banner-bottom {
	width: 4px;
	height: 4px;
	background-color: #183d7a;
	clip-path: polygon(0 0, 100% 0%, 50% 50%, 0 100%);
	margin-top: -0.4px;
}

/* Icon Styles */
.eicon-chevron-right,
.eicon-chevron-left {
	color: #6a5d87;
	font-size: 25px;
	font-weight: bold;
}

.eicon-chevron-right {
	margin-left: 3px;
}
.eicon-chevron-left {
	margin-right: 3px;
}

/* Lightbox Styles */
.blinds-lightbox {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.9);
	display: flex;
	justify-content: center;
	align-items: center;
	z-index: 9999;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.3s ease, visibility 0.3s ease;
}

.blinds-lightbox.active {
	opacity: 1;
	visibility: visible;
}

.blinds-lightbox-content {
	position: relative;
	max-height: 90vh;
	opacity: 0;
	padding: 0;
	margin: 0;
	transform: scale(0.95);
	transition: opacity 0.3s ease, transform 0.3s ease;
	background: white;
}

.blinds-lightbox.active .blinds-lightbox-content {
	opacity: 1;
	transform: scale(1);
}

.blinds-lightbox-content img {
	max-width: 100%;
	max-height: 90vh;
	display: block;
	padding: 8px;
	opacity: 1;
	transform: scale(0.98);
	transition: opacity 0.3s ease, transform 0.3s ease;
}

.blinds-lightbox-content img.transitioning {
	opacity: 0;
}

.blinds-lightbox-content img.loaded {
	opacity: 1;
	transform: scale(1);
}

.blinds-lightbox-close {
	position: absolute;
	top: -30px;
	left: -30px;
	cursor: pointer;
	width: 70px;
	height: 70px;
	z-index: 5;
	transition: ease-in-out .3s;
}

.blinds-lightbox-close:hover{
	transform: rotate(180deg);
}

.blinds-lightbox-close:focus,
.blinds-lightbox-nav:focus {
	outline: none !important;
	box-shadow: none !important;
	background: rgba(255, 255, 255, 0.8);
}

.blinds-lightbox-nav, .blinds-lightbox-nav:hover {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	background: none;
	border: none;
	border-radius: 50%;
	width: 70px;
	height: 70px;
	cursor: pointer;
	z-index: 5;
	padding: 0px;
}

.blinds-lightbox-nav svg{
	width: 100%;
	height: 100%;
}

.blinds-lightbox-prev {
	left: -100px;
}

.blinds-lightbox-prev svg{
	transform: scaleX(-1);
}

.blinds-lightbox-next {
	right: -100px;
}

.blinds-lightbox button.elementor-button,
.blinds-lightbox button.elementor-button:hover,
.blinds-lightbox button.elementor-button:focus {
	background: none;
	box-shadow: none;
	border: none;
}

.blinds-thumbnails-slider.fewer-items .swiper-slide {
	flex-shrink: 0; /* Prevent slides from shrinking */
	width: calc(25% - 8px) !important;
}

.blinds-thumbnails-slider.fewer-items .swiper-wrapper {
	justify-content: flex-start;
	transform: translate3d(0, 0, 0) !important;
	gap: 0;
}

/* Animation styles for product page */
.blinds-floating-product-image {
	position: fixed;
	pointer-events: none;
	z-index: 9999;
	transition: all 1.5s cubic-bezier(0.2, 1, 0.3, 1);
	opacity: 1;
}

.blinds-floating-product-image.start-animation {
	transform: scale(1.5);
}

.blinds-floating-product-image.end-animation {
	transform: scale(0.2);
	opacity: 0;
}

.thumbnails-section {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
}

.thumbnails-section.css-loaded {
    opacity: 1;
    visibility: visible;
}


@media screen and (max-width: 768px) {

	.blinds-product-gallery {
		max-height: 437px;
	}

	.blinds-lightbox-content {
		max-width: 90%;
	}

	.blinds-lightbox-nav {
		display: none;
	}

	.blinds-lightbox-close {
		left: -5px;
		top: -15px;
		width: 56px;
		height: 56px;
	}

	.blinds-main-image-container {
		height: 300px;
	}
	.blinds-nav-button,
	.blinds-thumbnails-button-prev,
	.blinds-thumbnails-button-next {
		width: 30px;
		height: 32px !important;
	}
	.blinds-product-gallery-chevron-left svg{
		width: 10px;
		height: 15px;
	}
	.blinds-product-gallery-chevron-right svg{
		width: 10px;
		height: 15px;
	}
	.blinds-video-thumbnail svg {
		width: 50.35px;
		height: 50.35px;
	}
	.blinds-thumbnails-slider {
		width: 66%;
	}
	.blinds-product-gallery:not(:has(.blinds-video-thumbnail-wrapper)) .blinds-thumbnails-slider {
		width: 100%;
	}
	.blinds-thumbnails-slider.fewer-items .swiper-slide {
		width: calc(50% - 5.5px) !important;
	}
	.blinds-video-thumbnail-wrapper {
		width: calc(33% - 5.5px) !important;
	}
	.blinds-product-gallery:not(:has(.blinds-video-thumbnail-wrapper)) .blinds-thumbnails-slider.fewer-items .swiper-slide {
		width: calc(33% - 5.5px) !important;
	}
	.eicon-chevron-right,
	.eicon-chevron-left {
		font-size: 16px;
	}
	.blinds-product-ribbon-banner-wrapper {
		bottom: 1%;
		right: -24px;
	}
}

/* Adjust thumbnail container for fewer items */
@media screen and (min-width: 1024px) {
	.blinds-thumbnails-slider.fewer-items {
		width: auto;
		margin-right: auto;
	}
}

@media screen and (max-width: 480px) {
	.blinds-nav-button {
		width: 30px;
		height: 30px;
	}
	.blinds-thumbnails-button-prev,
	.blinds-thumbnails-button-next {
		width: 22px;
		height: 22px;
	}
}


/* Editor mode styles to match live site layout */
.elementor-editor-active .blinds-thumbnails-slider,
.elementor-editor-preview .blinds-thumbnails-slider {
    width: 75%;
    margin-top: 20px;
}

.elementor-editor-active .swiper-slide,
.elementor-editor-preview .swiper-slide {
    width: calc(33.333% - 7px);
}

.elementor-editor-active .swiper-slide:not(:first-child),
.elementor-editor-preview .swiper-slide:not(:first-child) {
    margin-right: 10px;
}

.elementor-editor-active .blinds-thumbnail,
.elementor-editor-preview .blinds-thumbnail {
    aspect-ratio: 1/1;
    width: 100%;
}

.elementor-editor-active .blinds-thumbnail img,
.elementor-editor-preview .blinds-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.elementor-editor-active .swiper-wrapper,
.elementor-editor-preview .swiper-wrapper {
    display: flex;
    transform: none;
}

/* Mobile styles for editor */
@media screen and (max-width: 768px) {
    .elementor-editor-active .blinds-thumbnails-slider,
    .elementor-editor-preview .blinds-thumbnails-slider {
        width: 66%;
    }
    
    .elementor-editor-active .swiper-slide,
    .elementor-editor-preview .swiper-slide {
        width: calc(50% - 5.5px);
    }
}