.yuki-product-gallery-widget,
.yuki-product-gallery-widget * {
	box-sizing: border-box !important;
}

.yuki-product-gallery-widget {
	display: block !important;
	width: 100% !important;
	max-width: 100% !important;
	margin: 0 !important;
	padding: 0 !important;
}

.yuki-product-gallery-widget .yuki-gallery-active.woocommerce-product-gallery,
.yuki-product-gallery-widget div.woocommerce-product-gallery.yuki-gallery-active {
	display: flex !important;
	flex-direction: column !important;
	align-items: stretch !important;
	gap: 14px !important;
	width: 100% !important;
	float: none !important;
	max-width: 100% !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	background: transparent !important;
	box-shadow: none !important;
	opacity: 1 !important;
}

.yuki-product-gallery-widget .yuki-gallery-active .flex-viewport,
.yuki-product-gallery-widget .yuki-gallery-active .flexslider {
	width: 100% !important;
	max-width: 100% !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 28px !important;
	background: #f6f7fb !important;
	box-shadow: none !important;
	overflow: hidden !important;
}

.yuki-product-gallery-widget .yuki-gallery-active .woocommerce-product-gallery__wrapper,
.yuki-product-gallery-widget .yuki-gallery-active .woocommerce-product-gallery__image,
.yuki-product-gallery-widget .yuki-gallery-active .woocommerce-product-gallery__image a {
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	background: transparent !important;
	box-shadow: none !important;
	overflow: hidden !important;
}

.yuki-product-gallery-widget .yuki-gallery-active .flex-viewport img,
.yuki-product-gallery-widget .yuki-gallery-active .flexslider .slides img,
.yuki-product-gallery-widget .yuki-gallery-active .woocommerce-product-gallery__image img {
	display: block !important;
	width: 100% !important;
	max-width: 100% !important;
	height: auto !important;
	max-height: none !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 24px !important;
	background: transparent !important;
	box-shadow: none !important;
	object-fit: contain !important;
	object-position: center center !important;
	vertical-align: top !important;
}

.yuki-product-gallery-widget .yuki-gallery-active .flex-control-thumbs {
	display: flex !important;
	flex-direction: row !important;
	align-items: flex-start !important;
	gap: 12px !important;
	width: 100% !important;
	margin: 0 !important;
	padding: 0 !important;
	list-style: none !important;
	overflow-x: auto !important;
	overflow-y: hidden !important;
	border: 0 !important;
	background: transparent !important;
	box-shadow: none !important;
	scrollbar-width: none !important;
	-ms-overflow-style: none !important;
}

.yuki-product-gallery-widget .yuki-gallery-active .flex-control-thumbs::-webkit-scrollbar {
	display: none !important;
}

.yuki-product-gallery-widget .yuki-gallery-active .flex-control-thumbs li {
	display: block !important;
	flex: 0 0 88px !important;
	width: 88px !important;
	min-width: 88px !important;
	max-width: 88px !important;
	height: 88px !important;
	min-height: 88px !important;
	max-height: 88px !important;
	margin: 0 !important;
	padding: 0 !important;
	float: none !important;
	list-style: none !important;
	border: 0 !important;
	background: transparent !important;
	box-shadow: none !important;
}

.yuki-product-gallery-widget .yuki-gallery-active .flex-control-thumbs li img {
	display: block !important;
	width: 88px !important;
	height: 88px !important;
	min-width: 88px !important;
	max-width: 88px !important;
	min-height: 88px !important;
	max-height: 88px !important;
	margin: 0 !important;
	padding: 7px !important;
	border: 2px solid #d8dce3 !important;
	border-radius: 10px !important;
	background: #f6f7fb !important;
	box-shadow: none !important;
	object-fit: cover !important;
	object-position: center center !important;
	opacity: 1 !important;
	cursor: pointer !important;
	transition: border-color 0.18s ease !important;
}

.yuki-product-gallery-widget .yuki-gallery-active .flex-control-thumbs li img.flex-active,
.yuki-product-gallery-widget .yuki-gallery-active .flex-control-thumbs li img:hover {
	border-color: #27272a !important;
}

.yuki-product-gallery-widget .yuki-gallery-owl-active .woocommerce-product-gallery__wrapper,
.yuki-product-gallery-widget .yuki-gallery-owl-active .product-images,
.yuki-product-gallery-widget .yuki-gallery-owl-active .product-image-slider,
.yuki-product-gallery-widget .yuki-gallery-owl-active .product-image-slider.owl-carousel,
.yuki-product-gallery-widget .yuki-gallery-owl-active .product-image-slider .owl-stage-outer,
.yuki-product-gallery-widget .yuki-gallery-owl-active .product-image-slider .owl-stage,
.yuki-product-gallery-widget .yuki-gallery-owl-active .product-image-slider .owl-item,
.yuki-product-gallery-widget .yuki-gallery-owl-active .product-image-slider .img-thumbnail,
.yuki-product-gallery-widget .yuki-gallery-owl-active .product-image-slider .img-thumbnail .inner {
	display: block !important;
	width: 100% !important;
	max-width: 100% !important;
	height: auto !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 28px !important;
	background: #f6f7fb !important;
	box-shadow: none !important;
	overflow: hidden !important;
}

.yuki-product-gallery-widget .yuki-gallery-owl-active .product-image-slider img,
.yuki-product-gallery-widget .yuki-gallery-owl-active .product-image-slider img.img-responsive,
.yuki-product-gallery-widget .yuki-gallery-owl-active .product-image-slider img.wp-post-image,
.yuki-product-gallery-widget .yuki-gallery-owl-active .product-image-slider img.woocommerce-main-image {
	display: block !important;
	width: 100% !important;
	max-width: 100% !important;
	height: auto !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 24px !important;
	background: transparent !important;
	box-shadow: none !important;
	object-fit: contain !important;
	object-position: center center !important;
}

.yuki-product-gallery-widget .yuki-gallery-owl-active .product-thumbs-slider,
.yuki-product-gallery-widget .yuki-gallery-owl-active .product-thumbs-slider.owl-carousel,
.yuki-product-gallery-widget .yuki-gallery-owl-active .product-thumbs-slider .owl-stage-outer {
	display: block !important;
	width: 100% !important;
	max-width: 100% !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	background: transparent !important;
	box-shadow: none !important;
	overflow: visible !important;
}

.yuki-product-gallery__notice {
	padding: 18px !important;
	border: 1px solid #d8dce3 !important;
	border-radius: 18px !important;
	background: #f6f7fb !important;
	color: #27272a !important;
	text-align: center !important;
}

.yuki-gallery-modal-open {
	overflow: hidden;
}

.yuki-gallery-modal {
	align-items: center;
	display: none;
	inset: 0;
	justify-content: center;
	padding: 24px;
	position: fixed;
	z-index: 10000;
}

.yuki-gallery-modal.is-open {
	display: flex;
}

.yuki-gallery-modal__backdrop {
	background: rgba(15, 23, 42, 0.82);
	inset: 0;
	position: absolute;
}

.yuki-gallery-modal__dialog {
	align-items: center;
	display: grid;
	gap: 16px;
	grid-template-columns: auto minmax(0, 1fr) auto;
	max-height: min(92vh, 980px);
	max-width: min(92vw, 1120px);
	position: relative;
	width: 100%;
	z-index: 1;
}

.yuki-gallery-modal__figure {
	background: #fff;
	border-radius: 24px;
	box-shadow: 0 32px 80px rgba(15, 23, 42, 0.28);
	margin: 0;
	max-height: inherit;
	overflow: hidden;
	padding: 18px 18px 10px;
}

.yuki-gallery-modal__image {
	display: block;
	height: auto;
	margin: 0 auto;
	max-height: min(76vh, 820px);
	max-width: 100%;
	object-fit: contain;
	width: auto;
}

.yuki-gallery-modal__caption {
	color: #334155;
	font-size: 14px;
	line-height: 1.5;
	margin-top: 10px;
	text-align: center;
}

.yuki-gallery-modal__close,
.yuki-gallery-modal__nav {
	align-items: center;
	background: rgba(255, 255, 255, 0.96);
	border: 0;
	border-radius: 999px;
	box-shadow: 0 14px 30px rgba(15, 23, 42, 0.18);
	color: #0f172a;
	cursor: pointer;
	display: inline-flex;
	font-size: 28px;
	height: 48px;
	justify-content: center;
	line-height: 1;
	width: 48px;
}

.yuki-gallery-modal__close {
	position: absolute;
	right: 49px;
	top: -15px;
}

@media (max-width: 767px) {
	.yuki-gallery-modal {
		padding: 12px;
	}

	.yuki-gallery-modal__dialog {
		gap: 8px;
		grid-template-columns: 1fr;
	}

	.yuki-gallery-modal__figure {
		order: 2;
		padding: 14px 14px 10px;
	}

	.yuki-gallery-modal__nav {
		bottom: 18px;
		position: absolute;
		z-index: 2;
	}

	.yuki-gallery-modal__nav--prev {
		left: 18px;
	}

	.yuki-gallery-modal__nav--next {
		right: 18px;
	}

	.yuki-gallery-modal__close {
		right: 6px;
		top: 6px;
	}
}
