:root {
	--ks-gallery-gap: 1rem;
	--ks-gallery-radius: 0.5rem;
	--ks-gallery-focus-color: #3ab921;
	--ks-gallery-shadow: 0 0.25rem 1rem rgba(0, 0, 0, 0.12);
}

body.ks-gallery-page .elementor-image-gallery .gallery.ks-gallery-grid {
	display: grid !important;
	grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
	gap: var(--ks-gallery-gap) !important;
	margin: 0 !important;
	padding: 0 !important;
	width: 100% !important;
}

body.ks-gallery-page .elementor-image-gallery .gallery.ks-gallery-grid .gallery-item {
	display: block !important;
	float: none !important;
	width: 100% !important;
	max-width: 100% !important;
	margin: 0 !important;
	padding: 0 !important;
	text-align: initial !important;
	vertical-align: initial !important;
}

body.ks-gallery-page .elementor-image-gallery .gallery.ks-gallery-grid .gallery-icon,
body.ks-gallery-page .elementor-image-gallery .gallery.ks-gallery-grid .gallery-icon.portrait,
body.ks-gallery-page .elementor-image-gallery .gallery.ks-gallery-grid .gallery-icon.landscape {
	display: block !important;
	width: 100% !important;
	max-width: none !important;
	padding: 0 !important;
	margin: 0 !important;
	position: relative;
	overflow: hidden;
	background-color: #f0f0f0;
	aspect-ratio: 4 / 3;
	box-shadow: var(--ks-gallery-shadow);
}

body.ks-gallery-page .elementor-image-gallery .gallery.ks-gallery-grid .gallery-icon a {
	display: block !important;
	width: 100% !important;
	height: 100% !important;
	line-height: 0;
}

body.ks-gallery-page .elementor-image-gallery .gallery.ks-gallery-grid .gallery-icon img {
	display: block !important;
	width: 100% !important;
	height: 100% !important;
	max-width: none !important;
	max-height: none !important;
	margin: 0 !important;
	object-fit: cover !important;
	transition: transform 0.35s ease;
}

body.ks-gallery-page .elementor-image-gallery .gallery.ks-gallery-grid .gallery-icon a:hover img,
body.ks-gallery-page .elementor-image-gallery .gallery.ks-gallery-grid .gallery-icon a:focus-visible img {
	transform: scale(1.04);
}

body.ks-gallery-page .elementor-image-gallery .gallery.ks-gallery-grid .gallery-icon a:focus-visible {
	outline: 3px solid var(--ks-gallery-focus-color);
	outline-offset: 3px;
}

body.ks-gallery-page .elementor-image-gallery .gallery.ks-gallery-grid .gallery-caption {
	display: none !important;
}

@media (max-width: 1024px) {
	body.ks-gallery-page .elementor-image-gallery .gallery.ks-gallery-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
	}
}

@media (max-width: 499px) {
	body.ks-gallery-page .elementor-image-gallery .gallery.ks-gallery-grid {
		grid-template-columns: 1fr !important;
		--ks-gallery-gap: 0.75rem;
	}
}

@media (prefers-reduced-motion: reduce) {
	body.ks-gallery-page .elementor-image-gallery .gallery.ks-gallery-grid .gallery-icon img {
		transition: none;
	}

	body.ks-gallery-page .elementor-image-gallery .gallery.ks-gallery-grid .gallery-icon a:hover img,
	body.ks-gallery-page .elementor-image-gallery .gallery.ks-gallery-grid .gallery-icon a:focus-visible img {
		transform: none;
	}
}
