/* Área privada — galería */
.gp-area { margin: 1.5rem 0; }

.gp-aviso,
.gp-vacio {
	padding: 1rem 1.25rem;
	background: #f6f7f7;
	border: 1px solid #e2e4e7;
	border-radius: 8px;
	color: #50575e;
}

.gp-galeria { margin-bottom: 2.5rem; }

.gp-galeria-titulo {
	margin: 0 0 .25rem;
	font-size: 1.4rem;
}

.gp-galeria-desc {
	margin: 0 0 1rem;
	color: #6b7280;
}

.gp-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
	gap: 10px;
}

.gp-item {
	display: block;
	position: relative;
	aspect-ratio: 1 / 1;
	overflow: hidden;
	border-radius: 8px;
	background: #eee;
	box-shadow: 0 1px 2px rgba(0,0,0,.08);
}

.gp-item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform .25s ease;
}

.gp-item:hover img { transform: scale(1.05); }

/* Visor (lightbox) */
.gp-lightbox {
	position: fixed;
	inset: 0;
	background: rgba(0,0,0,.9);
	display: none;
	align-items: center;
	justify-content: center;
	z-index: 99999;
	padding: 2rem;
}

.gp-lightbox.abierto { display: flex; }

.gp-lightbox img {
	max-width: 95vw;
	max-height: 90vh;
	object-fit: contain;
	border-radius: 6px;
}

.gp-cerrar {
	position: absolute;
	top: 14px;
	right: 22px;
	color: #fff;
	font-size: 2.4rem;
	line-height: 1;
	cursor: pointer;
	user-select: none;
}

/* Flechas de navegación (diseño plano, sin fondo ni efectos) */
.gp-nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	border: 0;
	background: none;
	padding: 0;
	color: #fff;
	font-size: 2.2rem;
	line-height: 1;
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
}

.gp-nav:hover,
.gp-nav:focus,
.gp-nav:active {
	background: none;
	outline: none;
	box-shadow: none;
}

.gp-prev { left: 18px; }
.gp-next { right: 18px; }

@media (max-width: 600px) {
	.gp-prev { left: 8px; }
	.gp-next { right: 8px; }
}

/* Paginación */
.gp-paginacion {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	justify-content: center;
	margin: 2rem 0 0;
}

.gp-paginacion .page-numbers {
	display: inline-block;
	padding: .45rem .8rem;
	border: 1px solid #e2e4e7;
	border-radius: 6px;
	text-decoration: none;
	color: #2c3338;
	background: #fff;
	line-height: 1;
}

.gp-paginacion .page-numbers:hover { background: #f0f0f1; }

.gp-paginacion .page-numbers.current {
	background: #2271b1;
	border-color: #2271b1;
	color: #fff;
}

.gp-paginacion .page-numbers.dots {
	border-color: transparent;
	background: transparent;
}
