.space-gallery {
	width: 100%;
	padding: 50px 0;
	background: #fff;
}

.space-gallery__inner {
	width: 1240px;
	margin: 0 auto;
}

.space-gallery__title {
	margin: 0 0 28px 0;
	text-align: center;
	color: rgb(255, 60, 0);
	font-size: 24px;
	font-weight: normal;
	text-transform: uppercase;
}

.space-gallery__grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 18px;
}

.space-gallery__item {
	position: relative;
	overflow: hidden;
	background: #f3f3f3;
}

.space-gallery__link {
	position: relative;
	display: block;
	text-decoration: none;
	overflow: hidden;
}

.space-gallery__img {
	display: block;
	width: 100%;
	height: 260px;
	object-fit: cover;
	transition: transform 0.25s ease;
}

.space-gallery__overlay {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.65);
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.25s ease, visibility 0.25s ease;
}

.space-gallery__plus {
	width: 48px;
	height: 48px;
	line-height: 46px;
	text-align: center;
	background: #c00000;
	color: #fff;
	font-size: 34px;
	font-weight: normal;
}

.space-gallery__link:hover .space-gallery__img {
	transform: scale(1.04);
}

.space-gallery__link:hover .space-gallery__overlay {
	opacity: 1;
	visibility: visible;
}

.space-gallery-lightbox {
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: none;
	align-items: center;
	justify-content: center;
	background: rgba(0, 0, 0, 0.82);
	user-select: none;
}

.space-gallery-lightbox.is-open {
	display: flex;
}

.space-gallery-lightbox__img {
	max-width: 82vw;
	max-height: 82vh;
	object-fit: contain;
	background: #fff;
}

.space-gallery-lightbox__close,
.space-gallery-lightbox__prev,
.space-gallery-lightbox__next {
	position: absolute;
	border: 0;
	background: transparent;
	color: #fff;
	cursor: pointer;
	font-family: Arial, Helvetica, sans-serif;
	line-height: 1;
}

.space-gallery-lightbox__close {
	top: 24px;
	right: 28px;
	font-size: 42px;
}

.space-gallery-lightbox__prev,
.space-gallery-lightbox__next {
	top: 50%;
	transform: translateY(-50%);
	font-size: 58px;
}

.space-gallery-lightbox__prev {
	left: 30px;
}

.space-gallery-lightbox__next {
	right: 30px;
}

.space-gallery-lightbox__close:hover,
.space-gallery-lightbox__prev:hover,
.space-gallery-lightbox__next:hover {
	color: #c00000;
}

@media screen and (max-width: 1240px) {
	.space-gallery__inner {
		width: auto;
		margin: 0 20px;
	}
}

@media screen and (max-width: 900px) {
	.space-gallery__grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.space-gallery__img {
		height: 220px;
	}
}

@media screen and (max-width: 520px) {
	.space-gallery__grid {
		grid-template-columns: 1fr;
	}

	.space-gallery__img {
		height: auto;
	}
}