/* Common Base Styles */
.cg-main-swiper.swiper-container,
.cg-thumb-swiper.swiper-container {
	width: 100%;
	margin-left: auto;
	margin-right: auto;
}
.cg-main-swiper.swiper-container {
	height: auto;
	min-height: 0;
}
.cg-thumb-swiper.swiper-container {
	height: 100%;
}
.cg-main-swiper ul.swiper-wrapper, .cg-thumb-swiper ul.swiper-wrapper {
	padding: 0;
	margin: 0;
}
.cg-main-swiper ul.swiper-wrapper li.swiper-slide, .cg-thumb-swiper ul.swiper-wrapper li.swiper-slide {
	list-style: none;
	margin: 0;
}
.cg-main-swiper {
	height: auto;
	width: 100%;
	position: relative;
}
.cg-main-swiper .swiper-slide img, .cg-thumb-swiper .swiper-slide img {
	display: block;
	width: 100%;
	height: auto;
}
.gallery-hide {
	display: none;
}
.gallery-show {
	display: block;
}
.elementor-invisible {
	visibility: visible;
}
.cg-main-swiper .swiper-slide:has(.cgkit-image-caption) {
	position: relative;
}
.cgkit-image-caption {
	box-sizing: border-box;
	position: absolute;
	bottom: 0.5rem;
	left: 0.5rem;
	padding: 0.4rem 0.5rem;
	background: rgba(255, 255, 255, 0.95);
	border-radius: 4px;
	max-width: calc(100% - 1rem);
	color: #000;
	font-size: 11px;
	line-height: 1.5;
	text-align: left;
}
.rtl .cgkit-image-caption { 
	right: 0.5rem;
	left: auto;
}
/* Video & Iframe Styles */
div.cgkit-play, div.cgkit-play svg {
	position: absolute;
	font-size: 100%;
	border-radius: 100px;
	top: 50%;
	left: 50%;
	width: 40px;
	height: 40px;
	transform: translate(-50%, -50%);
	z-index: 10;
	transition: 0.2s all;
}
div.cgkit-play:hover {
	background-color: rgba(0, 0, 0, .5);
}
div.cgkit-play:active, div.cgkit-play:focus {
	outline: 0;
	border: none;
	-moz-outline-style: none;
}
div.cg-main-swiper div.cgkit-play, div.cg-main-swiper div.cgkit-play svg,
div.pswp__scroll-wrap div.cgkit-play, div.pswp__scroll-wrap div.cgkit-play svg {
	width: 60px;
	height: 60px;
}
div.cg-main-swiper div.cgkit-play svg,
div.pswp__scroll-wrap div.cgkit-play svg {
	width: 80px;
	height: 80px;
}
div.cg-main-swiper .swiper-slide.cgkit-iframe-video-nap a {
	display: flex;
	justify-content: center;
	align-items: center;
	width: 100%;
	height: 100%;
}
div.cg-main-swiper .swiper-slide.cgkit-iframe-video a {
	display: flex;
	justify-content: center;
	align-items: center;
	width: 100%;
	height: 100%;
	background: #000;
}
div.cgkit-iframe-wrap {
	position: relative;
	padding-bottom: 56.25%;
	height: 0;
	width: 100%;
}
div.cgkit-iframe-wrap iframe {
	position: absolute;
	top: 0;
	left: 0px;
	width: 100%;
	height: 100%;
}
div.cgkit-iframe-wrap img {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	max-height: unset !important;
}
div.cgkit-video-wrap {
	position: relative;
	width: 100%;
}
div.cgkit-video-wrap video {
	display: block;
	width: 100%;
	height: auto;
	object-fit: fill;
	-o-object-fit: fill;
}
div.pswp__scroll-wrap div.cgkit-video-wrap {
	width: auto;
	height: 100%;
	margin: 0 auto;
	display: flex;
	align-items: center;
	justify-content: center;
}
div.pswp__scroll-wrap div.cgkit-video-wrap video {
	width: auto;
	height: 100%;
}
div.cgkit-video-wrap div.cgkit-play {
	opacity: 0;
	transition: 0.15s all;
}
div.cgkit-video-wrap:hover div.cgkit-play,
div.cgkit-video-wrap div.cgkit-play.not-autoplay {
	opacity: 1;
}
.cg-layout-horizontal .swiper-slide-imglink {
    height: auto;
    width: 100%;
}

/* Lightbox cursor */
.cg-lightbox-active .swiper-slide-imglink {
	cursor: zoom-in;
}

/* Active thumb styles */
.cg-thumb-swiper .swiper-slide {
    height: 100%;
    opacity: 0.4;
}
.cg-thumb-swiper .swiper-slide.active,
.cg-thumb-swiper .swiper-slide.swiper-slide-thumb-active {
    opacity: 1;
}

/* SVG Arrows */
#cuvys-pdp-gallery .swiper-button-next:after,
#cuvys-pdp-gallery .swiper-button-prev:after {
    content: "";
    font-family: inherit;
    font-size: inherit;
    width: 22px;
    height: 22px;
    background: #111;
    -webkit-mask-position: center;
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-size: contain;
}
#cuvys-pdp-gallery .swiper-button-next,
#cuvys-pdp-gallery .swiper-button-prev {
    width: 42px;
    height: 42px;
    margin-top: -21px;
    padding: 0;
    background: hsla(0, 0%, 100%, 0.75);
    transition: background 0.5s ease;
    border-radius: 0.25rem;
    cursor: pointer;
}
#cuvys-pdp-gallery .swiper-button-next:focus,
#cuvys-pdp-gallery .swiper-button-prev:focus {
    outline: 0;
}
#cuvys-pdp-gallery .swiper-button-next:focus-visible,
#cuvys-pdp-gallery .swiper-button-prev:focus-visible {
    outline: 0.25rem solid #2491ff;
    outline-offset: 0;
}
#cuvys-pdp-gallery .swiper-button-next:hover,
#cuvys-pdp-gallery .swiper-button-prev:hover {
    background: #fff;
}
#cuvys-pdp-gallery .swiper-button-prev:after,
#cuvys-pdp-gallery .swiper-button-next:after  {
    -webkit-mask-image: url("data:image/svg+xml;charset=utf8,%3Csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M15 19L8 12L15 5' stroke='%234A5568' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml;charset=utf8,%3Csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M15 19L8 12L15 5' stroke='%234A5568' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
#cuvys-pdp-gallery .swiper-button-next:after {
    -webkit-transform: scaleX(-1);
    transform: scaleX(-1);
}

/* RTL Styles */
.rtl #cuvys-pdp-gallery .swiper-button-next:after {
	-webkit-transform: none;
	transform: none;
}
.rtl #cuvys-pdp-gallery .swiper-button-prev:after {
	transform: scale(-1, 1);
}

/* Common Mobile Styles */
@media (max-width: 770px) {
	.ckit-mobile-pdp-gallery-active .swiper-container.cg-thumb-swiper {
		cursor: auto !important;
		height: inherit;
		margin-top: 5px;
		padding: 0 1em;
	}
	.ckit-mobile-pdp-gallery-active .swiper-container.cg-thumb-swiper .swiper-wrapper {
		display: inline-block;
		width: 100%;
		text-align: center;
		transform: none !important;
		line-height: 1em;
	}
	.ckit-mobile-pdp-gallery-active .swiper-container.cg-thumb-swiper .swiper-wrapper .swiper-slide {
		display: inline-block;
		background: #000;
		opacity: 0.2;
		cursor: auto;
		border-radius: 50%;
		margin: 1px 2px;
		max-width: 8px;
		height: 8px;
		padding: 0;
	}
	.ckit-mobile-pdp-gallery-active .swiper-container.cg-thumb-swiper .swiper-wrapper .swiper-slide.swiper-slide-thumb-active {
		background: #555;
		opacity: 1;
	}
	.ckit-mobile-pdp-gallery-active .swiper-button-next,
	.ckit-mobile-pdp-gallery-active .swiper-button-prev {
		display: none;
	}
	.ckit-mobile-pdp-gallery-active .swiper-container.cg-thumb-swiper .swiper-wrapper .swiper-slide > * {
		display: none !important;
	}
	.ckit-mobile-pdp-gallery-active.ckit-mobile-show-edge .swiper-wrapper.cg-psp-gallery {
		display: flex;
		gap: 10px;
	}
	.ckit-mobile-pdp-gallery-active.ckit-mobile-show-edge .cgkit-one-slider .swiper-wrapper.cg-psp-gallery {
		gap: 0px;
	}
	.ckit-mobile-pdp-gallery-active.ckit-mobile-show-edge .swiper-wrapper.cg-psp-gallery .swiper-slide {
		display: flex;
		width: var(--cgkit-showedge-percent, 91%);
	}
	.ckit-mobile-pdp-gallery-active.ckit-mobile-show-edge .swiper-wrapper.cg-psp-gallery .swiper-slide img {
		max-width: 100%;
		max-height: 100%;
		height: auto !important;
	}
	.ckit-mobile-pdp-gallery-active.ckit-mobile-show-edge .cg-main-swiper.swiper-container-initialized .swiper-wrapper .swiper-slide {
		display: flex;
	}
	.ckit-mobile-pdp-gallery-active.ckit-mobile-show-edge .cg-main-swiper.swiper-container-initialized .swiper-wrapper.cg-psp-gallery {
		gap: 0;
	}
	.ckit-mobile-pdp-gallery-active.ckit-mobile-show-edge .cg-main-swiper.swiper-container-initialized .swiper-wrapper.cg-psp-gallery .swiper-slide {
		flex: none;
	}
	.ckit-mobile-pdp-gallery-active .cgkit-one-slider .swiper-wrapper.cg-psp-gallery .swiper-slide {
		flex: none;
		width: 100%;
		display: block !important;
	}
	.cgkit-iframe-wrap {
		position: relative;
	}
	.cgkit-iframe-wrap.cgkit-iframe-autoplay::before,
	.cg-lightbox-active .cgkit-iframe-embed::before {
		content: "";
		background: transparent;
		width: 100%;
		height: 100%;
		min-height: 1px;
		position: absolute;
		top: 0;
		left: 0;
		z-index: 99;
	}
	.pswp--animated-in .pswp__zoom-wrap {
		display: flex;
		justify-content: center;
		align-items: center;
	}
	div.cgkit-iframe-wrap {
		width: 100%;
	}
	/* Video autoplay on mobile */
	div.cg-main-swiper div.cgkit-video-wrap.autoplay div.cgkit-play svg,
	div.pswp__scroll-wrap div.cgkit-video-wrap.autoplay div.cgkit-play svg {
		display: none;
		visibility: hidden;
	}
	div.cgkit-video-wrap.autoplay div.cgkit-play {
		width: 100%;
		height: 100%;
		border-radius: 0px;
	}
	div.cgkit-video-wrap.autoplay div.cgkit-play:hover {
		background: none;
	}
	div.cgkit-video-wrap.autoplay video {
		display: block;
	}
	div.cgkit-video-wrap.autoplay img {
		display: none;
	}
	/* Full screen video on mobile */
	div.pswp__scroll-wrap div.cgkit-video-wrap {
		width: auto !important; /* safari */
		display: flex;
		align-items: center;
	}
	div.pswp__scroll-wrap div.cgkit-video-wrap video {
		height: auto !important;
	}
}
/* Common wrapper styles */
#cuvys-pdp-gallery-wrapper.ckit-shortcode-gallery {
	max-width: 100%;
	width: 100%;
}
.cgkit-single-gallery #cuvys-pdp-gallery .swiper-button-next,
.cgkit-single-gallery #cuvys-pdp-gallery .swiper-button-prev {
	display: none;
}
.pswp .pswp__caption__center {
	word-wrap: break-word;
}

/*
 * Remove WooCommerce’s default gallery lightbox / zoom control (legacy <a> with
 * class woocommerce-product-gallery__trigger, often styled as a “+” or expand icon).
 * Elementor and some themes may still print it next to the Cuvys Swiper gallery.
 */
body:has( #cuvys-pdp-gallery ) a.woocommerce-product-gallery__trigger,
body:has( #cuvys-pdp-gallery-wrapper ) a.woocommerce-product-gallery__trigger,
body:has( #cuvys-pdp-gallery ) .woocommerce-product-gallery__trigger,
body:has( #cuvys-pdp-gallery-wrapper ) .woocommerce-product-gallery__trigger {
	display: none !important;
	visibility: hidden !important;
	pointer-events: none !important;
}


/**
 * Elementor: Swiper slides use flex + justify-content:center (product-gallery-swiper.css), so the
 * link/img stay content-sized. justify-content:stretch is invalid for flexbox — use flex-start +
 * full-width chain. .cuvys-ec-el-gallery--stretch-scope wraps widget output; .cuvys-ec-el-gallery--stretch-main is on the Elementor element.
 */
.elementor-widget-cuvys-essential-commerce-product-gallery.cuvys-ec-el-gallery--stretch-main,
.elementor-element.cuvys-ec-el-gallery--stretch-main {
	width: 100%;
	max-width: 100%;
	align-self: stretch;
	min-width: 0;
	box-sizing: border-box;
}
.elementor-widget-cuvys-essential-commerce-product-gallery.cuvys-ec-el-gallery--stretch-main > .elementor-widget-container,
.elementor-element.cuvys-ec-el-gallery--stretch-main > .elementor-widget-container {
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
}
.cuvys-ec-el-gallery--stretch-scope #cuvys-pdp-gallery-wrapper,
.cuvys-ec-el-gallery--stretch-scope #cuvys-pdp-gallery,
.elementor-widget-cuvys-essential-commerce-product-gallery.cuvys-ec-el-gallery--stretch-main #cuvys-pdp-gallery-wrapper,
.elementor-widget-cuvys-essential-commerce-product-gallery.cuvys-ec-el-gallery--stretch-main #cuvys-pdp-gallery,
.elementor-element.cuvys-ec-el-gallery--stretch-main #cuvys-pdp-gallery-wrapper,
.elementor-element.cuvys-ec-el-gallery--stretch-main #cuvys-pdp-gallery {
	box-sizing: border-box;
	max-width: 100%;
	width: 100%;
}
.cuvys-ec-el-gallery--stretch-scope .cg-main-swiper.swiper-container,
.elementor-widget-cuvys-essential-commerce-product-gallery.cuvys-ec-el-gallery--stretch-main .cg-main-swiper.swiper-container,
.elementor-element.cuvys-ec-el-gallery--stretch-main .cg-main-swiper.swiper-container {
	box-sizing: border-box;
	max-width: 100%;
	width: 100%;
	min-width: 0;
}
.cuvys-ec-el-gallery--stretch-scope .cg-main-swiper ul.swiper-wrapper,
.elementor-widget-cuvys-essential-commerce-product-gallery.cuvys-ec-el-gallery--stretch-main .cg-main-swiper ul.swiper-wrapper,
.elementor-element.cuvys-ec-el-gallery--stretch-main .cg-main-swiper ul.swiper-wrapper {
	box-sizing: border-box;
	width: 100%;
}
/* Main swiper — before JS: ONE slide visible (.product-gallery-swiper.css); wider Elementor specificity must mirror that rule to avoid CLS + horizontal overflow before Swiper initializes. After init, width comes from Swiper (no width !important on slides). */
.cuvys-ec-el-gallery--stretch-scope .cg-main-swiper:not(.swiper-container-initialized) .swiper-wrapper > .swiper-slide:not(:first-child),
.elementor-widget-cuvys-essential-commerce-product-gallery.cuvys-ec-el-gallery--stretch-main .cg-main-swiper:not(.swiper-container-initialized) .swiper-wrapper > .swiper-slide:not(:first-child),
.elementor-element.cuvys-ec-el-gallery--stretch-main .cg-main-swiper:not(.swiper-container-initialized) .swiper-wrapper > .swiper-slide:not(:first-child) {
	display: none !important;
}
.cuvys-ec-el-gallery--stretch-scope .cg-main-swiper:not(.swiper-container-initialized) .swiper-wrapper > .swiper-slide:first-child,
.elementor-widget-cuvys-essential-commerce-product-gallery.cuvys-ec-el-gallery--stretch-main .cg-main-swiper:not(.swiper-container-initialized) .swiper-wrapper > .swiper-slide:first-child,
.elementor-element.cuvys-ec-el-gallery--stretch-main .cg-main-swiper:not(.swiper-container-initialized) .swiper-wrapper > .swiper-slide:first-child {
	display: flex !important;
	flex-flow: row nowrap !important;
	justify-content: flex-start !important;
	align-items: stretch !important;
	align-content: stretch !important;
	width: 100% !important;
	max-width: 100% !important;
	min-width: 0 !important;
	box-sizing: border-box;
}
.cuvys-ec-el-gallery--stretch-scope .cg-main-swiper.swiper-container-initialized .swiper-wrapper > .swiper-slide,
.elementor-widget-cuvys-essential-commerce-product-gallery.cuvys-ec-el-gallery--stretch-main .cg-main-swiper.swiper-container-initialized .swiper-wrapper > .swiper-slide,
.elementor-element.cuvys-ec-el-gallery--stretch-main .cg-main-swiper.swiper-container-initialized .swiper-wrapper > .swiper-slide {
	display: flex !important;
	flex-flow: row nowrap !important;
	justify-content: flex-start !important;
	align-items: stretch !important;
	align-content: stretch !important;
	min-width: 0 !important;
	box-sizing: border-box;
}
.cuvys-ec-el-gallery--stretch-scope .cg-main-swiper .swiper-slide .swiper-slide-imglink,
.elementor-widget-cuvys-essential-commerce-product-gallery.cuvys-ec-el-gallery--stretch-main .cg-main-swiper .swiper-slide .swiper-slide-imglink,
.elementor-element.cuvys-ec-el-gallery--stretch-main .cg-main-swiper .swiper-slide .swiper-slide-imglink {
	display: block !important;
	box-sizing: border-box;
	width: 100% !important;
	max-width: 100% !important;
	min-width: 0 !important;
	flex: 1 1 auto;
	align-self: stretch;
}
/* Inner WooCommerce wrapper keeps intrinsic width unless forced (common in Swiper slides). */
.cuvys-ec-el-gallery--stretch-scope .cg-main-swiper .swiper-slide .swiper-slide-imglink > .woocommerce-product-gallery__image,
.elementor-widget-cuvys-essential-commerce-product-gallery.cuvys-ec-el-gallery--stretch-main .cg-main-swiper .swiper-slide .swiper-slide-imglink > .woocommerce-product-gallery__image,
.elementor-element.cuvys-ec-el-gallery--stretch-main .cg-main-swiper .swiper-slide .swiper-slide-imglink > .woocommerce-product-gallery__image {
	width: 100% !important;
	max-width: 100% !important;
	display: block !important;
	box-sizing: border-box;
}
.cuvys-ec-el-gallery--stretch-scope .cg-main-swiper .swiper-slide img,
.elementor-widget-cuvys-essential-commerce-product-gallery.cuvys-ec-el-gallery--stretch-main .cg-main-swiper .swiper-slide img,
.elementor-element.cuvys-ec-el-gallery--stretch-main .cg-main-swiper .swiper-slide img {
	box-sizing: border-box;
	display: block;
	width: 100% !important;
	max-width: 100% !important;
	height: auto !important;
}
.cuvys-ec-el-gallery--stretch-scope #cuvys-pdp-gallery.cg-pdp-zoom-enabled .cg-main-swiper a.swiper-slide-imglink .cg-pdp-zoom-inner,
.elementor-widget-cuvys-essential-commerce-product-gallery.cuvys-ec-el-gallery--stretch-main #cuvys-pdp-gallery.cg-pdp-zoom-enabled .cg-main-swiper a.swiper-slide-imglink .cg-pdp-zoom-inner,
.elementor-element.cuvys-ec-el-gallery--stretch-main #cuvys-pdp-gallery.cg-pdp-zoom-enabled .cg-main-swiper a.swiper-slide-imglink .cg-pdp-zoom-inner {
	background-size: cover;
	background-position: center center;
}

/* Elementor nested flex columns: min-width:auto can block full column width */
.e-con .elementor-widget-cuvys-essential-commerce-product-gallery.cuvys-ec-el-gallery--stretch-main,
.e-con-inner .elementor-widget-cuvys-essential-commerce-product-gallery.cuvys-ec-el-gallery--stretch-main {
	flex: 1 1 auto;
	min-width: 0;
	max-width: 100%;
	width: 100%;
	align-self: stretch;
}

.e-con .elementor-widget-cuvys-essential-commerce-product-gallery.cuvys-ec-el-gallery--stretch-main {
	flex-grow: 1;
	min-width: 0;
	max-width: 100%;
	align-self: stretch;
}

/**
 * Elementor “Shortcode” widget + `[cuvys_essential_commerce_product_gallery]`
 *
 * Dedicated widget adds `.cuvys-ec-el-gallery--stretch-main` on the Elementor wrapper. Shortcode markup
 * only has inner `.cuvys-ec-el-gallery--stretch-scope`, so Flexbox columns keep min-width:auto and the
 * gallery stays narrow (empty space beside it) — unlike native Shoptimizer WC column width.
 */
.elementor-widget.elementor-widget-shortcode {
	align-self: stretch;
}
.elementor-widget.elementor-widget-shortcode > .elementor-widget-container {
	width: 100%;
	max-width: 100%;
	min-width: 0;
	box-sizing: border-box;
}
.e-con > .elementor-element.elementor-widget-shortcode:has( .cuvys-ec-el-gallery--stretch-scope ),
.e-con-inner > .elementor-element.elementor-widget-shortcode:has( .cuvys-ec-el-gallery--stretch-scope ),
.e-container > .elementor-element.elementor-widget-shortcode:has( .cuvys-ec-el-gallery--stretch-scope ) {
	flex: 1 1 auto;
	min-width: 0;
	max-width: 100%;
	align-self: stretch;
}
/* Same stretch at any nesting depth — shortcode widgets are usually inside nested containers, not direct .e-con children */
.e-con .elementor-element.elementor-widget-shortcode:has( .cuvys-ec-el-gallery--stretch-scope ),
.e-con-inner .elementor-element.elementor-widget-shortcode:has( .cuvys-ec-el-gallery--stretch-scope ),
.elementor-column .elementor-widget-shortcode:has( .cuvys-ec-el-gallery--stretch-scope ) {
	flex: 1 1 auto !important;
	min-width: 0 !important;
	max-width: 100% !important;
	width: 100% !important;
	align-self: stretch !important;
}
.elementor-location-single .elementor-widget.elementor-widget-shortcode:has( .cuvys-ec-el-gallery--stretch-scope ) {
	flex: 1 1 auto;
	min-width: 0;
	max-width: 100%;
	align-self: stretch;
}
.elementor-widget.elementor-widget-shortcode:has( .cuvys-ec-el-gallery--stretch-scope ),
.elementor-element.elementor-widget-shortcode:has( .cuvys-ec-el-gallery--stretch-scope ) {
	width: 100% !important;
	max-width: 100% !important;
	min-width: 0 !important;
	flex-grow: 1;
	align-self: stretch !important;
}
.elementor-widget.elementor-widget-shortcode:has( .cuvys-ec-el-gallery--stretch-scope ) > .elementor-widget-container,
.elementor-element.elementor-widget-shortcode:has( .cuvys-ec-el-gallery--stretch-scope ) > .elementor-widget-container {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	align-content: stretch;
	width: 100% !important;
	max-width: 100% !important;
	min-width: 0 !important;
	box-sizing: border-box;
}
.elementor-widget-wrap.elementor-element:has( .elementor-widget-shortcode .cuvys-ec-el-gallery--stretch-scope ) {
	align-items: stretch !important;
	width: 100%;
	max-width: 100%;
	align-self: stretch;
}
.elementor-widget-shortcode .cuvys-ec-el-gallery--stretch-scope {
	display: block;
	width: 100%;
	max-width: 100%;
	min-width: 0;
	box-sizing: border-box;
}
.elementor-widget-shortcode .cuvys-ec-el-gallery--stretch-scope #cuvys-pdp-gallery-wrapper,
.elementor-widget-shortcode .cuvys-ec-el-gallery--stretch-scope #cuvys-pdp-gallery {
	box-sizing: border-box;
	max-width: 100%;
	width: 100%;
}
.elementor-widget-shortcode .cuvys-ec-el-gallery--stretch-scope .cg-main-swiper.swiper-container,
.elementor-widget-shortcode .cuvys-ec-el-gallery--stretch-scope .cg-thumb-swiper.swiper-container {
	box-sizing: border-box;
	max-width: 100%;
	width: 100%;
	min-width: 0;
}
.elementor-widget-shortcode .cuvys-ec-el-gallery--stretch-scope .cg-main-swiper ul.swiper-wrapper {
	box-sizing: border-box;
	width: 100%;
}
.elementor-widget-shortcode .cuvys-ec-el-gallery--stretch-scope .cg-main-swiper:not(.swiper-container-initialized) .swiper-wrapper > .swiper-slide:not(:first-child) {
	display: none !important;
}
.elementor-widget-shortcode .cuvys-ec-el-gallery--stretch-scope .cg-main-swiper:not(.swiper-container-initialized) .swiper-wrapper > .swiper-slide:first-child {
	display: flex !important;
	flex-flow: row nowrap !important;
	justify-content: flex-start !important;
	align-items: stretch !important;
	align-content: stretch !important;
	width: 100% !important;
	max-width: 100% !important;
	min-width: 0 !important;
	box-sizing: border-box;
}
.elementor-widget-shortcode .cuvys-ec-el-gallery--stretch-scope .cg-main-swiper.swiper-container-initialized .swiper-wrapper > .swiper-slide {
	display: flex !important;
	flex-flow: row nowrap !important;
	justify-content: flex-start !important;
	align-items: stretch !important;
	align-content: stretch !important;
	min-width: 0 !important;
	box-sizing: border-box;
}
.elementor-widget-shortcode .cuvys-ec-el-gallery--stretch-scope .cg-main-swiper .swiper-slide .swiper-slide-imglink {
	display: block !important;
	box-sizing: border-box;
	width: 100% !important;
	max-width: 100% !important;
	min-width: 0 !important;
	flex: 1 1 auto;
	align-self: stretch;
}
.elementor-widget-shortcode .cuvys-ec-el-gallery--stretch-scope .cg-main-swiper .swiper-slide .swiper-slide-imglink > .woocommerce-product-gallery__image {
	width: 100% !important;
	max-width: 100% !important;
	display: block !important;
	box-sizing: border-box;
}
.elementor-widget-shortcode .cuvys-ec-el-gallery--stretch-scope .cg-main-swiper .swiper-slide img {
	box-sizing: border-box;
	display: block;
	width: 100% !important;
	max-width: 100% !important;
	height: auto !important;
}
/* wp_get_attachment_image may wrap img in picture — constrain that box too inside Swiper slides */
.elementor-widget-shortcode .cuvys-ec-el-gallery--stretch-scope .cg-main-swiper .swiper-slide picture,
.elementor-widget-cuvys-essential-commerce-product-gallery.cuvys-ec-el-gallery--stretch-main .cg-main-swiper .swiper-slide picture,
.elementor-element.cuvys-ec-el-gallery--stretch-main .cg-main-swiper .swiper-slide picture,
.cuvys-ec-el-gallery--stretch-scope .cg-main-swiper .swiper-slide picture {
	display: block;
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
}
.elementor-widget-shortcode .cuvys-ec-el-gallery--stretch-scope .cg-main-swiper .swiper-slide picture img,
.elementor-widget-cuvys-essential-commerce-product-gallery.cuvys-ec-el-gallery--stretch-main .cg-main-swiper .swiper-slide picture img {
	width: 100% !important;
	max-width: 100% !important;
	height: auto !important;
}
.elementor-widget-shortcode .cuvys-ec-el-gallery--stretch-scope #cuvys-pdp-gallery.cg-layout-horizontal .cg-thumb-swiper,
.elementor-widget-shortcode .cuvys-ec-el-gallery--stretch-scope #cuvys-pdp-gallery:not( .cg-layout-vertical-left ):not( .cg-layout-vertical-right ) .cg-thumb-swiper.swiper-container {
	width: 100%;
	max-width: 100%;
}
.elementor-widget-shortcode .cuvys-ec-el-gallery--stretch-scope #cuvys-pdp-gallery.cg-pdp-zoom-enabled .cg-main-swiper a.swiper-slide-imglink .cg-pdp-zoom-inner {
	background-size: cover;
	background-position: center center;
}



/* Elementor editor: collapsed empty gallery widget */
/* Dedicated widget: variable PDP markup uses visibility:hidden until Swiper initializes — unblock if iframe missed scripts. */
.elementor-widget-cuvys-essential-commerce-product-gallery #cuvys-pdp-gallery[style*="visibility: hidden"],
.elementor-widget-cuvys-essential-commerce-product-gallery #cuvys-pdp-gallery[style*="visibility:hidden"],
.elementor-element.cuvys-ec-el-gallery--stretch-main #cuvys-pdp-gallery[style*="visibility: hidden"],
.elementor-element.cuvys-ec-el-gallery--stretch-main #cuvys-pdp-gallery[style*="visibility:hidden"] {
	visibility: visible !important;
}

.elementor-widget-shortcode .cuvys-ec-el-pdp-gallery-mount #cuvys-pdp-gallery[style*="visibility: hidden"],
.elementor-widget-shortcode .cuvys-ec-el-pdp-gallery-mount #cuvys-pdp-gallery[style*="visibility:hidden"] {
	visibility: visible !important;
}

.cuvys-ec-el-gallery-placeholder {
	box-sizing: border-box;
	min-height: 220px;
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1.25rem;
	background: #f4f4f4;
	border: 1px dashed #c5c5c5;
	color: #505050;
	text-align: center;
	font-size: 13px;
	line-height: 1.45;
}
.cuvys-ec-el-gallery-placeholder__text {
	max-width: 18rem;
}