.gfe-gallery {
	display: grid;
	grid-template-columns: repeat( auto-fill, minmax( 140px, 1fr ) );
	gap: 10px;
	margin: 2em 0;
}

.gfe-gallery-thumb {
	padding: 0;
	border: 0;
	background: none;
	cursor: zoom-in;
	display: block;
	border-radius: 4px;
	overflow: hidden;
	aspect-ratio: 1 / 1;
}

.gfe-gallery-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform .2s ease;
}

.gfe-gallery-thumb:hover img,
.gfe-gallery-thumb:focus img {
	transform: scale( 1.05 );
}

.gfe-lightbox {
	position: fixed;
	inset: 0;
	background: rgba( 0, 0, 0, .9 );
	display: none;
	align-items: center;
	justify-content: center;
	z-index: 100000;
}

.gfe-lightbox.is-open {
	display: flex;
}

.gfe-lightbox-stage {
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	touch-action: none;
}

.gfe-lightbox-img {
	max-width: 92vw;
	max-height: 92vh;
	touch-action: none;
	will-change: transform;
	user-select: none;
	-webkit-user-drag: none;
}

.gfe-lightbox-close,
.gfe-lightbox-prev,
.gfe-lightbox-next {
	position: absolute;
	background: rgba( 0, 0, 0, .4 );
	color: #fff;
	border: 0;
	cursor: pointer;
	line-height: 1;
	border-radius: 50%;
	width: 44px;
	height: 44px;
	font-size: 22px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.gfe-lightbox-close:hover,
.gfe-lightbox-prev:hover,
.gfe-lightbox-next:hover {
	background: rgba( 0, 0, 0, .65 );
}

.gfe-lightbox-close {
	top: 16px;
	right: 16px;
	z-index: 2;
}

.gfe-lightbox-prev {
	left: 16px;
	top: 50%;
	transform: translateY( -50% );
}

.gfe-lightbox-next {
	right: 16px;
	top: 50%;
	transform: translateY( -50% );
}

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

	.gfe-lightbox-prev,
	.gfe-lightbox-next {
		width: 38px;
		height: 38px;
		font-size: 18px;
	}
}
