.ssg-gallery {
	position: relative;
	width: 100%;
	box-sizing: border-box;
}
.ssg-viewport {
	position: relative;
	overflow: hidden;
}
.ssg-track {
	display: flex;
	gap: var(--ssg-gap);
	overflow-x: auto;
	scroll-behavior: smooth;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
	padding: 12px 0;
}
.ssg-track::-webkit-scrollbar { display: none; }
.ssg-slide {
	flex: 0 0 var(--ssg-width);
	width: var(--ssg-width);
	height: var(--ssg-height);
	margin: 0;
	scroll-snap-align: start;
}
.ssg-image-button {
	position: relative;
	display: block;
	width: 100%;
	height: 100%;
	padding: 0;
	border: 0;
	border-radius: var(--ssg-radius);
	overflow: hidden;
	background: var(--ssg-bg);
	cursor: zoom-in;
}
.ssg-image-button img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: var(--ssg-fit);
	transition: transform .25s ease, filter .25s ease;
}
.ssg-hover-zoom .ssg-image-button:hover img {
	transform: scale(1.045);
	filter: brightness(.9);
}
.ssg-expand {
	position: absolute;
	top: 10px;
	right: 10px;
	display: grid;
	place-items: center;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	background: rgba(0,0,0,.68);
	color: #fff;
	font-size: 20px;
	opacity: 0;
	transform: translateY(-4px);
	transition: opacity .2s ease, transform .2s ease;
}
.ssg-image-button:hover .ssg-expand,
.ssg-image-button:focus-visible .ssg-expand { opacity: 1; transform: none; }
.ssg-arrow {
	position: absolute;
	top: 50%;
	z-index: 3;
	width: 46px;
	height: 72px;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: rgba(12,54,106,.82);
	color: #fff;
	font-size: 48px;
	line-height: 1;
	cursor: pointer;
	transform: translateY(-50%);
}
.ssg-prev { left: 0; }
.ssg-next { right: 0; }
.ssg-arrow:disabled { opacity: .3; cursor: default; }
.ssg-dots {
	display: flex;
	justify-content: center;
	gap: 10px;
	margin-top: 10px;
}
.ssg-dot {
	width: 14px;
	height: 14px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: #8c8c8c;
	cursor: pointer;
}
.ssg-dot.is-active { background: #242424; }
.ssg-lightbox {
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: grid;
	place-items: center;
	padding: 30px;
	background: rgba(0,0,0,.9);
}
.ssg-lightbox[hidden] { display: none; }
.ssg-lightbox img {
	max-width: min(95vw, 1200px);
	max-height: 92vh;
	width: auto;
	height: auto;
	object-fit: contain;
}
.ssg-lightbox-close {
	position: fixed;
	top: 18px;
	right: 24px;
	width: 46px;
	height: 46px;
	padding: 0;
	border: 0;
	background: transparent;
	color: #fff;
	font-size: 44px;
	line-height: 1;
	cursor: pointer;
}
@media (max-width: 600px) {
	.ssg-gallery { --ssg-width: min(72vw, 270px) !important; }
	.ssg-arrow { width: 38px; height: 60px; font-size: 40px; }
	.ssg-lightbox { padding: 16px; }
}
@media (prefers-reduced-motion: reduce) {
	.ssg-track { scroll-behavior: auto; }
	.ssg-image-button img { transition: none; }
}

