/* ============================================================
   WC STYLE GALLERY — stylesheet
   ============================================================ */

.wcg-wrap {
	max-width: 640px;
	margin: 0 auto;
}

.wcg-empty {
	padding: 40px 20px;
	text-align: center;
	color: #888;
	border: 1px dashed #ccc;
	border-radius: 8px;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* --- Main image + zoom --- */
.wcg-main {
	position: relative;
	width: 100%;
	overflow: hidden;
	border-radius: 16px;
	background: #f3f3f3;
	cursor: zoom-in;
}
.wcg-main img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.12s ease-out;
	transform-origin: center center;
}
.wcg-main.wcg-zoomed img {
	transform: scale(2);
	cursor: zoom-out;
}
.wcg-main .wcg-hint {
	position: absolute;
	bottom: 12px;
	right: 12px;
	background: rgba(0, 0, 0, 0.55);
	color: #fff;
	font-size: 12px;
	padding: 4px 10px;
	border-radius: 20px;
	pointer-events: none;
	opacity: 0;
	transition: opacity 0.2s ease;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
.wcg-main:hover .wcg-hint {
	opacity: 1;
}

/* --- Thumbnail row (arrows + scroll strip) --- */
.wcg-thumb-row {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-top: 16px;
}

.wcg-thumbs {
	display: flex;
	gap: 12px;
	justify-content: center;
	overflow-x: auto;
	scroll-behavior: smooth;
	flex: 1 1 auto;
	padding: 3px;
	scrollbar-width: none;
}
.wcg-thumbs::-webkit-scrollbar {
	display: none;
}

.wcg-thumb {
	flex: 0 0 auto;
	width: 88px;
	height: 88px;
	border-radius: 12px;
	overflow: hidden;
	cursor: pointer;
	border: 2px solid transparent;
	opacity: 0.6;
	transition: opacity 0.15s ease, border-color 0.15s ease;
	background: #f3f3f3;
}
.wcg-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.wcg-thumb:hover {
	opacity: 1;
}
.wcg-thumb.wcg-active {
	opacity: 1;
	border-color: #1d1d1f;
}

/* --- Scroll arrows either side of the thumbnail strip --- */
.wcg-arrow {
	flex: 0 0 auto;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	border: 1px solid #e3e3e3;
	background: #fff;
	color: #333;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 13px;
	line-height: 1;
	cursor: pointer;
	transition: background 0.15s ease, border-color 0.15s ease;
}
.wcg-arrow:hover {
	background: #f5f5f5;
	border-color: #ccc;
}

/* --- Focus states (accessibility) --- */
.wcg-thumb:focus-visible,
.wcg-main:focus-visible,
.wcg-arrow:focus-visible {
	outline: 2px solid #1d1d1f;
	outline-offset: 2px;
}

/* --- Lightbox --- */
.wcg-lightbox {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.9);
	display: none;
	align-items: center;
	justify-content: center;
	z-index: 9999;
	touch-action: pan-y;
}
.wcg-lightbox.wcg-open {
	display: flex;
}
.wcg-lightbox img {
	max-width: 90vw;
	max-height: 85vh;
	object-fit: contain;
	user-select: none;
	-webkit-user-drag: none;
}
.wcg-lb-close,
.wcg-lb-prev,
.wcg-lb-next {
	position: absolute;
	background: rgba(255, 255, 255, 0.12);
	border: none;
	color: #fff;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	width: 44px;
	height: 44px;
	font-size: 20px;
	transition: background 0.15s ease;
}
.wcg-lb-close:hover,
.wcg-lb-prev:hover,
.wcg-lb-next:hover {
	background: rgba(255, 255, 255, 0.28);
}
.wcg-lb-close {
	top: 18px;
	right: 18px;
}
.wcg-lb-prev {
	left: 18px;
	top: 50%;
	transform: translateY(-50%);
}
.wcg-lb-next {
	right: 18px;
	top: 50%;
	transform: translateY(-50%);
}
.wcg-lb-counter {
	position: absolute;
	bottom: 18px;
	left: 50%;
	transform: translateX(-50%);
	color: #fff;
	font-size: 13px;
	opacity: 0.8;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

@media (max-width: 480px) {
	.wcg-thumb {
		width: 68px;
		height: 68px;
	}
	.wcg-arrow {
		width: 30px;
		height: 30px;
		font-size: 11px;
	}
	.wcg-lb-prev,
	.wcg-lb-next {
		width: 38px;
		height: 38px;
		font-size: 16px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.wcg-main img {
		transition: none;
	}
	.wcg-thumbs {
		scroll-behavior: auto;
	}
}
