.ipg-gallery-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 12px;
}

.ipg-gallery-item {
	margin: 0;
	min-width: 0;
}

.ipg-gallery-link {
	display: block;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	background: #f1f1f1;
}

.ipg-gallery-link img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 180ms ease;
}

.ipg-gallery-link:hover img,
.ipg-gallery-link:focus img {
	transform: scale(1.025);
}

.ipg-gallery-item figcaption {
	padding-top: 5px;
	font-size: 13px;
	line-height: 1.35;
}

.ipg-load-more {
	display: block;
	margin: 28px auto 12px;
	padding: 12px 22px;
	border: 2px solid #1d1d1d;
	background: #1d1d1d;
	color: #fff;
	font: inherit;
	font-weight: 700;
	cursor: pointer;
}

.ipg-load-more:hover,
.ipg-load-more:focus {
	background: #fff;
	color: #1d1d1d;
}

.ipg-load-more:disabled {
	cursor: wait;
	opacity: 0.65;
}

.ipg-lightbox {
	width: min(94vw, 1400px);
	max-width: none;
	height: min(94vh, 1000px);
	max-height: none;
	padding: 44px 18px 18px;
	border: 0;
	background: #111;
	color: #fff;
}

.ipg-lightbox::backdrop {
	background: rgba(0, 0, 0, 0.86);
}

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

.ipg-lightbox img {
	display: block;
	max-width: 100%;
	max-height: calc(100% - 38px);
	object-fit: contain;
}

.ipg-lightbox figcaption {
	padding-top: 10px;
	text-align: center;
}

.ipg-lightbox-close {
	position: absolute;
	top: 4px;
	right: 10px;
	padding: 0 8px;
	border: 0;
	background: transparent;
	color: #fff;
	font-size: 36px;
	line-height: 1;
	cursor: pointer;
}

@media (max-width: 980px) {
	.ipg-gallery-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

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