.ctzg-gallery {
	max-width: 900px;
	margin: 0 auto 30px;
}

.ctzg-main-wrap {
	position: relative;
	background: #f5f5f5;
	border-radius: 8px;
	overflow: hidden;
}

.ctzg-main-btn {
	display: block;
	width: 100%;
	padding: 0;
	border: 0;
	background: none;
	cursor: pointer;
}

.ctzg-main-image {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 4 / 3;
	object-fit: cover;
}

.ctzg-thumbs {
	display: flex;
	gap: 10px;
	overflow-x: auto;
	padding: 12px 2px 2px;
}

.ctzg-thumb {
	border: 2px solid transparent;
	padding: 0;
	background: none;
	border-radius: 6px;
	cursor: pointer;
	flex: 0 0 auto;
}

.ctzg-thumb img {
	display: block;
	width: 90px;
	height: 65px;
	object-fit: cover;
	border-radius: 4px;
}

.ctzg-thumb.is-active {
	border-color: #0073aa;
}

.ctzg-nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 3;
	background: rgba(0, 0, 0, 0.55);
	color: #fff;
	border: 0;
	width: 42px;
	height: 42px;
	border-radius: 50%;
	cursor: pointer;
	font-size: 20px;
	line-height: 42px;
	text-align: center;
}

.ctzg-prev {
	left: 10px;
}

.ctzg-next {
	right: 10px;
}

.ctzg-lightbox[hidden] {
	display: none !important;
}

.ctzg-lightbox {
	position: fixed;
	inset: 0;
	z-index: 999999 !important;
}

.ctzg-overlay {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.85);
}

.ctzg-dialog {
	position: relative;
	z-index: 1000000;
	width: min(94vw, 1100px);
	height: min(90vh, 800px);
	margin: 4vh auto;
	background: #111;
	border-radius: 10px;
	overflow: hidden;
}

.ctzg-close {
	position: absolute;
	right: 14px;
	top: 10px;
	z-index: 4;
	background: none;
	border: 0;
	color: #fff;
	font-size: 36px;
	cursor: pointer;
}

.ctzg-toolbar {
	position: absolute;
	left: 14px;
	top: 14px;
	z-index: 4;
	display: flex;
	gap: 8px;
}

.ctzg-tool {
	background: #fff;
	border: 0;
	border-radius: 6px;
	padding: 8px 12px;
	cursor: pointer;
}

.ctzg-stage {
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	touch-action: none;
}

.ctzg-lightbox-image {
	max-width: none;
	max-height: none;
	transform-origin: center center;
	transition: transform 0.18s ease;
	user-select: none;
	-webkit-user-drag: none;
}

.ctzg-lb-prev {
	left: 14px;
}

.ctzg-lb-next {
	right: 14px;
}

.header-top.sticky {
	z-index: 2 !important;
}

@media (max-width: 767px) {
	.ctzg-thumb img {
		width: 72px;
		height: 56px;
	}

	.ctzg-nav {
		width: 36px;
		height: 36px;
		line-height: 36px;
	}
}