.wkm-gallery {
	width: 100%;
	margin: 16px 0 36px;
}

.wkm-gallery-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	align-items: start;
	gap: 24px;
}

.wkm-gallery-card {
	display: block;
	align-self: start;
	height: auto !important;
	min-width: 0;
	margin: 0;
	overflow: hidden;
	border: 1px solid rgba(18, 48, 32, 0.12);
	border-radius: 16px;
	background: #fff;
	box-shadow: 0 12px 30px rgba(18, 48, 32, 0.07);
}

.wkm-gallery-link {
	display: flex !important;
	align-items: center;
	justify-content: center;
	flex: none !important;
	width: 100%;
	height: auto !important;
	min-height: 0 !important;
	aspect-ratio: 3 / 2;
	padding: 0;
	overflow: hidden;
	background: #ffffff;
	cursor: zoom-in;
}

.wkm-gallery-image {
	display: block;
	width: 100%;
	height: 100% !important;
	max-height: none !important;
	object-fit: contain;
	object-position: center;
	border-radius: 0;
	background: #fff;
}

.wkm-gallery-card figcaption {
	padding: 15px 17px 17px;
	color: #34443a;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.45;
}

.wkm-gallery-lightbox {
	width: fit-content;
	max-width: min(1200px, calc(100vw - 40px));
	max-height: calc(100vh - 40px);
	box-sizing: border-box;
	padding: 0;
	overflow: visible;
	border: 0;
	border-radius: 18px;
	background: transparent;
	box-shadow: none;
}

.wkm-gallery-lightbox::backdrop {
	background: rgba(8, 20, 13, 0.78);
}

.wkm-gallery-lightbox img {
	display: block;
	max-width: 100%;
	max-height: calc(100vh - 100px);
	width: auto;
	height: auto;
	margin: 0 auto;
	border-radius: 18px;
	box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
}

.wkm-gallery-lightbox p {
	width: max-content;
	max-width: calc(100% - 24px);
	margin: 12px auto 0;
	padding: 8px 14px;
	border-radius: 9px;
	background: rgba(8, 28, 18, 0.92);
	color: #fff;
	font-weight: 700;
	text-align: center;
}

.wkm-gallery-close {
	position: absolute;
	top: 12px;
	right: 12px;
	z-index: 2;
	width: 42px;
	height: 42px;
	padding: 0;
	border: 2px solid rgba(255, 255, 255, 0.85);
	border-radius: 50%;
	background: #123020;
	color: #fff;
	font-size: 30px;
	line-height: 40px;
	cursor: pointer;
}

.wkm-gallery-message {
	padding: 12px 16px;
	border-left: 4px solid #1e6a45;
	background: #f1f7f3;
}

@media (max-width: 900px) {
	.wkm-gallery-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 20px;
	}
}

@media (max-width: 620px) {
	.wkm-gallery {
		margin: 12px 0 28px;
	}

	.wkm-gallery-grid {
		grid-template-columns: 1fr;
		gap: 18px;
	}

	.wkm-gallery-lightbox {
		width: calc(100vw - 20px);
		max-height: calc(100vh - 20px);
	}

	.wkm-gallery-close {
		top: 8px;
		right: 8px;
		width: 38px;
		height: 38px;
		font-size: 26px;
		line-height: 34px;
	}
}
