.wcg-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 150px), 1fr));
	grid-auto-rows: 8px;
	grid-auto-flow: dense;
	gap: 10px;
}

.wcg-grid > .wcg-item {
	display: block !important;
	width: 100% !important;
	height: 100% !important;
	max-width: none !important;
	min-width: 0 !important;
	min-height: 0 !important;
	margin: 0 !important;
	padding: 0 !important;
	overflow: hidden !important;
	border: 0 !important;
	border-radius: 0 !important;
	background: transparent !important;
	box-shadow: none !important;
	color: transparent !important;
	font-size: 0 !important;
	line-height: 0 !important;
	text-align: left !important;
	-webkit-appearance: none !important;
	appearance: none !important;
	cursor: zoom-in;
}

.wcg-grid .wcg-image {
	display: block !important;
	width: 100% !important;
	height: 100% !important;
	max-width: none !important;
	max-height: none !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 0 !important;
	object-fit: cover !important;
	transition: transform .25s ease;
}

.wcg-grid > .wcg-item:hover .wcg-image {
	transform: scale(1.035);
}

.wcg-cards {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr));
	gap: 18px;
}

.wcg-card {
	display: block;
	overflow: hidden;
	color: inherit;
	text-decoration: none;
	background: #f4f4f4;
}

.wcg-cover {
	display: block;
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
}

.wcg-card span {
	display: block;
	padding: 12px 14px;
	font-weight: 600;
}

.wcg-lightbox {
	position: fixed;
	inset: 0;
	width: 100vw;
	height: 100vh;
	max-width: none;
	max-height: none;
	margin: 0;
	padding: 60px 74px 48px;
	border: 0;
	background: rgba(0, 0, 0, .76);
	color: #fff;
	box-sizing: border-box;
}

.wcg-lightbox::backdrop {
	background: transparent;
}

.wcg-lightbox figure {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	margin: 0;
}

.wcg-lightbox img {
	display: block;
	max-width: 100%;
	max-height: calc(100vh - 130px);
	width: auto;
	height: auto;
	object-fit: contain;
}

.wcg-count {
	margin: 12px 0 0;
	color: #eee;
	font: 14px/1.4 sans-serif;
}

.wcg-lightbox button {
	position: absolute !important;
	display: grid !important;
	place-items: center !important;
	width: 48px !important;
	height: 48px !important;
	min-width: 0 !important;
	min-height: 0 !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 50% !important;
	outline: 0 !important;
	box-shadow: none !important;
	background: rgba(28, 28, 28, .48) !important;
	color: #fff !important;
	font-size: 0 !important;
	line-height: 1 !important;
	cursor: pointer !important;
	transition: background .18s ease !important;
}

.wcg-lightbox button:hover,
.wcg-lightbox button:active,
.wcg-lightbox button:focus,
.wcg-lightbox button:focus-visible {
	border: 0 !important;
	outline: 0 !important;
	box-shadow: none !important;
	background: rgba(28, 28, 28, .72) !important;
}

.wcg-lightbox button svg {
	display: block !important;
	width: 22px !important;
	height: 26px !important;
	margin: 0 !important;
	padding: 0 !important;
	fill: none !important;
	stroke: currentColor !important;
	stroke-width: 1.8 !important;
	stroke-linecap: round !important;
	stroke-linejoin: round !important;
}

.wcg-lightbox .wcg-close {
	top: 12px !important;
	right: 16px !important;
	width: 42px !important;
	height: 42px !important;
}

.wcg-lightbox .wcg-close svg {
	width: 19px !important;
	height: 19px !important;
	stroke-width: 1.8 !important;
}

.wcg-lightbox .wcg-previous,
.wcg-lightbox .wcg-next {
	top: 50% !important;
	transform: translateY(-50%) !important;
}

.wcg-lightbox .wcg-previous {
	left: 12px !important;
}

.wcg-lightbox .wcg-next {
	right: 12px !important;
}

.wcg-lightbox button:disabled {
	opacity: .4;
	cursor: default;
}

@media (max-width: 600px) {
	.wcg-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 7px;
	}

	.wcg-lightbox {
		padding: 56px 44px 36px;
	}

	.wcg-lightbox .wcg-previous {
		left: 0 !important;
	}

	.wcg-lightbox .wcg-next {
		right: 0 !important;
	}

	.wcg-lightbox button {
		width: 42px !important;
		height: 42px !important;
	}

	.wcg-lightbox .wcg-close {
		top: 6px !important;
		right: 6px !important;
		width: 38px !important;
		height: 38px !important;
	}

	.wcg-lightbox img {
		max-height: calc(100vh - 105px);
	}
}
