.single-product div.product .woocommerce-product-gallery.images {
	width: 37%;
	max-width: 37%;
	float: none;
	padding-right: 4rem;
}

.single-product .woocommerce-product-gallery .flex-viewport {
	position: relative;
	margin-bottom: 10px !important;
}

.single-product .woocommerce-product-gallery__image {
	min-height: 0;
}

.single-product .woocommerce-product-gallery__image a img {
	border-radius: 12px;
}

.single-product .woocommerce-product-gallery__image a {
	line-height: 0;
}

body.single-product div.product .woocommerce-product-gallery .woocommerce-product-gallery__trigger.lk-gallery-trigger {
	top: var(--lk-gallery-trigger-top, 0) !important;
	right: calc(4rem + 12px) !important;
	bottom: auto !important;
	left: auto !important;
	width: 18px !important;
	height: 18px !important;
	z-index: 5;
}

body.single-product div.product .woocommerce-product-gallery .woocommerce-product-gallery__trigger.lk-gallery-trigger svg {
	display: block;
	width: 100% !important;
	height: 100% !important;
}

.lk-gallery-arrow {
	position: absolute;
	top: 50%;
	z-index: 5;
	display: grid;
	place-items: center;
	width: 34px;
	height: 48px;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: rgba(255, 255, 255, 0.88);
	color: #222;
	box-shadow: none;
	transform: translateY(-50%);
	cursor: pointer;
	opacity: 0;
	transition: opacity 150ms ease;
}

.lk-gallery-arrow:hover,
.lk-gallery-arrow:focus-visible {
	background: #fff;
	color: #222;
}

.lk-gallery-arrow--prev { left: 0; }
.lk-gallery-arrow--next { right: 0; }

.lk-gallery-arrow svg {
	display: block;
	width: 18px;
	height: 18px;
}

.woocommerce-product-gallery .flex-viewport:hover .lk-gallery-arrow,
.woocommerce-product-gallery .lk-gallery-arrow:focus-visible {
	opacity: 1;
}

@media (min-width: 769px) {
	.single-product .woocommerce-product-gallery .flex-control-thumbs {
		display: flex;
		gap: 10px;
		overflow: hidden;
		width: 100%;
		margin: 0 !important;
		justify-content: flex-start;
	}

	.single-product div.product .woocommerce-product-gallery .flex-control-thumbs li,
	.single-product div.product .woocommerce-product-gallery[class*="woocommerce-product-gallery--columns-"] .flex-control-thumbs li {
		flex: 0 0 calc((100% - 60px) / 7);
		width: calc((100% - 60px) / 7);
		margin: 0 !important;
		padding: 0 !important;
		float: none;
		clear: none !important;
	}

	.single-product .woocommerce-product-gallery .flex-control-thumbs li img {
		box-sizing: border-box;
		width: 100%;
		aspect-ratio: 1;
		border: 1px solid transparent;
		border-radius: 8px;
		object-fit: cover;
		opacity: 1;
	}

	.single-product .woocommerce-product-gallery .flex-control-thumbs li img.flex-active {
		border-color: #fe8b59;
	}
}

@media (max-width: 768px) {
	.single-product div.product .woocommerce-product-gallery.images {
		width: 100%;
		max-width: 100%;
		padding-right: 0;
	}
}

@media (hover: none) {
	.lk-gallery-arrow { opacity: 0.85; }
}
