.home-gallery {
	background: #ffffff;
	padding: clamp(2.5rem, 5vw, 4rem) 0;
}

.home-gallery__inner {
	width: min(100% - 2rem, var(--home-container));
	margin-inline: auto;
}

.home-gallery__video {
	width: 100%;
	margin-bottom: 1.5rem;
	background: #111111;
	aspect-ratio: 16 / 9;
	overflow: hidden;
}

.home-gallery__video iframe,
.home-gallery__video video {
	display: block;
	width: 100%;
	height: 100%;
	border: 0;
}

.home-gallery__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1rem;
}

.home-gallery__item {
	display: block;
	width: 100%;
	padding: 0;
	overflow: hidden;
	background: #e8e8e8;
	border: 0;
	cursor: pointer;
	aspect-ratio: 4 / 3;
}

.home-gallery__item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 280ms ease;
}

.home-gallery__item:hover img,
.home-gallery__item:focus-visible img {
	transform: scale(1.06);
}

.home-gallery-lightbox {
	position: fixed;
	inset: 0;
	z-index: 10000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 2rem;
	background: rgba(0, 0, 0, .82);
	opacity: 0;
	pointer-events: none;
	transition: opacity 200ms ease;
}

.home-gallery-lightbox.is-open {
	opacity: 1;
	pointer-events: auto;
}

.home-gallery-lightbox__content {
	max-width: min(96vw, 1200px);
	max-height: 86vh;
}

.home-gallery-lightbox__image {
	display: block;
	max-width: 100%;
	max-height: 86vh;
	object-fit: contain;
}

.home-gallery-lightbox__close {
	position: absolute;
	top: 1rem;
	right: 1rem;
	width: 44px;
	height: 44px;
	color: #ffffff;
	font-size: 2rem;
	line-height: 1;
	background: transparent;
	border: 1px solid rgba(255, 255, 255, .45);
	border-radius: 999px;
	cursor: pointer;
}

.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

@media (max-width: 860px) {
	.home-gallery__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 560px) {
	.home-gallery__grid {
		grid-template-columns: 1fr;
	}

	.home-gallery-lightbox {
		padding: 1rem;
	}
}
