﻿/* ===================== Gallery Wrap ===================== */
.pgw-gallery {
	width: 100%;
	position: relative;
}
.pgw-gallery *, .pgw-gallery *::before, .pgw-gallery *::after {
	box-sizing: border-box;
}

/* ===================== Main Image ===================== */
.pgw-main-wrap {
	position: relative;
	overflow: hidden;
	cursor: crosshair;
}
.pgw-main-image {
	width: 100%;
	height: 500px;
	position: relative;
	overflow: hidden;
	background: #f5f5f5;
}
.pgw-main-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: opacity 0.2s ease;
}

/* ===================== Zoom Lens ===================== */
.pgw-zoom-lens {
	display: none;
	position: absolute;
	top: 0;
	left: 0;
	width: 200px;
	height: 200px;
	border: 2px solid rgba(255,255,255,0.6);
	border-radius: 50%;
	background-repeat: no-repeat;
	pointer-events: none;
	z-index: 5;
}
.pgw-main-wrap:hover .pgw-zoom-lens {
	display: block;
}
.pgw-main-wrap:hover .pgw-main-img {
	opacity: 1;
}

/* ===================== Zoom Button ===================== */
.pgw-zoom-btn {
	position: absolute;
	top: 12px;
	right: 12px;
	z-index: 10;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	border: none;
	background: rgba(0,0,0,0.5);
	color: #fff;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background 0.2s ease;
}
.pgw-zoom-btn:hover {
	background: rgba(0,0,0,0.8);
}
.pgw-zoom-btn svg {
	width: 20px;
	height: 20px;
}

/* ===================== Thumbnails ===================== */
.pgw-thumbs {
	display: grid;
	gap: 8px;
	margin-top: 10px;
}
.pgw-thumb {
	height: 100px;
	overflow: hidden;
	border: 2px solid transparent;
	cursor: pointer;
	transition: border-color 0.2s ease, opacity 0.2s ease;
	border-radius: 4px;
	background: #f5f5f5;
}
.pgw-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.pgw-thumb:hover {
	opacity: 0.8;
}
.pgw-thumb.is-active {
	border-color: #0073aa;
}

/* ===================== Lightbox ===================== */
.pgw-lightbox {
	display: none;
	position: fixed;
	inset: 0;
	z-index: 99999;
	align-items: center;
	justify-content: center;
	background: rgba(0,0,0,0.9);
}
.pgw-lightbox.is-open {
	display: flex;
}
.pgw-lb-img {
	max-width: 90vw;
	max-height: 85vh;
	object-fit: contain;
	display: block;
	user-select: none;
}
.pgw-lb-close {
	position: absolute;
	top: 16px;
	right: 20px;
	background: none;
	border: none;
	color: #fff;
	font-size: 36px;
	cursor: pointer;
	z-index: 2;
	line-height: 1;
}
.pgw-lb-counter {
	position: absolute;
	top: 20px;
	left: 20px;
	color: #fff;
	font-size: 15px;
	z-index: 2;
	user-select: none;
}
.pgw-lb-prev, .pgw-lb-next {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	background: rgba(255,255,255,0.15);
	border: none;
	color: #fff;
	font-size: 28px;
	width: 48px;
	height: 48px;
	border-radius: 50%;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 2;
	transition: background 0.2s ease;
}
.pgw-lb-prev { left: 16px; }
.pgw-lb-next { right: 16px; }
.pgw-lb-prev:hover, .pgw-lb-next:hover {
	background: rgba(255,255,255,0.3);
}
