.kc-grid-gallery {
	width: 100%;
	position: relative;
}

.kc-grid-gallery__stack {
	position: relative;
	width: 100%;
	min-height: 200px;
}

.kc-grid-gallery .grid-stack {
	--kc-gap-x: 24px;
	--kc-gap-y: 24px;
	min-height: 200px;
	margin: calc(var(--kc-gap-y) * -1) calc(var(--kc-gap-x) * -1);
	width: calc(100% + var(--kc-gap-x) * 2);
}

.kc-grid-gallery .grid-stack-item-content {
	overflow: hidden;
	background: #CCC;
	position: absolute;
	inset: 0;
	border-radius: 5px;
}

.kc-grid-gallery__item {
	width: 100%;
	height: 100%;
	display: block;
	position: absolute;
	inset: 0;
}

.kc-grid-gallery__link {
	display: block;
	width: 100%;
	height: 100%;
	position: absolute;
	inset: 0;
}

.kc-grid-gallery__link img {
	width: 100%;
	height: 100%;
	max-height: unset !important;
	object-fit: cover;
	display: block;
	position: absolute;
	inset: 0;
}

.kc-grid-gallery__link.is-static {
	cursor: default;
}

.kc-grid-gallery__link:focus-visible {
	outline: 2px solid #94a3ff;
	outline-offset: -6px;
}

.kc-grid-gallery .grid-stack-item-content > * {
	position: relative;
	z-index: 1;
}

.kc-grid-gallery .ui-draggable-dragging > .grid-stack-item-content,
.kc-grid-gallery .ui-resizable-resizing > .grid-stack-item-content {
	box-shadow: none;
	opacity: 1;
}
