.psg-gallery {
	--psg-columns: 3;
	--psg-gap: 24px;
	display: grid;
	grid-template-columns: repeat(var(--psg-columns), minmax(0, 1fr));
	gap: var(--psg-gap);
	align-items: start;
}

.psg-gallery__item {
	display: block;
	min-width: 0;
	text-decoration: none !important;
	cursor: zoom-in;
}

.psg-gallery__item img {
	display: block;
	width: 100%;
	height: auto;
	max-width: 100%;
	border: 0;
	box-shadow: none;
	transition: opacity .18s ease;
}

.psg-gallery__item:hover img {
	opacity: .88;
}

.psg-lightbox {
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(255, 255, 255, .96);
	opacity: 0;
	visibility: hidden;
	transition: opacity .18s ease, visibility .18s ease;
}

.psg-lightbox.is-open {
	opacity: 1;
	visibility: visible;
}

.psg-lightbox__stage {
	position: absolute;
	inset: 42px 92px;
	display: flex;
	align-items: center;
	justify-content: center;
	pointer-events: none;
}

.psg-lightbox__image {
	display: block;
	max-width: 100%;
	max-height: 100%;
	width: auto;
	height: auto;
	object-fit: contain;
	box-shadow: 0 8px 35px rgba(0,0,0,.08);
	pointer-events: auto;
	user-select: none;
	-webkit-user-drag: none;
}

.psg-lightbox__close,
.psg-lightbox__prev,
.psg-lightbox__next {
	position: absolute;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 52px;
	height: 52px;
	padding: 0;
	border: 1px solid #b8b0a3;
	border-radius: 50%;
	background: rgba(255,255,255,.82);
	color: #8f877a;
	cursor: pointer;
	appearance: none;
	-webkit-appearance: none;
	box-shadow: none;
	transition: background .15s ease, color .15s ease, border-color .15s ease;
}

.psg-lightbox__close:hover,
.psg-lightbox__prev:hover,
.psg-lightbox__next:hover {
	background: #fff;
	color: #1f2933;
	border-color: #8f877a;
}

.psg-lightbox__close {
	top: 24px;
	right: 24px;
	border: 0;
	background: transparent;
}

.psg-lightbox__prev {
	left: 28px;
	top: 50%;
	transform: translateY(-50%);
}

.psg-lightbox__next {
	right: 28px;
	top: 50%;
	transform: translateY(-50%);
}

.psg-lightbox__close svg,
.psg-lightbox__prev svg,
.psg-lightbox__next svg {
	width: 25px;
	height: 25px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.6;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.psg-lightbox__close svg {
	width: 29px;
	height: 29px;
}

.psg-lightbox__prev[hidden],
.psg-lightbox__next[hidden] {
	display: none;
}

body.psg-lightbox-open {
	overflow: hidden;
}

@media (max-width: 900px) {
	.psg-gallery {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
	.psg-lightbox__stage {
		inset: 54px 66px;
	}
	.psg-lightbox__prev { left: 10px; }
	.psg-lightbox__next { right: 10px; }
}

@media (max-width: 560px) {
	.psg-gallery {
		grid-template-columns: 1fr;
	}
	.psg-lightbox__stage {
		inset: 64px 12px 72px;
	}
	.psg-lightbox__prev,
	.psg-lightbox__next {
		top: auto;
		bottom: 10px;
		transform: none;
		width: 46px;
		height: 46px;
	}
	.psg-lightbox__prev { left: calc(50% - 58px); }
	.psg-lightbox__next { right: calc(50% - 58px); }
	.psg-lightbox__close {
		top: 8px;
		right: 8px;
	}
}
