body:has(.ld-gallery) .bde-wooproductimages,
body:has(.ld-gallery) .bde-gallery {
	display: none !important;
}

.ld-gallery {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
	margin: 0;
}

.ld-gallery__item {
	display: block;
	aspect-ratio: 458 / 610;
	overflow: hidden;
	background: #fff;
	line-height: 0;
}

.ld-gallery__item[hidden] {
	display: none !important;
}

.ld-gallery__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.ld-gallery-lightbox {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 32px;
	background: rgba(255, 255, 255, 0.96);
}

.ld-gallery-lightbox[hidden] {
	display: none !important;
}

.ld-gallery-lightbox img {
	max-width: min(1200px, 100%);
	max-height: calc(100vh - 64px);
	width: auto;
	height: auto;
	object-fit: contain;
}

.ld-gallery-lightbox__close {
	position: absolute;
	top: 16px;
	right: 16px;
	width: 40px;
	height: 40px;
	border: 0;
	background: transparent;
	color: #111;
	font-size: 32px;
	line-height: 1;
	cursor: pointer;
}

@media (max-width: 767px) {
	.ld-gallery {
		grid-template-columns: 1fr;
		gap: 12px;
	}
}
