.ioanet-gallery {
	display: grid;
	grid-template-columns: repeat(var(--ioanet-columns, 2), minmax(0, 1fr));
	gap: 14px;
	margin: 30px 0;
}

.ioanet-gallery__item {
	position: relative;
	min-width: 0;
	margin: 0 !important;
	overflow: hidden;
	border-radius: 8px;
	background: #eeeeee;
}

.ioanet-gallery--featured-first .ioanet-gallery__item:first-child {
	grid-column: 1 / -1;
}

.ioanet-gallery__trigger {
	display: block;
	width: 100%;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 0 !important;
	background: transparent !important;
	box-shadow: none !important;
	cursor: zoom-in;
}

.ioanet-gallery__trigger:focus-visible {
	outline: 3px solid currentColor;
	outline-offset: -3px;
}

.ioanet-gallery__image {
	display: block !important;
	width: 100% !important;
	height: var(--ioanet-thumb-height, 320px) !important;
	margin: 0 !important;
	padding: 0 !important;
	object-fit: cover;
	transition: transform 0.25s ease;
}

.ioanet-gallery--featured-first .ioanet-gallery__item:first-child .ioanet-gallery__image {
	height: var(--ioanet-featured-height, 480px) !important;
}

.ioanet-gallery__trigger:hover .ioanet-gallery__image,
.ioanet-gallery__trigger:focus-visible .ioanet-gallery__image {
	transform: scale(1.02);
}

.ioanet-gallery__caption {
	position: absolute;
	right: 0;
	bottom: 0;
	left: 0;
	z-index: 2;
	margin: 0 !important;
	padding: 38px 16px 14px;
	background: linear-gradient(to top, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0));
	color: #ffffff;
	font-size: 14px;
	font-weight: 400;
	line-height: 1.4;
	text-align: left;
	pointer-events: none;
}

.ioanet-lightbox {
	position: fixed !important;
	inset: 0 !important;
	z-index: 2147483647 !important;
	display: none;
	align-items: center;
	justify-content: center;
	width: 100vw !important;
	height: 100vh !important;
	height: 100dvh !important;
	margin: 0 !important;
	padding: 20px !important;
	box-sizing: border-box !important;
	overflow: hidden !important;
	background: rgba(0, 0, 0, 0.94) !important;
}

.ioanet-lightbox.is-open {
	display: flex !important;
}

.ioanet-lightbox__backdrop {
	position: absolute;
	inset: 0;
	z-index: 1;
	border: 0;
	background: transparent;
	cursor: zoom-out;
}

.ioanet-lightbox__content {
	position: relative;
	z-index: 2;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	max-width: calc(100vw - 40px);
	max-height: calc(100dvh - 40px);
	margin: 0 !important;
	padding: 0 !important;
}

.ioanet-lightbox__image {
	display: block !important;
	width: auto !important;
	height: auto !important;
	max-width: calc(100vw - 40px) !important;
	max-height: calc(100dvh - 90px) !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 4px;
	box-shadow: none !important;
	object-fit: contain !important;
}

.ioanet-lightbox__caption {
	max-width: min(900px, calc(100vw - 40px));
	margin: 10px 0 0 !important;
	padding: 0 8px !important;
	color: #ffffff;
	font-size: 14px;
	line-height: 1.45;
	text-align: center;
}

.ioanet-lightbox__caption:empty {
	display: none;
}

.ioanet-lightbox__close {
	position: fixed !important;
	top: 12px !important;
	right: 15px !important;
	z-index: 2147483647 !important;
	display: flex !important;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 50% !important;
	background: rgba(0, 0, 0, 0.72) !important;
	box-shadow: none !important;
	color: #ffffff !important;
	font-family: Arial, sans-serif;
	font-size: 34px !important;
	font-weight: 300 !important;
	line-height: 1 !important;
	cursor: pointer;
}

.ioanet-lightbox__close:hover,
.ioanet-lightbox__close:focus-visible {
	background: rgba(255, 255, 255, 0.2) !important;
}

.ioanet-lightbox-open,
.ioanet-lightbox-open body {
	overflow: hidden !important;
}

@media (max-width: 700px) {
	.ioanet-gallery {
		grid-template-columns: 1fr;
	}

	.ioanet-gallery--featured-first .ioanet-gallery__item:first-child {
		grid-column: auto;
	}

	.ioanet-gallery__image,
	.ioanet-gallery--featured-first .ioanet-gallery__item:first-child .ioanet-gallery__image {
		height: var(--ioanet-mobile-height, 255px) !important;
	}

	.ioanet-lightbox {
		padding: 10px !important;
	}

	.ioanet-lightbox__content,
	.ioanet-lightbox__image {
		max-width: calc(100vw - 20px) !important;
	}

	.ioanet-lightbox__image {
		max-height: calc(100dvh - 70px) !important;
	}

	.ioanet-lightbox__close {
		top: 8px !important;
		right: 8px !important;
	}
}

@media (prefers-reduced-motion: reduce) {
	.ioanet-gallery__image {
		transition: none;
	}
}
