/**
 * Galeri Bukti Transfer - Serayu Digital
 *
 * Token warna & bentuk disamakan dengan kartu produk/portofolio:
 * radius 14px, border #e9ecef, shadow halus, aksen biru #0166FF.
 */

.sgb {
	padding: 40px 20px;
}

.sgb__grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(var(--sgb-kolom, 220px), 1fr));
	gap: 20px;
}

.sgb__item {
	position: relative;
	display: block;
	width: 100%;
	min-width: 0;
	aspect-ratio: 3 / 4;
	margin: 0;
	padding: 0;
	border: 1px solid #e9ecef;
	border-radius: 14px;
	overflow: hidden;
	background: #fff;
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
	cursor: zoom-in;
	transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.sgb__item:hover,
.sgb__item:focus-visible {
	transform: translateY(-4px);
	border-color: rgba(1, 102, 255, 0.35);
	box-shadow: 0 8px 24px rgba(1, 102, 255, 0.15);
	outline: none;
}

.sgb__item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: top;
	display: block;
}

/* ---------- Paginasi ---------- */
.sgb__pagination {
	margin-top: 50px;
	text-align: center;
}

/* ---------- Lightbox ---------- */
.sgb-lightbox {
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 40px 20px;
	background: rgba(10, 12, 15, 0.94);
}

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

.sgb-lightbox__stage {
	position: relative;
	width: 100%;
	max-width: 1200px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.sgb-lightbox__img {
	max-width: 100%;
	max-height: calc(100vh - 140px);
	object-fit: contain;
	border-radius: 8px;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.sgb-lightbox__close {
	position: fixed;
	top: 20px;
	right: 24px;
	width: 44px;
	height: 44px;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.12);
	color: #fff;
	font-size: 24px;
	line-height: 1;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
}

.sgb-lightbox__close:hover {
	background: rgba(255, 255, 255, 0.24);
}

.sgb-lightbox__nav {
	position: fixed;
	top: 50%;
	transform: translateY(-50%);
	width: 48px;
	height: 48px;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.12);
	color: #fff;
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
}

.sgb-lightbox__nav:hover {
	background: rgba(255, 255, 255, 0.24);
}

.sgb-lightbox__nav--prev {
	left: 20px;
}

.sgb-lightbox__nav--next {
	right: 20px;
}

.sgb-lightbox__counter {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 22px;
	text-align: center;
	color: rgba(255, 255, 255, 0.55);
	font-size: 0.9em;
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
	.sgb {
		padding: 24px 20px 40px;
	}
	.sgb__grid {
		gap: 14px;
	}
	.sgb-lightbox {
		padding: 20px 12px;
	}
	.sgb-lightbox__nav {
		width: 40px;
		height: 40px;
	}
}
