/* GP Album Mirror — gallery + single photo styles */

.gpam-grid {
	columns: var(--gpam-cols, 3);
	column-gap: 14px;
	margin: 1em 0;
}
@media (max-width: 782px) {
	.gpam-grid { columns: 2; }
}
@media (max-width: 480px) {
	.gpam-grid { columns: 1; }
}

.gpam-item {
	break-inside: avoid;
	margin: 0 0 14px;
	position: relative;
}
.gpam-item a {
	display: block;
	position: relative;
	line-height: 0;
	border-radius: 8px;
	overflow: hidden;
}
.gpam-item img.gpam-thumb,
.gpam-item a img {
	width: 100%;
	height: auto;
	display: block;
	transition: transform 0.25s ease;
}
.gpam-item a:hover img {
	transform: scale(1.03);
}
.gpam-play {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 2.2em;
	color: #fff;
	text-shadow: 0 1px 8px rgba(0, 0, 0, 0.6);
	pointer-events: none;
}
.gpam-caption {
	font-size: 0.82em;
	line-height: 1.35;
	opacity: 0.75;
	padding: 6px 2px 0;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.gpam-hero {
	margin: 0 0 1.25em;
}
.gpam-hero img {
	width: 100%;
	height: auto;
	border-radius: 10px;
}
.gpam-video-link {
	text-align: center;
}
.gpam-meta {
	font-size: 0.88em;
	opacity: 0.7;
	margin-top: 1.5em;
}
.gpam-nav {
	margin-top: 1.5em;
	padding-top: 1em;
	border-top: 1px solid rgba(128, 128, 128, 0.25);
	font-size: 0.9em;
}
.gpam-nav-gallery {
	text-align: center;
	font-weight: 600;
	margin-bottom: 0.6em;
}
.gpam-nav-row {
	display: flex;
	justify-content: space-between;
	gap: 1.5em;
}
.gpam-nav-row > span {
	flex: 1 1 0;
	min-width: 0;
}
.gpam-nav-row a {
	display: flex;
	gap: 0.35em;
	align-items: baseline;
	max-width: 100%;
}
.gpam-nav-next a {
	justify-content: flex-end;
}
.gpam-nav-title {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	min-width: 0;
}

/* Lightbox */
.gpam-zoom {
	cursor: zoom-in;
}
.gpam-overlay {
	position: fixed;
	inset: 0;
	z-index: 100000;
	background: rgba(0, 0, 0, 0.93);
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: zoom-out;
	animation: gpam-fade 0.15s ease;
}
.gpam-overlay img {
	max-width: 96vw;
	max-height: 96vh;
	width: auto;
	height: auto;
	object-fit: contain;
	border-radius: 4px;
}
.gpam-noscroll {
	overflow: hidden;
}
@keyframes gpam-fade {
	from { opacity: 0; }
	to { opacity: 1; }
}
